diff options
Diffstat (limited to 'Build/source/texk/tex4htk')
157 files changed, 0 insertions, 46040 deletions
diff --git a/Build/source/texk/tex4htk/ChangeLog b/Build/source/texk/tex4htk/ChangeLog deleted file mode 100644 index 98b1f9ae6a8..00000000000 --- a/Build/source/texk/tex4htk/ChangeLog +++ /dev/null @@ -1,243 +0,0 @@ -2019-02-28 Karl Berry <karl@freefriends.org> - - * t4ht.c: expand %%~ to $TEXMFDIST instead of $SELFAUTOPARENT - (tex4ht r418, 3jul18). - * tex4ht.c: regenerate, version change only. - -2018-06-30 Karl Berry <karl@freefriends.org> - - * tex4ht-c.tex (close tex4ht file): don't try to dereference - null pointers if file is not open. (Why it's not open, I don't know.) - Report from Nasser Abbasi, tex4ht 25 May 2018 20:11:20 ff. - Synced from tex4ht r417. - -2018-06-29 Karl Berry <karl@freefriends.org> - - * tex4ht.c (r416), - * t4ht (r185).c: sync with tex4ht repository for #line directives - and -hA to trace everything. - -2016-09-21 Karl Berry <karl@tug.org> - - * tex4ht.c (main): allow any id byte <= 10, for xetex. - It was updated to 7 in XeTeX for TL 2016. - -2016-06-14 Karl Berry <karl@tug.org> - - * Makefile.am (shell_scripts): re-add xhlatex. - (EXTRA_DIST): remove from unused list. - * xhlatex.sh: rename from xhlatex. - -2016-05-22 Karl Berry <karl@freefriends.org> - - * tex4ht-c.tex (search_file): return NULL rather than FALSE - to placate MiKTeX. Report from Mojca, - https://sourceforge.net/p/miktex/bugs/2488. - -2015-02-16 Peter Breitenlohner <peb@mppmu.mpg.de> - - * Makefile.am: Use the fragment ../../am/dist_hook.am. - -2014-09-23 Peter Breitenlohner <peb@mppmu.mpg.de> - - * tex4ht.c: Avoid compiler warning [-Wunused-value]. - -2014-06-16 Peter Breitenlohner <peb@mppmu.mpg.de> - - * Makefile.am: Drop the obsolete ACLOCAL_AMFLAGS. - -2013-07-05 Peter Breitenlohner <peb@mppmu.mpg.de> - - * Makefile.am: Moved Makefile fragments to ../../am/. - -2013-07-02 Peter Breitenlohner <peb@mppmu.mpg.de> - - * t4ht.c, tex4ht.c: Always include system headers after - <kpathsea/config.h>. - -2013-01-30 Peter Breitenlohner <peb@mppmu.mpg.de> - - * configure.ac: Use KPSE_COND_WIN32_WRAP. - -2013-01-08 Peter Breitenlohner <peb@mppmu.mpg.de> - - * t4ht.c, tex4ht.c: Drop set but unused variables. - -2012-11-19 Peter Breitenlohner <peb@mppmu.mpg.de> - - * Makefile.am: Avoid use of deprecated INCLUDES. - -2012-07-25 Peter Breitenlohner <peb@mppmu.mpg.de> - - * t4ht.c, tex4ht.c [WIN32]: More changes from W32TeX. - Must not free argv. - -2012-07-23 Peter Breitenlohner <peb@mppmu.mpg.de> - - * t4ht.c, tex4ht.c [WIN32]: Use binary mode for output files. - Pass program name string to kpse_set_program_name. - Adapt to W32TeX versions. - -2011-12-06 Peter Breitenlohner <peb@mppmu.mpg.de> - - * Makefile.am: Replace ${prefix}/texmf => $(datarootdir)/texmf. - -2011-09-09 Peter Breitenlohner <peb@mppmu.mpg.de> - - * Makefile.am: Adapt to script_links.am using relpath. - -2011-03-31 Peter Breitenlohner <peb@mppmu.mpg.de> - - Rename ht{,context,latex,mex,tex,texi,xelatex,xetex} => ht*.sh. - Rename mk4ht => mk4ht.pl and update from TeX4ht repository. - * Makefile.am: Use the ../am/script_links.am fragment. - -2010-12-23 Peter Breitenlohner <peb@mppmu.mpg.de> - - * Makefile.am (install-links): Check symlink creation. - -2010-12-23 Peter Breitenlohner <peb@mppmu.mpg.de> - - * Makefile.am, configure.ac [WIN32]: Install wrapper binaries - instead of symlinks to scripts under texmf-dist/scripts/. - -2010-12-20 Peter Breitenlohner <peb@mppmu.mpg.de> - - * ht{,context,latex,mex,tex,texi,xelatex,xetex}.bat: - Scripts for WIN32 (copied from Master/bin/win32/). - * Makefile.am, configure.ac [WIN32]: Install ht*.bat scripts. - -2010-12-02 Karl Berry <karl@tug.org> - - * Makefile.am (EXTRA_DIST): rm htcmd.c. - -2010-11-16 Peter Breitenlohner <peb@mppmu.mpg.de> - - * t4ht.c (main): Initialize addr and media in order to avoid - compiler warnings. Use '#if 0' to skip unreachable code. - -2010-11-12 Peter Breitenlohner <peb@mppmu.mpg.de> - - * t4ht.c (filterGifScript): Avoid 'filtered_script might be used - uninitialized'. Use NULL_SCRIPT. - -2010-02-23 Peter Breitenlohner <peb@mppmu.mpg.de> - - * t4ht.c (get_env_dir) [WIN32]: Declare as static. - -2010-02-20 Peter Breitenlohner <peb@mppmu.mpg.de> - - * tex4ht.c [__MINGW32__]: #define HAVE_BOOLEAN in order to avoid - conflicting declaration for boolean from kpathsea/types.h. - Declare various param strings as const. - -2009-09-30 Peter Breitenlohner <peb@mppmu.mpg.de> - - * t4ht.c, tex4ht.c: Declare numerous param and local strings as - const. - -2009-06-18 Peter Breitenlohner <peb@mppmu.mpg.de> - - * Makefile.am (AM_CPPFLAGS, AM_CFLAGS): enable compiler warnings. - - * t4ht.c: FIXME: this causes three 'might be used uninitialized' - warnings. - Given the complexity of the code I leave them for the maintainer. - -2009-05-07 Peter Breitenlohner <peb@mppmu.mpg.de> - - Adapt to TL2009 build system. - -2008-02-29 Peter Breitenlohner <peb@mppmu.mpg.de> - - * configure.in: added AC_CONFIG_HEADERS (moved - from ../kpathsea/common.ac to here). - * config.h: removed (was empty). - -2008-01-30 Peter Breitenlohner <peb@mppmu.mpg.de> - - Convert from autoconf-2.13 to autoconf-2.59+: - * Makefile.in: Add @configure_input@ line, replace ac_include - by kpse_include. - * configure.in: Use KPSE_CONFIG_FILES([Makefile]). - * aclocal.m4 (new): Generated (aclocal -I ../m4). - * configure: Regenerated (autoconf). - -2004-09-18 Karl Berry <karl@tug.org> - - * Update for current tex4ht with all fixes, from: -http://www.cse.ohio-state.edu/~gurari/fix/tex4ht-1.0.2004_09_01_1516.tar.gz - - Amounts to new C files, new htcontext and httexexec. Fingers crossed. - -1998-10-22 Eli Zaretskii <eliz@is.elta.co.il> - - * tex4ht.c [__DJGPP__] (ANSI, DOS_GIF_FILE): Define. - (LSTAT): Define to stat for every system that doesn't define - S_ISLNK. - (WRITE_BIN_FLAGS, READ_BIN_FLAGS): Use binary mode with DJGPP. - (dos_file_names): New variable. - [WIN32] (sigint_handler): Add missing semi-colon in prototype - declaration. - (sig_err): If got fatal signal other than SIGINT or SIGQUIT, don't - return to caller, since the program will be aborted otherwise. - (search_file_ext): Allow use of both forward- and back-slashes on - DOS and Windows platforms. - (insert_ch) [DOS_GIF_FILE]: Only use butchered file name if long - file names aren't supported (dos_file_names is TRUE). - (main) [KPATHSEA]: If input is from stdin which is not a console - device, switch it to binary mode. Set dos_file_names to TRUE for - all DOS platforms, FALSE on Unix and WIN32, and compute at runtime - for DJGPP. Simplify logic of finding the init file by pushing - HOME=C: into environment if $HOME isn't defined on DOSISH systems. - Only use butchered file names for GIF files if long file names - aren't supported (dos_file_names is TRUE). - -Fri Oct 30 21:39:09 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk> - - * new version of tex4ht.c from Eitan. New C program t4ht.c, - replaces Perl processor - -Fri Mar 13 13:44:43 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk> - - * small changes from Eitan. added tex4ht.perl processor. - -Tue Feb 17 10:20:25 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk> - - * Makefile.in (install-exec): use INSTALL_DATA for shell script - -Mon Feb 16 13:16:07 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk> - - * Makefile.in: install-data needs to put stuff on $texmf/tex4ht, - not $texmf/tex/generic/tex4ht - * tex4ht.c: use "other text files" search path instead of TEXINPUTS - -Mon Feb 2 11:32:03 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk> - - * small fix in make check target of Makefile.in - -Fri Jan 30 13:23:22 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk> - - * tex4ht.c: changed #define STAT stat to #define STSTAT stat - (and use STSTAT) - Peter Breitenlohner found conflict with aix - -Tue Jan 27 14:32:25 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk> - - * configure etc: new configure.in, c-auto.in, Makefile.in from - Olaf Weber - -Tue Jan 27 13:48:41 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk> - - * ChangeLog: removed "check" target as people will not - all have "convert" - -Tue Jan 20 10:14:26 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk> - - * added check of function prototypes to c-auto.in - -Thu Jan 1 11:02:02 1998 Sebastian Rahtz <s.rahtz@elsevier.co.uk> - - * Started ChangeLog for tex4htk. Added #ifdef KPATHSEA sections to - C program, and cleaned .env file a little. Search for .env file - and .htf file on TEXINPUTS path - diff --git a/Build/source/texk/tex4htk/Makefile.am b/Build/source/texk/tex4htk/Makefile.am deleted file mode 100644 index cce13b45005..00000000000 --- a/Build/source/texk/tex4htk/Makefile.am +++ /dev/null @@ -1,163 +0,0 @@ -## Makefile.am for the TeX Live subdirectory texk/tex4htk/ -## -## Copyright 2016 Karl Berry <tex-live@tug.org> -## Copyright 2009-2015 Peter Breitenlohner <tex-live@tug.org> -## You may freely use, modify and/or distribute this file. -## -## We distribute the whole java tree. -EXTRA_DIST = java - -# Files not to be distributed -include $(srcdir)/../../am/dist_hook.am - -AM_CPPFLAGS = $(KPATHSEA_INCLUDES) -DANSI -DKPATHSEA -AM_CFLAGS = $(WARNING_CFLAGS) - -bin_PROGRAMS = t4ht tex4ht - -t4ht_SOURCES = t4ht.c - -tex4ht_SOURCES = tex4ht.c - -$(t4ht_OBJECTS) $(tex4ht_OBJECTS): $(KPATHSEA_DEPEND) - -LDADD = $(KPATHSEA_LIBS) - -## Rebuild libkpathsea -@KPATHSEA_RULE@ - -perl_scripts = mk4ht -shell_scripts = ht htcontext htlatex htmex httex httexi \ - htxelatex htxetex xhlatex - -scriptsdir = texmf-dist/scripts/tex4ht -nodist_bin_SCRIPTS = - -include $(srcdir)/../../am/script_links.am - -texmfdir = $(datarootdir)/$(scriptsdir) -dist_texmf_SCRIPTS = $(perl_scripts:=.pl) $(shell_scripts:=.sh) - -install-data-hook: install-perl-links install-shell-links -uninstall-hook: uninstall-links - -if WIN32 -dist_bin_SCRIPTS = $(shell_scripts:=.bat) -endif WIN32 - -CLEANFILES = $(nodist_bin_SCRIPTS) - -## Not used -## -EXTRA_DIST += \ - dbcontext \ - dblatex \ - dbmcontext \ - dbmex \ - dbmlatex \ - dbmmex \ - dbmtex \ - dbmtexi \ - dbmxelatex \ - dbmxetex \ - dbtex \ - dbtexi \ - dbxelatex \ - dbxetex \ - demo.tex \ - escontext \ - eslatex \ - esmex \ - estex \ - estexi \ - esxelatex \ - esxetex \ - jh1context \ - jh1latex \ - jh1mex \ - jh1tex \ - jh1texi \ - jh1xelatex \ - jh1xetex \ - jhcontext \ - jhlatex \ - jhmex \ - jhtex \ - jhtexi \ - jhxelatex \ - jhxetex \ - jmcontext \ - jmlatex \ - jmmex \ - jmtex \ - jmtexi \ - jmxelatex \ - jmxetex \ - jscontext \ - jslatex \ - jsmex \ - jstex \ - jstexi \ - jsxelatex \ - jsxetex \ - mzcontext \ - mzlatex \ - mzmex \ - mztex \ - mztexi \ - mzxelatex \ - mzxetex \ - oocontext \ - oolatex \ - oomex \ - ootex \ - ootexi \ - ooxelatex \ - ooxetex \ - teicontext \ - teilatex \ - teimcontext \ - teimex \ - teimlatex \ - teimmex \ - teimtex \ - teimtexi \ - teimxelatex \ - teimxetex \ - teitex \ - teitexi \ - teixelatex \ - teixetex \ - test.tex \ - test1.tex \ - testa.tex \ - testb.tex \ - uxhcontext \ - uxhlatex \ - uxhmex \ - uxhtex \ - uxhtexi \ - uxhxelatex \ - uxhxetex \ - wcontext \ - wlatex \ - wmex \ - wtex \ - wtexi \ - wxelatex \ - wxetex \ - xhcontext \ - xhmcontext \ - xhmex \ - xhmlatex \ - xhmmex \ - xhmtex \ - xhmtexi \ - xhmxelatex \ - xhmxetex \ - xhtex \ - xhtexi \ - xhxelatex \ - xhxetex \ - xv4ht.java - diff --git a/Build/source/texk/tex4htk/Makefile.in b/Build/source/texk/tex4htk/Makefile.in deleted file mode 100644 index a7a77759ef7..00000000000 --- a/Build/source/texk/tex4htk/Makefile.in +++ /dev/null @@ -1,1121 +0,0 @@ -# Makefile.in generated by automake 1.16.3 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2020 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@ - - -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = : -build_triplet = @build@ -host_triplet = @host@ -bin_PROGRAMS = t4ht$(EXEEXT) tex4ht$(EXEEXT) -@WIN32_TRUE@@WIN32_WRAP_TRUE@am__append_1 = $(wrappers) -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/../../m4/kpse-common.m4 \ - $(top_srcdir)/../../m4/kpse-kpathsea-flags.m4 \ - $(top_srcdir)/../../m4/kpse-warnings.m4 \ - $(top_srcdir)/../../m4/kpse-win32.m4 \ - $(top_srcdir)/../../m4/libtool.m4 \ - $(top_srcdir)/../../m4/ltoptions.m4 \ - $(top_srcdir)/../../m4/ltsugar.m4 \ - $(top_srcdir)/../../m4/ltversion.m4 \ - $(top_srcdir)/../../m4/lt~obsolete.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) $(am__dist_bin_SCRIPTS_DIST) \ - $(dist_texmf_SCRIPTS) $(am__DIST_COMMON) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno config.status.lineno -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = c-auto.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" \ - "$(DESTDIR)$(texmfdir)" "$(DESTDIR)$(bindir)" -PROGRAMS = $(bin_PROGRAMS) -am_t4ht_OBJECTS = t4ht.$(OBJEXT) -t4ht_OBJECTS = $(am_t4ht_OBJECTS) -t4ht_LDADD = $(LDADD) -am__DEPENDENCIES_1 = -t4ht_DEPENDENCIES = $(am__DEPENDENCIES_1) -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 = -am_tex4ht_OBJECTS = tex4ht.$(OBJEXT) -tex4ht_OBJECTS = $(am_tex4ht_OBJECTS) -tex4ht_LDADD = $(LDADD) -tex4ht_DEPENDENCIES = $(am__DEPENDENCIES_1) -am__dist_bin_SCRIPTS_DIST = ht.bat htcontext.bat htlatex.bat htmex.bat \ - httex.bat httexi.bat htxelatex.bat htxetex.bat xhlatex.bat -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; }; \ - } -SCRIPTS = $(dist_bin_SCRIPTS) $(dist_texmf_SCRIPTS) \ - $(nodist_bin_SCRIPTS) -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@ -depcomp = $(SHELL) $(top_srcdir)/../../build-aux/depcomp -am__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/t4ht.Po ./$(DEPDIR)/tex4ht.Po -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=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 = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=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 = $(t4ht_SOURCES) $(tex4ht_SOURCES) -DIST_SOURCES = $(t4ht_SOURCES) $(tex4ht_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) \ - c-auto.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 -AM_RECURSIVE_TARGETS = cscope -am__DIST_COMMON = $(srcdir)/../../am/dist_hook.am \ - $(srcdir)/../../am/script_links.am $(srcdir)/Makefile.in \ - $(srcdir)/c-auto.in $(top_srcdir)/../../build-aux/compile \ - $(top_srcdir)/../../build-aux/config.guess \ - $(top_srcdir)/../../build-aux/config.sub \ - $(top_srcdir)/../../build-aux/depcomp \ - $(top_srcdir)/../../build-aux/install-sh \ - $(top_srcdir)/../../build-aux/ltmain.sh \ - $(top_srcdir)/../../build-aux/missing ../../build-aux/ar-lib \ - ../../build-aux/compile ../../build-aux/config.guess \ - ../../build-aux/config.sub ../../build-aux/depcomp \ - ../../build-aux/install-sh ../../build-aux/ltmain.sh \ - ../../build-aux/missing ../../build-aux/texinfo.tex \ - ../../build-aux/ylwrap ChangeLog -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) -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -DIST_TARGETS = dist-gzip -# Exists only to be overridden by the user if desired. -AM_DISTCHECK_DVI_TARGET = dvi -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@ -AR = @AR@ -AS = @AS@ -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@ -DLLTOOL = @DLLTOOL@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FGREP = @FGREP@ -GREP = @GREP@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -KPATHSEA_DEPEND = @KPATHSEA_DEPEND@ -KPATHSEA_INCLUDES = @KPATHSEA_INCLUDES@ -KPATHSEA_LIBS = @KPATHSEA_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MKDIR_P = @MKDIR_P@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -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@ -RANLIB = @RANLIB@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -VERSION = @VERSION@ -WARNING_CFLAGS = @WARNING_CFLAGS@ -WIN_WRAPPER = @WIN_WRAPPER@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -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 = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -builddir = @builddir@ -datadir = @datadir@ -datarootdir = @datarootdir@ -docdir = @docdir@ -dvidir = @dvidir@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -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@ -EXTRA_DIST = java $(top_builddir)/../../build-aux/relpath dbcontext \ - dblatex dbmcontext dbmex dbmlatex dbmmex dbmtex dbmtexi \ - dbmxelatex dbmxetex dbtex dbtexi dbxelatex dbxetex demo.tex \ - escontext eslatex esmex estex estexi esxelatex esxetex \ - jh1context jh1latex jh1mex jh1tex jh1texi jh1xelatex jh1xetex \ - jhcontext jhlatex jhmex jhtex jhtexi jhxelatex jhxetex \ - jmcontext jmlatex jmmex jmtex jmtexi jmxelatex jmxetex \ - jscontext jslatex jsmex jstex jstexi jsxelatex jsxetex \ - mzcontext mzlatex mzmex mztex mztexi mzxelatex mzxetex \ - oocontext oolatex oomex ootex ootexi ooxelatex ooxetex \ - teicontext teilatex teimcontext teimex teimlatex teimmex \ - teimtex teimtexi teimxelatex teimxetex teitex teitexi \ - teixelatex teixetex test.tex test1.tex testa.tex testb.tex \ - uxhcontext uxhlatex uxhmex uxhtex uxhtexi uxhxelatex uxhxetex \ - wcontext wlatex wmex wtex wtexi wxelatex wxetex xhcontext \ - xhmcontext xhmex xhmlatex xhmmex xhmtex xhmtexi xhmxelatex \ - xhmxetex xhtex xhtexi xhxelatex xhxetex xv4ht.java -NEVER_DIST = `find . $(NEVER_NAMES)` -NEVER_NAMES = -name .svn -NEVER_NAMES_SUB = -o -name .deps -o -name .dirstamp -o -name '*.$(OBJEXT)' -NEVER_NAMES_LT = -o -name .libs -o -name '*.lo' - -# Files not to be distributed -AM_CPPFLAGS = $(KPATHSEA_INCLUDES) -DANSI -DKPATHSEA -AM_CFLAGS = $(WARNING_CFLAGS) -t4ht_SOURCES = t4ht.c -tex4ht_SOURCES = tex4ht.c -LDADD = $(KPATHSEA_LIBS) -perl_scripts = mk4ht -shell_scripts = ht htcontext htlatex htmex httex httexi \ - htxelatex htxetex xhlatex - -scriptsdir = texmf-dist/scripts/tex4ht -nodist_bin_SCRIPTS = $(am__append_1) -all_scripts = $(lua_scripts) $(perl_scripts) $(shell_scripts) -@WIN32_TRUE@@WIN32_WRAP_TRUE@wrappers = $(all_scripts:=.exe) -@WIN32_TRUE@@WIN32_WRAP_TRUE@runscript = $(top_srcdir)/../../texk/texlive/$(WIN_WRAPPER)/runscript.exe -texmfdir = $(datarootdir)/$(scriptsdir) -dist_texmf_SCRIPTS = $(perl_scripts:=.pl) $(shell_scripts:=.sh) -@WIN32_TRUE@dist_bin_SCRIPTS = $(shell_scripts:=.bat) -CLEANFILES = $(nodist_bin_SCRIPTS) -all: c-auto.h - $(MAKE) $(AM_MAKEFLAGS) all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -am--refresh: Makefile - @: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../am/dist_hook.am $(srcdir)/../../am/script_links.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --foreign 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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../../am/dist_hook.am $(srcdir)/../../am/script_links.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - $(am__cd) $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -$(am__aclocal_m4_deps): - -c-auto.h: stamp-h1 - @test -f $@ || rm -f stamp-h1 - @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 - -stamp-h1: $(srcdir)/c-auto.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status c-auto.h -$(srcdir)/c-auto.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) - rm -f stamp-h1 - touch $@ - -distclean-hdr: - -rm -f c-auto.h stamp-h1 -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 \ - || test -f $$p1 \ - ; 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) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(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: - @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ - echo " rm -f" $$list; \ - rm -f $$list || exit $$?; \ - test -n "$(EXEEXT)" || exit 0; \ - list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \ - echo " rm -f" $$list; \ - rm -f $$list - -t4ht$(EXEEXT): $(t4ht_OBJECTS) $(t4ht_DEPENDENCIES) $(EXTRA_t4ht_DEPENDENCIES) - @rm -f t4ht$(EXEEXT) - $(AM_V_CCLD)$(LINK) $(t4ht_OBJECTS) $(t4ht_LDADD) $(LIBS) - -tex4ht$(EXEEXT): $(tex4ht_OBJECTS) $(tex4ht_DEPENDENCIES) $(EXTRA_tex4ht_DEPENDENCIES) - @rm -f tex4ht$(EXEEXT) - $(AM_V_CCLD)$(LINK) $(tex4ht_OBJECTS) $(tex4ht_LDADD) $(LIBS) -install-dist_binSCRIPTS: $(dist_bin_SCRIPTS) - @$(NORMAL_INSTALL) - @list='$(dist_bin_SCRIPTS)'; 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 \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n' \ - -e 'h;s|.*|.|' \ - -e 'p;x;s,.*/,,;$(transform)' | 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; \ - if (++n[d] == $(am__install_max)) { \ - print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ - else { print "f", d "/" $$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_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ - $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-dist_binSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(dist_bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 's,.*/,,;$(transform)'`; \ - dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) -install-dist_texmfSCRIPTS: $(dist_texmf_SCRIPTS) - @$(NORMAL_INSTALL) - @list='$(dist_texmf_SCRIPTS)'; test -n "$(texmfdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(texmfdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(texmfdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n' \ - -e 'h;s|.*|.|' \ - -e 'p;x;s,.*/,,;$(transform)' | 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; \ - if (++n[d] == $(am__install_max)) { \ - print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ - else { print "f", d "/" $$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_SCRIPT) $$files '$(DESTDIR)$(texmfdir)$$dir'"; \ - $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(texmfdir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-dist_texmfSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(dist_texmf_SCRIPTS)'; test -n "$(texmfdir)" || exit 0; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 's,.*/,,;$(transform)'`; \ - dir='$(DESTDIR)$(texmfdir)'; $(am__uninstall_files_from_dir) -install-nodist_binSCRIPTS: $(nodist_bin_SCRIPTS) - @$(NORMAL_INSTALL) - @list='$(nodist_bin_SCRIPTS)'; 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 \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n' \ - -e 'h;s|.*|.|' \ - -e 'p;x;s,.*/,,;$(transform)' | 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; \ - if (++n[d] == $(am__install_max)) { \ - print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ - else { print "f", d "/" $$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_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \ - $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-nodist_binSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(nodist_bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 's,.*/,,;$(transform)'`; \ - dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/t4ht.Po@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tex4ht.Po@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.c.o: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ -@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.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) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ -@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ -@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool config.lt - -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" -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-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 - -rm -f cscope.out cscope.in.out cscope.po.out cscope.files - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-hook - -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) | eval GZIP= gzip $(GZIP_ENV) -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-zstd: distdir - tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst - $(am__post_remove_distdir) - -dist-tarZ: 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 - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__post_remove_distdir) - -dist-shar: distdir - @echo WARNING: "Support for shar distribution archives is" \ - "deprecated." >&2 - @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -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*) \ - eval GZIP= gzip $(GZIP_ENV) -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*) \ - eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - *.tar.zst*) \ - zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ - esac - chmod -R a-w $(distdir) - chmod u+w $(distdir) - mkdir $(distdir)/_build $(distdir)/_build/sub $(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/sub \ - && ../../configure \ - $(AM_DISTCHECK_CONFIGURE_FLAGS) \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - --srcdir=../.. --prefix="$$dc_install_base" \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ - && $(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-am -all-am: Makefile $(PROGRAMS) $(SCRIPTS) c-auto.h -installdirs: - for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(texmfdir)" "$(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: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -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 clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f ./$(DEPDIR)/t4ht.Po - -rm -f ./$(DEPDIR)/tex4ht.Po - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-hdr distclean-libtool distclean-tags - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-dist_texmfSCRIPTS - @$(NORMAL_INSTALL) - $(MAKE) $(AM_MAKEFLAGS) install-data-hook -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-binPROGRAMS install-dist_binSCRIPTS \ - install-nodist_binSCRIPTS - -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 -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -f ./$(DEPDIR)/t4ht.Po - -rm -f ./$(DEPDIR)/tex4ht.Po - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-binPROGRAMS uninstall-dist_binSCRIPTS \ - uninstall-dist_texmfSCRIPTS uninstall-nodist_binSCRIPTS - @$(NORMAL_INSTALL) - $(MAKE) $(AM_MAKEFLAGS) uninstall-hook -.MAKE: all install-am install-data-am install-strip uninstall-am - -.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles am--refresh check \ - check-am clean clean-binPROGRAMS clean-cscope clean-generic \ - clean-libtool cscope cscopelist-am ctags ctags-am dist \ - dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \ - dist-tarZ dist-xz dist-zip dist-zstd distcheck distclean \ - distclean-compile distclean-generic distclean-hdr \ - distclean-libtool distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am html html-am info info-am \ - install install-am install-binPROGRAMS install-data \ - install-data-am install-data-hook install-dist_binSCRIPTS \ - install-dist_texmfSCRIPTS install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-man \ - install-nodist_binSCRIPTS 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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \ - uninstall-dist_binSCRIPTS uninstall-dist_texmfSCRIPTS \ - uninstall-hook uninstall-nodist_binSCRIPTS - -.PRECIOUS: Makefile - -dist-hook: - cd "$(distdir)" && rm -rf $(NEVER_DIST) - -$(t4ht_OBJECTS) $(tex4ht_OBJECTS): $(KPATHSEA_DEPEND) - -@KPATHSEA_RULE@ -.PHONY: install-lua-links install-perl-links install-shell-links install-sh-links \ - install-links uninstall-links -@WIN32_TRUE@@WIN32_WRAP_TRUE@$(wrappers): $(runscript) -@WIN32_TRUE@@WIN32_WRAP_TRUE@ $(AM_V_GEN)$(LN_S) $(runscript) $@ - -install-lua-links: -@WIN32_FALSE@ $(MAKE) $(AM_MAKEFLAGS) TYPE=lua EXT=lua install-links - -install-perl-links: -@WIN32_FALSE@ $(MAKE) $(AM_MAKEFLAGS) TYPE=perl EXT=pl install-links - -install-shell-links: -@WIN32_FALSE@ $(MAKE) $(AM_MAKEFLAGS) TYPE=shell EXT=sh install-links - -install-sh-links: -@WIN32_FALSE@ $(MAKE) $(AM_MAKEFLAGS) TYPE=sh EXT=sh install-links - -# We support native builds, multiplatform or not, as well as distro builds. -install-links: - @relpath="$(top_srcdir)/../../build-aux/relpath"; \ - test -r $$relpath || { \ - echo 'script_links.am:install-links: could not find relpath script'; \ - exit 1; \ - }; \ - REL=`$(SHELL) $$relpath '$(DESTDIR)' '$(bindir)' '$(datarootdir)'`; \ - if test -z "$$REL"; then \ - echo 'script_links.am:install_links: unable to compute relative path for linked $(TYPE) scripts' >&2; \ - exit 1; \ - fi; \ - cd $(DESTDIR)$(bindir) && \ - for f in $($(TYPE)_scripts); do \ - rm -f $$f; \ - if $(AM_V_P); then echo "creating link '$$f' -> '$$REL/$(scriptsdir)/$$f.$(EXT)'"; \ - else echo " LINK $$f"; fi; \ - $(LN_S) $$REL/$(scriptsdir)/$$f.$(EXT) $$f || exit 1; \ - done - -uninstall-links: -@WIN32_FALSE@ @for f in $(all_scripts) $(sh_scripts); do \ -@WIN32_FALSE@ echo "rm -f '$(DESTDIR)$(bindir)/$$f'"; \ -@WIN32_FALSE@ rm -f "$(DESTDIR)$(bindir)/$$f"; \ -@WIN32_FALSE@ done - -install-data-hook: install-perl-links install-shell-links -uninstall-hook: uninstall-links - -# 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: diff --git a/Build/source/texk/tex4htk/ac/withenable.ac b/Build/source/texk/tex4htk/ac/withenable.ac deleted file mode 100644 index e4f1de2ddb3..00000000000 --- a/Build/source/texk/tex4htk/ac/withenable.ac +++ /dev/null @@ -1,7 +0,0 @@ -## texk/tex4htk/ac/withenable.ac: configure.ac fragment for the TeX Live subdirectory texk/tex4htk/ -dnl -dnl Copyright (C) 2009 Peter Breitenlohner <tex-live@tug.org> -dnl You may freely use, modify and/or distribute this file. -dnl -## configure options and TL libraries required for tex4htk -KPSE_ENABLE_PROG([tex4htk], [kpathsea]) diff --git a/Build/source/texk/tex4htk/aclocal.m4 b/Build/source/texk/tex4htk/aclocal.m4 deleted file mode 100644 index 2e38b3a78b1..00000000000 --- a/Build/source/texk/tex4htk/aclocal.m4 +++ /dev/null @@ -1,1177 +0,0 @@ -# generated automatically by aclocal 1.16.3 -*- Autoconf -*- - -# Copyright (C) 1996-2020 Free Software Foundation, Inc. - -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# 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. - -m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, -[m4_warning([this file was generated for autoconf 2.69. -You have another version of autoconf. It may work, but is not guaranteed to. -If you have problems, you may need to regenerate the build system entirely. -To do so, use the procedure documented by the package, typically 'autoreconf'.])]) - -# Copyright (C) 2002-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -# (This private macro should not be called outside this file.) -AC_DEFUN([AM_AUTOMAKE_VERSION], -[am__api_version='1.16' -dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to -dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.16.3], [], - [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl -]) - -# _AM_AUTOCONF_VERSION(VERSION) -# ----------------------------- -# aclocal traces this macro to find the Autoconf version. -# This is a private macro too. Using m4_define simplifies -# the logic in aclocal, which can simply ignore this definition. -m4_define([_AM_AUTOCONF_VERSION], []) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.16.3])dnl -m4_ifndef([AC_AUTOCONF_VERSION], - [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to -# '$srcdir', '$srcdir/..', or '$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is '.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ([2.52])dnl - m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE])dnl -AC_SUBST([$1_FALSE])dnl -_AM_SUBST_NOTMAKE([$1_TRUE])dnl -_AM_SUBST_NOTMAKE([$1_FALSE])dnl -m4_define([_AM_COND_VALUE_$1], [$2])dnl -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - -# Copyright (C) 1999-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - - -# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], - [$1], [CXX], [depcc="$CXX" am_compiler_list=], - [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], - [$1], [UPC], [depcc="$UPC" am_compiler_list=], - [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[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_$1_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 - m4_case([$1], [CC], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac], - [CXX], - [case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac]) - - for depmode in $am_compiler_list; do - # 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_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES. -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE([dependency-tracking], [dnl -AS_HELP_STRING( - [--enable-dependency-tracking], - [do not reject slow dependency extractors]) -AS_HELP_STRING( - [--disable-dependency-tracking], - [speeds up one-time build])]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH])dnl -_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl -AC_SUBST([am__nodep])dnl -_AM_SUBST_NOTMAKE([am__nodep])dnl -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[{ - # 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. - # TODO: see whether this extra hack can be removed once we start - # requiring Autoconf 2.70 or later. - AS_CASE([$CONFIG_FILES], - [*\'*], [eval set x "$CONFIG_FILES"], - [*], [set x $CONFIG_FILES]) - shift - # Used to flag and report bootstrapping failures. - am_rc=0 - for am_mf - do - # Strip MF so we end up with the name of the file. - am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile which includes - # dependency-tracking related rules and includes. - # Grep'ing the whole file directly is not great: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ - || continue - am_dirpart=`AS_DIRNAME(["$am_mf"])` - am_filepart=`AS_BASENAME(["$am_mf"])` - AM_RUN_LOG([cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles]) || am_rc=$? - done - if test $am_rc -ne 0; then - AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments - for automatic dependency tracking. If GNU make was not used, consider - re-running the configure script with MAKE="gmake" (or whatever is - necessary). You can also try re-running configure with the - '--disable-dependency-tracking' option to at least be able to build - the package (albeit without support for automatic dependency tracking).]) - fi - AS_UNSET([am_dirpart]) - AS_UNSET([am_filepart]) - AS_UNSET([am_mf]) - AS_UNSET([am_rc]) - rm -f conftest-deps.mk -} -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking is enabled. -# This creates each '.Po' and '.Plo' makefile fragment that we'll need in -# order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. -m4_define([AC_PROG_CC], -m4_defn([AC_PROG_CC]) -[_AM_PROG_CC_C_O -]) - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.65])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -if test "`cd $srcdir && pwd`" != "`pwd`"; then - # Use -I$(srcdir) only when $(srcdir) != ., so that make's output - # is not polluted with repeated "-I." - AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl - # test to see if srcdir already configured - if test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) - fi -fi - -# 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 -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[AC_DIAGNOSE([obsolete], - [$0: two- and three-arguments forms are deprecated.]) -m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl -dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. -m4_if( - m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), - [ok:ok],, - [m4_fatal([AC_INIT should be called with package and version arguments])])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) - AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) -AM_MISSING_PROG([AUTOCONF], [autoconf]) -AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) -AM_MISSING_PROG([AUTOHEADER], [autoheader]) -AM_MISSING_PROG([MAKEINFO], [makeinfo]) -AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -# For better backward compatibility. To be removed once Automake 1.9.x -# dies out for good. For more background, see: -# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> -# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> -AC_SUBST([mkdir_p], ['$(MKDIR_P)']) -# We need awk for the "check" target (and possibly the TAP driver). The -# system "awk" is bad on some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES([CC])], - [m4_define([AC_PROG_CC], - m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES([CXX])], - [m4_define([AC_PROG_CXX], - m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJC], - [_AM_DEPENDENCIES([OBJC])], - [m4_define([AC_PROG_OBJC], - m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl -AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], - [_AM_DEPENDENCIES([OBJCXX])], - [m4_define([AC_PROG_OBJCXX], - m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl -]) -AC_REQUIRE([AM_SILENT_RULES])dnl -dnl The testsuite driver may need to know about EXEEXT, so add the -dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This -dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. -AC_CONFIG_COMMANDS_PRE(dnl -[m4_provide_if([_AM_COMPILER_EXEEXT], - [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl - -# 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: <http://austingroupbugs.net/view.php?id=542> - -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: <https://www.gnu.org/software/coreutils/>. - -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 - AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) - fi -fi -dnl The trailing newline in this macro's definition is deliberate, for -dnl backward compatibility and to allow trailing 'dnl'-style comments -dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. -]) - -dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not -dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further -dnl mangled by Autoconf and run in a shell conditional statement. -m4_define([_AC_COMPILER_EXEEXT], -m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_arg=$1 -_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"])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -if test x"${install_sh+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; - *) - install_sh="\${SHELL} $am_aux_dir/install-sh" - esac -fi -AC_SUBST([install_sh])]) - -# Copyright (C) 2003-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[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 -AC_SUBST([am__leading_dot])]) - -# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- -# From Jim Meyering - -# Copyright (C) 1996-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MAINTAINER_MODE([DEFAULT-MODE]) -# ---------------------------------- -# Control maintainer-specific portions of Makefiles. -# Default is to disable them, unless 'enable' is passed literally. -# For symmetry, 'disable' may be passed as well. Anyway, the user -# can override the default with the --enable/--disable switch. -AC_DEFUN([AM_MAINTAINER_MODE], -[m4_case(m4_default([$1], [disable]), - [enable], [m4_define([am_maintainer_other], [disable])], - [disable], [m4_define([am_maintainer_other], [enable])], - [m4_define([am_maintainer_other], [enable]) - m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) -AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode's default is 'disable' unless 'enable' is passed - AC_ARG_ENABLE([maintainer-mode], - [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], - am_maintainer_other[ make rules and dependencies not useful - (and sometimes confusing) to the casual installer])], - [USE_MAINTAINER_MODE=$enableval], - [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) - AC_MSG_RESULT([$USE_MAINTAINER_MODE]) - AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) - MAINT=$MAINTAINER_MODE_TRUE - AC_SUBST([MAINT])dnl -] -) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MAKE_INCLUDE() -# ----------------- -# Check whether make has an 'include' directive that can support all -# the idioms we need for our automatic dependency tracking code. -AC_DEFUN([AM_MAKE_INCLUDE], -[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) -cat > confinc.mk << 'END' -am__doit: - @echo this is the am__doit target >confinc.out -.PHONY: am__doit -END -am__include="#" -am__quote= -# BSD make does it like this. -echo '.include "confinc.mk" # ignored' > confmf.BSD -# Other make implementations (GNU, Solaris 10, AIX) do it like this. -echo 'include confinc.mk # ignored' > confmf.GNU -_am_result=no -for s in GNU BSD; do - AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) - AS_CASE([$?:`cat confinc.out 2>/dev/null`], - ['0:this is the am__doit target'], - [AS_CASE([$s], - [BSD], [am__include='.include' am__quote='"'], - [am__include='include' am__quote=''])]) - if test "$am__include" != "#"; then - _am_result="yes ($s style)" - break - fi -done -rm -f confinc.* confmf.* -AC_MSG_RESULT([${_am_result}]) -AC_SUBST([am__include])]) -AC_SUBST([am__quote])]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it is modern enough. -# If it is, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([missing])dnl -if test x"${MISSING+set}" != xset; then - MISSING="\${SHELL} '$am_aux_dir/missing'" -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - AC_MSG_WARN(['missing' script is too old or missing]) -fi -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# -------------------- -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), [1])]) - -# _AM_SET_OPTIONS(OPTIONS) -# ------------------------ -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Copyright (C) 1999-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_PROG_CC_C_O -# --------------- -# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC -# to automatically call this. -AC_DEFUN([_AM_PROG_CC_C_O], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([compile])dnl -AC_LANG_PUSH([C])dnl -AC_CACHE_CHECK( - [whether $CC understands -c and -o together], - [am_cv_prog_cc_c_o], - [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) - # 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 AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ - && 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]) -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_LANG_POP([C])]) - -# For backward compatibility. -AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) - -# Copyright (C) 2001-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_RUN_LOG(COMMAND) -# ------------------- -# Run COMMAND, save the exit status in ac_status, and log it. -# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) -AC_DEFUN([AM_RUN_LOG], -[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Reject unsafe characters in $srcdir or the absolute working directory -# name. Accept space and tab only in the latter. -am_lf=' -' -case `pwd` in - *[[\\\"\#\$\&\'\`$am_lf]]*) - AC_MSG_ERROR([unsafe absolute working directory name]);; -esac -case $srcdir in - *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) - AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; -esac - -# Do 'set' in a subshell so we don't clobber the current shell's -# 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". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken - alias in your environment]) - 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 - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT([yes]) -# 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 -AC_CONFIG_COMMANDS_PRE( - [AC_MSG_CHECKING([that generated files are newer than configure]) - if test -n "$am_sleep_pid"; then - # Hide warnings about reused PIDs. - wait $am_sleep_pid 2>/dev/null - fi - AC_MSG_RESULT([done])]) -rm -f conftest.file -]) - -# Copyright (C) 2009-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_SILENT_RULES([DEFAULT]) -# -------------------------- -# Enable less verbose build rules; with the default set to DEFAULT -# ("yes" being less verbose, "no" or empty being verbose). -AC_DEFUN([AM_SILENT_RULES], -[AC_ARG_ENABLE([silent-rules], [dnl -AS_HELP_STRING( - [--enable-silent-rules], - [less verbose build output (undo: "make V=1")]) -AS_HELP_STRING( - [--disable-silent-rules], - [verbose build output (undo: "make V=0")])dnl -]) -case $enable_silent_rules in @%:@ ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; -esac -dnl -dnl A few 'make' implementations (e.g., NonStop OS and NextStep) -dnl do not support nested variable expansions. -dnl See automake bug#9928 and bug#10237. -am_make=${MAKE-make} -AC_CACHE_CHECK([whether $am_make supports nested variables], - [am_cv_make_support_nested_variables], - [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]) -if test $am_cv_make_support_nested_variables = yes; then - dnl Using '$V' instead of '$(V)' breaks IRIX make. - AM_V='$(V)' - AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' -else - AM_V=$AM_DEFAULT_VERBOSITY - AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY -fi -AC_SUBST([AM_V])dnl -AM_SUBST_NOTMAKE([AM_V])dnl -AC_SUBST([AM_DEFAULT_V])dnl -AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl -AC_SUBST([AM_DEFAULT_VERBOSITY])dnl -AM_BACKSLASH='\' -AC_SUBST([AM_BACKSLASH])dnl -_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl -]) - -# Copyright (C) 2001-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor 'install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in "make install-strip", and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# 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. -dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Copyright (C) 2006-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_SUBST_NOTMAKE(VARIABLE) -# --------------------------- -# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. -# This macro is traced by Automake. -AC_DEFUN([_AM_SUBST_NOTMAKE]) - -# AM_SUBST_NOTMAKE(VARIABLE) -# -------------------------- -# Public sister of _AM_SUBST_NOTMAKE. -AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004-2020 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of 'v7', 'ustar', or 'pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -# -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. Yes, it's still used -# in the wild :-( We should find a proper way to deprecate it ... -AC_SUBST([AMTAR], ['$${TAR-tar}']) - -# We'll loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' - -m4_if([$1], [v7], - [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], - - [m4_case([$1], - [ustar], - [# The POSIX 1988 'ustar' format is defined with fixed-size fields. - # There is notably a 21 bits limit for the UID and the GID. In fact, - # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 - # and bug#13588). - am_max_uid=2097151 # 2^21 - 1 - am_max_gid=$am_max_uid - # The $UID and $GID variables are not portable, so we need to resort - # to the POSIX-mandated id(1) utility. Errors in the 'id' calls - # below are definitely unexpected, so allow the users to see them - # (that is, avoid stderr redirection). - am_uid=`id -u || echo unknown` - am_gid=`id -g || echo unknown` - AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) - if test $am_uid -le $am_max_uid; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - _am_tools=none - fi - AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) - if test $am_gid -le $am_max_gid; then - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - _am_tools=none - fi], - - [pax], - [], - - [m4_fatal([Unknown tar format])]) - - AC_MSG_CHECKING([how to create a $1 tar archive]) - - # Go ahead even if we have the value already cached. We do so because we - # need to set the values for the 'am__tar' and 'am__untar' variables. - _am_tools=${am_cv_prog_tar_$1-$_am_tools} - - for _am_tool in $_am_tools; do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works. - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar <conftest.tar]) - AM_RUN_LOG([cat conftest.dir/file]) - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break - fi - done - rm -rf conftest.dir - - AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) - AC_MSG_RESULT([$am_cv_prog_tar_$1])]) - -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -m4_include([../../m4/kpse-common.m4]) -m4_include([../../m4/kpse-kpathsea-flags.m4]) -m4_include([../../m4/kpse-warnings.m4]) -m4_include([../../m4/kpse-win32.m4]) -m4_include([../../m4/libtool.m4]) -m4_include([../../m4/ltoptions.m4]) -m4_include([../../m4/ltsugar.m4]) -m4_include([../../m4/ltversion.m4]) -m4_include([../../m4/lt~obsolete.m4]) diff --git a/Build/source/texk/tex4htk/c-auto.in b/Build/source/texk/tex4htk/c-auto.in deleted file mode 100644 index 406daba2328..00000000000 --- a/Build/source/texk/tex4htk/c-auto.in +++ /dev/null @@ -1,173 +0,0 @@ -/* c-auto.in. Generated from configure.ac by autoheader. */ - -/* Define to 1 if the `closedir' function returns void instead of `int'. */ -#undef CLOSEDIR_VOID - -/* Define to 1 if you have the <assert.h> header file. */ -#undef HAVE_ASSERT_H - -/* Define to 1 if you have the declaration of `isascii', and to 0 if you - don't. */ -#undef HAVE_DECL_ISASCII - -/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. - */ -#undef HAVE_DIRENT_H - -/* Define to 1 if you have the <dlfcn.h> header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the <float.h> header file. */ -#undef HAVE_FLOAT_H - -/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ -#undef HAVE_FSEEKO - -/* Define to 1 if you have the `getcwd' function. */ -#undef HAVE_GETCWD - -/* Define to 1 if you have the `getwd' function. */ -#undef HAVE_GETWD - -/* Define to 1 if you have the <inttypes.h> header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the <limits.h> header file. */ -#undef HAVE_LIMITS_H - -/* Define to 1 if you have the `memcmp' function. */ -#undef HAVE_MEMCMP - -/* Define to 1 if you have the `memcpy' function. */ -#undef HAVE_MEMCPY - -/* Define to 1 if you have the <memory.h> header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the `mkstemp' function. */ -#undef HAVE_MKSTEMP - -/* Define to 1 if you have the `mktemp' function. */ -#undef HAVE_MKTEMP - -/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ -#undef HAVE_NDIR_H - -/* Define to 1 if you have the `putenv' function. */ -#undef HAVE_PUTENV - -/* Define to 1 if you have the <pwd.h> header file. */ -#undef HAVE_PWD_H - -/* Define to 1 if you have the <stdint.h> header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the <stdlib.h> header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the `strchr' function. */ -#undef HAVE_STRCHR - -/* Define to 1 if you have the <strings.h> header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the <string.h> header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if you have the `strrchr' function. */ -#undef HAVE_STRRCHR - -/* Define to 1 if `st_mtim' is a member of `struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_MTIM - -/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. - */ -#undef HAVE_SYS_DIR_H - -/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. - */ -#undef HAVE_SYS_NDIR_H - -/* Define to 1 if you have the <sys/param.h> header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define to 1 if you have the <sys/stat.h> header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the <sys/types.h> header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* Define to the sub-directory where libtool stores uninstalled libraries. */ -#undef LT_OBJDIR - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the home page for this package. */ -#undef PACKAGE_URL - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* The size of `int', as computed by sizeof. */ -#undef SIZEOF_INT - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Version number of package */ -#undef VERSION - -/* Enable large inode numbers on Mac OS X 10.5. */ -#ifndef _DARWIN_USE_64_BIT_INODE -# define _DARWIN_USE_64_BIT_INODE 1 -#endif - -/* Number of bits in a file offset, on hosts where this is settable. */ -#undef _FILE_OFFSET_BITS - -/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */ -#undef _LARGEFILE_SOURCE - -/* Define for large files, on AIX-style hosts. */ -#undef _LARGE_FILES - -/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>, - <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the - #define below would cause a syntax error. */ -#undef _UINT64_T - -/* Define to empty if `const' does not conform to ANSI C. */ -#undef const - -/* Define to `__inline__' or `__inline' if that's what the C compiler - calls it, or to nothing if 'inline' is not supported under any name. */ -#ifndef __cplusplus -#undef inline -#endif - -/* Define to the type of a signed integer type of width exactly 64 bits if - such a type exists and the standard includes do not define it. */ -#undef int64_t - -/* Define to `unsigned int' if <sys/types.h> does not define. */ -#undef size_t - -/* Define to the type of an unsigned integer type of width exactly 64 bits if - such a type exists and the standard includes do not define it. */ -#undef uint64_t diff --git a/Build/source/texk/tex4htk/configure b/Build/source/texk/tex4htk/configure deleted file mode 100755 index 416cf47567e..00000000000 --- a/Build/source/texk/tex4htk/configure +++ /dev/null @@ -1,17556 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for tex4ht (TeX Live) 20080225. -# -# Report bugs to <tex-k@tug.org>. -# -# -# 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 -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO - PATH=/empty FPATH=/empty; export PATH FPATH - test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 and tex-k@tug.org -$0: about your system, including any error possibly output -$0: before this message. Then install a modern shell, or -$0: manually run the script under such a shell if you do -$0: 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'" - -SHELL=${CONFIG_SHELL-/bin/sh} - - -test -n "$DJDIR" || exec 7<&0 </dev/null -exec 6>&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='tex4ht (TeX Live)' -PACKAGE_TARNAME='tex4ht--tex-live-' -PACKAGE_VERSION='20080225' -PACKAGE_STRING='tex4ht (TeX Live) 20080225' -PACKAGE_BUGREPORT='tex-k@tug.org' -PACKAGE_URL='' - -ac_unique_file="tex4ht.c" -# Factoring default headers for most tests. -ac_includes_default="\ -#include <stdio.h> -#ifdef HAVE_SYS_TYPES_H -# include <sys/types.h> -#endif -#ifdef HAVE_SYS_STAT_H -# include <sys/stat.h> -#endif -#ifdef STDC_HEADERS -# include <stdlib.h> -# include <stddef.h> -#else -# ifdef HAVE_STDLIB_H -# include <stdlib.h> -# endif -#endif -#ifdef HAVE_STRING_H -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H -# include <memory.h> -# endif -# include <string.h> -#endif -#ifdef HAVE_STRINGS_H -# include <strings.h> -#endif -#ifdef HAVE_INTTYPES_H -# include <inttypes.h> -#endif -#ifdef HAVE_STDINT_H -# include <stdint.h> -#endif -#ifdef HAVE_UNISTD_H -# include <unistd.h> -#endif" - -ac_subst_vars='am__EXEEXT_FALSE -am__EXEEXT_TRUE -LTLIBOBJS -LIBOBJS -WIN32_WRAP_FALSE -WIN32_WRAP_TRUE -WIN_WRAPPER -WIN32_FALSE -WIN32_TRUE -KPATHSEA_RULE -KPATHSEA_DEPEND -KPATHSEA_LIBS -KPATHSEA_INCLUDES -PKG_CONFIG -CPP -LT_SYS_LIBRARY_PATH -OTOOL64 -OTOOL -LIPO -NMEDIT -DSYMUTIL -MANIFEST_TOOL -RANLIB -ac_ct_AR -AR -LN_S -NM -ac_ct_DUMPBIN -DUMPBIN -LD -FGREP -EGREP -GREP -SED -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build -LIBTOOL -OBJDUMP -DLLTOOL -AS -WARNING_CFLAGS -am__fastdepCC_FALSE -am__fastdepCC_TRUE -CCDEPMODE -am__nodep -AMDEPBACKSLASH -AMDEP_FALSE -AMDEP_TRUE -am__include -DEPDIR -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC -MAINT -MAINTAINER_MODE_FALSE -MAINTAINER_MODE_TRUE -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 -am__quote' -ac_subst_files='' -ac_user_opts=' -enable_option_checking -enable_silent_rules -enable_maintainer_mode -enable_dependency_tracking -enable_compiler_warnings -enable_shared -enable_static -with_pic -enable_fast_install -with_aix_soname -with_gnu_ld -with_sysroot -enable_libtool_lock -enable_largefile -with_system_kpathsea -' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -LT_SYS_LIBRARY_PATH -CPP' - - -# 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 tex4ht (TeX Live) 20080225 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/tex4ht--tex-live-] - --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 - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of tex4ht (TeX Live) 20080225:";; - 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-maintainer-mode - enable make rules and dependencies not useful (and - sometimes confusing) to the casual installer - --enable-dependency-tracking - do not reject slow dependency extractors - --disable-dependency-tracking - speeds up one-time build - --enable-compiler-warnings=[no|min|yes|max|all] - Turn on compiler warnings [default: yes if - maintainer-mode, min otherwise] - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) - --disable-largefile omit support for large files - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use - both] - --with-aix-soname=aix|svr4|both - shared library versioning (aka "SONAME") variant to - provide on AIX, [default=aix]. - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-sysroot[=DIR] Search for dependent libraries within DIR (or the - compiler's sysroot if not specified). - --with-system-kpathsea use installed kpathsea headers and library (requires - pkg-config) - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a - nonstandard directory <lib dir> - LIBS libraries to pass to the linker, e.g. -l<library> - CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if - you have headers in a nonstandard directory <include dir> - LT_SYS_LIBRARY_PATH - User-defined run-time library search path. - CPP C preprocessor - -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 <tex-k@tug.org>. -_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 -tex4ht (TeX Live) configure 20080225 -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_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_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_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_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 <limits.h> declares $2. - For example, HP-UX 11i <limits.h> declares gettimeofday. */ -#define $2 innocuous_$2 - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $2 (); below. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - <limits.h> exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#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 - -# 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;} -( $as_echo "## ---------------------------- ## -## Report this to tex-k@tug.org ## -## ---------------------------- ##" - ) | sed "s/^/$as_me: WARNING: /" >&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_check_type LINENO TYPE VAR INCLUDES -# ------------------------------------------- -# Tests whether TYPE exists after having included INCLUDES, setting cache -# variable VAR accordingly. -ac_fn_c_check_type () -{ - 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 - eval "$3=no" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof ($2)) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof (($2))) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - eval "$3=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 -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_type - -# ac_fn_c_find_intX_t LINENO BITS VAR -# ----------------------------------- -# Finds a signed integer type with width BITS, setting cache variable VAR -# accordingly. -ac_fn_c_find_intX_t () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 -$as_echo_n "checking for int$2_t... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=no" - # Order is important - never check a type that is potentially smaller - # than half of the expected target width. - for ac_type in int$2_t 'int' 'long int' \ - 'long long int' 'short int' 'signed char'; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default - enum { N = $2 / 2 - 1 }; -int -main () -{ -static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default - enum { N = $2 / 2 - 1 }; -int -main () -{ -static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) - < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - case $ac_type in #( - int$2_t) : - eval "$3=yes" ;; #( - *) : - eval "$3=\$ac_type" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if eval test \"x\$"$3"\" = x"no"; then : - -else - break -fi - done -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_find_intX_t - -# ac_fn_c_find_uintX_t LINENO BITS VAR -# ------------------------------------ -# Finds an unsigned integer type with width BITS, setting cache variable VAR -# accordingly. -ac_fn_c_find_uintX_t () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 -$as_echo_n "checking for uint$2_t... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=no" - # Order is important - never check a type that is potentially smaller - # than half of the expected target width. - for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ - 'unsigned long long int' 'unsigned short int' 'unsigned char'; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - case $ac_type in #( - uint$2_t) : - eval "$3=yes" ;; #( - *) : - eval "$3=\$ac_type" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - if eval test \"x\$"$3"\" = x"no"; then : - -else - break -fi - done -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_find_uintX_t - -# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES -# --------------------------------------------- -# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR -# accordingly. -ac_fn_c_check_decl () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - as_decl_name=`echo $2|sed 's/ *(.*//'` - as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 -$as_echo_n "checking whether $as_decl_name is declared... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -#ifndef $as_decl_name -#ifdef __cplusplus - (void) $as_decl_use; -#else - (void) $as_decl_name; -#endif -#endif - - ; - return 0; -} -_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_decl - -# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES -# ---------------------------------------------------- -# Tries to find if the field MEMBER exists in type AGGR, after including -# INCLUDES, setting cache variable VAR accordingly. -ac_fn_c_check_member () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 -$as_echo_n "checking for $2.$3... " >&6; } -if eval \${$4+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$5 -int -main () -{ -static $2 ac_aggr; -if (ac_aggr.$3) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$4=yes" -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$5 -int -main () -{ -static $2 ac_aggr; -if (sizeof ac_aggr.$3) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$4=yes" -else - eval "$4=no" -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 -eval ac_res=\$$4 - { $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_member - -# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES -# -------------------------------------------- -# Tries to find the compile-time value of EXPR in a program that includes -# INCLUDES, setting VAR accordingly. Returns whether the value could be -# computed -ac_fn_c_compute_int () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) >= 0)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_lo=0 ac_mid=0 - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_hi=$ac_mid; break -else - as_fn_arith $ac_mid + 1 && ac_lo=$as_val - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) < 0)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_hi=-1 ac_mid=-1 - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) >= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_lo=$ac_mid; break -else - as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - ac_lo= ac_hi= -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_hi=$ac_mid -else - as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in #(( -?*) eval "$3=\$ac_lo"; ac_retval=0 ;; -'') ac_retval=1 ;; -esac - else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -static long int longval () { return $2; } -static unsigned long int ulongval () { return $2; } -#include <stdio.h> -#include <stdlib.h> -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (($2) < 0) - { - long int i = longval (); - if (i != ($2)) - return 1; - fprintf (f, "%ld", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ($2)) - return 1; - fprintf (f, "%lu", i); - } - /* Do not output a trailing newline, as this causes \r\n confusion - on some platforms. */ - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - echo >>conftest.val; read $3 <conftest.val; ac_retval=0 -else - ac_retval=1 -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -rm -f conftest.val - - fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_compute_int -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 tex4ht (TeX Live) $as_me 20080225, 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 - - - - -ac_aux_dir= -for ac_dir in ../../build-aux "$srcdir"/../../build-aux; 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 ../../build-aux \"$srcdir\"/../../build-aux" "$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. - - - - -am__api_version='1.16' - -# 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 - MISSING="\${SHELL} '$am_aux_dir/missing'" -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+set}" != 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='\' - -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 -$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } -cat > confinc.mk << 'END' -am__doit: - @echo this is the am__doit target >confinc.out -.PHONY: am__doit -END -am__include="#" -am__quote= -# BSD make does it like this. -echo '.include "confinc.mk" # ignored' > confmf.BSD -# Other make implementations (GNU, Solaris 10, AIX) do it like this. -echo 'include confinc.mk # ignored' > confmf.GNU -_am_result=no -for s in GNU BSD; do - { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 - (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - case $?:`cat confinc.out 2>/dev/null` in #( - '0:this is the am__doit target') : - case $s in #( - BSD) : - am__include='.include' am__quote='"' ;; #( - *) : - am__include='include' am__quote='' ;; -esac ;; #( - *) : - ;; -esac - if test "$am__include" != "#"; then - _am_result="yes ($s style)" - break - fi -done -rm -f confinc.* confmf.* -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 -$as_echo "${_am_result}" >&6; } - -# 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 - - -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 <stdio.h> -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 <stdarg.h> -#include <stdio.h> -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 - - -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 - - - -# Check whether --enable-compiler-warnings was given. -if test "${enable_compiler_warnings+set}" = set; then : - enableval=$enable_compiler_warnings; -fi -case $enable_compiler_warnings in #( - no | min | yes | max | all) : - ;; #( - *) : - if test "x$enable_maintainer_mode" = xyes; then : - enable_compiler_warnings=yes -else - enable_compiler_warnings=min -fi ;; -esac - -case `pwd` in - *\ * | *\ *) - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; -esac - - - -macro_version='2.4.6' -macro_revision='2.4.6' - - - - - - - - - - - - - -ltmain=$ac_aux_dir/ltmain.sh - -# Make sure we can run config.sub. -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -$as_echo_n "checking build system type... " >&6; } -if ${ac_cv_build+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_build_alias=$build_alias -test "x$ac_build_alias" = x && - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` -test "x$ac_build_alias" = x && - as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } -case $ac_cv_build in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; -esac -build=$ac_cv_build -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_build -shift -build_cpu=$1 -build_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -build_os=$* -IFS=$ac_save_IFS -case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -$as_echo_n "checking host system type... " >&6; } -if ${ac_cv_host+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$host_alias" = x; then - ac_cv_host=$ac_cv_build -else - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } -case $ac_cv_host in -*-*-*) ;; -*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; -esac -host=$ac_cv_host -ac_save_IFS=$IFS; IFS='-' -set x $ac_cv_host -shift -host_cpu=$1 -host_vendor=$2 -shift; shift -# Remember, the first character of IFS is used to create $*, -# except with old shells: -host_os=$* -IFS=$ac_save_IFS -case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac - - -# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -$as_echo_n "checking how to print strings... " >&6; } -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "" -} - -case $ECHO in - printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -$as_echo "printf" >&6; } ;; - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -$as_echo "print -r" >&6; } ;; - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -$as_echo "cat" >&6; } ;; -esac - - - - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -$as_echo_n "checking for a sed that does not truncate output... " >&6; } -if ${ac_cv_path_SED+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_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 -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_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 '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "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_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_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_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" - - - - - - - - - - - -{ $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 fgrep" >&5 -$as_echo_n "checking for fgrep... " >&6; } -if ${ac_cv_path_FGREP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 - then ac_cv_path_FGREP="$GREP -F" - else - if test -z "$FGREP"; then - ac_path_FGREP_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 fgrep; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_FGREP" || continue -# Check for GNU ac_path_FGREP and select it if it is found. - # Check for GNU $ac_path_FGREP -case `"$ac_path_FGREP" --version 2>&1` in -*GNU*) - ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_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 'FGREP' >> "conftest.nl" - "$ac_path_FGREP" FGREP < "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_FGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_FGREP="$ac_path_FGREP" - ac_path_FGREP_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_FGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_FGREP"; then - as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_FGREP=$FGREP -fi - - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -$as_echo "$ac_cv_path_FGREP" >&6; } - FGREP="$ac_cv_path_FGREP" - - -test -z "$GREP" && GREP=grep - - - - - - - - - - - - - - - - - - - -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else - with_gnu_ld=no -fi - -ac_prog=ld -if test yes = "$GCC"; then - # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return, which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD=$ac_prog - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test yes = "$with_gnu_ld"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } -fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$LD"; then - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD=$ac_dir/$ac_prog - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in - *GNU* | *'with BFD'*) - test no != "$with_gnu_ld" && break - ;; - *) - test yes != "$with_gnu_ld" && break - ;; - esac - fi - done - IFS=$lt_save_ifs -else - lt_cv_path_LD=$LD # Let the user override the test with a path. -fi -fi - -LD=$lt_cv_path_LD -if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } -if ${lt_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 </dev/null` in -*GNU* | *'with BFD'*) - lt_cv_prog_gnu_ld=yes - ;; -*) - lt_cv_prog_gnu_ld=no - ;; -esac -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 -$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } -if ${lt_cv_path_NM+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM=$NM -else - lt_nm_to_check=${ac_tool_prefix}nm - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - tmp_nm=$ac_dir/$lt_tmp_nm - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the 'sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty - case $build_os in - mingw*) lt_bad_file=conftest.nm/nofile ;; - *) lt_bad_file=/dev/null ;; - esac - case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in - *$lt_bad_file* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break 2 - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break 2 - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS=$lt_save_ifs - done - : ${lt_cv_path_NM=no} -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 -$as_echo "$lt_cv_path_NM" >&6; } -if test no != "$lt_cv_path_NM"; then - NM=$lt_cv_path_NM -else - # Didn't find any BSD compatible name lister, look for dumpbin. - if test -n "$DUMPBIN"; then : - # Let the user override the test. - else - if test -n "$ac_tool_prefix"; then - for ac_prog in dumpbin "link -dump" - 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_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DUMPBIN"; then - ac_cv_prog_DUMPBIN="$DUMPBIN" # 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_DUMPBIN="$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 -DUMPBIN=$ac_cv_prog_DUMPBIN -if test -n "$DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 -$as_echo "$DUMPBIN" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$DUMPBIN" && break - done -fi -if test -z "$DUMPBIN"; then - ac_ct_DUMPBIN=$DUMPBIN - for ac_prog in dumpbin "link -dump" -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_DUMPBIN+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DUMPBIN"; then - ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_DUMPBIN="$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_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN -if test -n "$ac_ct_DUMPBIN"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 -$as_echo "$ac_ct_DUMPBIN" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_DUMPBIN" && break -done - - if test "x$ac_ct_DUMPBIN" = x; then - DUMPBIN=":" - 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 - DUMPBIN=$ac_ct_DUMPBIN - fi -fi - - case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in - *COFF*) - DUMPBIN="$DUMPBIN -symbols -headers" - ;; - *) - DUMPBIN=: - ;; - esac - fi - - if test : != "$DUMPBIN"; then - NM=$DUMPBIN - fi -fi -test -z "$NM" && NM=nm - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 -$as_echo_n "checking the name lister ($NM) interface... " >&6; } -if ${lt_cv_nm_interface+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_nm_interface="BSD nm" - echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) - (eval "$ac_compile" 2>conftest.err) - cat conftest.err >&5 - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) - cat conftest.err >&5 - (eval echo "\"\$as_me:$LINENO: output\"" >&5) - cat conftest.out >&5 - if $GREP 'External.*some_variable' conftest.out > /dev/null; then - lt_cv_nm_interface="MS dumpbin" - fi - rm -f conftest* -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 -$as_echo "$lt_cv_nm_interface" >&6; } - -{ $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 - -# find the maximum length of command line arguments -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -$as_echo_n "checking the maximum length of command line arguments... " >&6; } -if ${lt_cv_sys_max_cmd_len+:} false; then : - $as_echo_n "(cached) " >&6 -else - i=0 - teststring=ABCD - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - mint*) - # On MiNT this can take a long time and run out of memory. - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - os2*) - # The test takes a long time on OS/2. - lt_cv_sys_max_cmd_len=8192 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len" && \ - test undefined != "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - # Make teststring a little bigger before we do anything with it. - # a 1K string should be a reasonable start. - for i in 1 2 3 4 5 6 7 8; do - teststring=$teststring$teststring - done - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - while { test X`env echo "$teststring$teststring" 2>/dev/null` \ - = "X$teststring$teststring"; } >/dev/null 2>&1 && - test 17 != "$i" # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - # Only check the string length outside the loop. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` - teststring= - # Add a significant safety factor because C++ compilers can tack on - # massive amounts of additional arguments before passing them to the - # linker. It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - -fi - -if test -n "$lt_cv_sys_max_cmd_len"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -$as_echo "$lt_cv_sys_max_cmd_len" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } -fi -max_cmd_len=$lt_cv_sys_max_cmd_len - - - - - - -: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} - -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - lt_unset=unset -else - lt_unset=false -fi - - - - - -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - lt_SP2NL='tr \040 \012' - lt_NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - lt_SP2NL='tr \100 \n' - lt_NL2SP='tr \r\n \100\100' - ;; -esac - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 -$as_echo_n "checking how to convert $build file names to $host format... " >&6; } -if ${lt_cv_to_host_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 - ;; - esac - ;; - *-*-cygwin* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin - ;; - esac - ;; - * ) # unhandled hosts (and "normal" native builds) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; -esac - -fi - -to_host_file_cmd=$lt_cv_to_host_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 -$as_echo "$lt_cv_to_host_file_cmd" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 -$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } -if ${lt_cv_to_tool_file_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - #assume ordinary cross tools, or native build. -lt_cv_to_tool_file_cmd=func_convert_file_noop -case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 - ;; - esac - ;; -esac - -fi - -to_tool_file_cmd=$lt_cv_to_tool_file_cmd -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 -$as_echo "$lt_cv_to_tool_file_cmd" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -$as_echo_n "checking for $LD option to reload object files... " >&6; } -if ${lt_cv_ld_reload_flag+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_reload_flag='-r' -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - if test yes != "$GCC"; then - reload_cmds=false - fi - ;; - darwin*) - if test yes = "$GCC"; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac - - - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump" - $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 -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; 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_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_OBJDUMP="objdump" - $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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - 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 - OBJDUMP=$ac_ct_OBJDUMP - fi -else - OBJDUMP="$ac_cv_prog_OBJDUMP" -fi - -test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 -$as_echo_n "checking how to recognize dependent libraries... " >&6; } -if ${lt_cv_deplibs_check_method+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# 'unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# that responds to the $file_magic_cmd with a given extended regex. -# If you have 'file' or equivalent on your system and you're not sure -# whether 'pass_all' will *always* work, you probably want this one. - -case $host_os in -aix[4-9]*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - # Keep this pattern in sync with the one in func_win32_libid. - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -cegcc*) - # use the weaker test based on 'objdump'. See mingw*. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -haiku*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -*nto* | *qnx*) - lt_cv_deplibs_check_method=pass_all - ;; - -openbsd* | bitrig*) - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -tpf*) - lt_cv_deplibs_check_method=pass_all - ;; -os2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } - -file_magic_glob= -want_nocaseglob=no -if test "$build" = "$host"; then - case $host_os in - mingw* | pw32*) - if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then - want_nocaseglob=yes - else - file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` - fi - ;; - esac -fi - -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - - - - - - - - - - - - - - - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool" - $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 -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; 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_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool" - $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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - 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 - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 -$as_echo_n "checking how to associate runtime and link libraries... " >&6; } -if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_sharedlib_from_linklib_cmd='unknown' - -case $host_os in -cygwin* | mingw* | pw32* | cegcc*) - # two different shell functions defined in ltmain.sh; - # decide which one to use based on capabilities of $DLLTOOL - case `$DLLTOOL --help 2>&1` in - *--identify-strict*) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib - ;; - *) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback - ;; - esac - ;; -*) - # fallback: assume linklib IS sharedlib - lt_cv_sharedlib_from_linklib_cmd=$ECHO - ;; -esac - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 -$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO - - - - - - - -if test -n "$ac_tool_prefix"; then - for ac_prog in ar - 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_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # 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_AR="$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 -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AR" && break - done -fi -if test -z "$AR"; then - ac_ct_AR=$AR - for ac_prog in ar -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_AR+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="$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_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -$as_echo "$ac_ct_AR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$ac_ct_AR" && break -done - - if test "x$ac_ct_AR" = x; then - AR="false" - 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 - AR=$ac_ct_AR - fi -fi - -: ${AR=ar} -: ${AR_FLAGS=cru} - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 -$as_echo_n "checking for archiver @FILE support... " >&6; } -if ${lt_cv_ar_at_file+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ar_at_file=no - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - echo conftest.$ac_objext > conftest.lst - lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 - (eval $lt_ar_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if test 0 -eq "$ac_status"; then - # Ensure the archiver fails upon bogus file names. - rm -f conftest.$ac_objext libconftest.a - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 - (eval $lt_ar_try) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if test 0 -ne "$ac_status"; then - lt_cv_ar_at_file=@ - fi - fi - rm -f conftest.* libconftest.a - -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 -$as_echo "$lt_cv_ar_at_file" >&6; } - -if test no = "$lt_cv_ar_at_file"; then - archiver_list_spec= -else - archiver_list_spec=$lt_cv_ar_at_file -fi - - - - - - - -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 - -test -z "$STRIP" && STRIP=: - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib" - $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 -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; 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_RANLIB+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_RANLIB="ranlib" - $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_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -$as_echo "$ac_ct_RANLIB" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - 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 - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -test -z "$RANLIB" && RANLIB=: - - - - - - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - bitrig* | openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" -fi - -case $host_os in - darwin*) - lock_old_archive_extraction=yes ;; - *) - lock_old_archive_extraction=no ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 -$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } -if ${lt_cv_sys_global_symbol_pipe+:} false; then : - $as_echo_n "(cached) " >&6 -else - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; -hpux*) - if test ia64 = "$host_cpu"; then - symcode='[ABCDEGRST]' - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Gets list of data symbols to import. - lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" - # Adjust the below global symbol transforms to fixup imported variables. - lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" - lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" - lt_c_name_lib_hook="\ - -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ - -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" -else - # Disable hooks by default. - lt_cv_sys_global_symbol_to_import= - lt_cdecl_hook= - lt_c_name_hook= - lt_c_name_lib_hook= -fi - -# Transform an extracted symbol line into a proper C declaration. -# Some systems (esp. on ia64) link data and code symbols differently, -# so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n"\ -$lt_cdecl_hook\ -" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ -$lt_c_name_hook\ -" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" - -# Transform an extracted symbol line into symbol name with lib prefix and -# symbol address. -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ -$lt_c_name_lib_hook\ -" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ -" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# Try without a prefix underscore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Fake it for dumpbin and say T for any non-static function, - # D for any global variable and I for any imported variable. - # Also find C++ and __fastcall symbols from MSVC++, - # which start with @ or ?. - lt_cv_sys_global_symbol_pipe="$AWK '"\ -" {last_section=section; section=\$ 3};"\ -" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ -" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ -" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ -" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ -" \$ 0!~/External *\|/{next};"\ -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ -" {if(hide[section]) next};"\ -" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ -" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ -" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ -" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ -" ' prfx=^$ac_symprfx" - else - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - fi - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <<_LT_EOF -#ifdef __cplusplus -extern "C" { -#endif -char nm_test_var; -void nm_test_func(void); -void nm_test_func(void){} -#ifdef __cplusplus -} -#endif -int main(){nm_test_var='a';nm_test_func();return(0);} -_LT_EOF - - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 - (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then - cat <<_LT_EOF > conftest.$ac_ext -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE -/* DATA imports from DLLs on WIN32 can't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT_DLSYM_CONST -#elif defined __osf__ -/* This system does not cope well with relocations in const data. */ -# define LT_DLSYM_CONST -#else -# define LT_DLSYM_CONST const -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -_LT_EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - - cat <<_LT_EOF >> conftest.$ac_ext - -/* The mapping between symbol names and symbols. */ -LT_DLSYM_CONST struct { - const char *name; - void *address; -} -lt__PROGRAM__LTX_preloaded_symbols[] = -{ - { "@PROGRAM@", (void *) 0 }, -_LT_EOF - $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext - cat <<\_LT_EOF >> conftest.$ac_ext - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt__PROGRAM__LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif -_LT_EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_globsym_save_LIBS=$LIBS - lt_globsym_save_CFLAGS=$CFLAGS - LIBS=conftstm.$ac_objext - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest$ac_exeext; then - pipe_works=yes - fi - LIBS=$lt_globsym_save_LIBS - CFLAGS=$lt_globsym_save_CFLAGS - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test yes = "$pipe_works"; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done - -fi - -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -$as_echo "failed" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -$as_echo "ok" >&6; } -fi - -# Response file support. -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - nm_file_list_spec='@' -elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then - nm_file_list_spec='@' -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 -$as_echo_n "checking for sysroot... " >&6; } - -# Check whether --with-sysroot was given. -if test "${with_sysroot+set}" = set; then : - withval=$with_sysroot; -else - with_sysroot=no -fi - - -lt_sysroot= -case $with_sysroot in #( - yes) - if test yes = "$GCC"; then - lt_sysroot=`$CC --print-sysroot 2>/dev/null` - fi - ;; #( - /*) - lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` - ;; #( - no|'') - ;; #( - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 -$as_echo "$with_sysroot" >&6; } - as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 - ;; -esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 -$as_echo "${lt_sysroot:-no}" >&6; } - - - - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 -$as_echo_n "checking for a working dd... " >&6; } -if ${ac_cv_path_lt_DD+:} false; then : - $as_echo_n "(cached) " >&6 -else - printf 0123456789abcdef0123456789abcdef >conftest.i -cat conftest.i conftest.i >conftest2.i -: ${lt_DD:=$DD} -if test -z "$lt_DD"; then - ac_path_lt_DD_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 -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in dd; do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_lt_DD" || continue -if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then - cmp -s conftest.i conftest.out \ - && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: -fi - $ac_path_lt_DD_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_lt_DD"; then - : - fi -else - ac_cv_path_lt_DD=$lt_DD -fi - -rm -f conftest.i conftest2.i conftest.out -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 -$as_echo "$ac_cv_path_lt_DD" >&6; } - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 -$as_echo_n "checking how to truncate binary pipes... " >&6; } -if ${lt_cv_truncate_bin+:} false; then : - $as_echo_n "(cached) " >&6 -else - printf 0123456789abcdef0123456789abcdef >conftest.i -cat conftest.i conftest.i >conftest2.i -lt_cv_truncate_bin= -if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then - cmp -s conftest.i conftest.out \ - && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" -fi -rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 -$as_echo "$lt_cv_truncate_bin" >&6; } - - - - - - - -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -func_cc_basename () -{ - for cc_temp in $*""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac - done - func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -} - -# Check whether --enable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then : - enableval=$enable_libtool_lock; -fi - -test no = "$enable_libtool_lock" || enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out what ABI is being produced by ac_compile, and set mode - # options accordingly. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE=32 - ;; - *ELF-64*) - HPUX_IA64_MODE=64 - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo '#line '$LINENO' "configure"' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - if test yes = "$lt_cv_prog_gnu_ld"; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -mips64*-*linux*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo '#line '$LINENO' "configure"' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - emul=elf - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - emul="${emul}32" - ;; - *64-bit*) - emul="${emul}64" - ;; - esac - case `/usr/bin/file conftest.$ac_objext` in - *MSB*) - emul="${emul}btsmip" - ;; - *LSB*) - emul="${emul}ltsmip" - ;; - esac - case `/usr/bin/file conftest.$ac_objext` in - *N32*) - emul="${emul}n32" - ;; - esac - LD="${LD-ld} -m $emul" - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ -s390*-*linux*|s390*-*tpf*|sparc*-*linux*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. Note that the listed cases only cover the - # situations where additional linker options are needed (such as when - # doing 32-bit compilation for a host where ld defaults to 64-bit, or - # vice versa); the common cases where no linker options are needed do - # not appear in the list. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - case `/usr/bin/file conftest.o` in - *x86-64*) - LD="${LD-ld} -m elf32_x86_64" - ;; - *) - LD="${LD-ld} -m elf_i386" - ;; - esac - ;; - powerpc64le-*linux*) - LD="${LD-ld} -m elf32lppclinux" - ;; - powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - powerpcle-*linux*) - LD="${LD-ld} -m elf64lppc" - ;; - powerpc-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*|s390*-*tpf*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -belf" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -$as_echo_n "checking whether the C compiler needs -belf... " >&6; } -if ${lt_cv_cc_needs_belf+:} false; then : - $as_echo_n "(cached) " >&6 -else - 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 - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_cc_needs_belf=yes -else - lt_cv_cc_needs_belf=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - 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 - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -$as_echo "$lt_cv_cc_needs_belf" >&6; } - if test yes != "$lt_cv_cc_needs_belf"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS=$SAVE_CFLAGS - fi - ;; -*-*solaris*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `/usr/bin/file conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) - case $host in - i?86-*-solaris*|x86_64-*-solaris*) - LD="${LD-ld} -m elf_x86_64" - ;; - sparc*-*-solaris*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - # GNU ld 2.21 introduced _sol2 emulations. Use them if available. - if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then - LD=${LD-ld}_sol2 - fi - ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -esac - -need_locks=$enable_libtool_lock - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. -set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$MANIFEST_TOOL"; then - ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt" - $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 -MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL -if test -n "$MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 -$as_echo "$MANIFEST_TOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_MANIFEST_TOOL"; then - ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL - # Extract the first word of "mt", so it can be a program name with args. -set dummy mt; 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_MANIFEST_TOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_MANIFEST_TOOL"; then - ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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_MANIFEST_TOOL="mt" - $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_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL -if test -n "$ac_ct_MANIFEST_TOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 -$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_MANIFEST_TOOL" = x; then - MANIFEST_TOOL=":" - 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 - MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL - fi -else - MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" -fi - -test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 -$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } -if ${lt_cv_path_mainfest_tool+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_path_mainfest_tool=no - echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 - $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out - cat conftest.err >&5 - if $GREP 'Manifest Tool' conftest.out > /dev/null; then - lt_cv_path_mainfest_tool=yes - fi - rm -f conftest* -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 -$as_echo "$lt_cv_path_mainfest_tool" >&6; } -if test yes != "$lt_cv_path_mainfest_tool"; then - MANIFEST_TOOL=: -fi - - - - - - - case $host_os in - rhapsody* | darwin*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. -set dummy ${ac_tool_prefix}dsymutil; 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_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DSYMUTIL"; then - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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_DSYMUTIL="${ac_tool_prefix}dsymutil" - $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 -DSYMUTIL=$ac_cv_prog_DSYMUTIL -if test -n "$DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -$as_echo "$DSYMUTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DSYMUTIL"; then - ac_ct_DSYMUTIL=$DSYMUTIL - # Extract the first word of "dsymutil", so it can be a program name with args. -set dummy dsymutil; 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_DSYMUTIL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DSYMUTIL"; then - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_DSYMUTIL="dsymutil" - $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_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL -if test -n "$ac_ct_DSYMUTIL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -$as_echo "$ac_ct_DSYMUTIL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DSYMUTIL" = x; then - DSYMUTIL=":" - 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 - DSYMUTIL=$ac_ct_DSYMUTIL - fi -else - DSYMUTIL="$ac_cv_prog_DSYMUTIL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. -set dummy ${ac_tool_prefix}nmedit; 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_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$NMEDIT"; then - ac_cv_prog_NMEDIT="$NMEDIT" # 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_NMEDIT="${ac_tool_prefix}nmedit" - $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 -NMEDIT=$ac_cv_prog_NMEDIT -if test -n "$NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -$as_echo "$NMEDIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_NMEDIT"; then - ac_ct_NMEDIT=$NMEDIT - # Extract the first word of "nmedit", so it can be a program name with args. -set dummy nmedit; 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_NMEDIT+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_NMEDIT"; then - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_NMEDIT="nmedit" - $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_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT -if test -n "$ac_ct_NMEDIT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -$as_echo "$ac_ct_NMEDIT" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_NMEDIT" = x; then - NMEDIT=":" - 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 - NMEDIT=$ac_ct_NMEDIT - fi -else - NMEDIT="$ac_cv_prog_NMEDIT" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. -set dummy ${ac_tool_prefix}lipo; 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_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$LIPO"; then - ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${ac_tool_prefix}lipo" - $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 -LIPO=$ac_cv_prog_LIPO -if test -n "$LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 -$as_echo "$LIPO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_LIPO"; then - ac_ct_LIPO=$LIPO - # Extract the first word of "lipo", so it can be a program name with args. -set dummy lipo; 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_LIPO+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_LIPO"; then - ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_LIPO="lipo" - $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_LIPO=$ac_cv_prog_ac_ct_LIPO -if test -n "$ac_ct_LIPO"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 -$as_echo "$ac_ct_LIPO" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_LIPO" = x; then - LIPO=":" - 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 - LIPO=$ac_ct_LIPO - fi -else - LIPO="$ac_cv_prog_LIPO" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. -set dummy ${ac_tool_prefix}otool; 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_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OTOOL"; then - ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool" - $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 -OTOOL=$ac_cv_prog_OTOOL -if test -n "$OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 -$as_echo "$OTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OTOOL"; then - ac_ct_OTOOL=$OTOOL - # Extract the first word of "otool", so it can be a program name with args. -set dummy otool; 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_OTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OTOOL"; then - ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_OTOOL="otool" - $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_OTOOL=$ac_cv_prog_ac_ct_OTOOL -if test -n "$ac_ct_OTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 -$as_echo "$ac_ct_OTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OTOOL" = x; then - OTOOL=":" - 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 - OTOOL=$ac_ct_OTOOL - fi -else - OTOOL="$ac_cv_prog_OTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. -set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OTOOL64"; then - ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64" - $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 -OTOOL64=$ac_cv_prog_OTOOL64 -if test -n "$OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 -$as_echo "$OTOOL64" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OTOOL64"; then - ac_ct_OTOOL64=$OTOOL64 - # Extract the first word of "otool64", so it can be a program name with args. -set dummy otool64; 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_OTOOL64+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OTOOL64"; then - ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # 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_OTOOL64="otool64" - $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_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 -if test -n "$ac_ct_OTOOL64"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 -$as_echo "$ac_ct_OTOOL64" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OTOOL64" = x; then - OTOOL64=":" - 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 - OTOOL64=$ac_ct_OTOOL64 - fi -else - OTOOL64="$ac_cv_prog_OTOOL64" -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -$as_echo_n "checking for -single_module linker flag... " >&6; } -if ${lt_cv_apple_cc_single_mod+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_apple_cc_single_mod=no - if test -z "$LT_MULTI_MODULE"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - rm -rf libconftest.dylib* - echo "int foo(void){return 1;}" > conftest.c - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ --dynamiclib -Wl,-single_module conftest.c" >&5 - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err - _lt_result=$? - # If there is a non-empty error log, and "single_module" - # appears in it, assume the flag caused a linker warning - if test -s conftest.err && $GREP single_module conftest.err; then - cat conftest.err >&5 - # Otherwise, if the output was created with a 0 exit code from - # the compiler, it worked. - elif test -f libconftest.dylib && test 0 = "$_lt_result"; then - lt_cv_apple_cc_single_mod=yes - else - cat conftest.err >&5 - fi - rm -rf libconftest.dylib* - rm -f conftest.* - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -$as_echo "$lt_cv_apple_cc_single_mod" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } -if ${lt_cv_ld_exported_symbols_list+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_ld_exported_symbols_list=yes -else - lt_cv_ld_exported_symbols_list=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 -$as_echo_n "checking for -force_load linker flag... " >&6; } -if ${lt_cv_ld_force_load+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_ld_force_load=no - cat > conftest.c << _LT_EOF -int forced_loaded() { return 2;} -_LT_EOF - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 - echo "$AR cru libconftest.a conftest.o" >&5 - $AR cru libconftest.a conftest.o 2>&5 - echo "$RANLIB libconftest.a" >&5 - $RANLIB libconftest.a 2>&5 - cat > conftest.c << _LT_EOF -int main() { return 0;} -_LT_EOF - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err - _lt_result=$? - if test -s conftest.err && $GREP force_load conftest.err; then - cat conftest.err >&5 - elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then - lt_cv_ld_force_load=yes - else - cat conftest.err >&5 - fi - rm -f conftest.err libconftest.a conftest conftest.c - rm -rf conftest.dSYM - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 -$as_echo "$lt_cv_ld_force_load" >&6; } - case $host_os in - rhapsody* | darwin1.[012]) - _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - darwin*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # to the OS version, if on x86, and 10.4, the deployment - # target defaults to 10.4. Don't you love it? - case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in - 10.0,*86*-darwin8*|10.0,*-darwin[91]*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - 10.[012][,.]*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test yes = "$lt_cv_apple_cc_single_mod"; then - _lt_dar_single_mod='$single_module' - fi - if test yes = "$lt_cv_ld_exported_symbols_list"; then - _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' - else - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' - fi - if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then - _lt_dsymutil='~$DSYMUTIL $lib || :' - else - _lt_dsymutil= - fi - ;; - esac - -# func_munge_path_list VARIABLE PATH -# ----------------------------------- -# VARIABLE is name of variable containing _space_ separated list of -# directories to be munged by the contents of PATH, which is string -# having a format: -# "DIR[:DIR]:" -# string "DIR[ DIR]" will be prepended to VARIABLE -# ":DIR[:DIR]" -# string "DIR[ DIR]" will be appended to VARIABLE -# "DIRP[:DIRP]::[DIRA:]DIRA" -# string "DIRP[ DIRP]" will be prepended to VARIABLE and string -# "DIRA[ DIRA]" will be appended to VARIABLE -# "DIR[:DIR]" -# VARIABLE will be replaced by "DIR[ DIR]" -func_munge_path_list () -{ - case x$2 in - x) - ;; - *:) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" - ;; - x:*) - eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" - ;; - *::*) - eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" - eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" - ;; - *) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" - ;; - esac -} - -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 <limits.h> to <assert.h> if __STDC__ is defined, since - # <limits.h> 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 <limits.h> -#else -# include <assert.h> -#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 <ac_nonexistent.h> -_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 <limits.h> to <assert.h> if __STDC__ is defined, since - # <limits.h> 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 <limits.h> -#else -# include <assert.h> -#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 <ac_nonexistent.h> -_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 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 <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <float.h> - -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 <string.h> - -_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 <stdlib.h> - -_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 <ctype.h> -#include <stdlib.h> -#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 dlfcn.h -do : - ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default -" -if test "x$ac_cv_header_dlfcn_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_DLFCN_H 1 -_ACEOF - -fi - -done - -##tldbg KPSE_COMMON: tex4htk (). -##tldbg KPSE_BASIC: Remember tex4htk () as Kpse_Package (for future messages). - -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='tex4ht--tex-live-' - VERSION='20080225' - - -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: -# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> -# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> -mkdir_p='$(MKDIR_P)' - -# We need awk for the "check" target (and possibly the TAP driver). 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: <http://austingroupbugs.net/view.php?id=542> - -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: <https://www.gnu.org/software/coreutils/>. - -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 - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 -$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } - # Check whether --enable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then : - enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=no -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 -$as_echo "$USE_MAINTAINER_MODE" >&6; } - if test $USE_MAINTAINER_MODE = yes; then - MAINTAINER_MODE_TRUE= - MAINTAINER_MODE_FALSE='#' -else - MAINTAINER_MODE_TRUE='#' - MAINTAINER_MODE_FALSE= -fi - - MAINT=$MAINTAINER_MODE_TRUE - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5 -$as_echo_n "checking whether the compiler accepts prototypes... " >&6; } -if ${kb_cv_c_prototypes+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <stdarg.h> -int -main () -{ -extern void foo(int i,...); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - kb_cv_c_prototypes=yes -else - kb_cv_c_prototypes=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5 -$as_echo "$kb_cv_c_prototypes" >&6; } -if test "x$kb_cv_c_prototypes" = xno; then - as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5 -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5 -$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; } -if ${kpse_cv_warning_cflags+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "x$GCC" = xyes; then - kpse_cv_warning_cflags= -if test "x$enable_compiler_warnings" != xno; then - kpse_cv_warning_cflags="-Wimplicit -Wreturn-type" - case `$CC -dumpversion` in #( - 3.4.* | 4.* | 5.*) : - kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #( - *) : - ;; -esac - case `$CC -dumpversion` in #( - 3.[234].* | 4.* | 5.*) : - kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #( - *) : - ;; -esac - if test "x$enable_compiler_warnings" != xmin; then - kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags" - kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations" - if test "x$enable_compiler_warnings" != xyes; then - kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith" - kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings" - case `$CC -dumpversion` in #( - 3.4.* | 4.* | 5.*) : - kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #( - *) : - ;; -esac - if test "x$enable_compiler_warnings" != xmax; then - kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow" - fi - fi - fi -fi -elif test "x$enable_compiler_warnings" = xno; then - kpse_cv_warning_cflags= -else - kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5 -$as_echo "$kpse_cv_warning_cflags" >&6; } -WARNING_CFLAGS=$kpse_cv_warning_cflags - - - - - - - - - - - - -# Set options -enable_win32_dll=yes - -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. -set dummy ${ac_tool_prefix}as; 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_AS+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as" - $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 -AS=$ac_cv_prog_AS -if test -n "$AS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 -$as_echo "$AS" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_AS"; then - ac_ct_AS=$AS - # Extract the first word of "as", so it can be a program name with args. -set dummy as; 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_AS+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_AS"; then - ac_cv_prog_ac_ct_AS="$ac_ct_AS" # 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_AS="as" - $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_AS=$ac_cv_prog_ac_ct_AS -if test -n "$ac_ct_AS"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 -$as_echo "$ac_ct_AS" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_AS" = x; then - AS="false" - 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 - AS=$ac_ct_AS - fi -else - AS="$ac_cv_prog_AS" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool" - $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 -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -$as_echo "$DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; 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_DLLTOOL+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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_DLLTOOL="dlltool" - $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_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -$as_echo "$ac_ct_DLLTOOL" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - 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 - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; 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_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # 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_OBJDUMP="${ac_tool_prefix}objdump" - $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 -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; 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_OBJDUMP+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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_OBJDUMP="objdump" - $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_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -$as_echo "$ac_ct_OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - 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 - OBJDUMP=$ac_ct_OBJDUMP - fi -else - OBJDUMP="$ac_cv_prog_OBJDUMP" -fi - - ;; -esac - -test -z "$AS" && AS=as - - - - - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - -test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - - - enable_dlopen=no - - - - # Check whether --enable-shared was given. -if test "${enable_shared+set}" = set; then : - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else - enable_shared=yes -fi - - - - - - - - - - # Check whether --enable-static was given. -if test "${enable_static+set}" = set; then : - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else - enable_static=yes -fi - - - - - - - - - - -# Check whether --with-pic was given. -if test "${with_pic+set}" = set; then : - withval=$with_pic; lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for lt_pkg in $withval; do - IFS=$lt_save_ifs - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else - pic_mode=default -fi - - - - - - - - - # Check whether --enable-fast-install was given. -if test "${enable_fast_install+set}" = set; then : - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else - enable_fast_install=yes -fi - - - - - - - - - shared_archive_member_spec= -case $host,$enable_shared in -power*-*-aix[5-9]*,yes) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 -$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } - -# Check whether --with-aix-soname was given. -if test "${with_aix_soname+set}" = set; then : - withval=$with_aix_soname; case $withval in - aix|svr4|both) - ;; - *) - as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 - ;; - esac - lt_cv_with_aix_soname=$with_aix_soname -else - if ${lt_cv_with_aix_soname+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_with_aix_soname=aix -fi - - with_aix_soname=$lt_cv_with_aix_soname -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 -$as_echo "$with_aix_soname" >&6; } - if test aix != "$with_aix_soname"; then - # For the AIX way of multilib, we name the shared archive member - # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', - # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. - # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, - # the AIX toolchain works better with OBJECT_MODE set (default 32). - if test 64 = "${OBJECT_MODE-32}"; then - shared_archive_member_spec=shr_64 - else - shared_archive_member_spec=shr - fi - fi - ;; -*) - with_aix_soname=aix - ;; -esac - - - - - - - - - - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS=$ltmain - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -test -z "$LN_S" && LN_S="ln -s" - - - - - - - - - - - - - - -if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -$as_echo_n "checking for objdir... " >&6; } -if ${lt_cv_objdir+:} false; then : - $as_echo_n "(cached) " >&6 -else - rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -$as_echo "$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -cat >>confdefs.h <<_ACEOF -#define LT_OBJDIR "$lt_cv_objdir/" -_ACEOF - - - - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Global variables: -ofile=libtool -can_build_shared=yes - -# All known linkers require a '.a' archive for static linking (except MSVC, -# which needs '.lib'). -libext=a - -with_gnu_ld=$lt_cv_prog_gnu_ld - -old_CC=$CC -old_CFLAGS=$CFLAGS - -# Set sane defaults for various variables -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$LD" && LD=ld -test -z "$ac_objext" && ac_objext=o - -func_cc_basename $compiler -cc_basename=$func_cc_basename_result - - -# Only perform the check for file, if the check method requires it -test -z "$MAGIC_CMD" && MAGIC_CMD=file -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 -$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD=$MAGIC_CMD - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/${ac_tool_prefix}file"; then - lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD=$lt_cv_path_MAGIC_CMD - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS=$lt_save_ifs - MAGIC_CMD=$lt_save_MAGIC_CMD - ;; -esac -fi - -MAGIC_CMD=$lt_cv_path_MAGIC_CMD -if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - - - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 -$as_echo_n "checking for file... " >&6; } -if ${lt_cv_path_MAGIC_CMD+:} false; then : - $as_echo_n "(cached) " >&6 -else - case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD=$MAGIC_CMD - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/file"; then - lt_cv_path_MAGIC_CMD=$ac_dir/"file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD=$lt_cv_path_MAGIC_CMD - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS=$lt_save_ifs - MAGIC_CMD=$lt_save_MAGIC_CMD - ;; -esac -fi - -MAGIC_CMD=$lt_cv_path_MAGIC_CMD -if test -n "$MAGIC_CMD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -$as_echo "$MAGIC_CMD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - else - MAGIC_CMD=: - fi -fi - - fi - ;; -esac - -# Use C for the default configuration in the libtool script - -lt_save_CC=$CC -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 - - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -objext=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - - - - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - -# Save the default compiler, since it gets overwritten when the other -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. -compiler_DEFAULT=$CC - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$RM conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$RM -r conftest* - - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - -lt_prog_compiler_no_builtin_flag= - -if test yes = "$GCC"; then - case $cc_basename in - nvcc*) - lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; - *) - lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; - esac - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -else - : -fi - -fi - - - - - - - lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= - - - if test yes = "$GCC"; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - fi - lt_prog_compiler_pic='-fPIC' - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - lt_prog_compiler_pic='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the '-m68020' flag to GCC prevents building anything better, - # like '-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - case $host_os in - os2*) - lt_prog_compiler_static='$wl-static' - ;; - esac - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; - - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - lt_prog_compiler_static= - ;; - - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - lt_prog_compiler_pic='-fPIC -shared' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; - - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - - case $cc_basename in - nvcc*) # Cuda Compiler Driver 2.2 - lt_prog_compiler_wl='-Xlinker ' - if test -n "$lt_prog_compiler_pic"; then - lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" - fi - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - case $cc_basename in - nagfor*) - # NAG Fortran compiler - lt_prog_compiler_wl='-Wl,-Wl,,' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - case $host_os in - os2*) - lt_prog_compiler_static='$wl-static' - ;; - esac - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='$wl-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - # old Intel for x86_64, which still supported -KPIC. - ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - # icc used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - icc* | ifort*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - # Lahey Fortran 8.1. - lf95*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='--shared' - lt_prog_compiler_static='--static' - ;; - nagfor*) - # NAG Fortran compiler - lt_prog_compiler_wl='-Wl,-Wl,,' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - tcc*) - # Fabrice Bellard et al's Tiny C Compiler - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - xl* | bgxl* | bgf* | mpixl*) - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-qpic' - lt_prog_compiler_static='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - *Sun\ F* | *Sun*Fortran*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Qoption ld ' - ;; - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Intel*\ [CF]*Compiler*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - *Portland\ Group*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - esac - ;; - esac - ;; - - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - lt_prog_compiler_pic='-fPIC -shared' - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; - - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi - -case $host_os in - # For platforms that do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -$as_echo_n "checking for $compiler option to produce PIC... " >&6; } -if ${lt_cv_prog_compiler_pic+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic=$lt_prog_compiler_pic -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 -$as_echo "$lt_cv_prog_compiler_pic" >&6; } -lt_prog_compiler_pic=$lt_cv_prog_compiler_pic - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if ${lt_cv_prog_compiler_pic_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_pic_works=yes - fi - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 -$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } - -if test yes = "$lt_cv_prog_compiler_pic_works"; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no -fi - -fi - - - - - - - - - - - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if ${lt_cv_prog_compiler_static_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_static_works=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_static_works=yes - fi - else - lt_cv_prog_compiler_static_works=yes - fi - fi - $RM -r conftest* - LDFLAGS=$save_LDFLAGS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 -$as_echo "$lt_cv_prog_compiler_static_works" >&6; } - -if test yes = "$lt_cv_prog_compiler_static_works"; then - : -else - lt_prog_compiler_static= -fi - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_c_o=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if ${lt_cv_prog_compiler_c_o+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler_c_o=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -$as_echo "$lt_cv_prog_compiler_c_o" >&6; } - - - - -hard_links=nottested -if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then - # do not overwrite the value of need_locks provided by the user - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -$as_echo_n "checking if we can lock with hard links... " >&6; } - hard_links=yes - $RM conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -$as_echo "$hard_links" >&6; } - if test no = "$hard_links"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } - - runpath_var= - allow_undefined_flag= - always_export_symbols=no - archive_cmds= - archive_expsym_cmds= - compiler_needs_object=no - enable_shared_with_static_runtimes=no - export_dynamic_flag_spec= - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - hardcode_automatic=no - hardcode_direct=no - hardcode_direct_absolute=no - hardcode_libdir_flag_spec= - hardcode_libdir_separator= - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - inherit_rpath=no - link_all_deplibs=unknown - module_cmds= - module_expsym_cmds= - old_archive_from_new_cmds= - old_archive_from_expsyms_cmds= - thread_safe_flag_spec= - whole_archive_flag_spec= - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ' (' and ')$', so one must not match beginning or - # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', - # as well as any symbol that contains 'd'. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. - extract_expsyms_cmds= - - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test yes != "$GCC"; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) - with_gnu_ld=yes - ;; - openbsd* | bitrig*) - with_gnu_ld=no - ;; - esac - - ld_shlibs=yes - - # On some targets, GNU ld is compatible enough with the native linker - # that we're better off using the native interface for both. - lt_use_gnu_ld_interface=no - if test yes = "$with_gnu_ld"; then - case $host_os in - aix*) - # The AIX port of GNU ld has always aspired to compatibility - # with the native linker. However, as the warning in the GNU ld - # block says, versions before 2.19.5* couldn't really create working - # shared libraries, regardless of the interface used. - case `$LD -v 2>&1` in - *\ \(GNU\ Binutils\)\ 2.19.5*) ;; - *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; - *\ \(GNU\ Binutils\)\ [3-9]*) ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - fi - - if test yes = "$lt_use_gnu_ld_interface"; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='$wl' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - export_dynamic_flag_spec='$wl--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in - *GNU\ gold*) supports_anon_versioning=yes ;; - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[3-9]*) - # On AIX/PPC, the GNU linker is very broken - if test ia64 != "$host_cpu"; then - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: the GNU linker, at least up to release 2.19, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to install binutils -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. -*** You will then need to restart the configuration process. - -_LT_EOF - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='' - ;; - m68k) - archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - export_dynamic_flag_spec='$wl--export-all-symbols' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file, use it as - # is; otherwise, prepend EXPORTS... - archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; - - haiku*) - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - link_all_deplibs=yes - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - shrext_cmds=.dll - archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - enable_shared_with_static_runtimes=yes - ;; - - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='$wl-rpath,$libdir' - export_dynamic_flag_spec='$wl-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) - tmp_diet=no - if test linux-dietlibc = "$host_os"; then - case $cc_basename in - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) - esac - fi - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ - && test no = "$tmp_diet" - then - tmp_addflag=' $pic_flag' - tmp_sharedflag='-shared' - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group f77 and f90 compilers - whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - lf95*) # Lahey Fortran 8.1 - whole_archive_flag_spec= - tmp_sharedflag='--shared' ;; - nagfor*) # NAGFOR 5.3 - tmp_sharedflag='-Wl,-shared' ;; - xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) - tmp_sharedflag='-qmkshrobj' - tmp_addflag= ;; - nvcc*) # Cuda Compiler Driver 2.2 - whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - compiler_needs_object=yes - ;; - esac - case `$CC -V 2>&1 | sed 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - compiler_needs_object=yes - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - - if test yes = "$supports_anon_versioning"; then - archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' - fi - - case $cc_basename in - tcc*) - export_dynamic_flag_spec='-rdynamic' - ;; - xlf* | bgf* | bgxlf* | mpixlf*) - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself - whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' - if test yes = "$supports_anon_versioning"; then - archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' - fi - ;; - esac - else - ld_shlibs=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test no = "$ld_shlibs"; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - - aix[4-9]*) - if test ia64 = "$host_cpu"; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag= - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to GNU nm, but means don't demangle to AIX nm. - # Without the "-l" option, or with the "-B" option, AIX nm treats - # weak defined symbols like other global defined symbols, whereas - # GNU nm marks them as "W". - # While the 'weak' keyword is ignored in the Export File, we need - # it in the Import File for the 'aix-soname' feature, so we have - # to replace the "-B" option with "-P" for AIX nm. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # have runtime linking enabled, and use it for executables. - # For shared libraries, we enable/disable runtime linking - # depending on the kind of the shared library created - - # when "with_aix_soname,aix_use_runtimelinking" is: - # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables - # "aix,yes" lib.so shared, rtl:yes, for executables - # lib.a static archive - # "both,no" lib.so.V(shr.o) shared, rtl:yes - # lib.a(lib.so.V) shared, rtl:no, for executables - # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a(lib.so.V) shared, rtl:no - # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a static archive - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) - for ld_flag in $LDFLAGS; do - if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then - aix_use_runtimelinking=yes - break - fi - done - if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then - # With aix-soname=svr4, we create the lib.so.V shared archives only, - # so we don't have lib.a shared libs to link our executables. - # We have to force runtime linking in this case. - aix_use_runtimelinking=yes - LDFLAGS="$LDFLAGS -Wl,-brtl" - fi - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds='' - hardcode_direct=yes - hardcode_direct_absolute=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes - file_list_spec='$wl-f,' - case $with_aix_soname,$aix_use_runtimelinking in - aix,*) ;; # traditional, no import file - svr4,* | *,yes) # use import file - # The Import File defines what to hardcode. - hardcode_direct=no - hardcode_direct_absolute=no - ;; - esac - - if test yes = "$GCC"; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`$CC -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test yes = "$aix_use_runtimelinking"; then - shared_flag="$shared_flag "'$wl-G' - fi - # Need to ensure runtime linking is disabled for the traditional - # shared library, or the linker may eventually find shared libraries - # /with/ Import File - we do not want to mix them. - shared_flag_aix='-shared' - shared_flag_svr4='-shared $wl-G' - else - # not using gcc - if test ia64 = "$host_cpu"; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test yes = "$aix_use_runtimelinking"; then - shared_flag='$wl-G' - else - shared_flag='$wl-bM:SRE' - fi - shared_flag_aix='$wl-bM:SRE' - shared_flag_svr4='$wl-G' - fi - fi - - export_dynamic_flag_spec='$wl-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an - # empty executable. - if test set = "${lt_cv_aix_libpath+set}"; then - aix_libpath=$lt_cv_aix_libpath -else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - - lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }' - lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=/usr/lib:/lib - fi - -fi - - aix_libpath=$lt_cv_aix_libpath_ -fi - - hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag - else - if test ia64 = "$host_cpu"; then - hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - if test set = "${lt_cv_aix_libpath+set}"; then - aix_libpath=$lt_cv_aix_libpath -else - if ${lt_cv_aix_libpath_+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - - lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }' - lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=/usr/lib:/lib - fi - -fi - - aix_libpath=$lt_cv_aix_libpath_ -fi - - hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' $wl-bernotok' - allow_undefined_flag=' $wl-berok' - if test yes = "$with_gnu_ld"; then - # We only use this code for GNU lds that support --whole-archive. - whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - fi - archive_cmds_need_lc=yes - archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' - # -brtl affects multiple linker settings, -berok does not and is overridden later - compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' - if test svr4 != "$with_aix_soname"; then - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' - fi - if test aix != "$with_aix_soname"; then - archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' - else - # used by -dlpreopen to get the symbols - archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' - fi - archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' - fi - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='' - ;; - m68k) - archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - case $cc_basename in - cl*) - # Native MSVC - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - always_export_symbols=yes - file_list_spec='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' - archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then - cp "$export_symbols" "$output_objdir/$soname.def"; - echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; - else - $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, )='true' - enable_shared_with_static_runtimes=yes - exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - # Don't use ranlib - old_postinstall_cmds='chmod 644 $oldlib' - postlink_cmds='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile=$lt_outputfile.exe - lt_tool_outputfile=$lt_tool_outputfile.exe - ;; - esac~ - if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # Assume MSVC wrapper - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_from_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - enable_shared_with_static_runtimes=yes - ;; - esac - ;; - - darwin* | rhapsody*) - - - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - if test yes = "$lt_cv_ld_force_load"; then - whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' - - else - whole_archive_flag_spec='' - fi - link_all_deplibs=yes - allow_undefined_flag=$_lt_dar_allow_undefined - case $cc_basename in - ifort*|nagfor*) _lt_dar_can_shared=yes ;; - *) _lt_dar_can_shared=$GCC ;; - esac - if test yes = "$_lt_dar_can_shared"; then - output_verbose_link_cmd=func_echo_all - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" - archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" - module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" - - else - ld_shlibs=no - fi - - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2.*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9*) - if test yes = "$GCC"; then - archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - else - archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec='$wl+b $wl$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - export_dynamic_flag_spec='$wl-E' - ;; - - hpux10*) - if test yes,no = "$GCC,$with_gnu_ld"; then - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test no = "$with_gnu_ld"; then - hardcode_libdir_flag_spec='$wl+b $wl$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - hardcode_direct_absolute=yes - export_dynamic_flag_spec='$wl-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - - hpux11*) - if test yes,no = "$GCC,$with_gnu_ld"; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - - # Older versions of the 11.00 compiler do not understand -b yet - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 -$as_echo_n "checking if $CC understands -b... " >&6; } -if ${lt_cv_prog_compiler__b+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_prog_compiler__b=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -b" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler__b=yes - fi - else - lt_cv_prog_compiler__b=yes - fi - fi - $RM -r conftest* - LDFLAGS=$save_LDFLAGS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 -$as_echo "$lt_cv_prog_compiler__b" >&6; } - -if test yes = "$lt_cv_prog_compiler__b"; then - archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' -else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' -fi - - ;; - esac - fi - if test no = "$with_gnu_ld"; then - hardcode_libdir_flag_spec='$wl+b $wl$libdir' - hardcode_libdir_separator=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - hardcode_direct_absolute=yes - export_dynamic_flag_spec='$wl-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test yes = "$GCC"; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - # Try to use the -exported_symbol ld option, if it does not - # work, assume that -exports_file does not work either and - # implicitly export all symbols. - # This should be the same for all languages, so no per-tag cache variable. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 -$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } -if ${lt_cv_irix_exported_symbol+:} false; then : - $as_echo_n "(cached) " >&6 -else - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int foo (void) { return 0; } -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - lt_cv_irix_exported_symbol=yes -else - lt_cv_irix_exported_symbol=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 -$as_echo "$lt_cv_irix_exported_symbol" >&6; } - if test yes = "$lt_cv_irix_exported_symbol"; then - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' - fi - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' - fi - archive_cmds_need_lc='no' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - hardcode_libdir_separator=: - inherit_rpath=yes - link_all_deplibs=yes - ;; - - linux*) - case $cc_basename in - tcc*) - # Fabrice Bellard et al's Tiny C Compiler - ld_shlibs=yes - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; - - *nto* | *qnx*) - ;; - - openbsd* | bitrig*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - hardcode_direct_absolute=yes - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='$wl-rpath,$libdir' - export_dynamic_flag_spec='$wl-E' - else - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='$wl-rpath,$libdir' - fi - else - ld_shlibs=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - shrext_cmds=.dll - archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - enable_shared_with_static_runtimes=yes - ;; - - osf3*) - if test yes = "$GCC"; then - allow_undefined_flag=' $wl-expect_unresolved $wl\*' - archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - fi - archive_cmds_need_lc='no' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test yes = "$GCC"; then - allow_undefined_flag=' $wl-expect_unresolved $wl\*' - archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - archive_cmds_need_lc='no' - hardcode_libdir_separator=: - ;; - - solaris*) - no_undefined_flag=' -z defs' - if test yes = "$GCC"; then - wlarc='$wl' - archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - else - case `$CC -V 2>&1` in - *"Compilers 5.0"*) - wlarc='' - archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' - ;; - *) - wlarc='$wl' - archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - ;; - esac - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands '-z linker_flag'. GCC discards it without '$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test yes = "$GCC"; then - whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; - - sunos4*) - if test sequent = "$host_vendor"; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='$wl-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - - if test yes = "$GCC"; then - archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We CANNOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='$wl-z,text' - allow_undefined_flag='$wl-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='$wl-R,$libdir' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='$wl-Bexport' - runpath_var='LD_RUN_PATH' - - if test yes = "$GCC"; then - archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac - - if test sni = "$host_vendor"; then - case $host in - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - export_dynamic_flag_spec='$wl-Blargedynsym' - ;; - esac - fi - fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 -$as_echo "$ld_shlibs" >&6; } -test no = "$ld_shlibs" && can_build_shared=no - -with_gnu_ld=$with_gnu_ld - - - - - - - - - - - - - - - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes - - if test yes,yes = "$GCC,$enable_shared"; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } -if ${lt_cv_archive_cmds_need_lc+:} false; then : - $as_echo_n "(cached) " >&6 -else - $RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 - (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - then - lt_cv_archive_cmds_need_lc=no - else - lt_cv_archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 -$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } - archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc - ;; - esac - fi - ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -$as_echo_n "checking dynamic linker characteristics... " >&6; } - -if test yes = "$GCC"; then - case $host_os in - darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; - *) lt_awk_arg='/^libraries:/' ;; - esac - case $host_os in - mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; - *) lt_sed_strip_eq='s|=/|/|g' ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` - case $lt_search_path_spec in - *\;*) - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` - ;; - *) - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` - ;; - esac - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary... - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - # ...but if some path component already ends with the multilib dir we assume - # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). - case "$lt_multi_os_dir; $lt_search_path_spec " in - "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) - lt_multi_os_dir= - ;; - esac - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" - elif test -n "$lt_multi_os_dir"; then - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' -BEGIN {RS = " "; FS = "/|\n";} { - lt_foo = ""; - lt_count = 0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo = "/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - # AWK program above erroneously prepends '/' to C:/dos/paths - # for these hosts. - case $host_os in - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ - $SED 's|/\([A-Za-z]:\)|\1|g'` ;; - esac - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=.so -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - - - -case $host_os in -aix3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='$libname$release$shared_ext$major' - ;; - -aix[4-9]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test ia64 = "$host_cpu"; then - # AIX 5 supports IA64 - library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line '#! .'. This would cause the generated library to - # depend on '.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # Using Import Files as archive members, it is possible to support - # filename-based versioning of shared library archives on AIX. While - # this would work for both with and without runtime linking, it will - # prevent static linking of such archives. So we do filename-based - # shared library versioning with .so extension only, which is used - # when both runtime linking and shared linking is enabled. - # Unfortunately, runtime linking may impact performance, so we do - # not want this to be the default eventually. Also, we use the - # versioned .so libs for executables only if there is the -brtl - # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. - # To allow for filename-based versioning support, we need to create - # libNAME.so.V as an archive file, containing: - # *) an Import File, referring to the versioned filename of the - # archive as well as the shared archive member, telling the - # bitwidth (32 or 64) of that shared object, and providing the - # list of exported symbols of that shared object, eventually - # decorated with the 'weak' keyword - # *) the shared object with the F_LOADONLY flag set, to really avoid - # it being seen by the linker. - # At run time we better use the real file rather than another symlink, - # but for link time we create the symlink libNAME.so -> libNAME.so.V - - case $with_aix_soname,$aix_use_runtimelinking in - # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - aix,yes) # traditional libtool - dynamic_linker='AIX unversionable lib.so' - # If using run time linking (on AIX 4.2 or later) use lib<name>.so - # instead of lib<name>.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - aix,no) # traditional AIX only - dynamic_linker='AIX lib.a(lib.so.V)' - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - ;; - svr4,*) # full svr4 only - dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,yes) # both, prefer svr4 - dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # unpreferred sharedlib libNAME.a needs extra handling - postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' - postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,no) # both, prefer aix - dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling - postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' - postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' - ;; - esac - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - case $host_cpu in - powerpc) - # Since July 2007 AmigaOS4 officially supports .so libraries. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - m68k) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - esac - ;; - -beos*) - library_names_spec='$libname$shared_ext' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - - case $GCC,$cc_basename in - yes,*) - # gcc - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - ;; - esac - dynamic_linker='Win32 ld.exe' - ;; - - *,cl*) - # Native MSVC - libname_spec='$name' - soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - library_names_spec='$libname.dll.lib' - - case $build_os in - mingw*) - sys_lib_search_path_spec= - lt_save_ifs=$IFS - IFS=';' - for lt_path in $LIB - do - IFS=$lt_save_ifs - # Let DOS variable expansion print the short 8.3 style file name. - lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` - sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" - done - IFS=$lt_save_ifs - # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` - ;; - cygwin*) - # Convert to unix form, then to dos form, then back to unix form - # but this time dos style (no spaces!) so that the unix form looks - # like /cygdrive/c/PROGRA~1:/cygdr... - sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` - sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` - sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - ;; - *) - sys_lib_search_path_spec=$LIB - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # FIXME: find the short name or the path components, as spaces are - # common. (e.g. "Program Files" -> "PROGRA~1") - ;; - esac - - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - dynamic_linker='Win32 link.exe' - ;; - - *) - # Assume MSVC wrapper - library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' - dynamic_linker='Win32 ld.exe' - ;; - esac - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' - soname_spec='$libname$release$major$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd* | dragonfly*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[23].*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2.*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -haiku*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - dynamic_linker="$host_os runtime_loader" - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LIBRARY_PATH - shlibpath_overrides_runpath=no - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - if test 32 = "$HPUX_IA64_MODE"; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - sys_lib_dlsearch_path_spec=/usr/lib/hpux32 - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - sys_lib_dlsearch_path_spec=/usr/lib/hpux64 - fi - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555, ... - postinstall_cmds='chmod 555 $lib' - # or fails outright, so override atomically: - install_override_mode=555 - ;; - -interix[3-9]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test yes = "$lt_cv_prog_gnu_ld"; then - version_type=linux # correct to gnu/linux during the next big refactor - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" - sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -linux*android*) - version_type=none # Android doesn't support versioned libraries. - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext' - soname_spec='$libname$release$shared_ext' - finish_cmds= - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - dynamic_linker='Android linker' - # Don't embed -rpath directories since the linker doesn't support them. - hardcode_libdir_flag_spec='-L$libdir' - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - - # Some binutils ld are patched to set DT_RUNPATH - if ${lt_cv_shlibpath_overrides_runpath+:} false; then : - $as_echo_n "(cached) " >&6 -else - lt_cv_shlibpath_overrides_runpath=no - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ - LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : - lt_cv_shlibpath_overrides_runpath=yes -fi -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - -fi - - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Ideally, we could use ldconfig to report *all* directores which are - # searched for libraries, however this is still not possible. Aside from not - # being certain /sbin/ldconfig is available, command - # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, - # even though it is searched at run-time. Try to do the best guess by - # appending ld.so.conf contents (and includes) to the search path. - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -*nto* | *qnx*) - version_type=qnx - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='ldqnx.so' - ;; - -openbsd* | bitrig*) - version_type=sunos - sys_lib_dlsearch_path_spec=/usr/lib - need_lib_prefix=no - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - need_version=no - else - need_version=yes - fi - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -os2*) - libname_spec='$name' - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - # OS/2 can only load a DLL with a base name of 8 characters or less. - soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; - v=$($ECHO $release$versuffix | tr -d .-); - n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); - $ECHO $n$v`$shared_ext' - library_names_spec='${libname}_dll.$libext' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=BEGINLIBPATH - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test yes = "$with_gnu_ld"; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec; then - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' - soname_spec='$libname$shared_ext.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=sco - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - if test yes = "$with_gnu_ld"; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -tpf*) - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -uts4*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -$as_echo "$dynamic_linker" >&6; } -test no = "$dynamic_linker" && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test yes = "$GCC"; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then - sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec -fi - -if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then - sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec -fi - -# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... -configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec - -# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code -func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" - -# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool -configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -$as_echo_n "checking how to hardcode library paths into programs... " >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || - test -n "$runpath_var" || - test yes = "$hardcode_automatic"; then - - # We can hardcode non-existent directories. - if test no != "$hardcode_direct" && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && - test no != "$hardcode_minus_L"; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 -$as_echo "$hardcode_action" >&6; } - -if test relink = "$hardcode_action" || - test yes = "$inherit_rpath"; then - # Fast installation is not supported - enable_fast_install=no -elif test yes = "$shlibpath_overrides_runpath" || - test no = "$enable_shared"; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - - - - - - if test yes != "$enable_dlopen"; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen=load_add_on - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32* | cegcc*) - lt_cv_dlopen=LoadLibrary - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen=dlopen - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $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 dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : - lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else - - lt_cv_dlopen=dyld - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - -fi - - ;; - - tpf*) - # Don't try to run any link tests for TPF. We know it's impossible - # because TPF is a cross-compiler, and we know how we open DSOs. - lt_cv_dlopen=dlopen - lt_cv_dlopen_libs= - lt_cv_dlopen_self=no - ;; - - *) - ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = xyes; then : - lt_cv_dlopen=shl_load -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -$as_echo_n "checking for shl_load in -ldld... " >&6; } -if ${ac_cv_lib_dld_shl_load+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $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 shl_load (); -int -main () -{ -return shl_load (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dld_shl_load=yes -else - ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = xyes; then : - lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes; then : - lt_cv_dlopen=dlopen -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -$as_echo_n "checking for dlopen in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $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 dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dl_dlopen=yes -else - ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes; then : - lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 -$as_echo_n "checking for dlopen in -lsvld... " >&6; } -if ${ac_cv_lib_svld_dlopen+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $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 dlopen (); -int -main () -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_svld_dlopen=yes -else - ac_cv_lib_svld_dlopen=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_svld_dlopen" >&5 -$as_echo "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = xyes; then : - lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 -$as_echo_n "checking for dld_link in -ldld... " >&6; } -if ${ac_cv_lib_dld_dld_link+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $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 dld_link (); -int -main () -{ -return dld_link (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_dld_dld_link=yes -else - ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5 -$as_echo "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = xyes; then : - lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld -fi - - -fi - - -fi - - -fi - - -fi - - -fi - - ;; - esac - - if test no = "$lt_cv_dlopen"; then - enable_dlopen=no - else - enable_dlopen=yes - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS=$CPPFLAGS - test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS=$LDFLAGS - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS=$LIBS - LIBS="$lt_cv_dlopen_libs $LIBS" - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 -$as_echo_n "checking whether a program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test yes = "$cross_compiling"; then : - lt_cv_dlopen_self=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<_LT_EOF -#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include <dlfcn.h> -#endif - -#include <stdio.h> - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisibility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -} -_LT_EOF - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 -$as_echo "$lt_cv_dlopen_self" >&6; } - - if test yes = "$lt_cv_dlopen_self"; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 -$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } -if ${lt_cv_dlopen_self_static+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test yes = "$cross_compiling"; then : - lt_cv_dlopen_self_static=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<_LT_EOF -#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include <dlfcn.h> -#endif - -#include <stdio.h> - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisibility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -} -_LT_EOF - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS=$save_CPPFLAGS - LDFLAGS=$save_LDFLAGS - LIBS=$save_LIBS - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - - - - - - - - - - - - - - - - - -striplib= -old_striplib= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -$as_echo_n "checking whether stripping libraries is possible... " >&6; } -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP"; then - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { $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; } - fi - ;; - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ;; - esac -fi - - - - - - - - - - - - - # Report what library types will actually be built - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -$as_echo_n "checking if libtool supports shared libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -$as_echo "$can_build_shared" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } - test no = "$can_build_shared" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test yes = "$enable_shared" && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - - aix[4-9]*) - if test ia64 != "$host_cpu"; then - case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in - yes,aix,yes) ;; # shared object as lib.so file only - yes,svr4,*) ;; # shared object as lib.so archive member only - yes,*) enable_static=no ;; # shared object in lib.a archive as well - esac - fi - ;; - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "checking whether to build static libraries... " >&6; } - # Make sure either enable_shared or enable_static is yes. - test yes = "$enable_shared" || enable_static=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -$as_echo "$enable_static" >&6; } - - - - -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 - -CC=$lt_save_CC - - - - - - - - - - - - - - - - ac_config_commands="$ac_config_commands libtool" - - - - -# Only expand once: - - -# Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then : - enableval=$enable_largefile; -fi - -if test "$enable_largefile" != no; then - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 -$as_echo_n "checking for special C compiler options needed for large files... " >&6; } -if ${ac_cv_sys_largefile_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_sys_largefile_CC=no - if test "$GCC" != yes; then - ac_save_CC=$CC - while :; do - # IRIX 6.2 and later do not support large files by default, - # so use the C compiler's -n32 option if that helps. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <sys/types.h> - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF - if ac_fn_c_try_compile "$LINENO"; then : - break -fi -rm -f core conftest.err conftest.$ac_objext - CC="$CC -n32" - if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sys_largefile_CC=' -n32'; break -fi -rm -f core conftest.err conftest.$ac_objext - break - done - CC=$ac_save_CC - rm -f conftest.$ac_ext - fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 -$as_echo "$ac_cv_sys_largefile_CC" >&6; } - if test "$ac_cv_sys_largefile_CC" != no; then - CC=$CC$ac_cv_sys_largefile_CC - fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } -if ${ac_cv_sys_file_offset_bits+:} false; then : - $as_echo_n "(cached) " >&6 -else - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <sys/types.h> - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sys_file_offset_bits=no; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _FILE_OFFSET_BITS 64 -#include <sys/types.h> - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sys_file_offset_bits=64; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_file_offset_bits=unknown - break -done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 -$as_echo "$ac_cv_sys_file_offset_bits" >&6; } -case $ac_cv_sys_file_offset_bits in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits -_ACEOF -;; -esac -rm -rf conftest* - if test $ac_cv_sys_file_offset_bits = unknown; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 -$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } -if ${ac_cv_sys_large_files+:} false; then : - $as_echo_n "(cached) " >&6 -else - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <sys/types.h> - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sys_large_files=no; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _LARGE_FILES 1 -#include <sys/types.h> - /* Check that off_t can represent 2**63 - 1 correctly. - We can't simply define LARGE_OFF_T to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) - int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 - && LARGE_OFF_T % 2147483647 == 1) - ? 1 : -1]; -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_sys_large_files=1; break -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_sys_large_files=unknown - break -done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 -$as_echo "$ac_cv_sys_large_files" >&6; } -case $ac_cv_sys_large_files in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGE_FILES $ac_cv_sys_large_files -_ACEOF -;; -esac -rm -rf conftest* - fi - - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 -$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } -if ${ac_cv_sys_largefile_source+:} false; then : - $as_echo_n "(cached) " >&6 -else - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <sys/types.h> /* for off_t */ - #include <stdio.h> -int -main () -{ -int (*fp) (FILE *, off_t, int) = fseeko; - return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_sys_largefile_source=no; break -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#define _LARGEFILE_SOURCE 1 -#include <sys/types.h> /* for off_t */ - #include <stdio.h> -int -main () -{ -int (*fp) (FILE *, off_t, int) = fseeko; - return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_sys_largefile_source=1; break -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ac_cv_sys_largefile_source=unknown - break -done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 -$as_echo "$ac_cv_sys_largefile_source" >&6; } -case $ac_cv_sys_largefile_source in #( - no | unknown) ;; - *) -cat >>confdefs.h <<_ACEOF -#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source -_ACEOF -;; -esac -rm -rf conftest* - -# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug -# in glibc 2.1.3, but that breaks too many other things. -# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. -if test $ac_cv_sys_largefile_source != unknown; then - -$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h - -fi - -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 -$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } -if eval \${$as_ac_Header+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <sys/types.h> -#include <$ac_hdr> - -int -main () -{ -if ((DIR *) 0) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - eval "$as_ac_Header=yes" -else - eval "$as_ac_Header=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$as_ac_Header - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 -_ACEOF - -ac_header_dirent=$ac_hdr; break -fi - -done -# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. -if test $ac_header_dirent = dirent.h; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 -$as_echo_n "checking for library containing opendir... " >&6; } -if ${ac_cv_search_opendir+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$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 opendir (); -int -main () -{ -return opendir (); - ; - return 0; -} -_ACEOF -for ac_lib in '' dir; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_opendir=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_opendir+:} false; then : - break -fi -done -if ${ac_cv_search_opendir+:} false; then : - -else - ac_cv_search_opendir=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 -$as_echo "$ac_cv_search_opendir" >&6; } -ac_res=$ac_cv_search_opendir -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 -$as_echo_n "checking for library containing opendir... " >&6; } -if ${ac_cv_search_opendir+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_func_search_save_LIBS=$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 opendir (); -int -main () -{ -return opendir (); - ; - return 0; -} -_ACEOF -for ac_lib in '' x; do - if test -z "$ac_lib"; then - ac_res="none required" - else - ac_res=-l$ac_lib - LIBS="-l$ac_lib $ac_func_search_save_LIBS" - fi - if ac_fn_c_try_link "$LINENO"; then : - ac_cv_search_opendir=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext - if ${ac_cv_search_opendir+:} false; then : - break -fi -done -if ${ac_cv_search_opendir+:} false; then : - -else - ac_cv_search_opendir=no -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 -$as_echo "$ac_cv_search_opendir" >&6; } -ac_res=$ac_cv_search_opendir -if test "$ac_res" != no; then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - -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 <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <float.h> - -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 <string.h> - -_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 <stdlib.h> - -_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 <ctype.h> -#include <stdlib.h> -#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 - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 -$as_echo_n "checking whether closedir returns void... " >&6; } -if ${ac_cv_func_closedir_void+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test "$cross_compiling" = yes; then : - ac_cv_func_closedir_void=yes -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header_dirent> -#ifndef __cplusplus -int closedir (); -#endif - -int -main () -{ -return closedir (opendir (".")) != 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_closedir_void=no -else - ac_cv_func_closedir_void=yes -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 -$as_echo "$ac_cv_func_closedir_void" >&6; } -if test $ac_cv_func_closedir_void = yes; then - -$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h - -fi - -for ac_header in assert.h float.h limits.h pwd.h stdlib.h sys/param.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 - -for ac_func in putenv -do : - ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" -if test "x$ac_cv_func_putenv" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PUTENV 1 -_ACEOF - -fi -done - -for ac_func in getcwd getwd memcmp memcpy mkstemp mktemp strchr strrchr -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 -$as_echo_n "checking for an ANSI C-conforming const... " >&6; } -if ${ac_cv_c_const+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - -#ifndef __cplusplus - /* Ultrix mips cc rejects this sort of thing. */ - typedef int charset[2]; - const charset cs = { 0, 0 }; - /* SunOS 4.1.1 cc rejects this. */ - char const *const *pcpcc; - char **ppc; - /* NEC SVR4.0.2 mips cc rejects this. */ - struct point {int x, y;}; - static struct point const zero = {0,0}; - /* AIX XL C 1.02.0.0 rejects this. - It does not let you subtract one const X* pointer from another in - an arm of an if-expression whose if-part is not a constant - expression */ - const char *g = "string"; - pcpcc = &g + (g ? g-g : 0); - /* HPUX 7.0 cc rejects these. */ - ++pcpcc; - ppc = (char**) pcpcc; - pcpcc = (char const *const *) ppc; - { /* SCO 3.2v4 cc rejects this sort of thing. */ - char tx; - char *t = &tx; - char const *s = 0 ? (char *) 0 : (char const *) 0; - - *t++ = 0; - if (s) return 0; - } - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ - int x[] = {25, 17}; - const int *foo = &x[0]; - ++foo; - } - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ - typedef const int *iptr; - iptr p = 0; - ++p; - } - { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; } bx; - struct s *b = &bx; b->j = 5; - } - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; - if (!foo) return 0; - } - return !cs[0] && !zero.x; -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_const=yes -else - ac_cv_c_const=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -$as_echo "$ac_cv_c_const" >&6; } -if test $ac_cv_c_const = no; then - -$as_echo "#define const /**/" >>confdefs.h - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 -$as_echo_n "checking for inline... " >&6; } -if ${ac_cv_c_inline+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_c_inline=no -for ac_kw in inline __inline__ __inline; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifndef __cplusplus -typedef int foo_t; -static $ac_kw foo_t static_foo () {return 0; } -$ac_kw foo_t foo () {return 0; } -#endif - -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_c_inline=$ac_kw -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - test "$ac_cv_c_inline" != no && break -done - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 -$as_echo "$ac_cv_c_inline" >&6; } - -case $ac_cv_c_inline in - inline | yes) ;; - *) - case $ac_cv_c_inline in - no) ac_val=;; - *) ac_val=$ac_cv_c_inline;; - esac - cat >>confdefs.h <<_ACEOF -#ifndef __cplusplus -#define inline $ac_val -#endif -_ACEOF - ;; -esac - -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF - -fi - -ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" -case $ac_cv_c_int64_t in #( - no|yes) ;; #( - *) - -cat >>confdefs.h <<_ACEOF -#define int64_t $ac_cv_c_int64_t -_ACEOF -;; -esac - -ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" -case $ac_cv_c_uint64_t in #( - no|yes) ;; #( - *) - -$as_echo "#define _UINT64_T 1" >>confdefs.h - - -cat >>confdefs.h <<_ACEOF -#define uint64_t $ac_cv_c_uint64_t -_ACEOF -;; - esac - -case :$ac_cv_c_int64_t:$ac_cv_c_int64_t: in #( - *':no:'*) : - as_fn_error $? "Sorry, your compiler does not support 64-bit integer types." "$LINENO" 5 ;; #( - *) : - ;; -esac -ac_fn_c_check_decl "$LINENO" "isascii" "ac_cv_have_decl_isascii" "#include <ctype.h> -" -if test "x$ac_cv_have_decl_isascii" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_ISASCII $ac_have_decl -_ACEOF - -ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : - -cat >>confdefs.h <<_ACEOF -#define HAVE_STRUCT_STAT_ST_MTIM 1 -_ACEOF - - -fi - - - -ac_config_headers="$ac_config_headers c-auto.h:c-auto.in" - - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 -$as_echo_n "checking size of int... " >&6; } -if ${ac_cv_sizeof_int+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : - -else - if test "$ac_cv_type_int" = yes; then - { { $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 "cannot compute sizeof (int) -See \`config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_int=0 - fi -fi - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 -$as_echo "$ac_cv_sizeof_int" >&6; } - - - -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT $ac_cv_sizeof_int -_ACEOF - - - -kpse_save_CPPFLAGS=$CPPFLAGS -kpse_save_LIBS=$LIBS - -##tldbg _KPSE_INIT: Initialize TL infrastructure. -kpse_BLD=`(cd "./../../." && pwd)` -kpse_SRC=`(cd "$srcdir/../../." && pwd)` - -##tldbg _KPSE_USE_LIBTOOL: Generate a libtool script for use in configure tests. -: ${CONFIG_LT=./config.lt} -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 -$as_echo "$as_me: creating $CONFIG_LT" >&6;} -as_write_fail=0 -cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 -#! $SHELL -# Generated by $as_me. -# Run this file to recreate a libtool stub with the current configuration. -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>"$CONFIG_LT" <<\_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_LT" script. ## -## --------------------------------- ## -_ASEOF -test $as_write_fail = 0 && chmod +x "$CONFIG_LT" - -cat >>"$CONFIG_LT" <<\_LTEOF -lt_cl_silent=false -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX -} >&5 - -lt_cl_help="\ -'$as_me' creates a local libtool stub from the current configuration, -for use in further configure time tests before the real libtool is -generated. - -Usage: $0 [OPTIONS] - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - -Report bugs to <bug-libtool@gnu.org>." - -lt_cl_version="\ -tex4ht (TeX Live) config.lt 20080225 -configured by $0, generated by GNU Autoconf 2.69. - -Copyright (C) 2011 Free Software Foundation, Inc. -This config.lt script is free software; the Free Software Foundation -gives unlimited permision to copy, distribute and modify it." - -while test 0 != $# -do - case $1 in - --version | --v* | -V ) - echo "$lt_cl_version"; exit 0 ;; - --help | --h* | -h ) - echo "$lt_cl_help"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --quiet | --q* | --silent | --s* | -q ) - lt_cl_silent=: ;; - - -*) as_fn_error $? "unrecognized option: $1 -Try '$0 --help' for more information." "$LINENO" 5 ;; - - *) as_fn_error $? "unrecognized argument: $1 -Try '$0 --help' for more information." "$LINENO" 5 ;; - esac - shift -done - -if $lt_cl_silent; then - exec 6>/dev/null -fi -_LTEOF - -cat >>"$CONFIG_LT" <<_LTEOF - - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -sed_quote_subst='$sed_quote_subst' -double_quote_subst='$double_quote_subst' -delay_variable_subst='$delay_variable_subst' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' -AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' -DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' -OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' -enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' -pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' -enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' -shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' -SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' -ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' -PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' -host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' -host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' -host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' -build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' -build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' -build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' -SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' -Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' -GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' -EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' -FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' -LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' -NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' -LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' -max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' -ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' -exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' -lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' -lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' -lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' -lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' -lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' -reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' -reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' -deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' -file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' -file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' -want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' -sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' -AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' -AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' -archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' -STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' -RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' -old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' -old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' -lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' -CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' -CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' -compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' -GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' -lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' -nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' -lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' -lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' -objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' -MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' -lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' -need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' -MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' -DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' -NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' -LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' -OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' -libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' -shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' -extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' -archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' -enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' -export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' -whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' -compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' -old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' -old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' -archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' -archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' -module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' -module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' -with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' -allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' -no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' -hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' -hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' -hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' -hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' -hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' -inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' -link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' -always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' -export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' -exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' -include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' -prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' -postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' -file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' -variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' -need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' -version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' -runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' -shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' -shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' -libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' -library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' -soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' -install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' -postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' -postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' -finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' -finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' -hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' -sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' -configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' -configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' -hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' -enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' -enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' -enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' -old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' -striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' - -LTCC='$LTCC' -LTCFLAGS='$LTCFLAGS' -compiler='$compiler_DEFAULT' - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$1 -_LTECHO_EOF' -} - -# Quote evaled strings. -for var in AS \ -DLLTOOL \ -OBJDUMP \ -SHELL \ -ECHO \ -PATH_SEPARATOR \ -SED \ -GREP \ -EGREP \ -FGREP \ -LD \ -NM \ -LN_S \ -lt_SP2NL \ -lt_NL2SP \ -reload_flag \ -deplibs_check_method \ -file_magic_cmd \ -file_magic_glob \ -want_nocaseglob \ -sharedlib_from_linklib_cmd \ -AR \ -AR_FLAGS \ -archiver_list_spec \ -STRIP \ -RANLIB \ -CC \ -CFLAGS \ -compiler \ -lt_cv_sys_global_symbol_pipe \ -lt_cv_sys_global_symbol_to_cdecl \ -lt_cv_sys_global_symbol_to_import \ -lt_cv_sys_global_symbol_to_c_name_address \ -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ -lt_cv_nm_interface \ -nm_file_list_spec \ -lt_cv_truncate_bin \ -lt_prog_compiler_no_builtin_flag \ -lt_prog_compiler_pic \ -lt_prog_compiler_wl \ -lt_prog_compiler_static \ -lt_cv_prog_compiler_c_o \ -need_locks \ -MANIFEST_TOOL \ -DSYMUTIL \ -NMEDIT \ -LIPO \ -OTOOL \ -OTOOL64 \ -shrext_cmds \ -export_dynamic_flag_spec \ -whole_archive_flag_spec \ -compiler_needs_object \ -with_gnu_ld \ -allow_undefined_flag \ -no_undefined_flag \ -hardcode_libdir_flag_spec \ -hardcode_libdir_separator \ -exclude_expsyms \ -include_expsyms \ -file_list_spec \ -variables_saved_for_relink \ -libname_spec \ -library_names_spec \ -soname_spec \ -install_override_mode \ -finish_eval \ -old_striplib \ -striplib; do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Double-quote double-evaled strings. -for var in reload_cmds \ -old_postinstall_cmds \ -old_postuninstall_cmds \ -old_archive_cmds \ -extract_expsyms_cmds \ -old_archive_from_new_cmds \ -old_archive_from_expsyms_cmds \ -archive_cmds \ -archive_expsym_cmds \ -module_cmds \ -module_expsym_cmds \ -export_symbols_cmds \ -prelink_cmds \ -postlink_cmds \ -postinstall_cmds \ -postuninstall_cmds \ -finish_cmds \ -sys_lib_search_path_spec \ -configure_time_dlsearch_path \ -configure_time_lt_sys_library_path; do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -ac_aux_dir='$ac_aux_dir' - -# See if we are running on zsh, and set the options that allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi - - - PACKAGE='$PACKAGE' - VERSION='$VERSION' - RM='$RM' - ofile='$ofile' - - - -_LTEOF - -cat >>"$CONFIG_LT" <<\_LTEOF -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 -$as_echo "$as_me: creating $ofile" >&6;} - - - # See if we are running on zsh, and set the options that allow our - # commands through without removal of \ escapes. - if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST - fi - - cfgfile=${ofile}T - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 - $RM "$cfgfile" - - cat <<_LT_EOF >> "$cfgfile" -#! $SHELL -# Generated automatically by $as_me ($PACKAGE) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# NOTE: Changes made to this file will be lost: look at ltmain.sh. - -# Provide generalized library-building support services. -# Written by Gordon Matzigkeit, 1996 - -# Copyright (C) 2014 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool 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 of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program or library that is built -# using GNU Libtool, you may include this file under the same -# distribution terms that you use for the rest of that program. -# -# GNU Libtool 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, see <http://www.gnu.org/licenses/>. - - -# The names of the tagged configurations supported by this script. -available_tags='' - -# Configured defaults for sys_lib_dlsearch_path munging. -: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} - -# ### BEGIN LIBTOOL CONFIG - -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - -# Assembler program. -AS=$lt_AS - -# DLL creation program. -DLLTOOL=$lt_DLLTOOL - -# Object dumper program. -OBJDUMP=$lt_OBJDUMP - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# What type of objects to build. -pic_mode=$pic_mode - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# Shared archive member basename,for filename based shared library versioning on AIX. -shared_archive_member_spec=$shared_archive_member_spec - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# An echo program that protects backslashes. -ECHO=$lt_ECHO - -# The PATH separator for the build system. -PATH_SEPARATOR=$lt_PATH_SEPARATOR - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="\$SED -e 1s/^X//" - -# A grep program that handles long lines. -GREP=$lt_GREP - -# An ERE matcher. -EGREP=$lt_EGREP - -# A literal string matcher. -FGREP=$lt_FGREP - -# A BSD- or MS-compatible name lister. -NM=$lt_NM - -# Whether we need soft or hard links. -LN_S=$lt_LN_S - -# What is the maximum length of a command? -max_cmd_len=$max_cmd_len - -# Object file suffix (normally "o"). -objext=$ac_objext - -# Executable file suffix (normally ""). -exeext=$exeext - -# whether the shell understands "unset". -lt_unset=$lt_unset - -# turn spaces into newlines. -SP2NL=$lt_lt_SP2NL - -# turn newlines into spaces. -NL2SP=$lt_lt_NL2SP - -# convert \$build file names to \$host format. -to_host_file_cmd=$lt_cv_to_host_file_cmd - -# convert \$build files to toolchain format. -to_tool_file_cmd=$lt_cv_to_tool_file_cmd - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method = "file_magic". -file_magic_cmd=$lt_file_magic_cmd - -# How to find potential files when deplibs_check_method = "file_magic". -file_magic_glob=$lt_file_magic_glob - -# Find potential files using nocaseglob when deplibs_check_method = "file_magic". -want_nocaseglob=$lt_want_nocaseglob - -# Command to associate shared and link libraries. -sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd - -# The archiver. -AR=$lt_AR - -# Flags to create an archive. -AR_FLAGS=$lt_AR_FLAGS - -# How to feed a file listing to the archiver. -archiver_list_spec=$lt_archiver_list_spec - -# A symbol stripping program. -STRIP=$lt_STRIP - -# Commands used to install an old-style archive. -RANLIB=$lt_RANLIB -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Whether to use a lock for old archive extraction. -lock_old_archive_extraction=$lock_old_archive_extraction - -# A C compiler. -LTCC=$lt_CC - -# LTCC compiler flags. -LTCFLAGS=$lt_CFLAGS - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm into a list of symbols to manually relocate. -global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import - -# Transform the output of nm in a C name address pair. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# Transform the output of nm in a C name address pair when lib prefix is needed. -global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix - -# The name lister interface. -nm_interface=$lt_lt_cv_nm_interface - -# Specify filename containing input files for \$NM. -nm_file_list_spec=$lt_nm_file_list_spec - -# The root where to search for dependent libraries,and where our libraries should be installed. -lt_sysroot=$lt_sysroot - -# Command to truncate a binary pipe. -lt_truncate_bin=$lt_lt_cv_truncate_bin - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# Used to examine libraries when file_magic_cmd begins with "file". -MAGIC_CMD=$MAGIC_CMD - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Manifest tool. -MANIFEST_TOOL=$lt_MANIFEST_TOOL - -# Tool to manipulate archived DWARF debug symbol files on Mac OS X. -DSYMUTIL=$lt_DSYMUTIL - -# Tool to change global to local symbols on Mac OS X. -NMEDIT=$lt_NMEDIT - -# Tool to manipulate fat objects and archives on Mac OS X. -LIPO=$lt_LIPO - -# ldd/readelf like tool for Mach-O binaries on Mac OS X. -OTOOL=$lt_OTOOL - -# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. -OTOOL64=$lt_OTOOL64 - -# Old archive suffix (normally "a"). -libext=$libext - -# Shared library suffix (normally ".so"). -shrext_cmds=$lt_shrext_cmds - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at link time. -variables_saved_for_relink=$lt_variables_saved_for_relink - -# Do we need the "lib" prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Library versioning type. -version_type=$version_type - -# Shared library runtime path variable. -runpath_var=$runpath_var - -# Shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Permission mode override for installation of shared libraries. -install_override_mode=$lt_install_override_mode - -# Command to use after installation of a shared archive. -postinstall_cmds=$lt_postinstall_cmds - -# Command to use after uninstallation of a shared archive. -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# As "finish_cmds", except a single script fragment to be evaled but -# not shown. -finish_eval=$lt_finish_eval - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Compile-time system search path for libraries. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Detected run-time system search path for libraries. -sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path - -# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. -configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - - -# The linker used to build libraries. -LD=$lt_LD - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# Commands used to build an old-style archive. -old_archive_cmds=$lt_old_archive_cmds - -# A language specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU compiler? -with_gcc=$GCC - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Whether the compiler copes with passing no objects directly. -compiler_needs_object=$lt_compiler_needs_object - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds - -# Commands used to build a loadable module if different from building -# a shared archive. -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Whether we are building with GNU ld or not. -with_gnu_ld=$lt_with_gnu_ld - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag - -# Flag that enforces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec - -# Whether we need a single "-rpath" flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator - -# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes -# DIR into the resulting binary. -hardcode_direct=$hardcode_direct - -# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes -# DIR into the resulting binary and the resulting library dependency is -# "absolute",i.e impossible to change by setting \$shlibpath_var if the -# library is relocated. -hardcode_direct_absolute=$hardcode_direct_absolute - -# Set to "yes" if using the -LDIR flag during linking hardcodes DIR -# into the resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR -# into the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Set to "yes" if building a shared library automatically hardcodes DIR -# into the library and all subsequent libraries and executables linked -# against it. -hardcode_automatic=$hardcode_automatic - -# Set to yes if linker adds runtime paths of dependent libraries -# to runtime path list. -inherit_rpath=$inherit_rpath - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs - -# Set to "yes" if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# Commands necessary for linking programs (against libraries) with templates. -prelink_cmds=$lt_prelink_cmds - -# Commands necessary for finishing linking programs. -postlink_cmds=$lt_postlink_cmds - -# Specify filename containing input files. -file_list_spec=$lt_file_list_spec - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# ### END LIBTOOL CONFIG - -_LT_EOF - - cat <<'_LT_EOF' >> "$cfgfile" - -# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE - -# func_munge_path_list VARIABLE PATH -# ----------------------------------- -# VARIABLE is name of variable containing _space_ separated list of -# directories to be munged by the contents of PATH, which is string -# having a format: -# "DIR[:DIR]:" -# string "DIR[ DIR]" will be prepended to VARIABLE -# ":DIR[:DIR]" -# string "DIR[ DIR]" will be appended to VARIABLE -# "DIRP[:DIRP]::[DIRA:]DIRA" -# string "DIRP[ DIRP]" will be prepended to VARIABLE and string -# "DIRA[ DIRA]" will be appended to VARIABLE -# "DIR[:DIR]" -# VARIABLE will be replaced by "DIR[ DIR]" -func_munge_path_list () -{ - case x$2 in - x) - ;; - *:) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" - ;; - x:*) - eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" - ;; - *::*) - eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" - eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" - ;; - *) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" - ;; - esac -} - - -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -func_cc_basename () -{ - for cc_temp in $*""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac - done - func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -} - - -# ### END FUNCTIONS SHARED WITH CONFIGURE - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - -ltmain=$ac_aux_dir/ltmain.sh - - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" - - -as_fn_exit 0 -_LTEOF -chmod +x "$CONFIG_LT" - -# configure is writing to config.log, but config.lt does its own redirection, -# appending to config.log, which fails on DOS, as config.log is still kept -# open by configure. Here we exec the FD to /dev/null, effectively closing -# config.log, so it can be properly (re)opened and appended to by config.lt. -lt_cl_success=: -test yes = "$silent" && - lt_config_lt_args="$lt_config_lt_args --quiet" -exec 5>/dev/null -$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false -exec 5>>config.log -$lt_cl_success || as_fn_exit 1 - -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_link="./libtool --mode=link --tag=CC $ac_link" - -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_prog_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$PKG_CONFIG"; then - ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # 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_PKG_CONFIG="${ac_tool_prefix}pkg-config" - $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 -PKG_CONFIG=$ac_cv_prog_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_prog_PKG_CONFIG"; then - ac_ct_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_prog_ac_ct_PKG_CONFIG+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -n "$ac_ct_PKG_CONFIG"; then - ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # 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_PKG_CONFIG="pkg-config" - $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_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG -if test -n "$ac_ct_PKG_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 -$as_echo "$ac_ct_PKG_CONFIG" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_PKG_CONFIG" = x; then - PKG_CONFIG="false" - 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_ct_PKG_CONFIG - fi -else - PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" -fi - -##tldbg _KPSE_LIB_FLAGS: Setup kpathsea (-lkpathsea) flags. -echo 'tldbg:_KPSE_LIB_FLAGS called: libdir=kpathsea, libname=kpathsea, options=lt, tlincl=-IBLD/texk -ISRC/texk, tllib=BLD/texk/kpathsea/libkpathsea.la, tlextra=, rebuildsrcdeps=${top_srcdir}/../kpathsea/*.[ch], rebuildblddeps=${top_builddir}/../kpathsea/paths.h.' >&5 -##tldbg _KPSE_LIB_FLAGS_TL: kpathsea (kpathsea) lt. - -# Check whether --with-system-kpathsea was given. -if test "${with_system_kpathsea+set}" = set; then : - withval=$with_system_kpathsea; -fi -if test "x$with_system_kpathsea" = xyes; then - if $PKG_CONFIG kpathsea; then - KPATHSEA_INCLUDES=`$PKG_CONFIG kpathsea --cflags` - KPATHSEA_LIBS=`$PKG_CONFIG kpathsea --libs` -elif test "x$need_kpathsea:$with_system_kpathsea" = xyes:yes; then - as_fn_error $? "did not find kpathsea" "$LINENO" 5 -fi -else - KPATHSEA_INCLUDES="-I$kpse_BLD/texk -I$kpse_SRC/texk" - KPATHSEA_LIBS="$kpse_BLD/texk/kpathsea/libkpathsea.la" - KPATHSEA_DEPEND='${top_builddir}/../kpathsea/libkpathsea.la' - KPATHSEA_RULE='# Rebuild libkpathsea -$(KPATHSEA_DEPEND): ${top_srcdir}/../kpathsea/*.[ch] ${top_builddir}/../kpathsea/paths.h - cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild -${top_builddir}/../kpathsea/paths.h: - cd ${top_builddir}/../kpathsea && $(MAKE) $(AM_MAKEFLAGS) rebuild' -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libkpathsea supports debugging" >&5 -$as_echo_n "checking if libkpathsea supports debugging... " >&6; } -if ${kpse_cv_kpse_debug+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval CPPFLAGS=\"$KPATHSEA_INCLUDES \$CPPFLAGS\" -eval LIBS=\"$KPATHSEA_LIBS \$LIBS\" - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include <kpathsea/kpathsea.h> -int -main () -{ -FILE *f = fopen("f", "r") - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - kpse_cv_kpse_debug=yes -else - kpse_cv_kpse_debug=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - CPPFLAGS=$kpse_save_CPPFLAGS -LIBS=$kpse_save_LIBS - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_kpse_debug" >&5 -$as_echo "$kpse_cv_kpse_debug" >&6; } -if test "x$kpse_cv_kpse_debug" != xyes; then : - KPATHSEA_INCLUDES="$KPATHSEA_INCLUDES -DNO_DEBUG" -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native WIN32 or MINGW32" >&5 -$as_echo_n "checking for native WIN32 or MINGW32... " >&6; } -if ${kpse_cv_have_win32+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifndef WIN32 - choke me -#endif -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifndef __MINGW32__ - choke me -#endif -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - kpse_cv_have_win32=mingw32 -else - kpse_cv_have_win32=native -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -else - kpse_cv_have_win32=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win32" >&5 -$as_echo "$kpse_cv_have_win32" >&6; } - - if test "x$kpse_cv_have_win32" != xno; then - WIN32_TRUE= - WIN32_FALSE='#' -else - WIN32_TRUE='#' - WIN32_FALSE= -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN64" >&5 -$as_echo_n "checking for WIN64... " >&6; } -if ${kpse_cv_have_win64+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifndef _WIN64 - choke me -#endif -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - kpse_cv_have_win64=yes -else - kpse_cv_have_win64=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_have_win64" >&5 -$as_echo "$kpse_cv_have_win64" >&6; } -case $kpse_cv_have_win64 in #( - yes) : - if test "x$kpse_cv_have_win32=xmingw"; then : - WIN_WRAPPER=w64_mingw_wrapper -else - WIN_WRAPPER=w64_wrapper -fi ;; #( - *) : - WIN_WRAPPER=w32_wrapper ;; -esac - - if test -r "$srcdir/../../texk/texlive/$WIN_WRAPPER/runscript.exe"; then - WIN32_WRAP_TRUE= - WIN32_WRAP_FALSE='#' -else - WIN32_WRAP_TRUE='#' - WIN32_WRAP_FALSE= -fi - - - -ac_config_files="$ac_config_files 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 "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then - as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -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 -if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then - as_fn_error $? "conditional \"WIN32\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${WIN32_WRAP_TRUE}" && test -z "${WIN32_WRAP_FALSE}"; then - as_fn_error $? "conditional \"WIN32_WRAP\" 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 tex4ht (TeX Live) $as_me 20080225, 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 <tex-k@tug.org>." - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" -ac_cs_version="\\ -tex4ht (TeX Live) config.status 20080225 -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" MAKE="${MAKE-make}" - - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -sed_quote_subst='$sed_quote_subst' -double_quote_subst='$double_quote_subst' -delay_variable_subst='$delay_variable_subst' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' -AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' -DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' -OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' -enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' -pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' -enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' -shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' -SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' -ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' -PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' -host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' -host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' -host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' -build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' -build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' -build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' -SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' -Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' -GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' -EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' -FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' -LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' -NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' -LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' -max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' -ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' -exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' -lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' -lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' -lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' -lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' -lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' -reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' -reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' -deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' -file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' -file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' -want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' -sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' -AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' -AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' -archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' -STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' -RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' -old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' -old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' -lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' -CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' -CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' -compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' -GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' -lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' -nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' -lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' -lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' -objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' -MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' -lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' -need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' -MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' -DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' -NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' -LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' -OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' -libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' -shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' -extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' -archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' -enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' -export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' -whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' -compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' -old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' -old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' -archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' -archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' -module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' -module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' -with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' -allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' -no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' -hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' -hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' -hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' -hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' -hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' -inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' -link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' -always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' -export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' -exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' -include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' -prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' -postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' -file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' -variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' -need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' -version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' -runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' -shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' -shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' -libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' -library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' -soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' -install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' -postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' -postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' -finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' -finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' -hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' -sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' -configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' -configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' -hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' -enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' -enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' -enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' -old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' -striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' - -LTCC='$LTCC' -LTCFLAGS='$LTCFLAGS' -compiler='$compiler_DEFAULT' - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$1 -_LTECHO_EOF' -} - -# Quote evaled strings. -for var in AS \ -DLLTOOL \ -OBJDUMP \ -SHELL \ -ECHO \ -PATH_SEPARATOR \ -SED \ -GREP \ -EGREP \ -FGREP \ -LD \ -NM \ -LN_S \ -lt_SP2NL \ -lt_NL2SP \ -reload_flag \ -deplibs_check_method \ -file_magic_cmd \ -file_magic_glob \ -want_nocaseglob \ -sharedlib_from_linklib_cmd \ -AR \ -AR_FLAGS \ -archiver_list_spec \ -STRIP \ -RANLIB \ -CC \ -CFLAGS \ -compiler \ -lt_cv_sys_global_symbol_pipe \ -lt_cv_sys_global_symbol_to_cdecl \ -lt_cv_sys_global_symbol_to_import \ -lt_cv_sys_global_symbol_to_c_name_address \ -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ -lt_cv_nm_interface \ -nm_file_list_spec \ -lt_cv_truncate_bin \ -lt_prog_compiler_no_builtin_flag \ -lt_prog_compiler_pic \ -lt_prog_compiler_wl \ -lt_prog_compiler_static \ -lt_cv_prog_compiler_c_o \ -need_locks \ -MANIFEST_TOOL \ -DSYMUTIL \ -NMEDIT \ -LIPO \ -OTOOL \ -OTOOL64 \ -shrext_cmds \ -export_dynamic_flag_spec \ -whole_archive_flag_spec \ -compiler_needs_object \ -with_gnu_ld \ -allow_undefined_flag \ -no_undefined_flag \ -hardcode_libdir_flag_spec \ -hardcode_libdir_separator \ -exclude_expsyms \ -include_expsyms \ -file_list_spec \ -variables_saved_for_relink \ -libname_spec \ -library_names_spec \ -soname_spec \ -install_override_mode \ -finish_eval \ -old_striplib \ -striplib; do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Double-quote double-evaled strings. -for var in reload_cmds \ -old_postinstall_cmds \ -old_postuninstall_cmds \ -old_archive_cmds \ -extract_expsyms_cmds \ -old_archive_from_new_cmds \ -old_archive_from_expsyms_cmds \ -archive_cmds \ -archive_expsym_cmds \ -module_cmds \ -module_expsym_cmds \ -export_symbols_cmds \ -prelink_cmds \ -postlink_cmds \ -postinstall_cmds \ -postuninstall_cmds \ -finish_cmds \ -sys_lib_search_path_spec \ -configure_time_dlsearch_path \ -configure_time_lt_sys_library_path; do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -ac_aux_dir='$ac_aux_dir' - -# See if we are running on zsh, and set the options that allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi - - - PACKAGE='$PACKAGE' - VERSION='$VERSION' - RM='$RM' - ofile='$ofile' - -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 - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; - "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES 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 2>/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 -' <conf$$subs.awk | sed ' -/^[^""]/{ - N - s/\n// -} -' >>$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 -' <confdefs.h | sed ' -s/'"$ac_delim"'/"\\\ -"/g' >>$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. - # TODO: see whether this extra hack can be removed once we start - # requiring Autoconf 2.70 or later. - case $CONFIG_FILES in #( - *\'*) : - eval set x "$CONFIG_FILES" ;; #( - *) : - set x $CONFIG_FILES ;; #( - *) : - ;; -esac - shift - # Used to flag and report bootstrapping failures. - am_rc=0 - for am_mf - do - # Strip MF so we end up with the name of the file. - am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile which includes - # dependency-tracking related rules and includes. - # Grep'ing the whole file directly is not great: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ - || continue - am_dirpart=`$as_dirname -- "$am_mf" || -$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$am_mf" : 'X\(//\)[^/]' \| \ - X"$am_mf" : 'X\(//\)$' \| \ - X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$am_mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - am_filepart=`$as_basename -- "$am_mf" || -$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ - X"$am_mf" : 'X\(//\)$' \| \ - X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$am_mf" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { echo "$as_me:$LINENO: cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles" >&5 - (cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } || am_rc=$? - done - if test $am_rc -ne 0; then - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error $? "Something went wrong bootstrapping makefile fragments - for automatic dependency tracking. If GNU make was not used, consider - re-running the configure script with MAKE=\"gmake\" (or whatever is - necessary). You can also try re-running configure with the - '--disable-dependency-tracking' option to at least be able to build - the package (albeit without support for automatic dependency tracking). -See \`config.log' for more details" "$LINENO" 5; } - fi - { am_dirpart=; unset am_dirpart;} - { am_filepart=; unset am_filepart;} - { am_mf=; unset am_mf;} - { am_rc=; unset am_rc;} - rm -f conftest-deps.mk -} - ;; - "libtool":C) - - # See if we are running on zsh, and set the options that allow our - # commands through without removal of \ escapes. - if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST - fi - - cfgfile=${ofile}T - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 - $RM "$cfgfile" - - cat <<_LT_EOF >> "$cfgfile" -#! $SHELL -# Generated automatically by $as_me ($PACKAGE) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# NOTE: Changes made to this file will be lost: look at ltmain.sh. - -# Provide generalized library-building support services. -# Written by Gordon Matzigkeit, 1996 - -# Copyright (C) 2014 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool 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 of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program or library that is built -# using GNU Libtool, you may include this file under the same -# distribution terms that you use for the rest of that program. -# -# GNU Libtool 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, see <http://www.gnu.org/licenses/>. - - -# The names of the tagged configurations supported by this script. -available_tags='' - -# Configured defaults for sys_lib_dlsearch_path munging. -: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} - -# ### BEGIN LIBTOOL CONFIG - -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - -# Assembler program. -AS=$lt_AS - -# DLL creation program. -DLLTOOL=$lt_DLLTOOL - -# Object dumper program. -OBJDUMP=$lt_OBJDUMP - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# What type of objects to build. -pic_mode=$pic_mode - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# Shared archive member basename,for filename based shared library versioning on AIX. -shared_archive_member_spec=$shared_archive_member_spec - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# An echo program that protects backslashes. -ECHO=$lt_ECHO - -# The PATH separator for the build system. -PATH_SEPARATOR=$lt_PATH_SEPARATOR - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="\$SED -e 1s/^X//" - -# A grep program that handles long lines. -GREP=$lt_GREP - -# An ERE matcher. -EGREP=$lt_EGREP - -# A literal string matcher. -FGREP=$lt_FGREP - -# A BSD- or MS-compatible name lister. -NM=$lt_NM - -# Whether we need soft or hard links. -LN_S=$lt_LN_S - -# What is the maximum length of a command? -max_cmd_len=$max_cmd_len - -# Object file suffix (normally "o"). -objext=$ac_objext - -# Executable file suffix (normally ""). -exeext=$exeext - -# whether the shell understands "unset". -lt_unset=$lt_unset - -# turn spaces into newlines. -SP2NL=$lt_lt_SP2NL - -# turn newlines into spaces. -NL2SP=$lt_lt_NL2SP - -# convert \$build file names to \$host format. -to_host_file_cmd=$lt_cv_to_host_file_cmd - -# convert \$build files to toolchain format. -to_tool_file_cmd=$lt_cv_to_tool_file_cmd - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method = "file_magic". -file_magic_cmd=$lt_file_magic_cmd - -# How to find potential files when deplibs_check_method = "file_magic". -file_magic_glob=$lt_file_magic_glob - -# Find potential files using nocaseglob when deplibs_check_method = "file_magic". -want_nocaseglob=$lt_want_nocaseglob - -# Command to associate shared and link libraries. -sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd - -# The archiver. -AR=$lt_AR - -# Flags to create an archive. -AR_FLAGS=$lt_AR_FLAGS - -# How to feed a file listing to the archiver. -archiver_list_spec=$lt_archiver_list_spec - -# A symbol stripping program. -STRIP=$lt_STRIP - -# Commands used to install an old-style archive. -RANLIB=$lt_RANLIB -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Whether to use a lock for old archive extraction. -lock_old_archive_extraction=$lock_old_archive_extraction - -# A C compiler. -LTCC=$lt_CC - -# LTCC compiler flags. -LTCFLAGS=$lt_CFLAGS - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm into a list of symbols to manually relocate. -global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import - -# Transform the output of nm in a C name address pair. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# Transform the output of nm in a C name address pair when lib prefix is needed. -global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix - -# The name lister interface. -nm_interface=$lt_lt_cv_nm_interface - -# Specify filename containing input files for \$NM. -nm_file_list_spec=$lt_nm_file_list_spec - -# The root where to search for dependent libraries,and where our libraries should be installed. -lt_sysroot=$lt_sysroot - -# Command to truncate a binary pipe. -lt_truncate_bin=$lt_lt_cv_truncate_bin - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# Used to examine libraries when file_magic_cmd begins with "file". -MAGIC_CMD=$MAGIC_CMD - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Manifest tool. -MANIFEST_TOOL=$lt_MANIFEST_TOOL - -# Tool to manipulate archived DWARF debug symbol files on Mac OS X. -DSYMUTIL=$lt_DSYMUTIL - -# Tool to change global to local symbols on Mac OS X. -NMEDIT=$lt_NMEDIT - -# Tool to manipulate fat objects and archives on Mac OS X. -LIPO=$lt_LIPO - -# ldd/readelf like tool for Mach-O binaries on Mac OS X. -OTOOL=$lt_OTOOL - -# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. -OTOOL64=$lt_OTOOL64 - -# Old archive suffix (normally "a"). -libext=$libext - -# Shared library suffix (normally ".so"). -shrext_cmds=$lt_shrext_cmds - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at link time. -variables_saved_for_relink=$lt_variables_saved_for_relink - -# Do we need the "lib" prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Library versioning type. -version_type=$version_type - -# Shared library runtime path variable. -runpath_var=$runpath_var - -# Shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Permission mode override for installation of shared libraries. -install_override_mode=$lt_install_override_mode - -# Command to use after installation of a shared archive. -postinstall_cmds=$lt_postinstall_cmds - -# Command to use after uninstallation of a shared archive. -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# As "finish_cmds", except a single script fragment to be evaled but -# not shown. -finish_eval=$lt_finish_eval - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Compile-time system search path for libraries. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Detected run-time system search path for libraries. -sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path - -# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. -configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - - -# The linker used to build libraries. -LD=$lt_LD - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# Commands used to build an old-style archive. -old_archive_cmds=$lt_old_archive_cmds - -# A language specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU compiler? -with_gcc=$GCC - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Whether the compiler copes with passing no objects directly. -compiler_needs_object=$lt_compiler_needs_object - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds - -# Commands used to build a loadable module if different from building -# a shared archive. -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Whether we are building with GNU ld or not. -with_gnu_ld=$lt_with_gnu_ld - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag - -# Flag that enforces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec - -# Whether we need a single "-rpath" flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator - -# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes -# DIR into the resulting binary. -hardcode_direct=$hardcode_direct - -# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes -# DIR into the resulting binary and the resulting library dependency is -# "absolute",i.e impossible to change by setting \$shlibpath_var if the -# library is relocated. -hardcode_direct_absolute=$hardcode_direct_absolute - -# Set to "yes" if using the -LDIR flag during linking hardcodes DIR -# into the resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR -# into the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Set to "yes" if building a shared library automatically hardcodes DIR -# into the library and all subsequent libraries and executables linked -# against it. -hardcode_automatic=$hardcode_automatic - -# Set to yes if linker adds runtime paths of dependent libraries -# to runtime path list. -inherit_rpath=$inherit_rpath - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs - -# Set to "yes" if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# Commands necessary for linking programs (against libraries) with templates. -prelink_cmds=$lt_prelink_cmds - -# Commands necessary for finishing linking programs. -postlink_cmds=$lt_postlink_cmds - -# Specify filename containing input files. -file_list_spec=$lt_file_list_spec - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# ### END LIBTOOL CONFIG - -_LT_EOF - - cat <<'_LT_EOF' >> "$cfgfile" - -# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE - -# func_munge_path_list VARIABLE PATH -# ----------------------------------- -# VARIABLE is name of variable containing _space_ separated list of -# directories to be munged by the contents of PATH, which is string -# having a format: -# "DIR[:DIR]:" -# string "DIR[ DIR]" will be prepended to VARIABLE -# ":DIR[:DIR]" -# string "DIR[ DIR]" will be appended to VARIABLE -# "DIRP[:DIRP]::[DIRA:]DIRA" -# string "DIRP[ DIRP]" will be prepended to VARIABLE and string -# "DIRA[ DIRA]" will be appended to VARIABLE -# "DIR[:DIR]" -# VARIABLE will be replaced by "DIR[ DIR]" -func_munge_path_list () -{ - case x$2 in - x) - ;; - *:) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" - ;; - x:*) - eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" - ;; - *::*) - eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" - eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" - ;; - *) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" - ;; - esac -} - - -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -func_cc_basename () -{ - for cc_temp in $*""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac - done - func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -} - - -# ### END FUNCTIONS SHARED WITH CONFIGURE - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - -ltmain=$ac_aux_dir/ltmain.sh - - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" - - ;; - - 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 - diff --git a/Build/source/texk/tex4htk/configure.ac b/Build/source/texk/tex4htk/configure.ac deleted file mode 100644 index 372a0fd7058..00000000000 --- a/Build/source/texk/tex4htk/configure.ac +++ /dev/null @@ -1,28 +0,0 @@ -dnl Process this file with autoconf to produce a configure script. -dnl -dnl Copyright (C) 2009-2013 Peter Breitenlohner <tex-live@tug.org> -dnl -dnl This file is free software; the copyright holder -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -AC_INIT([tex4ht (TeX Live)], [20080225], [tex-k@tug.org]) -AC_PREREQ([2.65]) -AC_CONFIG_SRCDIR([tex4ht.c]) -AC_CONFIG_AUX_DIR([../../build-aux]) -AC_CONFIG_MACRO_DIR([../../m4]) - -dnl Common code for all programs using libkpathsea. -KPSE_COMMON([tex4htk]) - -AC_CONFIG_HEADERS([c-auto.h:c-auto.in]) - -AC_CHECK_SIZEOF([int]) - -KPSE_KPATHSEA_FLAGS - -KPSE_COND_WIN32_WRAP - -AC_CONFIG_FILES([Makefile]) - -AC_OUTPUT diff --git a/Build/source/texk/tex4htk/dbcontext b/Build/source/texk/tex4htk/dbcontext deleted file mode 100755 index 5ca613eb6cf..00000000000 --- a/Build/source/texk/tex4htk/dbcontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dblatex b/Build/source/texk/tex4htk/dblatex deleted file mode 100755 index b17d4513169..00000000000 --- a/Build/source/texk/tex4htk/dblatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dbmcontext b/Build/source/texk/tex4htk/dbmcontext deleted file mode 100755 index d60bef98b32..00000000000 --- a/Build/source/texk/tex4htk/dbmcontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dbmex b/Build/source/texk/tex4htk/dbmex deleted file mode 100755 index bb132d7a27b..00000000000 --- a/Build/source/texk/tex4htk/dbmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dbmlatex b/Build/source/texk/tex4htk/dbmlatex deleted file mode 100755 index 3ae040ab343..00000000000 --- a/Build/source/texk/tex4htk/dbmlatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dbmmex b/Build/source/texk/tex4htk/dbmmex deleted file mode 100755 index c06dbe814e6..00000000000 --- a/Build/source/texk/tex4htk/dbmmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dbmtex b/Build/source/texk/tex4htk/dbmtex deleted file mode 100755 index 356acaa9859..00000000000 --- a/Build/source/texk/tex4htk/dbmtex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dbmtexi b/Build/source/texk/tex4htk/dbmtexi deleted file mode 100755 index 908d2c8700c..00000000000 --- a/Build/source/texk/tex4htk/dbmtexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cdocbk ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/dbmxelatex b/Build/source/texk/tex4htk/dbmxelatex deleted file mode 100755 index 115988cc473..00000000000 --- a/Build/source/texk/tex4htk/dbmxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dbmxetex b/Build/source/texk/tex4htk/dbmxetex deleted file mode 100755 index de91087c075..00000000000 --- a/Build/source/texk/tex4htk/dbmxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dbtex b/Build/source/texk/tex4htk/dbtex deleted file mode 100755 index d60b4633293..00000000000 --- a/Build/source/texk/tex4htk/dbtex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dbtexi b/Build/source/texk/tex4htk/dbtexi deleted file mode 100755 index df34e6baac8..00000000000 --- a/Build/source/texk/tex4htk/dbtexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate -cdocbk ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/dbxelatex b/Build/source/texk/tex4htk/dbxelatex deleted file mode 100755 index 7808aa4da31..00000000000 --- a/Build/source/texk/tex4htk/dbxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,docbook]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cvalidate -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/dbxetex b/Build/source/texk/tex4htk/dbxetex deleted file mode 100755 index 0487bb2c431..00000000000 --- a/Build/source/texk/tex4htk/dbxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,docbook}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cvalidate -cdocbk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/demo.tex b/Build/source/texk/tex4htk/demo.tex deleted file mode 100644 index d05b994669e..00000000000 --- a/Build/source/texk/tex4htk/demo.tex +++ /dev/null @@ -1,261 +0,0 @@ -% \def\CALL{{tex}{latex}} -% \let\PC=Y -% \let\DOS=Y -% \def\WWW{XXX} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% test.tex % -% % -% Please DON'T try to understand the code of this file---it % -% can be harmful to your eyes and brain! % -% % -% gurari@cis.ohio-state.edu % -% http://www.cis.ohio-state.edu/~gurari % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - - -\ifx \SCRIPT\UnDef - \ifx \PC\UnDef - \def\SCRIPT{ - \Needs{cp \FN.tex \WWW \FN.txt} - \Needs{chmod 644 \WWW \FN.txt} - \Needs{ht \TEX\space - \FN\space - \ifx\WWW\empty \else ' -d\WWW\space - -m644'\fi} - } - \else % dos batch file - \def\SCRIPT{ - \Needs{call ht \TEX\space \FN} - \Needs{if exist \FN.txt del \FN.txt} - \Needs{ren \FN.tex \FN.txt} - } -\fi\fi - -% \def\SCRIPT{ -% \Needs{call ht \TEX\space \FN} -% \Needs{if exist \FN.txt del /q \FN.txt} -% \Needs{ren /q \FN.tex \FN.txt} -% } - - - - -\ifx \PC\UnDef -\else - -\openin15=clean.bat -\ifeof15 -\closein15 -\immediate\openout15=clean.bat -\immediate\write15{DEL hti.bat} -\immediate\write15{DEL htii.bat} -\immediate\write15{DEL htiii.bat} -\immediate\write15{DEL htiv.bat} -\immediate\write15{DEL htv.bat} -\immediate\write15{DEL htvi.bat} -\immediate\write15{DEL htvii.bat} -\immediate\write15{DEL httest.bat} -\immediate\write15{DEL i.*} -\immediate\write15{DEL ia.*} -\immediate\write15{DEL ii.*} -\immediate\write15{DEL iia.*} -\immediate\write15{DEL iii.*} -\immediate\write15{DEL iiia.*} -\immediate\write15{DEL iv.*} -\immediate\write15{DEL iv2.*} -\immediate\write15{DEL iva2.*} -\immediate\write15{DEL iva.*} -\immediate\write15{DEL test*.aux} -\immediate\write15{DEL test*.bat} -\immediate\write15{DEL test*.dvi} -\immediate\write15{DEL test*.htm*} -\immediate\write15{DEL test*.css} -\immediate\write15{DEL test*.lg} -\immediate\write15{DEL test*.idv} -\immediate\write15{DEL test*.log} -\immediate\write15{DEL test*.otc} -\immediate\write15{DEL test*.toc} -\immediate\write15{DEL test*.txt} -\immediate\write15{DEL test*.xre*} -\immediate\write15{DEL tex4ht.ps} -\immediate\write15{DEL v.*} -\immediate\write15{DEL va.*} -\immediate\write15{DEL vi.*} -\immediate\write15{DEL viIa.*} -\immediate\write15{DEL via.*} -\immediate\write15{DEL vii.*} -\immediate\write15{DEL viia.*} -\immediate\write15{DEL clean.bat} -\immediate\closeout15 -\else \closein15 \fi - -\fi - -\ifx \DOS\UnDef - \def\HTML{html} \def\ARG{} - \else \def\HTML{htm} \def\ARG{[htm]} - \fi - -\ifx \documentclass\undef \else - \documentclass{article} -\fi -\input tex4ht.sty -\def\temp{htm}\ifx \HTML\temp - \Preamble{htm,no_,no^} -\else - \Preamble{html,no_,no^} -\fi - \ifx \documentclass\undef \else - \begin{document} - \fi - - \Configure{Needs}{l. \the\inputlineno\space--- needs --- "#1" ---} - - -\newlinechar=`\^^J - -\ifx \WWW\UnDef \let\WWW=\empty \fi -\ifx \DOS\UnDef\else -% \Needs{CLS} % clear screen -\fi - - -\ifx \CALL\UnDef - \def\TEX{\ifx \documentclass\undef \else la\fi tex} -\else - \def\TEX#1#2{\def\TEX{\ifx \documentclass\undef #1\else #2\fi}} - \expandafter\TEX\CALL -\fi - -\edef\type{\ifx \documentclass\undef \else a\fi} - -\def\\#1\\{\expandafter\noexpand\csname#1\endcsname} -\catcode`\#=11 \def\Sharp{#} \catcode`\#=6 -\def\source#1#2{ - \def\doc##1##2##3{#2} - \HAdvance\FileNo by 1 - \NextFileName - \immediate\openout15=\FN.tex - \immediate\write16{--- Writing file \FN.tex}% - \SCRIPT - \immediate\write15{\ifx \documentclass\undef - \noexpand \input tex4ht.sty ^^J - \noexpand \Preamble{\HTML#1} ^^J - \noexpand \EndPreamble ^^J^^J\else - \noexpand \documentclass{article} ^^J - \noexpand \usepackage\ARG{tex4ht} ^^J - \noexpand \begin{document} ^^J^^J\fi - \doc{PSALMS (131:1)} - {My heart is not haughty, nor ^^J - mine eyes lofty:} - {neither do I ^^J - exercise myself in great ^^J - matters, or in things too high ^^J - for me.} ^^J^^J - {\\it\\ Example \FileNo\space (out of \examples)} ^^J^^J - \noexpand \end\ifx \documentclass\undef \else - {document}\fi } - \immediate\closeout15 - \Link[\jobname\FileNo\type f.\HTML\space TARGET="X"]{}{}\FileNo\EndLink - \File+{\jobname\FileNo\type f.\HTML} - \HorFrames{*,*} - \Frame[\romannumeral\FileNo\type.txt]{} - \Frame[\romannumeral\FileNo\type.\HTML]{} - \EndPreamble - \Link[\romannumeral\FileNo\type.txt]{}{}outcome\EndLink{} / - \Link[\romannumeral\FileNo\type.\HTML]{}{}source\EndLink{} / - \Link{1}{}pointers\EndLink - \EndFile{\jobname\FileNo\type f.\HTML} -} - -\def\NextFileName{\edef\FN{\romannumeral\FileNo\type}} - -\HAssign\examples=0\LikeRef{count} -\HAssign\FileNo=1 \NextFileName - - \VerFrames{7*,*} - \Frame[\jobname\FileNo\type f.\HTML\space NAME="X"]{} - \Frame[ NAME="Y"]{1} - -\EndPreamble - -\Link[\FN.txt]{}{}source\EndLink{} / -\Link[\FN.\HTML]{}{}outcome\EndLink{} / - -\HAssign\FileNo=0 - -\edef\temp{\noexpand\HPage<\jobname p.\HTML>} -\temp{Pointers}\Link{}{1}~\EndLink - - -Goto to Example: -\source{%,fonts -}{#1^^J^^J#2^^J^^J#3} - \def\HR{^^J\\HCode\\{<HR>}^^J} -\source{%,fonts -}{\HR #1 \HR #2 \HR #3 \HR} -\source{%,fonts -}{{\\bf\\#1}^^J^^J{\\it\\#2}^^J^^J{\\tt\\#3}} -\source{%,fonts -}{\\HPage\\{#1}^^J^^J#2^^J^^J#3^^J^^J - \\ExitHPage\\{}\\EndHPage\\{}} -% -\ifx \documentclass\undef -\source{%,fonts -}{\\Contribute\\{halign}{BORDER<>0 1 < 0 2 - 0 3 > }^^J -\\halign\\{&\Sharp\\cr\\#1^^J&^^J#2^^J&^^J#3\\cr\\}} -\else -\source{%,fonts -}{\string\begin{tabular}{|l|c|r|}^^J -#1^^J&^^J#2^^J&^^J#3^^J -\string\end{tabular}} -\fi -% - - \def\d{\\scriptstyle\\ \\diamondsuit\\ - \\diamondsuit\\ \\diamondsuit\\ } -\ifx \documentclass\undef -\source{%,fonts -}{^^J -\\settabs\\ 6 \\columns\\^^J -\\+\\PSALMS & (131:1)\\cr\\^^J -\\+\\My heart & is not haughty,\\cr\\ ^^J -\\+\\nor mine & eyes lofty:\\cr\\^^J -\\settabs\\ \\+\\ neither & do I exercise & \\cr\\^^J -\\+\\neither & do I exercise \\cr\\^^J -\\+\\ & myself in & great matters, \\cr\\^^J -\\+\\or & in things & too high for me. \\cr\\^^J -} -\else -\source{%,fonts -}{^^J -\\begin\\{tabbing}^^J -XXXXXXXXX \\=\\\\kill\\^^J -PSALMS \\>\\ (131:1) \string\\^^J -My heart \\>\\ is not haughty, \string\\^^J -nor mine \\>\\ eyes lofty:\string\\^^J -neither \\=\\ do I exercise \\=\\ \\kill\\^^J -neither \\>\\ do I exercise \string\\^^J - \\>\\ myself in \\>\\ great matters, \string\\^^J -or \\>\\ in things \\>\\ too high for me. \string\\^^J -\\end\\{tabbing}^^J -} -\fi -% -\source{%,fonts -}{\ifx \documentclass\undef\space - \string\def\string\(\string{\string\Picture+\string{\string}\string - $\string}^^J - \string\def\string\)\string{\string$\string\EndPicture\string}^^J -\fi -\\Picture\\+{ ALIGN="LEFT"}\\vtop\\{\\hsize\\=2in^^J - \\hrule\\\\smallskip\\ #1\\smallskip\\\\hrule\\}\string - \EndPicture^^J #2^^J\\(\\ \d \\)\\ ^^J#3 $\d$} -\EndHPage{} - - \Tag{count}{\FileNo} - -\end{document} -\endinput - diff --git a/Build/source/texk/tex4htk/escontext b/Build/source/texk/tex4htk/escontext deleted file mode 100755 index 25c1421c9be..00000000000 --- a/Build/source/texk/tex4htk/escontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cemspkhtf -s4es - t4ht -f/$1 $4 -cemspk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/eslatex b/Build/source/texk/tex4htk/eslatex deleted file mode 100755 index 82c26086563..00000000000 --- a/Build/source/texk/tex4htk/eslatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,emspk]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,emspk]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,emspk]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cemspkhtf -s4es - t4ht -f/$1 $4 -cemspk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/esmex b/Build/source/texk/tex4htk/esmex deleted file mode 100755 index b3ce722414f..00000000000 --- a/Build/source/texk/tex4htk/esmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cemspkhtf -s4es - t4ht -f/$1 $4 -cemspk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/estex b/Build/source/texk/tex4htk/estex deleted file mode 100755 index cc30b1769d0..00000000000 --- a/Build/source/texk/tex4htk/estex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cemspkhtf -s4es - t4ht -f/$1 $4 -cemspk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/estexi b/Build/source/texk/tex4htk/estexi deleted file mode 100755 index e86138bf344..00000000000 --- a/Build/source/texk/tex4htk/estexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cemspkhtf -s4es - t4ht -f/$1 $4 -cemspk ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/esxelatex b/Build/source/texk/tex4htk/esxelatex deleted file mode 100755 index 78d931ab2ac..00000000000 --- a/Build/source/texk/tex4htk/esxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,emspk]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,emspk]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,emspk]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cemspkhtf -s4es - t4ht -.xdv -f/$1 $4 -cemspk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/esxetex b/Build/source/texk/tex4htk/esxetex deleted file mode 100755 index 61ddf33bc33..00000000000 --- a/Build/source/texk/tex4htk/esxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,emspk}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cemspkhtf -s4es - t4ht -.xdv -f/$1 $4 -cemspk ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/ht.bat b/Build/source/texk/tex4htk/ht.bat deleted file mode 100755 index 57d06517b79..00000000000 --- a/Build/source/texk/tex4htk/ht.bat +++ /dev/null @@ -1,9 +0,0 @@ -%1 %2
-
-%1 %2
-
-%1 %2
-
-tex4ht %2 -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env
-
-t4ht %2 -ewin32/tex4ht.env
diff --git a/Build/source/texk/tex4htk/ht.sh b/Build/source/texk/tex4htk/ht.sh deleted file mode 100755 index 0498e529af7..00000000000 --- a/Build/source/texk/tex4htk/ht.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - $1 $2 - $1 $2 - $1 $2 - tex4ht $2 - t4ht $2 $3 - diff --git a/Build/source/texk/tex4htk/htcontext.bat b/Build/source/texk/tex4htk/htcontext.bat deleted file mode 100755 index 0c0856fe94a..00000000000 --- a/Build/source/texk/tex4htk/htcontext.bat +++ /dev/null @@ -1,3 +0,0 @@ - texexec --arg="ht-1=%2" --use=tex4ht --dvi --nobackend %5 %1
- tex4ht %1 -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env
- t4ht %1 %4 -ewin32/tex4ht.env
diff --git a/Build/source/texk/tex4htk/htcontext.sh b/Build/source/texk/tex4htk/htcontext.sh deleted file mode 100755 index 34d534636eb..00000000000 --- a/Build/source/texk/tex4htk/htcontext.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/htlatex.bat b/Build/source/texk/tex4htk/htlatex.bat deleted file mode 100755 index 4b580982716..00000000000 --- a/Build/source/texk/tex4htk/htlatex.bat +++ /dev/null @@ -1,5 +0,0 @@ - latex %5 \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode %2.a.b.c.\input %1
- latex %5 \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode %2.a.b.c.\input %1
- latex %5 \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode %2.a.b.c.\input %1
- tex4ht %1 -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env
- t4ht %1 %4 -ewin32/tex4ht.env
diff --git a/Build/source/texk/tex4htk/htlatex.sh b/Build/source/texk/tex4htk/htlatex.sh deleted file mode 100755 index 1b8b7cea74a..00000000000 --- a/Build/source/texk/tex4htk/htlatex.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/htmex.bat b/Build/source/texk/tex4htk/htmex.bat deleted file mode 100755 index 2b4764d87ed..00000000000 --- a/Build/source/texk/tex4htk/htmex.bat +++ /dev/null @@ -1,5 +0,0 @@ - mex %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode %2.a.b.c.\input %1
- mex %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode %2.a.b.c.\input %1
- mex %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode %2.a.b.c.\input %1
- tex4ht %1 -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env
- t4ht %1 %4 -ewin32/tex4ht.env
diff --git a/Build/source/texk/tex4htk/htmex.sh b/Build/source/texk/tex4htk/htmex.sh deleted file mode 100755 index b4aa3d9a06e..00000000000 --- a/Build/source/texk/tex4htk/htmex.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/httex.bat b/Build/source/texk/tex4htk/httex.bat deleted file mode 100755 index 5e39fbdaf5c..00000000000 --- a/Build/source/texk/tex4htk/httex.bat +++ /dev/null @@ -1,5 +0,0 @@ - tex %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode %2.a.b.c.\input %1
- tex %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode %2.a.b.c.\input %1
- tex %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode %2.a.b.c.\input %1
- tex4ht %1 -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env
- t4ht %1 %4 -ewin32/tex4ht.env
diff --git a/Build/source/texk/tex4htk/httex.sh b/Build/source/texk/tex4htk/httex.sh deleted file mode 100755 index 44920e72077..00000000000 --- a/Build/source/texk/tex4htk/httex.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/httexi.bat b/Build/source/texk/tex4htk/httexi.bat deleted file mode 100755 index 8263f9d5d24..00000000000 --- a/Build/source/texk/tex4htk/httexi.bat +++ /dev/null @@ -1,6 +0,0 @@ - tex %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode %2.a.b.c.\input %1
- tex %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode %2.a.b.c.\input %1
- tex %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode %2.a.b.c.\input %1
- tex4ht %1 -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env
- t4ht %1 %4 -ewin32/tex4ht.env
-Rem texindex ?
diff --git a/Build/source/texk/tex4htk/httexi.sh b/Build/source/texk/tex4htk/httexi.sh deleted file mode 100755 index 0ce3cb4a589..00000000000 --- a/Build/source/texk/tex4htk/httexi.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/htxelatex.bat b/Build/source/texk/tex4htk/htxelatex.bat deleted file mode 100755 index 95ee8c9d2f6..00000000000 --- a/Build/source/texk/tex4htk/htxelatex.bat +++ /dev/null @@ -1,5 +0,0 @@ - xelatex -no-pdf %5 \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode %2.a.b.c.\input %1
- xelatex -no-pdf %5 \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode %2.a.b.c.\input %1
- xelatex -no-pdf %5 \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode %2.a.b.c.\input %1
- tex4ht -.xdv %1 -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env
- t4ht -.xdv %1 %4 -ewin32/tex4ht.env
diff --git a/Build/source/texk/tex4htk/htxelatex.sh b/Build/source/texk/tex4htk/htxelatex.sh deleted file mode 100755 index 5d0a57d9e67..00000000000 --- a/Build/source/texk/tex4htk/htxelatex.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -.xdv -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/htxetex.bat b/Build/source/texk/tex4htk/htxetex.bat deleted file mode 100755 index 4df12ce146d..00000000000 --- a/Build/source/texk/tex4htk/htxetex.bat +++ /dev/null @@ -1,5 +0,0 @@ - xetex -no-pdf %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode %2.a.b.c.\input %1
- xetex -no-pdf %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode %2.a.b.c.\input %1
- xetex -no-pdf %5 \def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode %2.a.b.c.\input %1
- tex4ht -.xdv %1 -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env
- t4ht -.xdv %1 %4 -ewin32/tex4ht.env
diff --git a/Build/source/texk/tex4htk/htxetex.sh b/Build/source/texk/tex4htk/htxetex.sh deleted file mode 100755 index 3386f1e0be4..00000000000 --- a/Build/source/texk/tex4htk/htxetex.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -.xdv -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/java/DbUtilities.java b/Build/source/texk/tex4htk/java/DbUtilities.java deleted file mode 100644 index 887d22b16be..00000000000 --- a/Build/source/texk/tex4htk/java/DbUtilities.java +++ /dev/null @@ -1,152 +0,0 @@ -package tex4ht; -/**********************************************************/ -/* DbUtilities.java 2008-11-14-02:41 */ -/* Copyright (C) 2008 Eitan M. Gurari */ -/* */ -/* This work may be distributed and/or modified under the */ -/* conditions of the LaTeX Project Public License, either */ -/* version 1.3 of this license or (at your option) any */ -/* later version. The latest version of this license is */ -/* in */ -/* http://www.latex-project.org/lppl.txt */ -/* and version 1.3 or later is part of all distributions */ -/* of LaTeX version 2003/12/01 or later. */ -/* */ -/* This work has the LPPL maintenance status "maintained".*/ -/* */ -/* This Current Maintainer of this work */ -/* is Eitan M. Gurari. */ -/* */ -/* gurari@cse.ohio-state.edu */ -/* http://www.cse.ohio-state.edu/~gurari */ -/**********************************************************/ - - -import org.w3c.dom.*; -public class DbUtilities { - public static void cline(Node dom) { - Node row, entry, para, nextrow; - Node node = dom.getFirstChild(); - if( node != null ){ - row = node.getLastChild(); -while( (row != null) - && ( (entry = row.getLastChild()) != null) - && ( (para = entry.getFirstChild()) != null) - && ( para.getNextSibling() == null) - && ( para.getFirstChild() == null) -){ - node.removeChild(row); - row = node.getLastChild(); -} - - row = node.getFirstChild(); -while( row != null ){ - if( (row.getNodeType() == Node.ELEMENT_NODE) - && ((Element) row).getAttribute("rowsep").equals("") - && !((Element) row).getAttribute("role" ).equals("cline") - && ((nextrow = row.getNextSibling()) != null) - && (nextrow.getNodeType() == Node.ELEMENT_NODE) - && ((Element) nextrow).getAttribute("role" ).equals("cline") - ){ - boolean compatible = true; -Node entry1 = row.getFirstChild(); -Node entry2 = nextrow.getFirstChild(); -while( true ){ - if( (entry1 == null) || (entry2 == null) ){ break; } - int range; - try{ - range = - Integer.parseInt( ((Element) entry1).getAttribute("nameend") ) - - - Integer.parseInt( ((Element) entry1).getAttribute("namest") ) - + - 1; - } catch( Exception e){ range = 1;} - if( range > 1 ){ - String rowsep = ((Element) entry2).getAttribute("rowsep"); - while( --range > 0 ){ - entry2 = entry2.getNextSibling(); - if( entry2 == null ){ - compatible = false; - break; - } - String value = ((Element) entry2).getAttribute("rowsep"); - if( !value.equals( rowsep ) ){ - compatible = false; - break; - } - } - } - if( !compatible ){ break; } - entry1 = entry1.getNextSibling(); - entry2 = entry2.getNextSibling(); -} - - if( compatible ){ - entry1 = row.getFirstChild(); -entry2 = nextrow.getFirstChild(); -while( true ){ - if( (entry1 == null) || (entry2 == null) ){ break; } - int range; - try{ - range = - Integer.parseInt( ((Element) entry1).getAttribute("nameend") ) - - - Integer.parseInt( ((Element) entry1).getAttribute("namest") ) - + - 1; - } catch( Exception e){ range = 1;} - ((Element) entry1).setAttribute( - "rowsep", - ((Element) entry2).getAttribute("rowsep") ); - while( --range > 0 ){ - entry2 = entry2.getNextSibling(); - } - entry1 = entry1.getNextSibling(); - entry2 = entry2.getNextSibling(); -} - - node.removeChild(nextrow); - } - } - row = row.getNextSibling(); -} - - } -} - - public static void para(Node dom) { - Node pNode = dom.getFirstChild(); - if( pNode.hasChildNodes() ){ - Node child = pNode.getFirstChild(); - if( child != null ){ - if( (child.getNodeType() == Node.TEXT_NODE) - && - ((Text) child).getWholeText().trim().equals("") - ){ - pNode.removeChild( child ); - } } } - if( pNode.hasChildNodes() ){ - Node child = pNode.getLastChild(); - if( child != null ){ - if( (child.getNodeType() == Node.TEXT_NODE) - && - ((Text) child).getWholeText().trim().equals("") - ){ - pNode.removeChild( child ); - } } } - if( pNode.hasChildNodes() ){ - Node child = pNode.getFirstChild(); - if( (child != null) - && (child.getNextSibling() == null) - && (child.getNodeType() == Node.TEXT_NODE) - ){ - String txt = ((Text) child).getWholeText(); - String trm = txt.trim(); - if( !trm.equals(txt) ){ - ((Text)child).replaceWholeText(trm); - } } } -} - -} - diff --git a/Build/source/texk/tex4htk/java/GroupMn.java b/Build/source/texk/tex4htk/java/GroupMn.java deleted file mode 100644 index c54d051c0eb..00000000000 --- a/Build/source/texk/tex4htk/java/GroupMn.java +++ /dev/null @@ -1,77 +0,0 @@ -package tex4ht; -import org.xml.sax.helpers.*; -import org.xml.sax.*; -import java.io.PrintWriter; - -public class GroupMn extends XMLFilterImpl { - PrintWriter out = null; - boolean inMn = false; - String ns; - int level = -1; - public GroupMn( PrintWriter out, PrintWriter log, boolean trace){ - this.out = out; - } - public void startElement(String ns, String sName, - String qName, Attributes attr) { - level++; - try{ - if( inMn ){ - if( level == 0 ){ if( !qName.equals( "mn" ) ){ - if( qName.equals( "mo" ) ){ - String cls = attr.getValue( "class" ); - if( (cls == null) || !cls.equals("MathClass-punc") ){ - inMn = false; - super.endElement(ns, "mn-group", "mn-group"); - } - } else { - inMn = false; - super.endElement(ns, "mn-group", "mn-group"); -} } - } - } else { if( qName.equals( "mn" ) ){ - inMn = true; level = 0; - Attributes att = new AttributesImpl(); - super.startElement(ns, "mn-group", "mn-group", att); - this.ns = ns; -} else if( qName.equals( "mo" ) ){ - String cls = attr.getValue( "class" ); - if( (cls != null) && cls.equals("MathClass-punc") ){ - inMn = true; level = 0; - Attributes att = new AttributesImpl(); - super.startElement(ns, "mn-group", "mn-group", att); - this.ns = ns; -} } - } - super.startElement(ns, sName, qName, attr); - } catch( Exception e ){ - System.out.println( "--- GroupMn Error 1 --- " + e); - } - } - public void endElement(String ns, String sName, String qName){ - try{ - if( level < 0) { - if( inMn ){ - inMn = false; - super.endElement(ns, "mn-group", "mn-group"); -} - - } - super.endElement(ns, sName, qName); - } catch( Exception e ){ - System.out.println( "--- GroupMn Error 2 --- " + e); - } - level--; - } - public void characters(char[] ch, int start, int length){ - try{ - if ( inMn && (level < 0) ) { - String s = new String(ch, start, length); - if (!s.trim().equals("")) { - inMn = false; - super.endElement(ns, "mn-group", "mn-group"); - } } - super.characters(ch, start, length); - } catch( Exception e ){ - System.out.println( "--- GroupMn Error 3 --- " + e); -} } } - diff --git a/Build/source/texk/tex4htk/java/HtJsml.java b/Build/source/texk/tex4htk/java/HtJsml.java deleted file mode 100644 index 188cdee85f5..00000000000 --- a/Build/source/texk/tex4htk/java/HtJsml.java +++ /dev/null @@ -1,351 +0,0 @@ -package tex4ht; -import org.w3c.dom.*; -public class HtJsml { - private static void insertLevelPrefix(Node node, int level){ - if( level == 0 ){ return; } - if (node.getNodeType() == Node.ELEMENT_NODE) { - if( node.getNodeName().equals( "level" ) ){ - Node attr = node.getAttributes().getNamedItem("prefix"); -if( attr != null ){ - String prefix = attr.getNodeValue(); - String s = ""; - for(int j=0; j<level; j++){ - s += prefix + " "; - } - ((org.w3c.dom.Element) node).setAttribute( "depth", ""+level); - Node child = node.getFirstChild(); - if( child != null ){ - node.insertBefore( dom.createTextNode(s), child ); -} } - - } else { - NodeList children = node.getChildNodes(); - for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - insertLevelPrefix(child, level); -} } } } -private static void setContinuedNote(Node node){ - if (node.getNodeType() == Node.ELEMENT_NODE) { - if( node.getNodeName().equals( "level" ) ){ - Node attr = node.getAttributes().getNamedItem("continued"); -if (attr != null) { - node = node.getFirstChild(); - if( node != null ){ - ((org.w3c.dom.Text) node).setData( attr.getNodeValue() ); -} } - - } else { - NodeList children = node.getChildNodes(); - for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - setContinuedNote(child); -} } } } - - private static Document dom; -public static void mnGroup(Node d) { - dom = (Document) d; - setMnGroup(dom.getFirstChild()); -} -private static void setMnGroup(Node node) { - if( node.getNodeName().equals( "mn-group" ) ){ - boolean bool = false; - NodeList children = node.getChildNodes(); -int n = children.getLength(); -char [] digit = new char[n]; -for (int i = 0; i < n; i++) { - Node child = children.item(i).getFirstChild(); - if( child == null ){ - digit[i] = 'x'; - } else if( child.getNodeType() != Node.TEXT_NODE ){ - digit[i] = 'x'; - } else { - String s = child.getNodeValue(); - if( s.length() != 1 ){ - digit[i] = 'x'; - } else { - char ch = s.charAt(0); - if( (ch >= '0') && (ch <= '9') ){ - digit[i] = '0'; bool = true; - } else if( (ch == '.') || (ch == ',') ){ digit[i] = ch; } - else { digit[i] = 'x';} -} } } - - if( bool ){ - bool = false; -for (int i = 0; i < n; i++) { - if( digit[i] == '.' ){ - for (; i < n; i++) { - if( digit[i] == ',' ){ - bool = true; break; - } } - break; -} } - - if( !bool ){ - for (int i = 0; i < n; i++) { - if( digit[i] == ',' ){ - if( ( ((i+3) >= n) - || (digit[i+1] != '0') - || (digit[i+2] != '0') - || (digit[i+3] != '0') - ) - || - ( - ((i+4) < n) && (digit[i+4] == '0') - ) - || - ( - (i>3) && (digit[i-4] == '0') - ) - ){ bool = true; break; - } else { i += 3; } -} } } - - if( bool ){ - for (int i = 0; i < n; i++) { - if( digit[i] == ',' ){ digit[i] = 'x'; } -} } - - bool = false; -for (int i = 0; i < n; i++) { - if( (digit[i] == 'x') - || (digit[i] == ',') ){ bool = false; } - else if( digit[i] == '.' ){ - if( bool ){ - for (int j = 0; j < n; j++) { - if( (digit[j] == '.') || (digit[j] == ',') ){ - digit[j] = 'x'; - } } - break; - } - bool = true; -} } - - if( digit[n-1] == '.' ){ digit[n-1] = 'x'; } - - } - Node parent = node.getParentNode(); -Element g = dom.createElement( "mn-group-s" ); -Element cur = dom.createElement( "mn-group" ); -for(int i=0; i<n; i++ ){ - Node child = node.getFirstChild(); - node.removeChild( child ); - if( digit[i] == 'x' ){ - if( cur.hasChildNodes() ){ g.appendChild( cur ); } - g.appendChild( child ); - cur = dom.createElement( "mn-group" ); - } else { - cur.appendChild( child ); -} } -if( cur.hasChildNodes() ){ g.appendChild( cur ); } -parent.replaceChild( g, node ); - - } else if (node.hasChildNodes()) { - NodeList children = node.getChildNodes(); - for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - setMnGroup(child); -} } } } - - public static void fracLevel(Node d) { - dom = (Document) d; - setFracLevel(dom.getFirstChild(), 0); -} -private static int setFracLevel(Node node, int cont) { - int level = 0; - if (node.hasChildNodes()) { - String ndName = node.getNodeName(); - int prevCont = cont; - String clValue = null; - if (ndName.equals("mfrac")) { - if (node.hasAttributes()) { - Node cl = node.getAttributes().getNamedItem("class"); - if (cl != null) { clValue = cl.getNodeValue(); } -} - - if( (clValue != null) - && clValue.equals("continued-mfrac") ) { - cont = 2; -} else { cont--; } - - } - NodeList children = node.getChildNodes(); -int max = 0; -for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - int d = setFracLevel(child, - cont -); - if (d > max) { max = d; } -} } -level += max; - - if( ndName.equals("msub") - || ndName.equals("msup") - || ndName.equals("msubsup") -) { - return 0; -} - - if (ndName.equals("mfrac")) { - if( (clValue != null) && clValue.equals("word-frac") -) { - return 0; -} - - if( cont > 0 ){ - if ( prevCont == 0 ){ - Node child = node.getFirstChild(); -if (child.getNodeType() == Node.ELEMENT_NODE) { - Node cls = child.getAttributes() .getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if ( clsName.equals("begin-end")) { - setContinuedNote(child); -} } } - - } - Node child = node.getLastChild(); -if (child.getNodeType() == Node.ELEMENT_NODE) { - Node cls = child.getAttributes() .getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if ( clsName.equals("begin-end")) { - node.removeChild( child ); -} } } - - level = 0; - } else if ( prevCont > 0 ){ - Node child = node.getLastChild(); -if (child.getNodeType() == Node.ELEMENT_NODE) { - Node cls = child.getAttributes() .getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if ( clsName.equals("begin-end")) { - setContinuedNote(child); -} } } - - level = 0; - } else - if( level > 0 ){ - for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - Node cls = child.getAttributes() - .getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if (clsName.equals("begin-end")) { - insertLevelPrefix(child, level); -} } } } - - } - level++; - } } - return level; -} - - public static void scriptLevel(Node dom) { - setScriptLevel(dom.getFirstChild(), ""); -} -private static void setScriptLevel(Node node, String prefix) { - String clName = null; - if (node.hasChildNodes()) { - if (node.hasAttributes()) { - Node cl = node.getAttributes().getNamedItem("class"); - if (cl != null) { - clName = cl.getNodeValue(); - if( clName.equals("mrow-sub") - || - clName.equals("mrow-super") - ){ - if( !prefix.equals("") ){ - Node child = node.getFirstChild(); -if( (child.getNodeType() == Node.ELEMENT_NODE) - && - child.hasAttributes() -){ - Node cls = child.getAttributes().getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if ( clsName.equals("begin-script") - || - clsName.equals("mid-script") - ) { - child = child.getFirstChild(); - String s = child.getNodeValue(); - ((org.w3c.dom.Text) child).setData( prefix + s ); -} } } - -} -if( clName.equals( "mrow-sub" ) ){ - prefix += " sub "; -} else if( clName.equals( "mrow-super" ) ){ - prefix += " super "; -} - - } } } - String ndName = node.getNodeName(); - if( - ndName.equals("msqrt") - || - ndName.equals("mroot") - ){ prefix = ""; } - NodeList children = node.getChildNodes(); -for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - setScriptLevel(child, prefix); -} } - -} } - - public static void rootLevel(Node d) { - dom = (Document) d; - setRootLevel(d.getFirstChild()); -} -private static int setRootLevel( Node node ){ - int level = 0; -// String clName = null; - if (node.hasChildNodes()) { - NodeList children = node.getChildNodes(); -int max = 0; -for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - int d = setRootLevel(child); - if( d > max ){ max = d; } -} } -level += max; - - String ndName = node.getNodeName(); - if( ndName.equals("msub") || ndName.equals("msup") || - ndName.equals("msubsup") -) { - return 0; -} - - if( ndName.equals("msqrt") || ndName.equals("mroot") ){ - for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - Node cls = child.getAttributes() - .getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if( clsName.equals("begin-root") - || clsName.equals("mid-root") - || clsName.equals("end-root") - ){ - insertLevelPrefix(child, level); -} } } } - - level++; - } } - return level; -} - -} - diff --git a/Build/source/texk/tex4htk/java/HtSpk.java b/Build/source/texk/tex4htk/java/HtSpk.java deleted file mode 100644 index 1f0e9c0a0bd..00000000000 --- a/Build/source/texk/tex4htk/java/HtSpk.java +++ /dev/null @@ -1,211 +0,0 @@ -package tex4ht; -import org.w3c.dom.*; -public class HtSpk { - public static void fracLevel(Node dom) { - setFracLevel(dom.getFirstChild(), 0); -} -private static int setFracLevel(Node node, int cont) { - int level = 0; - String clName = null; - if (node.hasChildNodes()) { - if (node.hasAttributes()) { - Node cl = node.getAttributes().getNamedItem("class"); - if (cl != null) { clName = cl.getNodeValue(); } - } - NodeList children = node.getChildNodes(); -int max = 0; -for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - int d = setFracLevel(child, - (clName != null) && - clName.equals("continuous-mfrac")? - 2 : - ((clName != null) && - clName.equals("continuous-mfrac")? - (cont-1) : cont) - ); - if (d > max) { max = d; } -} } -level += max; - - if( clName != null ){ - if( clName.equals("msub") || clName.equals("msup") || - clName.equals("msubsup") -) { - return 0; -} - - if( clName.equals("continuous-mfrac") ) { - if( cont > 0 ){ - Node child = node.getLastChild(); -if (child.getNodeType() == Node.ELEMENT_NODE) { - Node cls = child.getAttributes() .getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if ( clsName.equals("begin-end")) { - node.removeChild( child ); -} } } - - } else { for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - Node cls = child.getAttributes() - .getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if ( clsName.equals("begin-end")) { - child = child.getFirstChild(); - String s = child.getNodeValue(); - s = s.replaceFirst("begin", "begin continued"); - s = s.replaceFirst("end", "end continued"); - ((org.w3c.dom.Text) child).setData(s); -} } } } - } - return 0; -} - - if (clName.equals("mfrac")) { - if( cont > 0 ){ - Node child = node.getLastChild(); -if (child.getNodeType() == Node.ELEMENT_NODE) { - Node cls = child.getAttributes() .getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if ( clsName.equals("begin-end")) { - node.removeChild( child ); -} } } - - } else if( level > 0 ){ - for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - Node cls = child.getAttributes() - .getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if (clsName.equals("begin-end")) { - child = child.getFirstChild(); - String s = child.getNodeValue(); - String bg = "", ov = "", en = ""; - for(int j=0; j<level; j++){ - bg += " begin "; ov += " over "; en += " end "; - } - s = s.replaceFirst("begin", bg + "begin"); - s = s.replaceFirst("over", ov + "over"); - s = s.replaceFirst("end", en + "end"); - ((org.w3c.dom.Text) child).setData(s); -} } } } - - } - level++; - } } } - return level; -} - - public static void scriptLevel(Node dom) { - setScriptLevel(dom.getFirstChild(), ""); -} -private static void setScriptLevel(Node node, String prefix) { - String clName = null; - if (node.hasChildNodes()) { - if (node.hasAttributes()) { - Node cl = node.getAttributes().getNamedItem("class"); - if (cl != null) { - clName = cl.getNodeValue(); - if( clName.equals("mrow-sub") - || - clName.equals("mrow-super") - ){ - if( !prefix.equals("") ){ - Node child = node.getFirstChild(); -if( (child.getNodeType() == Node.ELEMENT_NODE) - && - child.hasAttributes() -){ - Node cls = child.getAttributes().getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if ( clsName.equals("begin-script") - || - clsName.equals("mid-script") - ) { - child = child.getFirstChild(); - String s = child.getNodeValue(); - ((org.w3c.dom.Text) child).setData( prefix + s ); -} } } - -} -if( clName.equals( "mrow-sub" ) ){ prefix += " sub "; } -else -if( clName.equals( "mrow-super" ) ){ prefix += " super "; } - - } else if( - clName.equals("msqrt") - ){ prefix = ""; } - } } - NodeList children = node.getChildNodes(); -for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - setScriptLevel(child, prefix); -} } - -} } - - public static void rootLevel(Node dom) { - setRootLevel(dom.getFirstChild()); -} -private static int setRootLevel( Node node ){ - int level = 0; - String clName = null; - if (node.hasChildNodes()) { - if (node.hasAttributes()) { - Node cl = node.getAttributes().getNamedItem("class"); - if (cl != null) { clName = cl.getNodeValue(); } - } - NodeList children = node.getChildNodes(); -int max = 0; -for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - int d = setRootLevel(child); - if( d > max ){ max = d; } -} } -level += max; - - if( clName != null ){ - if( clName.equals("msub") || clName.equals("msup") || - clName.equals("msubsup") -) { - return 0; -} - - if( clName.equals("msqrt") || clName.equals("root") ){ - for (int i = 0; i < children.getLength(); i++) { - Node child = children.item(i); - if (child.getNodeType() == Node.ELEMENT_NODE) { - Node cls = child.getAttributes() - .getNamedItem("class"); - if (cls != null) { - String clsName = cls.getNodeValue(); - if( clsName.equals("begin-root") - || clsName.equals("mid-root") - || clsName.equals("end-root") - ){ - child = child.getFirstChild(); - String s = child.getNodeValue(); - String nested = ""; - for(int j=0; j<level; j++){ - nested += " nested "; - } - ((org.w3c.dom.Text) child).setData( nested + s); -} } } } - - level++; - } } } - return level; -} - -} - diff --git a/Build/source/texk/tex4htk/java/JsmlFilter.java b/Build/source/texk/tex4htk/java/JsmlFilter.java deleted file mode 100644 index 16cbf4fbad4..00000000000 --- a/Build/source/texk/tex4htk/java/JsmlFilter.java +++ /dev/null @@ -1,49 +0,0 @@ -package tex4ht; -import org.xml.sax.helpers.*; -import org.xml.sax.*; -import java.io.PrintWriter; - -public class JsmlFilter extends XMLFilterImpl { - PrintWriter out = null; - public JsmlFilter( PrintWriter out, PrintWriter log, boolean trace ){ - this.out = out; - } - public void startElement(String ns, String sName, - String qName, Attributes attr) { - try{ - if( qName.equals( "p" ) -|| qName.equals( "h2" ) -|| qName.equals( "h3" ) -|| qName.equals( "h4" ) -|| qName.equals( "ul" ) -|| qName.equals( "ol" ) -|| qName.equals( "li" ) -|| qName.equals( "dd" ) -|| qName.equals( "dl" ) - ){ - Attributes att = new AttributesImpl(); - super.startElement(ns, "PARA", "PARA", att); - } - super.startElement(ns, sName, qName, attr); - } catch( Exception e ){ - System.out.println( "--- JsmlFilter Error 1 --- " + e); - } } - public void endElement(String ns, String sName, String qName){ - try{ - super.endElement(ns, sName, qName); - if( qName.equals( "p" ) -|| qName.equals( "h2" ) -|| qName.equals( "h3" ) -|| qName.equals( "h4" ) -|| qName.equals( "ul" ) -|| qName.equals( "ol" ) -|| qName.equals( "li" ) -|| qName.equals( "dd" ) -|| qName.equals( "dl" ) - ){ - super.endElement(ns, "PARA", "PARA"); - } - } catch( Exception e ){ - System.out.println( "--- JsmlFilter Error 2 --- " + e); -} } } - diff --git a/Build/source/texk/tex4htk/java/JsmlMathBreak.java b/Build/source/texk/tex4htk/java/JsmlMathBreak.java deleted file mode 100644 index d0a241b97f3..00000000000 --- a/Build/source/texk/tex4htk/java/JsmlMathBreak.java +++ /dev/null @@ -1,51 +0,0 @@ -package tex4ht; -/* -JsmlMathBreak.java (2007-09-01-14:10) - -*/ -import xtpipes.XtpipesUni; -import org.xml.sax.*; -import org.xml.sax.helpers.DefaultHandler; -import java.io.*; -import java.lang.reflect.*; -import java.util.HashMap; - -public class JsmlMathBreak extends DefaultHandler { - PrintWriter out = null; - boolean delete = false; - public JsmlMathBreak(PrintWriter out, - HashMap<String,Object> scripts, - Method method, PrintWriter log, boolean trace) { - this.out = out; - } - public void characters(char[] ch, int start, int length) { - String s = XtpipesUni.toUni(ch, start, length, "<>&"); - out.print( s ); - if( !s.trim().equals("") ){ - delete = false; - } } - public void startElement(String ns, String sName, - String qName, - Attributes atts) { - if( !( delete && qName.equals("BREAK") ) ){ - String s = "<" + qName + "\n"; - for (int i = 0; i < atts.getLength(); i++) { - String name = atts.getQName(i); - if (name != "xmlns") { - s += (" " + name + "=\"" - + XtpipesUni.toUni(atts.getValue(i), "<>&\"") - + "\""); - } } - if( qName.equals( "BREAK" ) ){ - s += "/"; - delete = true; - } - s += ">"; - out.print(s); - } } - public void endElement(String ns, String sName, String qName) { - if( !qName.equals( "BREAK" ) ){ - String s = "</" + qName + ">"; - out.print(s); -} } } - diff --git a/Build/source/texk/tex4htk/java/OoFilter.java b/Build/source/texk/tex4htk/java/OoFilter.java deleted file mode 100644 index a4d4a0f01c6..00000000000 --- a/Build/source/texk/tex4htk/java/OoFilter.java +++ /dev/null @@ -1,269 +0,0 @@ -package tex4ht; -/**********************************************************/ -/* OoFilterImpl.java 2009-03-11-03:09 */ -/* Copyright (C) 2006--2009 Eitan M. Gurari */ -/* */ -/* This work may be distributed and/or modified under the */ -/* conditions of the LaTeX Project Public License, either */ -/* version 1.3 of this license or (at your option) any */ -/* later version. The latest version of this license is */ -/* in */ -/* http://www.latex-project.org/lppl.txt */ -/* and version 1.3 or later is part of all distributions */ -/* of LaTeX version 2003/12/01 or later. */ -/* */ -/* This work has the LPPL maintenance status "maintained".*/ -/* */ -/* This Current Maintainer of this work */ -/* is Eitan M. Gurari. */ -/* */ -/* gurari@cse.ohio-state.edu */ -/* http://www.cse.ohio-state.edu/~gurari */ -/**********************************************************/ - -import java.util.*; -import org.xml.sax.helpers.*; -import org.xml.sax.*; -import java.io.PrintWriter; -import java.io.BufferedReader; -import java.io.FileReader; - -public class OoFilter extends XMLFilterImpl { - PrintWriter out = null; - public OoFilter( PrintWriter out, - PrintWriter log, boolean trace ){ - this.out = out; - } - public void startElement(String ns, String sName, - String qName, Attributes attr) { - if( qName.equals( "draw:frame" ) ){ - String name = attr.getValue("draw:name"); -if( (name != null) - && (attr.getValue("svg:width") == null) - && (attr.getValue("svg:hieght") == null) -){ - java.awt.Image image = new javax.swing.ImageIcon(name).getImage(); - int width = image.getWidth(null); - int height = image.getHeight(null); - if( (width>0) && (height>0) ){ - org.xml.sax.helpers.AttributesImpl attrs = - new org.xml.sax.helpers.AttributesImpl( attr ); - attrs.addAttribute(null, "svg:width", "svg:width", - "String", (width * 72 / 110) + "pt"); - attrs.addAttribute(null, "svg:width", "svg:height", - "String", (height * 72 / 110) + "pt"); - attr = attrs; -} } - - } - try{ - super.startElement(ns, sName, qName, attr); - } catch( Exception e ){ - System.err.println( "--- OoFilter Error 1 --- " + e); - } } - public void processingInstruction(String target, String fileName) { - if( target.equals("tex4ht-lg") ){ - fileName = fileName.trim(); - if( fileName.replaceAll(" ","").startsWith("file=") ){ - HashMap <String,HashMap <String,String>> map - = new HashMap<String,HashMap <String,String>>(); -String [] font_css_base = {"" , "-", ""}; -String [] font_css_mag = {"x-x-", ""}; -int base_font_size = 10; -int second; - - int length = fileName.length(); -int loc = fileName.indexOf(fileName.charAt(length-1)); -fileName = fileName.substring(loc+1,length-1); -try{ - String s = ""; - FileReader fr = new FileReader( fileName ); - BufferedReader in = new BufferedReader( fr ); - try{ - String key = "", body = ""; - while( (s=in.readLine()) != null ){ - if( s.startsWith("htfcss: ") ){ - s = s.substring(8); - int idx = s.indexOf(' '); - if( idx == 0 ){ - body += s; - } else { - body = body.trim(); -if( body.startsWith( "@media " ) ){ - body = body.substring(7).trim(); - if( body.startsWith("print ") ){ - body = body.substring(6).trim(); - } else { key = ""; } -} -if( !key.equals("") ){ - String [] property = body.split(";"); - for( int i=0; i<property.length; i++ ){ - if( !property[i].trim().equals("") ){ - int indx = property[i].indexOf(":"); - if( indx != -1 ){ - String name = property[i].substring(0,indx).trim(); - String value = (property[i]+' ').substring(indx+1).trim(); - if( !name.equals("") && !value.equals("") ){ - if( map.containsKey(key) ){ - HashMap <String,String> entry = map.get(key); - entry.put(name,value); -} -else -{ - HashMap <String,String> entry = new HashMap <String,String>(); - entry.put(name,value); - map.put(key,entry); -} - -} } } } } - - if( idx == -1 ){ - key = s; body = ""; - } else { - key = s.substring(0,idx); - body = s.substring(idx); - } } } } - body = body.trim(); -if( body.startsWith( "@media " ) ){ - body = body.substring(7).trim(); - if( body.startsWith("print ") ){ - body = body.substring(6).trim(); - } else { key = ""; } -} -if( !key.equals("") ){ - String [] property = body.split(";"); - for( int i=0; i<property.length; i++ ){ - if( !property[i].trim().equals("") ){ - int indx = property[i].indexOf(":"); - if( indx != -1 ){ - String name = property[i].substring(0,indx).trim(); - String value = (property[i]+' ').substring(indx+1).trim(); - if( !name.equals("") && !value.equals("") ){ - if( map.containsKey(key) ){ - HashMap <String,String> entry = map.get(key); - entry.put(name,value); -} -else -{ - HashMap <String,String> entry = new HashMap <String,String>(); - entry.put(name,value); - map.put(key,entry); -} - -} } } } } - -} catch(java.lang.NumberFormatException e){ - System.err.println( "--- OoFilter Error 3 --- Improper record: " + s); -} - - in.close(); -fr = new FileReader( fileName ); -in = new BufferedReader( fr ); - - in.close(); -fr = new FileReader( fileName ); -in = new BufferedReader( fr ); - try{ - while( (s=in.readLine()) != null ){ - if( s.startsWith("Font_css_base: ") ){ - int idx = s.indexOf("Font_css_mag: "); - if( idx != -1 ){ - String [] pattern = s.substring(15,idx).trim().split("%s"); - if( pattern.length == 3 ){ font_css_base = pattern; } - pattern = (s+' ').substring(idx).trim().split("%s"); - if( pattern.length == 2 ){ font_css_mag = pattern; } - } } } -} catch(Exception e){ - System.err.println( "--- OoFilter Error 4 --- Improper record: " + s); -} - - in.close(); -fr = new FileReader( fileName ); -in = new BufferedReader( fr ); - try{ - while( (s=in.readLine()) != null ){ - if( s.startsWith("Font_Size:") ){ - base_font_size = Integer.parseInt( s.substring(10).trim() ); - } } -} catch(java.lang.NumberFormatException e){ - System.err.println( "--- OoFilter Error 5 --- Improper record: " + s); -} - - in.close(); -fr = new FileReader( fileName ); -in = new BufferedReader( fr ); - try{ - while( (s=in.readLine()) != null ){ - if( s.startsWith("Font(") ){ - String [] match = s.split("\""); - match[1] = match[1].trim(); - match[2] = match[3].trim(); - match[3] = match[5].trim(); - match[4] = match[7].trim(); - { - if( match[3].replaceAll("[0-9]","").equals("") ){ - second = (int) - ( Integer.parseInt( match[3] ) - * Long.parseLong( match[4] ) - / base_font_size - ); - while( second > 700 ){ second /= 10; } - } else { second = 100; } - if( (int) ( Double.parseDouble(match[2]) - / Long.parseLong(match[4]) - + 0.5 - ) - == base_font_size -){ - second = 100; -}; - -} - - HashMap <String,String> entry = map.get(match[1]); -if( (entry != null) || (second < 98) || (second > 102) ){ - String styleName = font_css_base[0] + match[1] + - font_css_base[1] + match[2] + - font_css_base[2]; - if( !match[4].equals("100") ){ - styleName += font_css_mag[0] + match[4] + font_css_mag[1]; - } - org.xml.sax.helpers.AttributesImpl attr = - new org.xml.sax.helpers.AttributesImpl(); -attr.addAttribute("", "style:name", "style:name", "String", styleName); -attr.addAttribute("", "style:family", "style:family", "String", "text"); - - super.startElement(null, "style:style", "style:style", attr); - attr = new org.xml.sax.helpers.AttributesImpl(); -if( entry != null ){ - Object [] name = entry.keySet().toArray(); - for(int i=0; i < name.length; i++){ - String value = entry.get(name[i]); - attr.addAttribute("", "fo:" + (String) name[i], - "fo:" + (String) name[i], - "String", value); -} } -if( (second < 98) || (second > 102) ){ - attr.addAttribute("", "fo:font-size", "fo:font-size", - "String", (second / 10.0) + "pt"); -} - - super.startElement(null, "style:text-properties", - "style:text-properties", attr); - super.endElement(null, "style:text-properties", - "style:text-properties"); - super.endElement(null, "style:style", "style:style"); -} - - } } -} catch(Exception e){ - System.err.println( "--- OoFilter Error 6 --- Improper record: " + s); -} - -} catch(Exception e){ - System.err.println( "--- OoFilter Error 2 --- " + e); -} - - } } } -} - diff --git a/Build/source/texk/tex4htk/java/OoUtilities.java b/Build/source/texk/tex4htk/java/OoUtilities.java deleted file mode 100644 index db8dbd0012b..00000000000 --- a/Build/source/texk/tex4htk/java/OoUtilities.java +++ /dev/null @@ -1,276 +0,0 @@ -package tex4ht; -/**********************************************************/ -/* OoUtilities.java 2009-03-11-03:09 */ -/* Copyright (C) 2006--2009 Eitan M. Gurari */ -/* */ -/* This work may be distributed and/or modified under the */ -/* conditions of the LaTeX Project Public License, either */ -/* version 1.3 of this license or (at your option) any */ -/* later version. The latest version of this license is */ -/* in */ -/* http://www.latex-project.org/lppl.txt */ -/* and version 1.3 or later is part of all distributions */ -/* of LaTeX version 2003/12/01 or later. */ -/* */ -/* This work has the LPPL maintenance status "maintained".*/ -/* */ -/* This Current Maintainer of this work */ -/* is Eitan M. Gurari. */ -/* */ -/* gurari@cse.ohio-state.edu */ -/* http://www.cse.ohio-state.edu/~gurari */ -/**********************************************************/ - - -import org.w3c.dom.*; -public class OoUtilities { - public static void mtable(Node dom) { - Node mtr, mtd, d; - int cols = 0; - Node node = dom.getFirstChild(); - if (node.hasChildNodes()) { - mtr = node.getLastChild(); - while( mtr != null){ - if( mtr.getNodeType() == Node.ELEMENT_NODE ){ - if (mtr.hasChildNodes()) { - mtd = mtr.getLastChild(); - int count = 0; - while( mtd != null){ - if( mtd.getNodeType() == Node.ELEMENT_NODE ){ - count++; - d = mtd.getFirstChild(); - if( d != null ){ - boolean remove = true; -for(Node i=d; i!=null; i=i.getNextSibling() ){ - if( (i.getNodeType() == Node.ELEMENT_NODE) - && !i.getNodeName().equals("math:mspace") ) { - remove = false; break; -} } -if( remove ){ - while( d != null ){ - mtd.removeChild(d); - d = mtd.getFirstChild(); -} } - - } - if( d != null ){ - if( - (d.getNodeType() == Node.TEXT_NODE) - && d.getNodeValue().trim().equals("") -){ - d.getParentNode().removeChild(d); - d = null; -} - - } } - d = mtd; - mtd = mtd.getPreviousSibling(); - if( - (d.getNodeType() == Node.TEXT_NODE) - && d.getNodeValue().trim().equals("") -){ - d.getParentNode().removeChild(d); - d = null; -} - - if( (d != null) - && (d.getNodeType() == Node.ELEMENT_NODE) ){ - if( (d.getNextSibling()==null) - && (d.getFirstChild()==null) ){ - d.getParentNode().removeChild(d); - d = null; -} - - if( d == null ){ count--; } - } } - if( count > cols ){ cols = count; } - } } - d = mtr; - mtr = mtr.getPreviousSibling(); - if( - (d.getNodeType() == Node.TEXT_NODE) - && d.getNodeValue().trim().equals("") -){ - d.getParentNode().removeChild(d); - d = null; -} - - if( d != null ){ - if( (d.getNextSibling()==null) - && (d.getFirstChild()==null) ){ - d.getParentNode().removeChild(d); - d = null; -} - -} } } - - if (node.hasChildNodes()) { - mtr = node.getFirstChild(); - while( mtr != null){ - if( mtr.getNodeType() == Node.ELEMENT_NODE ){ - int count = 0; - if (mtr.hasChildNodes()) { - mtd = mtr.getFirstChild(); - while( mtd != null){ - if( mtd.getNodeType() == Node.ELEMENT_NODE ){ - mtr.insertBefore( ((Document) dom).createTextNode("\n"), mtd ); - - count++; - } - mtd = mtd.getNextSibling(); - } - } - if( count < cols ){ - for(int i = count; i < cols; i++){ - mtr.appendChild( ((Document) dom).createElement("math:mtd") ); -} - - } } - mtr = mtr.getNextSibling(); -} } - -} - - public static void table(Node dom) { - Node tblRow, tblCell, d; -// int cols = 0; - Node node = dom.getFirstChild(); - - tblRow = node.getLastChild(); -while( (tblRow != null) -// && (tblRow.getNodeType() == Node.TEXT_NODE) -// && tblRow.getNodeValue().trim().equals("") - && tblRow.getTextContent().trim().equals("") -){ - node.removeChild(tblRow); - tblRow = node.getLastChild(); -} - - if( (tblRow != null) && (tblRow.getPreviousSibling() != null) ){ - boolean bool = false; -if( tblRow.getNodeName().equals("table:table-row") - && tblRow.hasAttributes() -){ - NamedNodeMap attributes = tblRow.getAttributes(); - Node styleAttr = attributes.getNamedItem( "table:style-name" ); - String style = (styleAttr==null)? null - : styleAttr.getNodeValue(); - if( (style != null) - && ( style.equals("hline-row") - || style.equals("cline-row") - ) - ){ - bool = true; -} } - - if( !bool ){ - tblCell = tblRow.getFirstChild(); -while( tblCell != null){ - d = tblCell.getNextSibling(); - if( justSpace(tblCell) ){ tblRow.removeChild(tblCell); } - tblCell = d; -} - - - tblCell = tblRow.getFirstChild(); - if( (tblCell != null) - && (tblCell.getNextSibling() == null) - && justSpace(tblCell) - ){ - node.removeChild(tblRow); - } } } - int n = 0; -tblRow = node.getFirstChild(); -while( tblRow != null ){ - if( - (tblRow.getNodeType() == Node.ELEMENT_NODE) - && - tblRow.getNodeName().equals("table:table-row") - ){ - int m = 0; -tblCell = tblRow.getFirstChild(); -while( tblCell != null ){ - if( - (tblCell.getNodeType() == Node.ELEMENT_NODE) - && - tblCell.getNodeName().equals("table:table-cell") - ){ - m++; - Node child = tblCell.getLastChild(); -while( child != null ){ - Node prevChild = child.getPreviousSibling(); - if( - (child.getNodeType() == Node.ELEMENT_NODE) - && - child.getNodeName().equals("text:p") - ){ - Node sibling = child.getPreviousSibling(); - while( (sibling != null) - && - (sibling.getNodeType() != Node.ELEMENT_NODE) - ){ - sibling = sibling.getPreviousSibling(); - } - if( sibling == null ){ - sibling = child.getNextSibling(); - while( (sibling != null) - && - (sibling.getNodeType() != Node.ELEMENT_NODE) - ){ - sibling = sibling.getNextSibling(); - } } - if( (sibling != null) - && child.getTextContent().trim().equals("") - ){ - tblCell.removeChild(child); - } } - child = prevChild; -} - - } - tblCell = tblCell.getNextSibling(); -} - - if( m > n ){ n = m; } - } - tblRow = tblRow.getNextSibling(); -} - - tblRow = node.getFirstChild(); -while( tblRow != null ){ - d = tblRow.getNextSibling(); - if( - (tblRow.getNodeType() == Node.ELEMENT_NODE) - && - tblRow.getNodeName().equals("table:table-column") - ){ - n--; - if( n < 0 ){ - tblRow.getParentNode().removeChild(tblRow); - } } - tblRow = d; -} - -} - - static boolean justSpace(Node node){ - if( node == null ){ return true; } - if( node.getNodeType() == Node.TEXT_NODE ){ - if( !node.getNodeValue().trim().equals("") ){ return false; } - } else { - if( node.getNodeType() == Node.ELEMENT_NODE ){ - String nm = node.getNodeName(); - if( - !nm.equals("table:table-cell") - && !nm.equals("text:p") - ){ - return false; - } } - } - if(!justSpace( node.getNextSibling() )){ return false; } - if(!justSpace( node.getFirstChild() )){ return false; } - return true; -} - -} - diff --git a/Build/source/texk/tex4htk/java/OomFilter.java b/Build/source/texk/tex4htk/java/OomFilter.java deleted file mode 100644 index d6ab78100bc..00000000000 --- a/Build/source/texk/tex4htk/java/OomFilter.java +++ /dev/null @@ -1,62 +0,0 @@ -package tex4ht; -/**********************************************************/ -/* OomFilterImpl.java 2009-03-11-03:09 */ -/* Copyright (C) 2006--2009 Eitan M. Gurari */ -/* */ -/* This work may be distributed and/or modified under the */ -/* conditions of the LaTeX Project Public License, either */ -/* version 1.3 of this license or (at your option) any */ -/* later version. The latest version of this license is */ -/* in */ -/* http://www.latex-project.org/lppl.txt */ -/* and version 1.3 or later is part of all distributions */ -/* of LaTeX version 2003/12/01 or later. */ -/* */ -/* This work has the LPPL maintenance status "maintained".*/ -/* */ -/* This Current Maintainer of this work */ -/* is Eitan M. Gurari. */ -/* */ -/* gurari@cse.ohio-state.edu */ -/* http://www.cse.ohio-state.edu/~gurari */ -/**********************************************************/ - - -import org.xml.sax.helpers.*; -import org.xml.sax.*; -import java.io.PrintWriter; - -public class OomFilter extends XMLFilterImpl { - PrintWriter out = null; - boolean mtext = false; - public OomFilter( PrintWriter out, - PrintWriter log, boolean trace ){ - this.out = out; - } - public void startElement(String ns, String sName, - String qName, Attributes attr) { - if( qName.equals( "math:mtext" ) ){ mtext = true; } - try{ - super.startElement(ns, sName, qName, attr); - } catch( Exception e ){ - System.err.println( "--- OomFilter Error 1 --- " + e); - } - } - public void endElement(String ns, String sName, String qName){ - if( qName.equals( "math:mtext" ) ){ mtext = false; } - try{ - super.endElement(ns, sName, qName); - } catch( Exception e ){ - System.err.println( "--- OomFilter Error 2 --- " + e); - } } - public void characters(char[] ch, int start, int length){ - try{ - if ( mtext ) { - for(int i = start; i<start+length; i++){ - if( ch[i] == 160 ){ ch[i] = ' '; } - } } - super.characters(ch, start, length); - } catch( Exception e ){ - System.out.println( "--- OomFilter Error 3 --- " + e); -} } } - diff --git a/Build/source/texk/tex4htk/java/README b/Build/source/texk/tex4htk/java/README deleted file mode 100644 index 4f442c72e38..00000000000 --- a/Build/source/texk/tex4htk/java/README +++ /dev/null @@ -1 +0,0 @@ -compile from within src/java with: javac *.java */*.java */*/*.java -d ../../texmf/tex4ht/bin diff --git a/Build/source/texk/tex4htk/java/xtpipes.java b/Build/source/texk/tex4htk/java/xtpipes.java deleted file mode 100644 index 28ef7887436..00000000000 --- a/Build/source/texk/tex4htk/java/xtpipes.java +++ /dev/null @@ -1,7 +0,0 @@ -// 2009-01-27-22:19 -import xtpipes.*; -public class xtpipes { - public static void main(String [] args) throws Exception { - Xtpipes.main(args); -} } - diff --git a/Build/source/texk/tex4htk/java/xtpipes/FileInfo.java b/Build/source/texk/tex4htk/java/xtpipes/FileInfo.java deleted file mode 100644 index 001b273dce1..00000000000 --- a/Build/source/texk/tex4htk/java/xtpipes/FileInfo.java +++ /dev/null @@ -1,170 +0,0 @@ -package xtpipes; -/* -FileInfo.java (2009-01-27-22:19) -*/ -import java.io.File; -import java.io.PrintWriter; - -public class FileInfo{ - static String [] classPaths = null; -static String [] scriptPaths = null; -static java.util.HashMap <String,String> registry = - new java.util.HashMap <String,String>(); -static String slash = System.getProperty("file.separator"); -static String ii_scriptDir; -static PrintWriter log; -static boolean trace; - - public FileInfo(PrintWriter log, String iii_scriptDir, boolean trace){ - FileInfo.log = log; - FileInfo.ii_scriptDir = iii_scriptDir; - FileInfo.trace = trace; - classPaths = FileInfo.getPaths( System.getProperty("java.class.path") ); -if( iii_scriptDir != null ){ - scriptPaths = FileInfo.getPaths( iii_scriptDir ); -} - - - } - public static String searchFile( String file ){ - String key = ((ii_scriptDir == null)? "" : ii_scriptDir ) - + "!" + file; - String result = (String) registry.get( key ); - if( result == null ){ - for(int i=0; i<2; i++){ - if( trace ){ - log.println( "Searching: " + file ); - } - if( (new File(file)).exists() ){ - result = ( file.indexOf(slash) == -1 )? - (System.getProperty("user.dir") + slash + file) - : - file; - } - else { - if( ii_scriptDir != null ){ - int k = scriptPaths.length; -while( k>0 ){ - k--; - if( trace ){ - log.println( "Searching: " + file - + ", recursively in directory: " + scriptPaths[k] ); - } - result = searchDirectory( new File(scriptPaths[k]), file); - if( result != null ){ break; } -} -String s = ii_scriptDir + file; -if( (new File( s )).exists() ){ result = s; } - - } - if( result == null ){ - int k = classPaths.length; -String toFile = "xtpipes" + slash + "lib" + slash + file; -while( k>0 ){ - k--; - String s = classPaths[k] + toFile; - if( trace ){ log.println( "Searching: " + s ); } - if( new File(s).exists() ){ result = s; break; } -} - - } } - if( result != null ){ break; } - file = new File(file).getName(); - } - if( result != null ){ - result = FileInfo.cleanPath(result); - registry.put(key, result); - } - } - if( trace ){ - if( result == null ){ - log.println( - "Directory paths from xtpipes command line option -i: " - + ii_scriptDir ); - } else { log.println( "Found: " + result + "\n" ); } - log.flush(); - } - return result; -} - - static String [] getPaths( String dirs ){ - String [] paths = null; - paths = dirs.split( System.getProperty("path.separator") ); - int k = paths.length; - while( k>0 ){ - k--; - paths[k] = cleanPath( paths[k] ); - - int len = paths[k].length(); - if( (len>1) && (paths[k].lastIndexOf(slash + ".") == (len-1)) ){ - paths[k] = paths[k].substring(0,len-1); - } else if( (len>0) && ((len-1) != paths[k].lastIndexOf( slash )) ){ - paths[k] += slash; - } } - return paths; -} - - public static String cleanPath( String path ){ - String slash = System.getProperty("file.separator"); - String userDir = System.getProperty( "user.dir" ); - if( (path.length() > 0) && (path.charAt(0) == '~') ){ - if( (path.length() == 1) || (path.charAt(1) != '~') ){ - path = System.getProperty( "user.home" ) - + path.substring(1); - } } - - if( path.startsWith("..") ){ - path = userDir.substring(0, - Math.max(0,Math.max( - userDir.lastIndexOf("/") - , - userDir.lastIndexOf("\\") - ))) - + path.substring(2); - } - if( path.startsWith(".") ){ - path = userDir + slash + path.substring(1); - } - - int i; - while( - ((i=path.indexOf("/..")) != -1) - || - ((i=path.indexOf("\\..")) != -1) - ){ - String s = path.substring(0,i); - int j = Math.max(s.lastIndexOf("/"), s.lastIndexOf("\\")); - path = path.substring(0,j) + path.substring(i+3); - } - while( - ((i=path.indexOf("/.")) != -1) - || - ((i=path.indexOf("\\.")) != -1) - ){ - String s = path.substring(0,i); - int j = Math.max(s.indexOf("/"), s.indexOf("\\")); - path = path.substring(0,j) + path.substring(i+2); - } - - return path; -} - - static String searchDirectory(File dir, String file) { - String result = null; - if( dir.isDirectory() ){ - String [] children = dir.list(); - for (int i=0; i<children.length; i++) { - result = searchDirectory( new File(dir,children[i]), file); - if( result != null ) { break; } - } - } else { - String s = dir.toString(); - if( s.equals(file) || s.endsWith(slash + file) ){ - result = s; - } - } - return result; -} - -} - diff --git a/Build/source/texk/tex4htk/java/xtpipes/InputObject.java b/Build/source/texk/tex4htk/java/xtpipes/InputObject.java deleted file mode 100644 index 43dde6d4d0e..00000000000 --- a/Build/source/texk/tex4htk/java/xtpipes/InputObject.java +++ /dev/null @@ -1,323 +0,0 @@ -package xtpipes; -/* -InputObject.java (2009-01-27-22:19) -*/ -import java.io.PrintWriter; -import java.net.URL; -import java.net.URLConnection; -import java.io.ByteArrayInputStream; -import java.io.File; -import java.io.InputStream; - - -public class InputObject{ - InputStream inputStream = null; -URLConnection connection = null; -String filename = null; -static PrintWriter log; -String dtdRoot = null, - publicId = null, - systemId = null, - xtpipes = null, - url = null, - metaType = null, - contentType = null, - root = null; - - public InputObject( String filename, PrintWriter log ){ - InputObject.log = log; - filename = filename.trim(); - try{ - inputStream = getInputStream(filename); - } catch (Exception exp0){ - if( !filename.startsWith( "http://" ) ){ - try{ - String name = "http://" + filename; - inputStream = getInputStream( name ); - filename = name; - } catch (Exception exp1){ - try{ - String name = FileInfo.cleanPath(filename); - inputStream = getInputStream( name ); - filename = name; - } catch (Exception exp2){ inputStream = null; } - } } } - this.filename = filename; -} -public InputObject( byte [] bytes, PrintWriter log ){ - InputObject.log = log; - inputStream = new ByteArrayInputStream( bytes ); -} - - private java.io.InputStream getInputStream( - String filename ) - throws java.io.IOException{ - if( filename == null ){ return null; } - URL url; - java.io.InputStream inputStream = null; -// String loadingError = "Failed to get requested file."; - try { - url = new File(filename).toURI().toURL(); - inputStream = getInputStream( url ); - } catch (Exception ie) { - try { - url = new URL(filename); - inputStream = getInputStream( url ); - } catch (java.io.FileNotFoundException ife) { - throw new java.io.IOException( - "File not found: " + filename); - } catch (Exception ife) { - throw new java.io.IOException(ife + "\n" + ie); - } } - return inputStream; -} - - private java.io.InputStream getInputStream( URL url ) - throws java.io.FileNotFoundException, - java.io.IOException { - java.io.InputStream inputStream = null; - String errMssg = ""; - try{ - connection = null; - connection = url.openConnection(); - connection.setRequestProperty("User-Agent", - "[" - + System.getProperty("os.name") - + " / " - + System.getProperty("os.arch") - + "]" - + "[" - + System.getProperty("java.version") - + " - " - + System.getProperty("java.vendor") - + "]" - - ); - inputStream = connection.getInputStream(); - } catch(java.io.FileNotFoundException ve){ - errMssg = "File not found: " + url; - throw new java.io.FileNotFoundException( - "--- Ml2xml input error --- " + errMssg ); - } catch (javax.net.ssl.SSLHandshakeException ve){ - errMssg = "SSL Handshake Exception: " + ve.getMessage(); - throw new javax.net.ssl.SSLHandshakeException( - "--- Ml2xml input error --- " + errMssg ); - } catch (java.net.UnknownHostException ve){ - errMssg = "Unknown Host Exception: " + ve.getMessage(); - throw new java.net.UnknownHostException( - "--- Ml2xml input error --- " + errMssg ); - } - return inputStream; -} - - public void buildProfile( boolean trace ){ - if( trace ){ - log.println( - "xtpipes (2009-01-27-22:19)" - + "\n java.version: " + System.getProperty("java.version") - + "\n java.class.path: " + System.getProperty("java.class.path") - + "\n os.name: " + System.getProperty("os.name") - + "\n user.home: " + System.getProperty("user.home") - + "\n user.dir: " + System.getProperty("user.dir") - ); - } - if( connection != null ){ - contentType = connection . getContentType(); -url = connection . getURL() . toString(); - - } - int max = 8192; -int buffSize = 4096; -byte [] buff = new byte [ buffSize ]; -int m = 0; -int length = 0; -int ch; -int type = 0 -; -String token = null; -while( m < max ){ - try{ - int k = Math.min( max - m, buffSize ); - length = inputStream.read( buff, 0, k ); - if( length == -1 ){ break; } - if( length == 0 ){ continue; } - } catch (java.io.IOException e){ - System.err.println( "--- xtpipes error --- : " + e ); - break; - } - for(int i = 0 ; i < length; i++ ){ - switch( ch = buff[i] ){ - case '<': token = ""; - type = 1 -; - break; - case '>': if( token != null ){ - token = token . replaceAll( "\\s+", " "); - if( type == 9 - ){ - if( xtpipes == null ){ - int n = token.length(); - if( (n > 1) && (token.charAt( n - 1 ) == '?') - && (token.startsWith("xtpipes") ) ){ - String s = token . substring(7,n-1) . replaceAll( "\\s+", ""); - n = s.length(); - if( (n>6) && (s.startsWith("file=")) - && (s.charAt(5) == s.charAt(n-1)) ){ - xtpipes = s.substring(6,n-1); - } } } -} else if( type == 11 - ){ - if( metaType == null ){ - token = token . replaceAll( "\\s+", ""); - int k = token.indexOf("http-equiv"); - int n = token.indexOf("content"); - if( (k != -1) && (n != -1) ){ - if( token.length() > (Math.max(k,n)+3) ){ - if( token.substring(k+12).startsWith("Content-Type") ){ - token = token.substring(n+9); - n = token.indexOf(";"); - if( n !=-1 ){ metaType = token.substring(0,n); } - } } } } -} else if( (type == 2 -) && (root == null) ){ - root = token; -} - - token = null; - } - break; - case '\n': - case ' ': if( token != null ){ - if( type == 2 - ){ - if( token.equals("meta") ){ - if( metaType == null ){ - type = 11 -; - token = " "; - } else { - token = null; - } - } else { - if( root == null ){ - root = token; - } - token = null; - } -} else if( type == 4 - ){ - if( token.equals("DOCTYPE") ){ - type = 5 -; - token = " "; - } else { token = null; } -} else if( type == 5 - ){ - if( !token.trim().equals("") ){ - dtdRoot = token.trim(); - token = " "; - type = 6 -; - } else { token = null; } -} else if( type == 6 - ){ - if( !token.trim().equals("") ){ - token = token.trim(); - if( token.equals("PUBLIC") ){ - type = 7 -; - token = ""; - } else if( token.equals("SYSTEM") ){ - type = 8 -; - token = ""; - } else { token = null; } - } -} else { token += ' '; } - - } - break; - case '"': - case '\'': if( token == null ){ break; } - if( !token.trim().equals("") ){ - if( token.trim().charAt(0) == ch ){ - if( type == 7 - ){ - publicId = token.trim().substring(1); - type = 8 -; - token = ""; - break; - } - else if( type == 8 - ){ - systemId = token.trim().substring(1); - token = null; - break; - } -} } - - default: if( token != null ){ - if( type == 3 - ){ - if( ch == 'D' ){ - type = 4 -; - token += (char) ch; - } else { token = null; type = 0 -; } - } - else - if( token.equals("") && (type == 1 -) ){ - switch( ch ){ - case '!': type = 3 -; - break; - case '?': type = 9 - ; - break; - default: if( Character.isLetter(ch) - && ((root == null) || (metaType == null)) ){ - type = 2 -; - token += (char) ch; - } else { token = null; } -} - - } else { token += (char) ch; } -} } - - m++; -} } - - if( trace ){ - log.println( - " url = " + url - + "\n contentType = " + contentType - + "\n publicId = " + publicId - + "\n systemId = " + systemId - + "\n xtpipes = " + xtpipes - + "\n root = " + root - + "\n dtdRoot = " + dtdRoot - ); -} } - - public InputStream getInputStream(){ return inputStream; } - public String getFilename(){ - return (url == null)? - ( (connection == null)? filename - : - connection . getURL() . toString() - ) - : url; - } - public String getContentType(){ return contentType; } - public String getMetaType(){ return metaType; } - public String getPublicId(){ return publicId; } - public String getSystemId(){ return systemId; } - public String getXtpipes(){ return xtpipes; } - public String getRoot(){ return root; } - public String getDtdRoot(){ return dtdRoot; } -} - diff --git a/Build/source/texk/tex4htk/java/xtpipes/Xtpipes.java b/Build/source/texk/tex4htk/java/xtpipes/Xtpipes.java deleted file mode 100644 index e1a037b5405..00000000000 --- a/Build/source/texk/tex4htk/java/xtpipes/Xtpipes.java +++ /dev/null @@ -1,1508 +0,0 @@ -package xtpipes; -/* -Xtpipes.java (2009-01-27-22:19) -*/ -// import xtpipes.util.InputObject; -// import xtpipes.util.FileInfo; -import java.net.URLConnection; -import java.io.*; -import java.lang.reflect.*; -import java.util.HashMap; -import java.util.Stack; -import javax.xml.parsers.*; -import javax.xml.transform.*; -import javax.xml.transform.dom.DOMSource; -import javax.xml.transform.stream.*; -import org.w3c.dom.*; -import org.xml.sax.*; -import org.xml.sax.helpers.*; -import java.net.URL; -import java.lang.reflect.Constructor; -import java.util.ArrayList; - - -public class Xtpipes { - private static HashMap <String,Object> map; -private static boolean needScript; -private static boolean returnDom; -private static String result; -static PrintWriter logWriter = new PrintWriter( System.err ); -private static String inFile, - inData; -private static boolean exceptionErrs, messages; -public static InputObject inputObject; -private static String outFileName; -private static PrintWriter outPrintWriter; -private static boolean returnToFile = false; -public static String scriptFile; -private static String scriptMap; -static String i_scriptDir; -private static TransformerFactory fc; -private static Transformer identityTransformer; -private static SAXParserFactory saxFactory; -private static DocumentBuilder domBuilder; -private static Stack <XMLReader> saxReaderStack; -private static Method method; -private static String rootName; -static boolean trace; -private static String [] ml2xml = null; -static Class<?> ml2xmlClassObj = null; -public static String errMssg; - - public static void main(String args[]) throws Exception { - map = new HashMap <String,Object> (); -needScript = true; -returnDom = false; -result = null; -inFile = null; -inData = null; -exceptionErrs = false; -messages = false; -outFileName = null; -outPrintWriter = null; -scriptFile = null; -i_scriptDir = null; -scriptMap = null; -saxReaderStack = new Stack <XMLReader> (); -rootName = null; -trace = false; - - mainMethod(args); -} - - public static void xtpipes(String [] args, - OutputStream out, - PrintWriter log) - throws Exception { - map = new HashMap <String,Object> (); -needScript = true; -returnDom = false; -result = null; -inFile = null; -inData = null; -exceptionErrs = false; -messages = false; -outFileName = null; -outPrintWriter = null; -scriptFile = null; -i_scriptDir = null; -scriptMap = null; -saxReaderStack = new Stack <XMLReader> (); -rootName = null; -trace = false; - - outPrintWriter = new XtpipesPrintWriter( out, true ); - logWriter = (log==null)? (new PrintWriter( System.err )) : log; - mainMethod(args); - outPrintWriter.flush(); -} - - public static void xtpipes(String [] args, - OutputStreamWriter out, - PrintWriter log) - throws Exception { - map = new HashMap <String,Object> (); -needScript = true; -returnDom = false; -result = null; -inFile = null; -inData = null; -exceptionErrs = false; -messages = false; -outFileName = null; -outPrintWriter = null; -scriptFile = null; -i_scriptDir = null; -scriptMap = null; -saxReaderStack = new Stack <XMLReader> (); -rootName = null; -trace = false; - - outPrintWriter = new XtpipesPrintWriter( out ); - logWriter = (log==null)? (new PrintWriter( System.err )) : log; - mainMethod(args); - outPrintWriter.flush(); -} - - public static void xtpipes(String [] args, - XtpipesPrintWriter out, - PrintWriter log) - throws Exception { - map = new HashMap <String,Object> (); -needScript = true; -returnDom = false; -result = null; -inFile = null; -inData = null; -exceptionErrs = false; -messages = false; -outFileName = null; -outPrintWriter = null; -scriptFile = null; -i_scriptDir = null; -scriptMap = null; -saxReaderStack = new Stack <XMLReader> (); -rootName = null; -trace = false; - - outPrintWriter = out; - logWriter = (log==null)? (new PrintWriter( System.err )) : log; - mainMethod(args); - outPrintWriter.flush(); -} - - public static Document getDOM(String args[]) - throws Exception { - map = new HashMap <String,Object> (); -needScript = true; -returnDom = false; -result = null; -inFile = null; -inData = null; -exceptionErrs = false; -messages = false; -outFileName = null; -outPrintWriter = null; -scriptFile = null; -i_scriptDir = null; -scriptMap = null; -saxReaderStack = new Stack <XMLReader> (); -rootName = null; -trace = false; - - returnDom = true; - mainMethod(args); - Document dom = null; - if( result == null ){ - System.err.println( - "--- xtpipes warning --- getDOM without <return name=\"...\"> from 4xt file: " - + scriptFile ); - } else { - try{ - byte [] bytes = result.getBytes("UTF-8"); - InputStream is = new ByteArrayInputStream( bytes ); - dom = domBuilder.parse (is); - } catch ( org.xml.sax.SAXParseException e ){ - if( Xtpipes.trace ){ - Xtpipes.logWriter.println( - "\n---------------------------------------------------\n" - + result + - "\n---------------------------------------------------\n" ); - } - String s = ""; - for( int n=0; n<args.length; n++ ){ - if( args[n].charAt(0)!='-' ){ - s += " input file: " + args[n] + "."; break; - } - else if( args[n].equals("-s") - || args[n].equals("-S") - || args[n].equals("-i") - || args[n].equals("-o") - || args[n].equals("-d") ){ n++; } -} - - if( scriptFile != null ){ s += " script file: " + scriptFile; } - instructionErr( null, - "parsing error: " + e.getMessage() +s, 21 ); - } catch ( Exception e ){ - instructionErr( null, e.toString(), 5 ); - } - if( ml2xmlClassObj != null ){ - Class<?> [] argTypes = { }; - Method m = ml2xmlClassObj.getMethod( "closeFiles", argTypes ); - Object parmValues[] = new Object[0]; - m.invoke( null, parmValues ); -} - - } - return dom; -} -public static Document getDOM(String s, String args[]) - throws Exception { - map = new HashMap <String,Object> (); -needScript = true; -returnDom = false; -result = null; -inFile = null; -inData = null; -exceptionErrs = false; -messages = false; -outFileName = null; -outPrintWriter = null; -scriptFile = null; -i_scriptDir = null; -scriptMap = null; -saxReaderStack = new Stack <XMLReader> (); -rootName = null; -trace = false; - - returnDom = true; - inData = s; - mainMethod(args); - Document dom = null; - if( result == null ){ - System.err.println( - "--- xtpipes warning --- getDOM without" - + " <return name=\"...\"> from 4xt file: " - + scriptFile ); - } else { - try{ - byte [] bytes = result.getBytes("UTF-8"); - InputStream is = new ByteArrayInputStream( bytes ); - dom = domBuilder.parse (is); - } catch ( org.xml.sax.SAXParseException e ){ - instructionErr( null, "improper xml: " + e.getMessage() - + "\n code starts with: " - + result.substring(0, Math.min(100,result.length())) - , 17 ); - } catch ( Exception e ){ - instructionErr( null, e.toString(), 6 ); - } - if( ml2xmlClassObj != null ){ - Class<?> [] argTypes = { }; - Method m = ml2xmlClassObj.getMethod( "closeFiles", argTypes ); - Object parmValues[] = new Object[0]; - m.invoke( null, parmValues ); -} - - } - return dom; -} -public static Document getDOM(String args[], PrintWriter log) - throws Exception { - logWriter = (log==null)? new PrintWriter( System.err ) : log; - return getDOM(args); -} -public static Document getDOM(String s, String args[], PrintWriter log) - throws Exception { - logWriter = (log==null)? (new PrintWriter( System.err )) : log; - return getDOM(s, args); -} - - private static void mainMethod(String args[]) throws Exception { - try{ - String xtpipes_call = - " xtpipes (2009-01-27-22:19)" - + "\n Command line options: " - + "\n java xtpipes [-trace] [-help] [-m] [-E] [-s script_file]" - + " [-S script_map]" - + "\n [-i script_dir] [-o out_file] " - + "\n [-x...ml2xml_arg...] " - + "(-d in_data | in_file)" - + "\n -m messages printing mode" - + "\n -E error messages into exception calls" - + "\n in_data XML data directly into the command line\n" -; - - boolean help=false; -for( int n=0; n<args.length; n++ ){ - if( args[n] == null ){} -else if( args[n].equals("") ){} -else if( args[n].charAt(0)!='-' ){ inFile = args[n]; } -else if( args[n].equals("-m") ){ - messages = true; - logWriter.println( - "xtpipes (2009-01-27-22:19)" - + "\n java.version: " + System.getProperty("java.version") - + "\n java.class.path: " + System.getProperty("java.class.path") - + "\n os.name: " + System.getProperty("os.name") - + "\n user.home: " + System.getProperty("user.home") - + "\n user.dir: " + System.getProperty("user.dir") -); -for( int k=0; k<args.length; k++ ){ - logWriter.println( " " + args[k] ); -} - -} -else if( args[n].equals("-s") ){ - n++; -if( n < args.length ){ scriptFile=args[n]; } -else { - System.err.println( - "--- Error --- Missing field for -s argument" ); - inFile = null; inData = null; break; -} - -} -else if( args[n].equals("-S") ){ - n++; -if( n < args.length ){ scriptMap=args[n]; } -else { - System.err.println( - "--- Error --- Missing field for -S argument" ); - inFile = null; inData = null; break; -} - -} -else if( args[n].equals("-i") ){ - n++; -if( n < args.length ){ - i_scriptDir=args[n]; -} else { - System.err.println( - "--- Error --- Missing field for -i argument" ); - inFile = null; inData = null; break; -} - -} -else if( args[n].equals("-o") ){ - n++; -if( n < args.length ){ - outFileName = args[n]; -} else { - System.err.println( - "--- Error --- Missing field for -o argument" ); - inFile = null; inData = null; break; -} - -} -else if( args[n].startsWith("-x") ){ - if( args[n].substring(2).equals("") ){ - if( ml2xml == null ){ ml2xml = new String[0]; } -} else { - if( ml2xml == null ){ - ml2xml = new String[1]; - } else { - String [] m2x = new String [ml2xml.length + 1]; - for(int cnt=0; cnt < ml2xml.length; cnt++){ - m2x[cnt] = ml2xml[cnt]; - } - ml2xml = m2x; - } - ml2xml[ ml2xml.length - 1 ] = args[n].substring(2); -} - -} -else if( args[n].equals("-E") ){ - exceptionErrs = true; -} -else if( args[n].equals("-d") ){ - n++; -if( n < args.length ){ - inData = args[n]; -} else { - System.err.println( - "--- Error --- Missing field for -d argument" ); - inFile = null; inData = null; break; -} - -} -else if( args[n].equals("-trace") ){ trace=true; } -else if( args[n].equals("-help") ){ help=true; } -else { if( !exceptionErrs ){ - for(int i=n+1; i<args.length; i++ ){ - if( args[i].equals("-E") ){ exceptionErrs = true; } -} } -instructionErr( null, - "Improper argument: " + args[n] + "\n" + xtpipes_call, 26 ); - } - -} -if( outPrintWriter == null ){ - outPrintWriter = new XtpipesPrintWriter(System.out,true); -} - -if( !returnDom ){ - if( help || ((inFile == null) && (inData == null)) ){ - System.err.println( xtpipes_call ); - - if( (inFile == null) && (inData == null) ){ - System.exit(0); -} } } - -new FileInfo(logWriter, i_scriptDir, trace); -if( inFile != null ){ - inputObject = new InputObject( inFile, logWriter ); - if( inputObject.getInputStream() == null ){ - instructionErr( null, "Could not find or open file: " + inFile, 28 ); - } - inFile = inputObject.getFilename(); -} else { - inputObject = new InputObject( inData.getBytes("UTF-8"), logWriter ); -} -inputObject.buildProfile( trace ); - - } catch (Exception e){ - instructionErr( null, e.getMessage(), e.getStackTrace(), 31 ); - } - try { - DocumentBuilderFactory domFactory = - DocumentBuilderFactory.newInstance(); - domFactory.setValidating(true); - DocumentBuilder validatingDomBuilder = - domFactory.newDocumentBuilder(); - validatingDomBuilder.setEntityResolver(new XtpipesEntityResolver() -); - validatingDomBuilder.setErrorHandler(new ErrorHandler() { - public void warning(SAXParseException e) throws SAXParseException { - showSpecifics("warning",e); - } - public void error(SAXParseException e) throws SAXParseException { - showSpecifics("error",e); - } - public void fatalError(SAXParseException e) throws SAXParseException { - showSpecifics("fatal error",e); - } - public void showSpecifics(String s, SAXParseException e) - throws SAXParseException { - String err = "--- xtpipes " + s + " 24 --- " + e.getSystemId() - + " line " + e.getLineNumber() - + " col " + e.getColumnNumber() - + " : " + e.getMessage() ; - if( exceptionErrs ) { throw new SAXParseException( - err, (org.xml.sax.Locator) null ); } - else { - System.err.println( err ); - System.exit(1); -} } } -); - fc = TransformerFactory.newInstance(); -identityTransformer = fc.newTransformer(); -identityTransformer.setErrorListener( - new ErrorListener() { - public void warning(TransformerException e) throws TransformerException { - showSpecifics(e); - } - public void error(TransformerException e) throws TransformerException { - showSpecifics(e); - } - public void fatalError(TransformerException e) throws TransformerException { - showSpecifics(e); - } - void showSpecifics(TransformerException e) - throws TransformerException{ - String err = e.getMessage() ; - String loc = e.getLocationAsString(); - if( loc != null ){ err = loc + ": " + err; } - throw new TransformerException(err); -} } - ); -saxFactory = SAXParserFactory.newInstance(); -saxFactory.setValidating(true); -domFactory.setValidating(false); -domBuilder = domFactory.newDocumentBuilder(); -saxFactory = SAXParserFactory.newInstance(); -saxFactory.setValidating(false); -Class <?> cls = Xtpipes.class; -Class<?> [] argTypes = { Node.class, String.class }; -method = cls.getMethod( "execute", argTypes ); - - if( scriptMap != null ){ - try{ - String f = FileInfo.searchFile( scriptMap ); - if( f == null ){ - throw new java.io.FileNotFoundException( scriptMap ); - } else { - scriptMap = f; - } - XMLReader saxReader; -if( saxReaderStack.empty() ){ - SAXParser saxParser = saxFactory.newSAXParser(); - saxReader = saxParser.getXMLReader(); - saxReader.setEntityResolver(new org.xml.sax.EntityResolver() { - public InputSource resolveEntity( - String publicId, String systemId) { - if( (new File(systemId)).exists() ){ - return new org.xml.sax.InputSource( systemId ); - } - StringReader strReader = new StringReader(""); - return new org.xml.sax.InputSource(strReader); - } -}); - -} else { - saxReader = (XMLReader) saxReaderStack.pop(); -} - - saxReader.setContentHandler( new DefaultHandler(){ - private Stack <Boolean> condition = new Stack <Boolean> (); -public void startDocument () { - condition.push( new Boolean(true) ); -} -public void startElement(String ns, String sName, - String qName, Attributes atts) { - if( condition == null ){ return; } - if( Xtpipes.trace ){ - String s = "<" + qName + "\n"; - for(int i=0; i<atts.getLength(); i++ ){ - String name = atts.getQName(i); - s += " " + name + "=\"" + atts.getValue(i) + "\""; - } - s += ">" ; - Xtpipes.logWriter.println( s ); -} - - boolean cond = ((Boolean) condition.peek()).booleanValue(); - if( qName.equals("when") ){ - if( cond ){ String name = atts.getValue("name"); -String value = atts.getValue("value"); -if( name.equals("system-id") ){ - cond = value.equals(inputObject.getSystemId()); -} -else -if( name.equals("public-id") ){ - cond = value.equals(inputObject.getPublicId()); -} -else -if( name.equals("dtd-root") ){ - cond = value.equals(inputObject.getDtdRoot()); -} -else -if( name.equals("root") ){ - cond = value.equals(inputObject.getRoot()); -} -else -if( name.equals("ext") ){ - cond = inputObject.getFilename().endsWith("." + value); -} -else -if( name.equals("prefix") ){ - name = inputObject.getFilename(); - if( name != null ){ - int i = name.lastIndexOf('/'); - if( (i != -1) && ((i+1) < name.length()) ){ - name = name.substring(i+1); - } - i = name.lastIndexOf('\\'); - if( (i != -1) && ((i+1) < name.length()) ){ - name = name.substring(i+1); - } - cond = name.startsWith(value); -} } -else -if( name.equals("meta-type") ){ - cond = value.equals(inputObject.getMetaType()); -} -else -if( name.equals("content-type") ){ - cond = value.equals(inputObject.getContentType()); -} - } - } - else - if( qName.equals("command-line") ){ - if( scriptFile != null ){ - if( trace ){ - Xtpipes.logWriter.println( " Found script file in map: " - + Xtpipes.scriptFile ); -} - - condition = null; - return; - } } - else - if( qName.equals("processing-instruction") ){ - if( cond ){ - String s = inputObject.getXtpipes(); - if( s != null ){ - Xtpipes.scriptFile = s; - if( trace ){ - Xtpipes.logWriter.println( " Found script file in map: " - + Xtpipes.scriptFile ); -} - - condition = null; - return; - } } } - else - if( qName.equals("select") ){ - if( cond ){ - Xtpipes.scriptFile = atts.getValue("name"); - if( trace ){ - Xtpipes.logWriter.println( " Found script file in map: " - + Xtpipes.scriptFile ); -} - - condition = null; - return; - } } - condition.push( new Boolean(cond) ); -} -public void endElement(String ns, String sName, String qName) { - if( condition == null ){ return; } - if( Xtpipes.trace ){ - String s = "</" + qName + ">"; - Xtpipes.logWriter.println( s ); -} - - condition.pop(); -} - - } ); - InputStream inputStream = - (InputStream) (new File(scriptMap).toURI().toURL().openStream()); - saxReader.parse( new InputSource(inputStream) ); - saxReaderStack.push( saxReader ); - } catch( java.io.FileNotFoundException e ){ - instructionErr( null, - "File not found: " + e.getMessage() - + "; command line option -i", - 33 ); - } catch( Exception e ){ - instructionErr( null, e.toString(), e.getStackTrace(), 27 ); - } -} -if( scriptFile == null ){ - scriptFile = "xtpipes-default.4xt"; -} - - while( needScript ){ - if( scriptFile == null ){ - instructionErr( null, "Missing 4xt script file name", 32 ); - } - String f = FileInfo.searchFile( scriptFile ); -if( f == null ){ - throw new java.io.FileNotFoundException( scriptFile ); -} else { - scriptFile = f; -} - - Document script = validatingDomBuilder.parse(scriptFile); - if( trace ){ - logWriter.println( "(" + scriptFile + ")" ); -} - - execute( script.getFirstChild() ); - } - if( outFileName != null ){ - outPrintWriter.close(); -} - - Xtpipes.logWriter.flush(); - } catch( org.xml.sax.SAXParseException e ){ - String s = "Improper file " + scriptFile + ": " + e.getMessage(); - instructionErr( null, s, 2 ); - } catch( java.io.FileNotFoundException e ){ - String s; - if( scriptFile.equals( e.getMessage() ) ){ - s = "Could not find file: " + scriptFile; - } else { - s = "Problem at script " + scriptFile + ": Could not find file " - + e.getMessage(); - } - instructionErr( null, s, 3 ); - } catch( Exception e ){ - String s = "Problems at file: " + scriptFile + "\n " + e; - instructionErr( null, s, 4 ); -} } - - private static void execute( Node node ) throws Exception { - while( node != null ){ - if( node.getNodeType()==Node.ELEMENT_NODE ){ - String instruction = node.getNodeName(); - if( trace ){ - logWriter.print( "[##] = xtpipes => " + instruction ); - if( node.hasAttributes() ){ - NamedNodeMap attributes = node.getAttributes(); - for(int i=0; i < attributes.getLength(); i++ ){ - Node attr = attributes.item(i); - logWriter.print( " " + attr.getNodeName() - + "=\"" + attr.getNodeValue() + "\"" ); - } } - logWriter.println(); logWriter.flush(); -} - - if( instruction.equals( "xtpipes" ) ){ - // String errMsg = ""; -needScript = false; -if( node.hasChildNodes() ){ - if( outFileName != null ){ - try { - FileWriter fw = new FileWriter( outFileName ); - outPrintWriter = new XtpipesPrintWriter( fw ); - returnToFile = true; - } catch(Exception e){ - instructionErr( null, e.toString(), 12 ); -} } - - if( node.hasAttributes() ){ - Node attr = node.getAttributes() - .getNamedItem( "signature" ); - if ( (attr != null) && messages ) { - logWriter.println( attr.getNodeValue() ); -} - - attr = node.getAttributes() - .getNamedItem( "preamble" ); - if( (attr != null) - && attr.getNodeValue().equals( "yes" ) ){ - // BufferedReader br = null; -try { - String s; - boolean front = true; - rootName = "<" + ((rootName==null)? inputObject.getRoot() : rootName); - if( inData == null ){ - // FileReader fr = new FileReader(inFile); -// BufferedReader in = new BufferedReader(fr); -URLConnection connection = - new URL(inFile).openConnection(); -connection.setRequestProperty("User-Agent", - "[" - + System.getProperty("os.name") - + " / " - + System.getProperty("os.arch") - + "]" - + "[" - + System.getProperty("java.version") - + " - " - + System.getProperty("java.vendor") - + "]" -); -InputStream inputStream = connection.getInputStream(); -BufferedReader in = new BufferedReader ( - new InputStreamReader ( inputStream ) ); - -while ( ((s = in.readLine()) != null) && front ) { - int i = s.indexOf( rootName ); - if( i > -1 ){ - front = false; - s = s.substring(0,i); - } - outPrintWriter.println(s); - returnToFile = false; -} -in.close(); - - } else { - int i = inData.indexOf( rootName ); -if( i > -1 ){ - front = false; - s = inData.substring(0,i); -} else { s = ""; } -outPrintWriter.println(s); -returnToFile = false; - - } -} catch (Exception e) { - System.err.println( - "--- Error --- Couldn't copy preamble: " + e); -} - -} } - - execute( node.getFirstChild() ); -} else { - if( inData == null ){ - /* -errMsg = "Searching <?xtpipes file=\"...\"?> in " - + inFile + ": "; -*/ -scriptFile = inputObject.getXtpipes(); -rootName = inputObject.getRoot(); -needScript = true; - -} else { - scriptFile = inputObject.getXtpipes(); -rootName = inputObject.getRoot(); -needScript = true; - -} - -} - - } else if( instruction.equals( "set" ) ){ - String name = node.getAttributes().getNamedItem( "name" ) - .getNodeValue(); -Node cdata = node.getFirstChild(); -while( cdata.getNodeType() != Node.CDATA_SECTION_NODE ){ - cdata = cdata.getNextSibling(); -} -String code = cdata.getNodeValue().trim(); -map.put( name, (Object) code ); - - } else if( instruction.equals( "get" ) ){ - try { - String name = node.getAttributes() - .getNamedItem( "name" ).getNodeValue(); - String file = node.getAttributes() - .getNamedItem( "file" ).getNodeValue(); - StreamSource in = new StreamSource( new File(file) ); - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - identityTransformer.transform( in, new StreamResult(baos) ); - byte [] bytes = baos.toByteArray(); - map.put( name, (Object) new String(bytes) ); -} catch( Exception e ){ - instructionErr( node, e.toString(), 14 ); -} - - } else if( instruction.equals( "print" ) ){ - String name = node.getAttributes() - .getNamedItem( "name" ).getNodeValue(); -String xml = (String) map.get(name); -if( node.getAttributes().getNamedItem( "file" )==null ){ - if( !Xtpipes.trace ){ - logWriter.println( "[##] = xtpipes => print: " + scriptFile ); - } - logWriter.println( XtpipesUni.toUni(xml, "") ); -} else { - String file = node.getAttributes() - .getNamedItem( "file" ).getNodeValue(); - try{ - FileWriter fw = new FileWriter( file ); - XtpipesPrintWriter out = new XtpipesPrintWriter( fw ); - out.println( xml ); - out.close(); - } catch(Exception e){ - instructionErr( node, e.toString(),15 ); -} } - - } else if( instruction.equals( "return" ) ){ - String name = node.getAttributes() - .getNamedItem( "name" ).getNodeValue(); -result = (String) map.get(name); -if( returnToFile ){ - outPrintWriter.println(result); -} - - } else if( instruction.equals( "if" ) ){ - try{ - String xml = node.getAttributes() - .getNamedItem( "xml" ).getNodeValue(); -String dtd = node.getAttributes() - .getNamedItem( "dtd" ).getNodeValue(); -// String root = node.getAttributes() -// .getNamedItem( "root" ).getNodeValue(); -String doc = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" - + "<!DOCTYPE doc [\n" - + (String) map.get(dtd) - + "\n]>\n" - + (String) map.get(xml) ; - - byte [] bytes = doc.getBytes("UTF-8"); - ByteArrayInputStream bais = new ByteArrayInputStream( bytes ); - InputSource in = new InputSource( bais ); - SAXParser saxParser = saxFactory.newSAXParser(); - XMLReader xmlReader = saxParser.getXMLReader(); - xmlReader.parse( in ); - if( trace ){ - logWriter.print( "--> true" ); -} - - execute( node.getFirstChild() ); -} catch ( Exception e ){ if( trace ){ - logWriter.print( "--> true" ); -} - } - - } else if( instruction.equals( "xslt" ) ){ - try{ - Node xmlNode = node.getAttributes().getNamedItem( "xml" ); -StreamSource inDoc = null; -String xml; -if( xmlNode == null ){ - if( inData == null ){ - inDoc = new StreamSource( new File(inFile) ); -} else { - byte [] bytes = inData.getBytes("UTF-8"); - ByteArrayInputStream bais = new ByteArrayInputStream( bytes ); - inDoc = new StreamSource( bais ); -} - -} else { - xml = xmlNode.getNodeValue(); - String doc = (String) map.get(xml); - if( doc!=null ){ - byte [] bytes = doc.getBytes("UTF-8"); - ByteArrayInputStream bais = new ByteArrayInputStream( bytes ); - inDoc = new StreamSource( bais ); -} } - - String xslt = node.getAttributes() - .getNamedItem( "xsl" ).getNodeValue(); -String templates = (String) map.get(xslt); -byte [] bytes = templates.getBytes("UTF-8"); -ByteArrayInputStream bais = new ByteArrayInputStream( bytes ); -StreamSource inXslt = new StreamSource( bais ); - - Node nameNode = node.getAttributes().getNamedItem("name"); -StreamResult outDoc; -CharArrayWriter caos = null; -if( nameNode == null ){ - outDoc = new StreamResult(outPrintWriter); - returnToFile = false; -} else { - caos = new CharArrayWriter(); - outDoc = new StreamResult(caos); -} - - errMssg = null; - fc.setErrorListener( new ErrorListener() { - public void warning(TransformerException e) throws TransformerException { - showSpecifics(e); - } - public void error(TransformerException e) throws TransformerException { - showSpecifics(e); - } - public void fatalError(TransformerException e) throws TransformerException { - showSpecifics(e); - } - void showSpecifics(TransformerException e) - throws TransformerException{ - String err = e.getMessage() ; - String loc = e.getLocationAsString(); - if( loc != null ){ err = loc + ": " + err; } - err = "XSL stylesheet problem: " + err; - if( errMssg == null ){ errMssg = err; } - throw new TransformerException(err); -} } - ); - Transformer transformer = fc.newTransformer( inXslt ); - transformer.setErrorListener( new ErrorListener() { - public void warning(TransformerException e) throws TransformerException { - showSpecifics(e); - } - public void error(TransformerException e) throws TransformerException { - showSpecifics(e); - } - public void fatalError(TransformerException e) throws TransformerException { - showSpecifics(e); - } - void showSpecifics(TransformerException e) - throws TransformerException{ - String err = e.getMessage() ; - String loc = e.getLocationAsString(); - if( loc != null ){ err = loc + ": " + err; } - if( errMssg == null ){ errMssg = err; } - err = "XML document prblem: " + err; - throw new TransformerException(err); -} } - ); - transformer.transform(inDoc, outDoc ); - if( nameNode != null ){ - String name = nameNode.getNodeValue(); - char [] chars = caos.toCharArray() ; - map.put( name, (Object) new String(chars) ); -} - - -} catch ( javax.xml.transform.TransformerException e ){ - if( Xtpipes.trace ){ e.printStackTrace(); } - instructionErr( node, - e.getMessage() - + - ((errMssg==null)? "" : ("; " +errMssg)) - , 37); -} catch ( Exception e ){ - if( Xtpipes.trace ){ e.printStackTrace(); } - instructionErr( node, (errMssg==null)? e.toString() - : e.toString() + "; " + errMssg - , 16 ); -} - - } else if( instruction.equals( "dom" ) ){ - try{ - Node xmlNode = node.getAttributes().getNamedItem( "xml" ); -Document dom; -if( xmlNode == null ){ - if( inData == null ){ - dom = domBuilder.parse( new File(inFile) ); -} else { - byte [] bytes = inData.getBytes("UTF-8"); - InputStream is = new ByteArrayInputStream( bytes ); - dom = domBuilder.parse (is);} - -} else { - String xml = xmlNode.getNodeValue(); - String doc = (String) map.get(xml); - if( doc == null ){ - instructionErr( node, "improper xml attribute value", 18 ); - } - byte [] bytes = doc.getBytes("UTF-8"); - InputStream is = new ByteArrayInputStream( bytes ); - dom = domBuilder.parse (is); -} - - String className = node.getAttributes() - .getNamedItem( "class" ).getNodeValue(); -String methodName = node.getAttributes() - .getNamedItem( "method" ).getNodeValue(); -Class <?> cls = Class.forName( className ); -Class<?> [] argTypes = { Node.class }; -Method m = cls.getMethod( methodName, argTypes ); -Object parmValues[] = new Object[1]; -parmValues[0] = dom; -m.invoke( null, parmValues ); - - Node nameNode = node.getAttributes().getNamedItem("name"); -StreamResult outDoc; -CharArrayWriter caos = null; -if( nameNode == null ){ - outDoc = new StreamResult(outPrintWriter); - returnToFile = false; -} else { - caos = new CharArrayWriter(); - outDoc = new StreamResult(caos); -} - -cleanXmlns(dom); -DOMSource domSource = new DOMSource(dom); -try{ - identityTransformer.transform( domSource, outDoc ); -} catch ( javax.xml.transform.TransformerException e ){ - String s = Xtpipes.trace? - ( - "\n------------------------ xml code ------------------------\n" - + serialize( dom ) - + "\n----------------------------------------------------------\n" - ) - : ""; - instructionErr( node, e.getMessage() + s, 35 ); -} -if( nameNode != null ){ - String name = nameNode.getNodeValue(); - char [] chars = caos.toCharArray() ; - String domString = new String(chars); - Node dcl = node.getAttributes().getNamedItem( "dcl" ); -if( ((dcl == null) || (dcl.getNodeValue().equals("no") )) - && - (domString.length() > 7) - && - domString.startsWith("<?xml") - && - !Character.isLetterOrDigit( domString.charAt(5) ) -){ - domString = domString.substring( domString.indexOf("?>") + 2 ); -} - - map.put( name, (Object) domString ); -} - -} catch ( NoSuchMethodException e ){ - instructionErr( node, - "could not find method: " + e.getMessage(), 18 ); -} catch ( java.lang.reflect.InvocationTargetException e ){ - if( Xtpipes.trace ){ e.printStackTrace(); } - instructionErr( node, e.getCause().toString(), 36); -} catch ( Exception e ){ - if( Xtpipes.trace ){ e.printStackTrace(); } - instructionErr( node, e.toString(), 20 ); -} - - } else if( instruction.equals( "sax" ) ){ - String errMsg = ""; -try{ - Node xmlNode = node.getAttributes().getNamedItem( "xml" ); -InputSource inputSource=null; -String xml = null; -if( xmlNode == null ){ - if( inData == null ){ - xml = inFile; -} else { - byte [] bytes = inData.getBytes("UTF-8"); - ByteArrayInputStream bais = new ByteArrayInputStream( bytes ); - inputSource = new InputSource( bais ); -} - -} else { - xml = xmlNode.getNodeValue(); - String doc = (String) map.get(xml); - if( doc!=null ){ - byte [] bytes = doc.getBytes("UTF-8"); - ByteArrayInputStream bais = new ByteArrayInputStream( bytes ); - inputSource = new InputSource( bais ); -} } - - String [] className = node.getAttributes() - .getNamedItem( "content-handler" ) - .getNodeValue() - .split(","); - - Class<?> [] argTypes = { - PrintWriter.class, HashMap.class, Method.class, - PrintWriter.class, boolean.class }; -Node nameNode = node.getAttributes().getNamedItem("name"); -PrintWriter out; -CharArrayWriter caos = null; -if( nameNode == null ){ - out = outPrintWriter; - returnToFile = false; -} else { - caos = new CharArrayWriter(); - out = new PrintWriter( caos ); -} - -Object parmValues[] = new Object[5]; -parmValues[0] = out; -HashMap <String,Object> scripts = new HashMap <String,Object> (); -Node script = node.getFirstChild(); -while( script != null ){ - if( script.getNodeType()==Node.ELEMENT_NODE ){ - String element = script.getAttributes().getNamedItem( "element" ) - .getNodeValue(); - if( scripts.containsKey(element) ){ - System.err.println( - "--- Warning --- redfining script: " + element ); - } - scripts.put( element, (Object) script ); - } - script = script.getNextSibling(); -} - parmValues[1] = scripts; -parmValues[2] = method; -parmValues[3] = Xtpipes.logWriter; -parmValues[4] = (Object) Xtpipes.trace; -Class<?> cls = Class.forName( className[0].trim() ); -Constructor<?> c = cls.getConstructor( argTypes ); -Object ch = (Object) c.newInstance( parmValues ); - - XMLReader saxReader; -if( saxReaderStack.empty() ){ - SAXParser saxParser = saxFactory.newSAXParser(); - saxReader = saxParser.getXMLReader(); - saxReader.setEntityResolver(new org.xml.sax.EntityResolver() { - public InputSource resolveEntity( - String publicId, String systemId) { - if( (new File(systemId)).exists() ){ - return new org.xml.sax.InputSource( systemId ); - } - StringReader strReader = new StringReader(""); - return new org.xml.sax.InputSource(strReader); - } -}); - -} else { - saxReader = (XMLReader) saxReaderStack.pop(); -} - - XMLReader reader = saxReader; - for( int i=1; i<className.length; i++ ){ - argTypes = new Class [3]; - argTypes[0] = PrintWriter.class; - argTypes[1] = PrintWriter.class; - argTypes[2] = boolean.class; - parmValues = new Object[3]; - parmValues[0] = out; - parmValues[1] = Xtpipes.logWriter; - parmValues[2] = (Object) Xtpipes.trace; - errMsg = "Class.forName( " + className[i].trim() + ") " ; - cls = Class.forName( className[i].trim() ); - errMsg = "get-constructor " - + className[i].trim() - + "( PrintWriter, PrintWriter, boolean ) " ; - c = cls.getConstructor( argTypes ); - errMsg = "get-object " - + className[i].trim() - + "( PrintWriter, PrintWriter, boolean ) " ; - if( (cls.getModifiers() % 2) != 1 ){ - errMsg += "; class not defined to be public. "; - } - XMLFilter filter = (XMLFilter) c.newInstance( parmValues ); - errMsg = "set-parent " - + className[i].trim() - + "( PrintWriter, PrintWriter, boolean ) " ; - filter.setParent(saxReader); - saxReader = filter; -} - - errMsg = "setContentHandler( " - + className[0].trim() + " )"; - saxReader.setContentHandler( (org.xml.sax.ContentHandler) ch ); - Node lexAttr = node.getAttributes() - .getNamedItem( "lexical-handler" ); -if( lexAttr != null ){ - String lexName = lexAttr.getNodeValue(); - argTypes = new Class[3]; - argTypes[0] = Class.forName( className[0].trim() ); - argTypes[1] = PrintWriter.class; - argTypes[2] = boolean.class; - parmValues = new Object[3]; - parmValues[0] = ch; - parmValues[1] = Xtpipes.logWriter; - parmValues[2] = (Object) Xtpipes.trace; - errMsg = "Class.forName( " + lexName.trim() + ") " ; - cls = Class.forName( lexName.trim() ); - errMsg = "get-constructor " + - lexName.trim() + - "( " + className[0].trim() + " ) " ; - c = cls.getConstructor( argTypes ); - errMsg = "get-object " + - lexName.trim() + "( ... ) " ; - Object xh = (Object) c.newInstance( parmValues ); - errMsg = "set lexical handler " + lexName.trim() + " "; - saxReader.setProperty( - "http://xml.org/sax/properties/lexical-handler", - (org.xml.sax.ext.LexicalHandler) xh - ); -} - - saxReader.setEntityResolver(new org.xml.sax.EntityResolver() { - public InputSource resolveEntity( - String publicId, String systemId) { - if( (new File(systemId)).exists() ){ - return new org.xml.sax.InputSource( systemId ); - } - StringReader strReader = new StringReader(""); - return new org.xml.sax.InputSource(strReader); - } -}); - - if( inputSource==null ){ - errMsg = "While parsing file " + xml + ": "; -InputStream inputStream = null; -if( Xtpipes.ml2xml == null ){ - if( Xtpipes.trace ){ - Xtpipes.logWriter.println( - "No request for ml2xml configuration (command line option -x)" ); - } - try{ - inputStream = (InputStream) (new File(xml).toURI().toURL().openStream()); -} catch ( java.io.FileNotFoundException ioe ){ - try{ - URL url = null; - try { - url = new URL(xml); - } catch ( java.net.MalformedURLException fnf ){ - url = new File(xml).toURI().toURL(); - } - inputStream = (InputStream) (url.openStream()); - } catch ( java.io.FileNotFoundException fnf ){ - inputStream = (InputStream) - ( - new File( new File(xml).toURI().toURL().toString() ) - . toURI().toURL() - . openStream() - ); -} } - -} else { - try{ - ml2xmlClassObj = Class.forName( "ml2xml.Ml2xml" ); -} catch (java.lang.ClassNotFoundException cnf ){ - instructionErr( null, "Class not found: ml2xml.Ml2xml", 25 ); -} -Class<?> [] argTyp = { String.class, String[].class }; -Constructor<?> con = ml2xmlClassObj.getConstructor( argTyp ); -try{ - if( Xtpipes.trace ){ - String s = "Calling: ml2xml.Ml2xml(inputStream," - + "new String[]{" ; - for(int i=0; i < Xtpipes.ml2xml.length; i++){ - s += ((i==0)? "\"" : ", \"") + Xtpipes.ml2xml[i] + "\""; - } - s += "})"; - Xtpipes.logWriter.println( s ); -} - - inputStream = (InputStream) con.newInstance( - new Object[]{xml, ml2xml} - ); -} catch(java.lang.reflect.InvocationTargetException ite){ - String s = "Problem at: ml2xml.Ml2xml(" + xml + "," - + "new String[]{" ; - for(int i=0; i < Xtpipes.ml2xml.length; i++){ - s += ((i==0)? "\"" : ", \"") + Xtpipes.ml2xml[i] + "\""; - } - s += "})"; - instructionErr( null, s + "; " + ite.getCause(), 38); -} - -} -saxReader.parse( new InputSource(inputStream) ); -if( Xtpipes.ml2xml != null ){ - Class<?> [] argTyp = {}; - Method m = ml2xmlClassObj . getMethod( "closeFiles", argTyp ); - m.invoke( null, new Object[0] ); -} - - - } else { - errMsg = "xtpipes sax parsing error"; - saxReader.parse( inputSource ); - } - if( nameNode != null ){ - String name = nameNode.getNodeValue(); - char [] chars = caos.toCharArray() ; - map.put( name, (Object) new String(chars) ); -} - - saxReaderStack.push( reader ); -} catch ( java.io.FileNotFoundException e ){ - instructionErr( node, errMsg - + "could not find file: " + e.getMessage(), 19 ); -} catch ( ClassNotFoundException e ){ - instructionErr( node, errMsg - + " class not found: " - + e.getMessage() + "\n classpath = " - + System.getProperty("java.class.path") - + " ---", 22 ); -} catch ( java.lang.reflect.InvocationTargetException e ){ - instructionErr( node, errMsg + ": " + e.getCause(), 23 ); -} catch ( Exception e ){ - Xtpipes.logWriter.flush(); - e.printStackTrace(); - instructionErr( node, errMsg + ": " + e.toString(), 29 ); -} - - } else { - instructionErr( node, "Improper instruction: " + instruction, 11 ); - } } - node = node.getNextSibling(); -} } - - public static String execute( Node node, String xml ) - throws Exception { - String name = "."; - String old = (String) map.get(name); - map.put( name, (Object) xml ); - execute( node.getFirstChild() ); - String s = (String) map.get(name); - if( old != null ){ map.put( name, (Object) old ); } - return s; -} - - private static void instructionErr( Node node, String e, int num ) - throws Exception { - String err = "--- xtpipes error " + num + " --- "; - if( node != null ){ - err += "At <" + node.getNodeName(); - NamedNodeMap attr = node.getAttributes(); - for(int i=0; i<attr.getLength(); i++){ - Node nd = attr.item(i); - err += " " + - nd.getNodeName() + "=\"" + - nd.getNodeValue() + "\"" ; - } - err += " > : " ; - } - err += e; - if( ml2xmlClassObj != null ){ - Class<?> [] argTypes = { }; - Method m = ml2xmlClassObj.getMethod( "closeFiles", argTypes ); - Object parmValues[] = new Object[0]; - m.invoke( null, parmValues ); -} - - Xtpipes.logWriter.flush(); - if( exceptionErrs ) { throw new Exception( err ); } - else { - System.err.println( err ); - System.exit(1); - } -} -private static void instructionErr( Node node, String e, - StackTraceElement[] st, int num ) - throws Exception { - Xtpipes.logWriter.println( - "--- xtpipes error " + num + " --- " + e - ); - for(int i=st.length-1; i>=0; i-- ){ - Xtpipes.logWriter.println( st[i].toString() ); - } - instructionErr( node, e, num ); -} - - static String serialize( Node root ){ - if( root.getNodeType() == Node.TEXT_NODE) { - return root.getNodeValue(); - } - if( root.getNodeType() == Node.ELEMENT_NODE) { - String ser = ""; - String tagName = root.getNodeName(); - ser += "<" + tagName; - NamedNodeMap attributes = root.getAttributes(); -for(int i = 0; i < attributes.getLength(); i++) { - Attr attribute = (Attr) attributes.item(i); - ser += "\n" + attribute.getName() + "=\"" - + attribute.getValue() + "\" "; -} - - ser += "\n>"; - NodeList children = root.getChildNodes(); -if(children.getLength() > 0) { - for(int i = 0; i < children.getLength(); i++) { - ser += serialize(children.item(i)); -} } - - ser += "</" + tagName + ">"; - return ser; - } - if( root.getNodeType() == Node.DOCUMENT_NODE) { - String ser = ""; - NodeList children = root.getChildNodes(); -if(children.getLength() > 0) { - for(int i = 0; i < children.getLength(); i++) { - ser += serialize(children.item(i)); -} } - - return ser; - } - if( root == null ){ return "null"; } - return ""; -} - - static ArrayList<String> nsName, nsValue; -static void cleanXmlns( Node root ){ - if( root.getNodeType() == Node.ELEMENT_NODE) { - int top = nsName.size(); - ArrayList<Attr> remove = new ArrayList<Attr>(); -NamedNodeMap attributes = root.getAttributes(); -for(int i = 0; i < attributes.getLength(); i++) { - Attr attribute = (Attr) attributes.item(i); - String name = attribute.getName(); - if( name.startsWith("xmlns") ){ - if( (name.length() == 5) || (name.charAt(5) == ':') ){ - String value = attribute.getValue(); - boolean bool = false; -for(int k=nsName.size(); k>0; ){ - k--; - if( ((String) nsName.get(k)) . equals(name) ){ - bool = ((String) nsValue.get(k)) . equals(value); - break; -} } - - if( bool ){ remove.add(attribute); - } else { nsName.add(name); nsValue.add(value); } -} } } -for(int i=remove.size(); i>0; ){ - i--; - ((Element) root).removeAttributeNode( (Attr) remove.get(i) ); -} -remove = null; - - NodeList children = root.getChildNodes(); -if(children.getLength() > 0) { - for(int i = 0; i < children.getLength(); i++) { - cleanXmlns(children.item(i)); -} } - - for(int i=nsName.size(); i>top; ){ - i--; - nsName.remove(i); - nsValue.remove(i); - } - } else if( root.getNodeType() == Node.DOCUMENT_NODE) { - nsName = new ArrayList<String>(); - nsValue = new ArrayList<String>(); - NodeList children = root.getChildNodes(); -if(children.getLength() > 0) { - for(int i = 0; i < children.getLength(); i++) { - cleanXmlns(children.item(i)); -} } - - nsName = null; - nsValue = null; -} } - -} -class XtpipesEntityResolver implements org.xml.sax.EntityResolver { - public InputSource resolveEntity(String publicID, String systemID) - throws SAXException { - if( Xtpipes.trace ){ - Xtpipes.logWriter.println( "Resolving: publicID = \" " + publicID - + "\" systemID = \"" + systemID + "\"" ); - } - String file = FileInfo.searchFile( systemID ); - if( file != null ){ - try{ - file = new File(file).toURI().toURL().toString(); - return new InputSource( file ); - } catch( java.net.MalformedURLException mfe){ - throw new SAXException( - "--- xtpipes error 30 --- improper file name: " + file ); - } } - return null; -} - -} - - diff --git a/Build/source/texk/tex4htk/java/xtpipes/XtpipesPrintWriter.java b/Build/source/texk/tex4htk/java/xtpipes/XtpipesPrintWriter.java deleted file mode 100644 index 28eff6c12b3..00000000000 --- a/Build/source/texk/tex4htk/java/xtpipes/XtpipesPrintWriter.java +++ /dev/null @@ -1,28 +0,0 @@ -package xtpipes; -/* -XtpipesPrintWriter.java (2009-01-27-22:19) -*/ -import java.io.*; -public class XtpipesPrintWriter extends PrintWriter { - public XtpipesPrintWriter() { - super(System.out, true); - } - public XtpipesPrintWriter (PrintStream ps, boolean b){ - super(ps, b); - } - public XtpipesPrintWriter (OutputStream ps, boolean b){ - super(ps, b); - } - public XtpipesPrintWriter (FileWriter fw){ - super(fw); - } - public XtpipesPrintWriter (Writer wr){ - super(wr); - } - public void print(String str) { - super.print( XtpipesUni.toUni(str, "") ); - } - public void println(String str) { - super.println( XtpipesUni.toUni(str, "") ); -} } - diff --git a/Build/source/texk/tex4htk/java/xtpipes/XtpipesUni.java b/Build/source/texk/tex4htk/java/xtpipes/XtpipesUni.java deleted file mode 100644 index c11bbf9255f..00000000000 --- a/Build/source/texk/tex4htk/java/xtpipes/XtpipesUni.java +++ /dev/null @@ -1,41 +0,0 @@ -// 2009-01-27-22:19 -package xtpipes; -public class XtpipesUni{ - private static int D800 = Integer.parseInt("D800", 16); -private static int DFFF = Integer.parseInt("DFFF", 16); -private static int DC00 = Integer.parseInt("DC00", 16); -private static int X400 = Integer.parseInt("400",16); -private static int X10000 = Integer.parseInt("10000",16); - - -public static String toUni( char[] ch, int start, int length, - String filter ){ - StringBuffer buf = new StringBuffer(length); - for (int i = 0; i < length; i++) { - int chr = ch[ start + i ]; - boolean ascii = (chr == '\n') - || (chr > 31) && (chr < 127) ; - if( filter.indexOf(chr) > -1 ){ ascii = false; } - - if( (chr >= D800) && (chr<= DFFF) ){ - chr = ((ch[i] - D800) * X400 + (ch[++i] - DC00)) + X10000; - } - - - buf.append( - ascii ? Character.toString((char) chr) - : ("&#x" - + Integer.toHexString(chr).toUpperCase() - + ";" ) ); - } - return new String(buf); -} - - public static String toUni( String s, String filter ){ - char [] ch = s.toCharArray(); - int length = ch.length; - return toUni(ch, 0, length, filter); -} - -} - diff --git a/Build/source/texk/tex4htk/java/xtpipes/util/ScriptsManager.java b/Build/source/texk/tex4htk/java/xtpipes/util/ScriptsManager.java deleted file mode 100644 index dff6f3184e0..00000000000 --- a/Build/source/texk/tex4htk/java/xtpipes/util/ScriptsManager.java +++ /dev/null @@ -1,197 +0,0 @@ -// 2009-01-27-22:19 -package xtpipes.util; -import org.xml.sax.helpers.DefaultHandler; -import org.xml.sax.*; -import java.io.*; -import java.lang.reflect.*; -import java.util.HashMap; -import java.util.Stack; -import java.util.ArrayList; -import java.util.HashSet; -import xtpipes.XtpipesUni; - -public class ScriptsManager extends DefaultHandler { - boolean inBody = false; -ArrayList<String> nsName = new ArrayList<String>(), - nsValue = new ArrayList<String>(); -Stack<Integer> nsStack = new Stack<Integer>(); - - PrintWriter out = null, log = null; - HashMap<String,Object> scripts = null; - Method method = null; - boolean savemode=false; - String code="", match = null; - Stack<Object[]> stack = new Stack<Object[]>(); - public ScriptsManager( PrintWriter out, - HashMap<String,Object> scripts, - Method method, - PrintWriter log, boolean trace ){ - this.out = out; - this.log = (log==null)? new PrintWriter( System.err ) : log; - this.scripts = scripts; - this.method = method; - } - public void characters(char[] ch, int start, int length){ - add( XtpipesUni.toUni(ch, start, length, "<>&") ); - } - public void startElement(String ns, String sName, - String qName, Attributes atts) { - int top = nsName.size(); -nsStack.push( new Integer(top) ); - - String key = (atts==null)? - null - : (qName + "::" + atts.getValue("class")); -boolean flag = (key != null) && scripts.containsKey(key); - -if( !flag ){ - key = qName; - flag = scripts.containsKey(key); -} - - inBody = true; - String s = "<" + qName + "\n"; - for(int i=0; i<atts.getLength(); i++ ){ - String name = atts.getQName(i), - value = atts.getValue(i); - if( name.startsWith("xmlns") ){ - if( (name.length() == 5) || (name.charAt(5) == ':') ){ - boolean bool = false; -for(int k=nsName.size(); k>0; ){ - k--; - if( ((String) nsName.get(k)) . equals(name) ){ - bool = ((String) nsValue.get(k)) . equals(value); - break; -} } - - if( !bool ){ - nsName.add(name); nsValue.add(value); -} } } - - s += " " + name + "=\"" + - XtpipesUni.toUni(value, "<>&\"") + "\""; - } - if( flag ){ HashSet<String> registry = new HashSet<String>(); -for(int i=nsName.size(); i>top; ){ - i--; - registry.add( (String) nsName.get(i) ); -} -for(int i=top; i>0; ){ - i--; - String nm = (String) nsName.get(i); - if( ! registry.contains(nm) ){ - registry.add( nm ); - s += " " + nm + "=\"" + - XtpipesUni.toUni( (String) nsValue.get(i), "<>&\"") + "\""; -} } - } - s += ">" ; - if( flag ){ - Object [] state = { new Boolean(savemode), code, match }; - stack.push( state ); - savemode=true; code=""; match= key; -} else { - Object [] state = { new Boolean(savemode), null, null }; - stack.push( state ); -} -add( s ); - -} - - public void endElement(String ns, String sName, String qName){ - String s = "</" + qName + ">"; - add( s ); - Object [] state = (Object []) stack.pop(); - if( (String) state[1] != null ){ - Object parmValues[] = new Object[2]; -parmValues[0] = scripts.get( match ); -parmValues[1] = code; -try { - s = (String) method.invoke( null, parmValues ); -} catch(java.lang.reflect.InvocationTargetException e){ - log.println("--- ScriptsManager Error 1 --- " + e.getCause() ); - log.flush(); -} catch (Exception e){ - log.println("--- ScriptsManager Error 2 --- " + e ); - log.flush(); -} - - savemode = ((Boolean) state[0]).booleanValue(); -code = (String) state[1]; -match = (String) state[2]; - - int top = ((Integer) nsStack.pop()) . intValue(); -for(int i=nsName.size(); i>top; ){ - i--; - nsName.remove(i); - nsValue.remove(i); -} - - if( !s.equals("") ){ - int m = s.indexOf('>'); -char [] attrs = s.substring(0,m).toCharArray(); -int result = qName.length()+1, - mark = result, - from=-1, - control = 12 -; -char delimiter = ' '; -String name=""; -for(int i=result; i<m; i++ ){ - attrs[result++] = attrs[i]; - switch( control ){ - case 12 -: { if( attrs[i] == '=' ){ - name = (new String(attrs,mark,result-mark-1)).trim(); - control = 13 -; -} - break; } - case 13 -: { if( (attrs[i] == '"') || (attrs[i] == '\'') ){ - delimiter = attrs[i]; - control = 14 -; - from = result; -} - break; } - case 14 -: { if( attrs[i] == delimiter ){ - if( name.startsWith("xmlns") - && ((name.length() == 5) || (name.charAt(5) == ':')) ){ - String value = (new String(attrs,from,result-from-1)).trim(); - boolean bool = false; -for(int k=nsName.size(); k>0; ){ - k--; - if( ((String) nsName.get(k)) . equals(name) ){ - bool = ((String) nsValue.get(k)) . equals(value); - break; -} } - - if( bool ){ result = mark; } - } - mark = result; - control = 12 -; -} - break; } -} } -s = (new String(attrs,0, Math.min(result,attrs.length))) - + s.substring(m); - - add( s ); - } - } else { int top = ((Integer) nsStack.pop()) . intValue(); -for(int i=nsName.size(); i>top; ){ - i--; - nsName.remove(i); - nsValue.remove(i); -} - } -} - - protected void add(String s){ - if( savemode ){ code+=s; } - else { out.print(s); } -} } - diff --git a/Build/source/texk/tex4htk/java/xtpipes/util/ScriptsManagerLH.java b/Build/source/texk/tex4htk/java/xtpipes/util/ScriptsManagerLH.java deleted file mode 100644 index 17726d441c3..00000000000 --- a/Build/source/texk/tex4htk/java/xtpipes/util/ScriptsManagerLH.java +++ /dev/null @@ -1,26 +0,0 @@ -// 2009-01-27-22:19 -package xtpipes.util; -import org.xml.sax.ext.LexicalHandler; -// import org.xml.sax.ContentHandler; -import java.io.PrintWriter; -public class ScriptsManagerLH implements LexicalHandler { - ScriptsManager contentHandler; - PrintWriter log; - public ScriptsManagerLH( ScriptsManager contentHandler, - PrintWriter log, boolean trace ){ - this.contentHandler = contentHandler; - this.log = (log==null)? new PrintWriter( System.err ) : log; - } - public void comment(char[] ch, int start, int length){ - if( contentHandler.inBody ){ - String s = new String(ch, start, length); - contentHandler.add( "<!--" + s + "\n-->"); - } } - public void startEntity(String x){} - public void endEntity(String x){} - public void startCDATA(){} - public void endCDATA(){} - public void startDTD(String x, String y, String z){} - public void endDTD(){} -} - diff --git a/Build/source/texk/tex4htk/jh1context b/Build/source/texk/tex4htk/jh1context deleted file mode 100755 index 51bbe192c42..00000000000 --- a/Build/source/texk/tex4htk/jh1context +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -f/$1 $4 -d$1-doc/ -cjavahelp1 -m644 - - - diff --git a/Build/source/texk/tex4htk/jh1latex b/Build/source/texk/tex4htk/jh1latex deleted file mode 100755 index 3a3969515da..00000000000 --- a/Build/source/texk/tex4htk/jh1latex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode,jh1.0]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode,jh1.0]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode,jh1.0]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -f/$1 $4 -d$1-doc/ -cjavahelp1 -m644 - - - diff --git a/Build/source/texk/tex4htk/jh1mex b/Build/source/texk/tex4htk/jh1mex deleted file mode 100755 index d37b07fa9ca..00000000000 --- a/Build/source/texk/tex4htk/jh1mex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -f/$1 $4 -d$1-doc/ -cjavahelp1 -m644 - - - diff --git a/Build/source/texk/tex4htk/jh1tex b/Build/source/texk/tex4htk/jh1tex deleted file mode 100755 index e0a4cffd79b..00000000000 --- a/Build/source/texk/tex4htk/jh1tex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -f/$1 $4 -d$1-doc/ -cjavahelp1 -m644 - - - diff --git a/Build/source/texk/tex4htk/jh1texi b/Build/source/texk/tex4htk/jh1texi deleted file mode 100755 index 071d6544f27..00000000000 --- a/Build/source/texk/tex4htk/jh1texi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -f/$1 $4 -d$1-doc/ -cjavahelp1 -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/jh1xelatex b/Build/source/texk/tex4htk/jh1xelatex deleted file mode 100755 index a7340693acf..00000000000 --- a/Build/source/texk/tex4htk/jh1xelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode,jh1.0]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode,jh1.0]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode,jh1.0]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -.xdv -f/$1 $4 -d$1-doc/ -cjavahelp1 -m644 - - - diff --git a/Build/source/texk/tex4htk/jh1xetex b/Build/source/texk/tex4htk/jh1xetex deleted file mode 100755 index 05f52b9d2a6..00000000000 --- a/Build/source/texk/tex4htk/jh1xetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode,jh1.0}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -.xdv -f/$1 $4 -d$1-doc/ -cjavahelp1 -m644 - - - diff --git a/Build/source/texk/tex4htk/jhcontext b/Build/source/texk/tex4htk/jhcontext deleted file mode 100755 index 1378b3a623d..00000000000 --- a/Build/source/texk/tex4htk/jhcontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -f/$1 $4 -d$1-doc/ -cjavahelp -cvalidatehtml -m644 - - - diff --git a/Build/source/texk/tex4htk/jhlatex b/Build/source/texk/tex4htk/jhlatex deleted file mode 100755 index e8550de4420..00000000000 --- a/Build/source/texk/tex4htk/jhlatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -f/$1 $4 -d$1-doc/ -cjavahelp -cvalidatehtml -m644 - - - diff --git a/Build/source/texk/tex4htk/jhmex b/Build/source/texk/tex4htk/jhmex deleted file mode 100755 index 4deec4d4ff2..00000000000 --- a/Build/source/texk/tex4htk/jhmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -f/$1 $4 -d$1-doc/ -cjavahelp -cvalidatehtml -m644 - - - diff --git a/Build/source/texk/tex4htk/jhtex b/Build/source/texk/tex4htk/jhtex deleted file mode 100755 index 45460a32628..00000000000 --- a/Build/source/texk/tex4htk/jhtex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -f/$1 $4 -d$1-doc/ -cjavahelp -cvalidatehtml -m644 - - - diff --git a/Build/source/texk/tex4htk/jhtexi b/Build/source/texk/tex4htk/jhtexi deleted file mode 100755 index 70219afd076..00000000000 --- a/Build/source/texk/tex4htk/jhtexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -f/$1 $4 -d$1-doc/ -cjavahelp -cvalidatehtml -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/jhxelatex b/Build/source/texk/tex4htk/jhxelatex deleted file mode 100755 index 2b1b4e81e5d..00000000000 --- a/Build/source/texk/tex4htk/jhxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,html,javahelp,3.2,unicode]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -.xdv -f/$1 $4 -d$1-doc/ -cjavahelp -cvalidatehtml -m644 - - - diff --git a/Build/source/texk/tex4htk/jhxetex b/Build/source/texk/tex4htk/jhxetex deleted file mode 100755 index ae0e520823e..00000000000 --- a/Build/source/texk/tex4htk/jhxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,html,javahelp,3.2,unicode}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf -u10 - t4ht -.xdv -f/$1 $4 -d$1-doc/ -cjavahelp -cvalidatehtml -m644 - - - diff --git a/Build/source/texk/tex4htk/jmcontext b/Build/source/texk/tex4htk/jmcontext deleted file mode 100755 index 3c9c08f6a61..00000000000 --- a/Build/source/texk/tex4htk/jmcontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jmlatex b/Build/source/texk/tex4htk/jmlatex deleted file mode 100755 index eacf7b534a9..00000000000 --- a/Build/source/texk/tex4htk/jmlatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsmath]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsmath]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsmath]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jmmex b/Build/source/texk/tex4htk/jmmex deleted file mode 100755 index ebc9abdf786..00000000000 --- a/Build/source/texk/tex4htk/jmmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jmtex b/Build/source/texk/tex4htk/jmtex deleted file mode 100755 index 541bbce3cb5..00000000000 --- a/Build/source/texk/tex4htk/jmtex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jmtexi b/Build/source/texk/tex4htk/jmtexi deleted file mode 100755 index b2406c7902e..00000000000 --- a/Build/source/texk/tex4htk/jmtexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/jmxelatex b/Build/source/texk/tex4htk/jmxelatex deleted file mode 100755 index cdbe256e60c..00000000000 --- a/Build/source/texk/tex4htk/jmxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsmath]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsmath]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsmath]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -.xdv -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jmxetex b/Build/source/texk/tex4htk/jmxetex deleted file mode 100755 index 0a442884648..00000000000 --- a/Build/source/texk/tex4htk/jmxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsmath}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -.xdv -f/$1 $4 ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jscontext b/Build/source/texk/tex4htk/jscontext deleted file mode 100755 index fbf4dabecac..00000000000 --- a/Build/source/texk/tex4htk/jscontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cjsmlhtf - t4ht -f/$1 $4 -cjsml ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jslatex b/Build/source/texk/tex4htk/jslatex deleted file mode 100755 index 6efea03607e..00000000000 --- a/Build/source/texk/tex4htk/jslatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cjsmlhtf - t4ht -f/$1 $4 -cjsml ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jsmex b/Build/source/texk/tex4htk/jsmex deleted file mode 100755 index 52a0171080b..00000000000 --- a/Build/source/texk/tex4htk/jsmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cjsmlhtf - t4ht -f/$1 $4 -cjsml ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jstex b/Build/source/texk/tex4htk/jstex deleted file mode 100755 index d4c4bf957bc..00000000000 --- a/Build/source/texk/tex4htk/jstex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cjsmlhtf - t4ht -f/$1 $4 -cjsml ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jstexi b/Build/source/texk/tex4htk/jstexi deleted file mode 100755 index c0b64953683..00000000000 --- a/Build/source/texk/tex4htk/jstexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cjsmlhtf - t4ht -f/$1 $4 -cjsml ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/jsxelatex b/Build/source/texk/tex4htk/jsxelatex deleted file mode 100755 index cc5ca7db937..00000000000 --- a/Build/source/texk/tex4htk/jsxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,jsml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cjsmlhtf - t4ht -.xdv -f/$1 $4 -cjsml ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/jsxetex b/Build/source/texk/tex4htk/jsxetex deleted file mode 100755 index 7ba07e29d20..00000000000 --- a/Build/source/texk/tex4htk/jsxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,jsml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cjsmlhtf - t4ht -.xdv -f/$1 $4 -cjsml ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/mk4ht.pl b/Build/source/texk/tex4htk/mk4ht.pl deleted file mode 100755 index cf068ed1fd1..00000000000 --- a/Build/source/texk/tex4htk/mk4ht.pl +++ /dev/null @@ -1,387 +0,0 @@ -#!/usr/bin/env perl -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -# mk4ht Version 1.1 % -# Copyright (C) 2003--2009 Eitan M. Gurari % -# Copyright 2009 TeX Users Group % -# % -# This work may be distributed and/or modified under the % -# conditions of the LaTeX Project Public License, either % -# version 1.3 of this license or (at your option) any % -# later version. The latest version of this license is % -# in % -# http://www.latex-project.org/lppl.txt % -# and version 1.3 or later is part of all distributions % -# of LaTeX version 2003/12/01 or later. % -# % -# This work has the LPPL maintenance status "maintained".% -# % -# The Current Maintainer of this work % -# is the TeX4ht Project. % -# % -# tex4ht@tug.org % -# http://www.tug.org/tex4ht % -#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - -use strict; -$^W=1; # turn warning on -my $texFile = ''; -if( @ARGV ){ - my(@array) = split('\.',@ARGV[1]); - $texFile = @array[0]; -} -my @options = ( - "", "ht", "", "", "", "-cvalidatehtml", - "ht", "htlatex", "latex", "", "", "-cvalidatehtml", - "ht", "httex", "tex", "", "", "-cvalidatehtml", - "ht", "httexi", "texi", "", "", "-cvalidatehtml", - "ht", "htcontext", "context", "", "", "-cvalidatehtml", - "ht", "htxetex", "xetex", "", "", "-cvalidatehtml", - "ht", "htxelatex", "xelatex", "", "", "-cvalidatehtml", - "xh", "xhlatex", "latex", "xhtml", "", "-cvalidate", - "xh", "xhtex", "tex", "xhtml", "", "-cvalidate", - "xh", "xhtexi", "texi", "xhtml", "", "-cvalidate", - "xh", "xhcontext","context", "xhtml", "", "-cvalidat", - "xh", "xhxelatex", "xelatex", "xhtml", "", "-cvalidate", - "xh", "xhxetex", "xetex", "xhtml", "", "-cvalidate", - "uxh", "uxhlatex", "latex", "xhtml,uni-html4", " -cunihtf", "-cvalidate", - "uxh", "uxhtex", "tex", "xhtml,uni-html4", " -cunihtf", "-cvalidate", - "uxh", "uxhtexi", "texi", "xhtml,uni-html4", " -cunihtf", "-cvalidate", - "uxh", "uxhcontext","context", "xhtml,uni-html4", " -cunihtf", "-cvalidate", - "uxh", "uxhxelatex", "xelatex", "xhtml,uni-html4", " -cunihtf", "-cvalidate", - "uxh", "uxhxetex", "xetex", "xhtml,uni-html4", " -cunihtf", "-cvalidate", - "xhm", "xhmlatex", "latex", "xhtml,mathml", " -cunihtf", "-cvalidate", - "xhm", "xhmtex", "tex", "xhtml,mathml", " -cunihtf", "-cvalidate", - "xhm", "xhmtexi", "texi", "xhtml,mathml", " -cunihtf", "-cvalidate", - "xhm", "xhmcontext","context", "xhtml,mathml", " -cunihtf", "-cvalidate", - "xhm", "xhmxelatex", "xelatex", "xhtml,mathml", " -cunihtf", "-cvalidate", - "xhm", "xhmxetex", "xetex", "xhtml,mathml", " -cunihtf", "-cvalidate", - "mz", "mzlatex", "latex", "xhtml,mozilla", " -cmozhtf", "-cvalidate", - "mz", "mztex", "tex", "xhtml,mozilla", " -cmozhtf", "-cvalidate", - "mz", "mztexi", "texi", "xhtml,mozilla", " -cmozhtf", "-cvalidate", - "mz", "mzcontext", "context", "xhtml,mozilla", " -cmozhtf", "-cvalidate", - "mz", "mzxelatex", "xelatex", "xhtml,mozilla", " -cmozhtf", "-cvalidate", - "mz", "mzxetex", "xetex", "xhtml,mozilla", " -cmozhtf", "-cvalidate", - "oo", "oolatex", "latex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", - "oo", "ootex", "tex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", - "oo", "ootexi", "texi", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", - "oo", "oocontext", "context", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", - "oo", "ooxelatex", "xelatex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", - "oo", "ooxetex", "xetex", "xhtml,ooffice", "ooffice/\! -cmozhtf", "-cooxtpipes -coo", - "es", "eslatex", "latex", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", - "es", "estex", "tex", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", - "es", "estexi", "texi", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", - "es", "escontext", "context", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", - "es", "esxelatex", "xelatex", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", - "es", "esxetex", "xetex", "xhtml,emspk", " -cemspkhtf -s4es", "-cemspk", - "js", "jslatex", "latex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", - "js", "jstex", "tex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", - "js", "jstexi", "texi", "xhtml,jsml", " -cjsmlhtf", "-cjsml", - "js", "jscontext", "context", "xhtml,jsml", " -cjsmlhtf", "-cjsml", - "js", "jsxelatex", "xelatex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", - "js", "jsxetex", "xetex", "xhtml,jsml", " -cjsmlhtf", "-cjsml", - "jm", "jmlatex", "latex", "xhtml,jsmath", " -cmozhtf", "", - "jm", "jmtex", "tex", "xhtml,jsmath", " -cmozhtf", "", - "jm", "jmtexi", "texi", "xhtml,jsmath", " -cmozhtf", "", - "jm", "jmcontext", "context", "xhtml,jsmath", " -cmozhtf", "", - "jm", "jmxelatex", "xelatex", "xhtml,jsmath", " -cmozhtf", "", - "jm", "jmxetex", "xetex", "xhtml,jsmath", " -cmozhtf", "", - "tei", "teilatex", "latex", "xhtml,tei", " -cunihtf", "-cvalidate", - "tei", "teitex", "tex", "xhtml,tei", " -cunihtf", "-cvalidate", - "tei", "teitexi", "texi", "xhtml,tei", " -cunihtf", "-cvalidate", - "tei", "teicontext","context", "xhtml,tei", " -cunihtf", "-cvalidate", - "teim", "teimlatex", "latex", "xhtml,tei-mml"," -cunihtf", "-cvalidate", - "teim", "teimtex", "tex", "xhtml,tei-mml"," -cunihtf", "-cvalidate", - "teim", "teimtexi", "texi", "xhtml,tei-mml"," -cunihtf", "-cvalidate", - "teim", "teimcontext","context","xhtml,tei-mml"," -cunihtf", "-cvalidate", - "tei", "teixelatex", "xelatex", "xhtml,tei", " -cunihtf", "-cvalidate", - "tei", "teixetex", "xetex", "xhtml,tei", " -cunihtf", "-cvalidate", - "db", "dblatex", "latex", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", - "db", "dbtex", "tex", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", - "db", "dbtexi", "texi", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", - "db", "dbcontext", "context", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", - "dbm", "dbmlatex", "latex", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", - "dbm", "dbmtex", "tex", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", - "dbm", "dbmtexi", "texi", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", - "dbm", "dbmcontext","context", "xhtml,docbook-mml", " -cunihtf", "-cdocbk", - "db", "dbxelatex", "xelatex", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", - "db", "dbxetex", "xetex", "xhtml,docbook", " -cunihtf", "-cvalidate -cdocbk", - "w", "wlatex", "latex", "xhtml,word", " -csymhtf", "", - "w", "wtex", "tex", "xhtml,word", " -csymhtf", "", - "w", "wtexi", "texi", "xhtml,word", " -csymhtf", "", - "w", "wcontext", "context", "xhtml,word", " -csymhtf", "", - "w", "wxelatex", "xelatex", "xhtml,word", " -csymhtf", "", - "w", "wxetex", "xetex", "xhtml,word", " -csymhtf", "", - "jh", "jhlatex", "latex", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", - "jh", "jhtex", "tex", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", - "jh", "jhtexi", "texi", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", - "jh", "jhcontext","context", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", - "jh", "jhxelatex", "xelatex", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", - "jh", "jhxetex", "xetex", "html,javahelp,xml,3.2,unicode", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp -cvalidatehtml", - "jh1", "jh1latex", "latex", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", - "jh1", "jh1tex", "tex", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", - "jh1", "jh1texi", "texi", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", - "jh1", "jh1context","context", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", - "jh1", "jh1xelatex", "xelatex", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", - "jh1", "jh1xetex", "xetex", "html,javahelp,xml,3.2,unicode,jh1.0", " -cmozhtf -u10", " -d$texFile-doc/ -cjavahelp", - -); - -sub showInstrucions(){ - print " option1: mk4ht #1 \"#2\" \"#3\" \"#4\" \"#5\"\n"; - print " \n"; - print " #1: htlatex, xhlatex, mzlatex, oolatex, dblatex, dbmlatex,\n"; - print " jhlatex, eslatex, teilatex, teimlatex, uxhlatex, \n"; - print " wlatex, xhmlatex\n"; - print " \n"; - print " also 'tex', 'texi', 'context', 'xetex', and 'xelatex'\n"; - print " instead of 'latex'\n"; - print " \n"; - print " #2: file name\n"; - print " #3: optional arguments for latex/tex/... \n"; - print " #4: optional arguments for tex4ht.c\n"; - print " #5: optional arguments for t4ht.c\n"; - print " \n"; - print " option2: mk4ht ht #2 #3 \"#4\" \"#5\"\n"; - print " \n"; - print " #1: ht\n"; - print " #2: latex, tex\n"; - print " #3: file name\n"; - print " #4: optional arguments for tex4ht.c\n"; - print " #5: optional arguments for t4ht.c\n"; - print " \n"; - print " Within the program, in column three of the options\n"; - print " variable, the requests for the commands \"latex\",\n"; - print " \"tex\", etc. can be replaced with other equivalent\n"; - print " commands (e.g., \"tex -fmt=latex\").\n"; - - print "--------------------------------------------------------------------------\n"; -print " Private configuration file: mk4ht.cfg\n"; -print "--------------------------------------------------------------------------\n"; -print "\n"; -print "A private configuration file mk4ht.cfg or .mk4ht may be placed at the\n"; -print "work or home directory, to update existing commands and introduce new\n"; -print "ones. The configuration file may contain records of the following\n"; -print "kinds.\n"; -print "\n"; -print " # Comment\n"; -print " \n"; -print " name = type\n"; -print " Defines a ht*tex like command, and assocites to it the \n"; -print " TeX compiler of the specified type. Examples of TeX \n"; -print " types: latex, tex, texi, context, xetex, and xelatex.\n"; -print " \n"; -print " name.tex = options\n"; -print " Command line options for the compilation under\n"; -print " the (la)tex compiler\n"; -print " \n"; -print " name.tex4ht = options\n"; -print " Command line options for tex4ht.c \n"; -print " \n"; -print " name.t4ht = options\n"; -print " Command line options for t4ht.c\n"; -print " \n"; -print "Each record should appear in a different line. Variants\n"; -print "`name.tex += options', `name.tex4ht += options',\n"; -print "`name.t4ht += options' of the above records are also allowed.\n"; -print "They append the listed options to the base values.\n"; -print "\n"; -print "Example:\n"; -print "\n"; -print " foohlatex = latex\n"; -print " foohlatex.tex = xhtml,uni-html4\n"; -print " foohlatex.tex4ht += -cunihtf\n"; -print " foohlatex.t4ht = -cvalidate\n"; -print " htlatex.t4ht += -d./\n"; - - - print "--------------------------------------------------------------------------\n"; -print " Deleting files\n"; -print "--------------------------------------------------------------------------\n"; -print "\n"; -print "The configuration file mk4ht.cfg may also contain requests for\n"; -print "removing files created in the work directory during the compilation.\n"; -print "The requests are to be made through records of the following forms.\n"; -print "\n"; -print " clean ext1 ext2 ...\n"; -print " The extensions of the file name to be removed.\n"; -print " \n"; -print " clean.name ext1 ext2 ...\n"; -print " Conditional request. The `name' refers to the ht*tex \n"; -print " like command in use.\n"; -print "\n"; -print "Example:\n"; -print " clean dvi idv\n"; -print " clean.foohlatex lg \n"; -print " clean.htlatex lg tmp\n"; - -} - -print "mk4ht (Version 1.1)\n"; -if( !@ARGV ){ - print "improper command\n"; - showInstrucions(); exit(1); -} -my @command=("","","","",""); -my $i=0; -my $j=0; -my $param; -my $name; -my $compiler; -my $tex; -my $tex4ht; -my $t4ht; -my $texp; -my $tex4htp = ""; -my $t4htp = ""; -my @ext; - -foreach $param (@ARGV) { - if( $i == 0 ){ - my $inf; -open $inf, "<mk4ht.cfg" -or -( open $inf, "<.mk4ht" - or - ( - open $inf, "<" . $ENV{HOME} . "/mk4ht.cfg" - or - ( - open $inf, "<" . $ENV{HOME} . "/.mk4ht" - or $inf = "" -) ) ) -; - -if( $inf ){ - print "(mk4ht cfg)\n"; - while(<$inf>) { - my($line) = $_; - chomp($line); # remove eoln char - if ($line =~ m|\s*#.*|) {} - elsif($line =~ m|^\s*(\S*)\.(\S*)\s*\+=\s*(.*\S)\s*$|) { - if( ($param."tex4ht") eq ($1.$2) ){ - $tex4htp = $tex4htp . " " . $3; - } - elsif( ($param."t4ht") eq ($1.$2) ){ - $t4htp = $t4htp . " " . $3; - } - elsif( ($param."tex") eq ($1.$2) ){ - $texp = $texp . "," . $3; - } - } - elsif($line =~ m|^\s*(\S*)\.(\S*)\s*=\s*(.*\S)\s*$|) { - if( ($param."tex4ht") eq ($1.$2) ){ - $tex4ht = $3 . " "; - $tex4htp = ""; - } - elsif( ($param."t4ht") eq ($1.$2) ){ - $t4ht = $3 . " "; - $t4htp = ""; - } - elsif( ($param."tex") eq ($1.$2) ){ - $tex = $3 . ","; - $texp = ""; - } - } - elsif($line =~ m|^\s*(\S*)\s*=\s*(.*\S)\s*$|) { - if( $param eq $1 ){ - $name = $1; - $compiler = $2; - } - } - elsif($line =~ m|^\s*clean\s+(.+)|){ - my(@array) = split(' ',$1); - push(@ext,@array); -} elsif($line =~ m|^\s*clean\.(\S+)\s+(.+)|){ - if( $1 eq @ARGV[0] ){ - my(@array) = split(' ',$2); - push(@ext,@array); -} } - - elsif ($line) { print "--- Error --- " . $line . "\n"; } - } - close $inf; -} - - for( $j=1; $j<$#options; $j+=6 ){ - if( $param eq $options[$j] ){ - if( $name ){ - $command[0] = "ht".$compiler; -if( $tex ){ $command[2] = $tex; } else { $command[2] = ""; } -if( $tex4ht ){ $command[3] = $tex4ht; } else { $command[3] = ""; } -if( $t4ht ){ $command[4] = $t4ht; } else { $command[4] = ""; } - - } else { - if( $options[$j-1] eq "" ){ - $command[0] = $options[$j]; -} else { - $command[0] = "ht".$options[$j+1]; -} -if( $tex ){ $command[2] = $tex; } else { $command[2] = $options[$j+2]; } -if( $tex4ht ){ $command[3] = $tex4ht; } else { $command[3] = $options[$j+3]; } -if( $t4ht ){ $command[4] = $t4ht; } else { $command[4] = $options[$j+4]; } - - } - if( $texp ){ $command[2] = $command[2] . "," . $texp; } -if( $tex4htp){ $command[3] = $command[3] . " " . $tex4htp; } -if( $t4htp ){ $command[4] = $command[4] . " " . $t4htp; } - - last; - } } - if( $j>$#options ){ - if( $name ){ $command[0] = "ht".$compiler; -if( $tex ){ $command[2] = $tex; } else { $command[2] = ""; } -if( $tex4ht ){ $command[3] = $tex4ht; } else { $command[3] = ""; } -if( $t4ht ){ $command[4] = $t4ht; } else { $command[4] = ""; } - } - else { - print "improper command: $param \n"; - showInstrucions(); exit(1); - } } - } elsif ( $i== 1 ) { - $command[1] = $param; - } elsif ( $i== 2 ) { - if( $command[2] eq "" ){ - $command[2] = $param; - } else { - $command[2] = $param. "," . $command[2]; - } - } elsif ( $i== 3 ) { - $command[3] = $param . $command[3]; - } else { - $command[4] = $param. " " .$command[4]; - } - $i++; -} -my $cmd; -open (KPSEA, "kpsewhich " . $command[0] . " |"); -if ($cmd = <KPSEA>){ - $cmd =~ s/\s+$//; -} else { - $cmd = $command[0]; -} -close KPSEA; - -my $commando = $cmd . " " . $command[1] . " \"". - $command[2] . "\" \"". $command[3] . "\" \"" . - $command[4] . "\""; -print "$commando\n"; -my $rtrn; -if( $rtrn = system($commando) ){ - print "--- error --- failed to execute command\n"; -} else { - my $file; -my $ext; -opendir(DIR,".") ; -while ($file = readdir(DIR) ){ - if(index($file,$texFile) == 0 ){ - foreach $ext(@ext){ - if (index($file,$ext,length($file)-length($ext)) != -1){ - if( stat($file)){ - unlink($file); - print "Deleted: ". $file . "\n"; -} } } } } -closedir(DIR); - -} -exit( $rtrn ); - diff --git a/Build/source/texk/tex4htk/mzcontext b/Build/source/texk/tex4htk/mzcontext deleted file mode 100755 index 6dfef02089a..00000000000 --- a/Build/source/texk/tex4htk/mzcontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/mzlatex b/Build/source/texk/tex4htk/mzlatex deleted file mode 100755 index a7150329dcf..00000000000 --- a/Build/source/texk/tex4htk/mzlatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mozilla]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mozilla]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mozilla]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/mzmex b/Build/source/texk/tex4htk/mzmex deleted file mode 100755 index 9d494659786..00000000000 --- a/Build/source/texk/tex4htk/mzmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/mztex b/Build/source/texk/tex4htk/mztex deleted file mode 100755 index 54899d65401..00000000000 --- a/Build/source/texk/tex4htk/mztex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/mztexi b/Build/source/texk/tex4htk/mztexi deleted file mode 100755 index a93e255429f..00000000000 --- a/Build/source/texk/tex4htk/mztexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/mzxelatex b/Build/source/texk/tex4htk/mzxelatex deleted file mode 100755 index 0ec06093fab..00000000000 --- a/Build/source/texk/tex4htk/mzxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mozilla]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mozilla]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mozilla]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/mzxetex b/Build/source/texk/tex4htk/mzxetex deleted file mode 100755 index f6a6e800fc3..00000000000 --- a/Build/source/texk/tex4htk/mzxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mozilla}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/oocontext b/Build/source/texk/tex4htk/oocontext deleted file mode 100755 index 9d8c4e28188..00000000000 --- a/Build/source/texk/tex4htk/oocontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 -cooxtpipes -coo - - - diff --git a/Build/source/texk/tex4htk/oolatex b/Build/source/texk/tex4htk/oolatex deleted file mode 100755 index 3a2b670ac7a..00000000000 --- a/Build/source/texk/tex4htk/oolatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,ooffice]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,ooffice]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,ooffice]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 -cooxtpipes -coo - - - diff --git a/Build/source/texk/tex4htk/oomex b/Build/source/texk/tex4htk/oomex deleted file mode 100755 index 3fcb9993565..00000000000 --- a/Build/source/texk/tex4htk/oomex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 -cooxtpipes -coo - - - diff --git a/Build/source/texk/tex4htk/ootex b/Build/source/texk/tex4htk/ootex deleted file mode 100755 index 004b1ecbc35..00000000000 --- a/Build/source/texk/tex4htk/ootex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 -cooxtpipes -coo - - - diff --git a/Build/source/texk/tex4htk/ootexi b/Build/source/texk/tex4htk/ootexi deleted file mode 100755 index b79c4ba4b38..00000000000 --- a/Build/source/texk/tex4htk/ootexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -f/$1 $4 -cooxtpipes -coo -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/ooxelatex b/Build/source/texk/tex4htk/ooxelatex deleted file mode 100755 index 74cacff6e72..00000000000 --- a/Build/source/texk/tex4htk/ooxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,ooffice]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,ooffice]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,ooffice]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -.xdv -f/$1 $4 -cooxtpipes -coo - - - diff --git a/Build/source/texk/tex4htk/ooxetex b/Build/source/texk/tex4htk/ooxetex deleted file mode 100755 index 377bdc0c9fc..00000000000 --- a/Build/source/texk/tex4htk/ooxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,ooffice}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cmozhtf - t4ht -.xdv -f/$1 $4 -cooxtpipes -coo - - - diff --git a/Build/source/texk/tex4htk/t4ht.c b/Build/source/texk/tex4htk/t4ht.c deleted file mode 100644 index 38a83ccd17c..00000000000 --- a/Build/source/texk/tex4htk/t4ht.c +++ /dev/null @@ -1,3787 +0,0 @@ - -#line 145 "./tex4ht-t4ht.tex" - -/* t4ht.c (2018-07-04-14:25), generated from tex4ht-t4ht.tex - Copyright (C) 2009-2018 TeX Users Group - Copyright (C) 1998-2009 Eitan M. Gurari - -#line 1 "./tex4ht-t4ht.tex" - -% -% This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either -% version 1.3c of this license or (at your option) any -% later version. The latest version of this license is in -% http://www.latex-project.org/lppl.txt -% and version 1.3c or later is part of all distributions -% of LaTeX version 2005/12/01 or later. -% -% This work has the LPPL maintenance status "maintained". -% -% The Current Maintainer of this work -% is the TeX4ht Project <http://tug.org/tex4ht>. -% -% If you modify this program, changing the -% version identification would be appreciated. - -*/ - -#line 334 "./tex4ht-t4ht.tex" - -/* ********************************************** - Compiler options * - (uncommented | command line) * -------------------------------------------------* - Classic C (CC) default -#define ANSI ansi-c, c++ -#define DOS_C -#define HAVE_STRING_H <string.h> -#define HAVE_DIRENT_H <dirent.h> -#define HAVE_SYS_NDIR_H <sys/ndir.h> -#define HAVE_SYS_DIR_H <sys/dir.h> -#define HAVE_NDIR_H <ndir.h> -#define HAVE_IO_H <io.h> -#define HAVE_UNISTD_H <unistd.h> -#define WIN32 -#define KPATHSEA -#define SYSTEM_FUNCTION_OK -#define CDECL .......... -#define BCC32 bordland c++ - -************************************************* - Tex4ht variables * - (uncommented | command line) * ------------------------------------------------ */ - -#line 3237 "./tex4ht-t4ht.tex" - -#ifndef ENVFILE - -#endif - - -/* ******************************************** */ - - -#line 384 "./tex4ht-t4ht.tex" - -#ifdef BCC32 -#define WIN32 -#define ANSI -#define HAVE_IO_H -#define HAVE_STRING_H -#define PLATFORM "ms-win32" -#endif - - - -#line 396 "./tex4ht-t4ht.tex" - -#ifdef BCC -#define DOS_C -#define ANSI -#define HAVE_IO_H -#define PLATFORM "ms-dos" -#endif - - - -#line 758 "./tex4ht-t4ht.tex" - -#ifdef __DJGPP__ -#define DOS_WIN32 -#define ANSI -#endif - - -#ifdef DOS_C -#define DOS -#endif -#ifdef DOS -#define DOS_WIN32 -#ifndef HAVE_STRING_H -#define HAVE_STRING_H -#endif -#endif -#ifdef WIN32 -#define DOS_WIN32 -#endif - -#line 436 "./tex4ht-t4ht.tex" - -#ifdef DOS_WIN32 -#define STRUCT_DIRENT -#endif - - - -#line 579 "./tex4ht-t4ht.tex" - -#ifdef KPATHSEA -#ifdef WIN32 -#define KWIN32 -#endif -#endif - - - -#line 406 "./tex4ht-t4ht.tex" - -#ifdef KPATHSEA -#include <kpathsea/config.h> -#endif -#include <stdio.h> -#include <stdlib.h> - - -#line 427 "./tex4ht-t4ht.tex" - -#ifdef HAVE_STRING_H -#include <string.h> -#endif - - -#line 443 "./tex4ht-t4ht.tex" - -#ifdef HAVE_DIRENT_H - -#line 456 "./tex4ht-t4ht.tex" - -#include <dirent.h> - - -#else -#ifndef STRUCT_DIRENT -#define STRUCT_DIRECT -#endif - -#line 461 "./tex4ht-t4ht.tex" - -#ifdef HAVE_SYS_NDIR_H -#include <sys/ndir.h> -#endif -#ifdef HAVE_SYS_DIR_H -#include <sys/dir.h> -#endif -#ifdef HAVE_NDIR_H -#include <ndir.h> -#endif - - -#endif - - -#line 3978 "./tex4ht-t4ht.tex" - -#include <signal.h> - - - -#line 542 "./tex4ht-t4ht.tex" - - -#line 3500 "./tex4ht-t4ht.tex" - -#ifndef __DJGPP__ - -#line 3534 "./tex4ht-t4ht.tex" - -#ifndef F_OK -#ifdef DOS_WIN32 -#define F_OK 0 -#endif -#ifndef KPATHSEA -#ifndef DOS_WIN32 -#define HAVE_UNISTD_H -#endif -#endif -#endif -#ifdef HAVE_IO_H -#include <io.h> -#endif -#ifndef KPATHSEA -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif -#endif - - -#endif - - -#ifdef KPATHSEA -#include <kpathsea/c-errno.h> -#include <kpathsea/c-ctype.h> -#include <kpathsea/c-fopen.h> -#include <kpathsea/c-pathmx.h> -#include <kpathsea/proginit.h> -#include <kpathsea/tex-file.h> -#include <kpathsea/tex-make.h> -#include <kpathsea/variable.h> -#include <signal.h> -#if !defined(_AMIGA) && !defined(WIN32) -#include <sys/time.h> -#endif -#include <fcntl.h> -#include <setjmp.h> -#endif - -#line 3511 "./tex4ht-t4ht.tex" - -#ifdef __DJGPP__ - -#line 3534 "./tex4ht-t4ht.tex" - -#ifndef F_OK -#ifdef DOS_WIN32 -#define F_OK 0 -#endif -#ifndef KPATHSEA -#ifndef DOS_WIN32 -#define HAVE_UNISTD_H -#endif -#endif -#endif -#ifdef HAVE_IO_H -#include <io.h> -#endif -#ifndef KPATHSEA -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif -#endif - - -#endif - - - - - - -#line 479 "./tex4ht-t4ht.tex" - -#ifdef DOS -#define PROTOTYP -#endif -#ifdef ANSI -#define PROTOTYP -#endif -#ifdef KWIN32 -#define PROTOTYP -#endif - - -#line 568 "./tex4ht-t4ht.tex" - -#ifdef KPATHSEA -#ifdef WIN32 -#undef CDECL -#define CDECL __cdecl -#else -#define CDECL -#endif -#endif - - -#line 3793 "./tex4ht-t4ht.tex" - -#if defined(DOS_WIN32) || defined(__MSDOS__) -#define READ_BIN_FLAGS "rb" -#define READ_TEXT_FLAGS "r" -#define WRITE_BIN_FLAGS "wb" -#ifdef WIN32 -#define WRITE_TEXT_FLAGS "wb" -#else -#define WRITE_TEXT_FLAGS "w" -#endif -#else -#define READ_BIN_FLAGS "r" -#define READ_TEXT_FLAGS "r" -#define WRITE_BIN_FLAGS "w" -#define WRITE_TEXT_FLAGS "w" -#endif - - - -#line 234 "./tex4ht-t4ht.tex" - -#define Q_CHAR char -#define U_CHAR char -#define C_CHAR char -#define Q_NULL (Q_CHAR *) 0 -#define U_NULL (U_CHAR *) 0 -#define C_NULL (C_CHAR *) 0 - - -#line 328 "./tex4ht-t4ht.tex" - -#define IGNORED void - - -#line 421 "./tex4ht-t4ht.tex" - -#ifndef EXIT_FAILURE -#define EXIT_FAILURE 1 -#endif - - -#line 491 "./tex4ht-t4ht.tex" - -#ifdef PROTOTYP -#define MYVOID void -#define ARG_I(x) x -#define ARG_II(x,y) x,y -#define ARG_III(x,y,z) x,y,z -#define ARG_IV(x,y,z,w) x,y,z,w -#define ARG_V(x,y,z,w,u) x,y,z,w,u -#else -#define MYVOID -#define ARG_I(x) -#define ARG_II(x,y) -#define ARG_III(x,y,z) -#define ARG_IV(x,y,z,w) -#define ARG_V(x,y,z,w,u) -#endif - - -#line 783 "./tex4ht-t4ht.tex" - -#if defined(DOS_WIN32) || defined(__DJGPP__) -#define dir_path_slash(str) (is_forward_slash(str)? '/' : '\\') -#else -#define dir_path_slash(str) '/' -#endif - - -#line 1158 "./tex4ht-t4ht.tex" - -struct empty_pic_struct{ - long int n; - struct empty_pic_struct *next; -}; - - -#line 1501 "./tex4ht-t4ht.tex" - -#ifndef HTFDIR -#define HTFDIR "" -#endif - - -#line 2039 "./tex4ht-t4ht.tex" - -struct files_rec{ - FILE* file; - char *name, *group, op; - Q_CHAR file_mode[5]; - int loc, label; - struct files_rec *from_rec, *right, *left, *down, *up; -}; -#define No_op 0 -#define From_op 1 -#define Until_op 2 -#define Skip_op 3 -#define Cont_op 4 -#define Addr_op 5 -#define Set_op 6 - - -#line 2181 "./tex4ht-t4ht.tex" - -struct env_c_rec{ - Q_CHAR *option; - struct env_c_rec *next; -}; - - -#line 2311 "./tex4ht-t4ht.tex" - -struct sys_call_rec{ - Q_CHAR * filter; - struct sys_call_rec *next; -}; - - -#line 2361 "./tex4ht-t4ht.tex" - -struct htf_struct{ - Q_CHAR *key, *body, *media; - struct htf_struct *next; -}; - - -#line 3092 "./tex4ht-t4ht.tex" - -struct script_struct{ - Q_CHAR *command; - struct script_struct *next; -}; - - -#line 3111 "./tex4ht-t4ht.tex" - -#define NULL_SCRIPT (struct script_struct *) 0 - - -#line 3722 "./tex4ht-t4ht.tex" - -#define LG_EXT ".lg" - - -#line 3854 "./tex4ht-t4ht.tex" - -#define bad_arg err_arg(0) -#define bad_mem err_i(1) - - -#line 4205 "./tex4ht-t4ht.tex" - -#define eq_str(x,y) (!strcmp(x,y)) - - -#line 4259 "./tex4ht-t4ht.tex" - -#define m_alloc(typ,n) (typ *) malloc_chk((int) ((n) * sizeof(typ))) - - -#line 4494 "./tex4ht-t4ht.tex" - -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#ifndef BOOL -#define BOOL int -#endif - - -#line 4508 "./tex4ht-t4ht.tex" - -#define eq_str(x,y) (!strcmp(x,y)) - - - -#line 246 "./tex4ht-t4ht.tex" - -static int eoln_ch; - - -#line 292 "./tex4ht-t4ht.tex" - -static BOOL check_tex4ht_c_err = FALSE; - - -#line 878 "./tex4ht-t4ht.tex" - -static Q_CHAR *ch_mod = Q_NULL; -static Q_CHAR *debug = Q_NULL; -static Q_CHAR *Xfield = Q_NULL; -static Q_CHAR *Dotfield = Q_NULL; -static Q_CHAR *dir = Q_NULL; -static Q_CHAR *lg_name = Q_NULL, tmp_name[255], job_name[255]; -static Q_CHAR *nopict = Q_NULL; -static Q_CHAR *bitmaps_no_dm = Q_NULL; -static BOOL newchmod = FALSE; -static Q_CHAR *noreuse = Q_NULL; - - -#line 1100 "./tex4ht-t4ht.tex" - -U_CHAR *HOME_DIR; - - -#line 2188 "./tex4ht-t4ht.tex" - -static struct env_c_rec *envChoice - = (struct env_c_rec*) 0; - - -#line 2319 "./tex4ht-t4ht.tex" - -static BOOL system_yes; -static struct sys_call_rec *system_calls = (struct sys_call_rec *) 0; - - -#line 2356 "./tex4ht-t4ht.tex" - -static struct htf_struct *htf_rec = (struct htf_struct *) 0; - - -#line 2605 "./tex4ht-t4ht.tex" - -static BOOL status; - - -#line 2819 "./tex4ht-t4ht.tex" - -static char *Font_css_base = NULL, - *Font_css_mag = NULL; -static int base_font_size = 10; - - -#line 3099 "./tex4ht-t4ht.tex" - -static struct script_struct - * dvigif_script = NULL_SCRIPT, - * dvigif_glyp_script = NULL_SCRIPT, - * move_script = NULL_SCRIPT, - * empty_fig_script = NULL_SCRIPT, - * copy_script = NULL_SCRIPT, - * -#line 2239 "./tex4ht-t4ht.tex" - -file_script - - = NULL_SCRIPT, - * -#line 2175 "./tex4ht-t4ht.tex" - -ext_script - - = NULL_SCRIPT, - * chmod_script = NULL_SCRIPT; - - -#line 3773 "./tex4ht-t4ht.tex" - -static FILE* lg_file; -static long begin_lg_file; - - -#line 3923 "./tex4ht-t4ht.tex" - -static const C_CHAR *warn_err_mssg[]={ -#line 3845 "./tex4ht-t4ht.tex" - - -#line 843 "./tex4ht-t4ht.tex" - -"\n--------------------------------------------------------------------\n" -"t4ht [-f<dir char>]filename ...\n" -" -b ignore -d -m -M for bitmaps\n" -" -c... choose named segment in env file\n" -" -d... directory for output files (default: current)\n" -" -e... location of tex4ht.env\n" -" -i debugging info\n" -" -g ignore errors in system calls\n" -" -m... chmod ... of new output files (reused bitmaps excluded)\n" -" -p don't convert pictures (default: convert)\n" -" -r replace bitmaps of all glyphs (default: reuse old ones)\n" -" -M... chmod ... of all output files\n" -" -Q quit, if tex4ht.c had problems\n" -" -S... permission for system calls: *-always, filter\n" -" -X... content for field %%3 in X scripts\n" -" -.... content for field %%2 in . scripts\n\n" -"Example: \n" -" t4ht name -d/WWW/temp/ -etex4ht-32.env -m644\n" -"--------------------------------------------------------------------\n" - -, -"Insufficient memory\n", - -#line 3839 "./tex4ht-t4ht.tex" - -"Illegal storage address\n", -"Floating-point\n", -"Interrupt with Cntr-C\n", - - -"Can't find/open file `%s'\n", - - "" }; - - -#line 4131 "./tex4ht-t4ht.tex" - -static Q_CHAR command[255]; -static int system_return; - - -#line 4142 "./tex4ht-t4ht.tex" - -static BOOL system_yes; - - -#line 4195 "./tex4ht-t4ht.tex" - -static BOOL always_call_sys = FALSE; - - -#line 4380 "./tex4ht-t4ht.tex" - -static Q_CHAR* match[10]; -static int max_match[10]; - - - -#line 793 "./tex4ht-t4ht.tex" - -#if defined(DOS_WIN32) || defined(__DJGPP__) - static BOOL is_forward_slash( ARG_I(Q_CHAR *) ); -#endif - - -#line 1069 "./tex4ht-t4ht.tex" - -static char * abs_addr( ARG_II( U_CHAR *, U_CHAR *) ); - - -#line 1379 "./tex4ht-t4ht.tex" - -static void execute_script( - ARG_V(struct script_struct*,const Q_CHAR *,const Q_CHAR *,const Q_CHAR *,const Q_CHAR *) ); - - -#line 1535 "./tex4ht-t4ht.tex" - -static struct script_struct * filterGifScript( - ARG_II( struct script_struct *, Q_CHAR *) ); - - -#line 1609 "./tex4ht-t4ht.tex" - -void free_script( - ARG_I( struct script_struct *) ); - - -#line 2156 "./tex4ht-t4ht.tex" - -static BOOL strpre( ARG_II(char *,char *) ); - - -#line 3055 "./tex4ht-t4ht.tex" - -static struct script_struct * add_script( ARG_I(struct script_struct *) ); - - -#line 3631 "./tex4ht-t4ht.tex" - -static FILE* f_open( ARG_II(const char*,const char*) ); - - -#line 3652 "./tex4ht-t4ht.tex" - -static FILE* f_home_open( ARG_II(const char*,const char*) ); - - -#line 3682 "./tex4ht-t4ht.tex" - -static FILE* open_file( ARG_II(const C_CHAR *, const C_CHAR *) ); - - -#line 3864 "./tex4ht-t4ht.tex" - -static void err_i( ARG_I(int) ); - - -#line 3880 "./tex4ht-t4ht.tex" - -static void err_arg( ARG_I(int) ); - - -#line 3898 "./tex4ht-t4ht.tex" - -static void warn_i_str( ARG_II(int,const Q_CHAR *) ); - - -#line 3982 "./tex4ht-t4ht.tex" - -static void - -#line 4023 "./tex4ht-t4ht.tex" - -#ifdef CDECL -CDECL -#endif - - -sig_err(ARG_I(int)); - - -#line 4109 "./tex4ht-t4ht.tex" - -#ifdef KWIN32 -static BOOL sigint_handler(ARG_I(DWORD)); -#endif - - -#line 4173 "./tex4ht-t4ht.tex" - -static void call_sys(ARG_I(Q_CHAR *)); - - -#line 4216 "./tex4ht-t4ht.tex" - -static void strct( ARG_II(C_CHAR *, const C_CHAR *) ); - - -#line 4236 "./tex4ht-t4ht.tex" - -static long int get_long_int( ARG_I(Q_CHAR *) ); - - -#line 4265 "./tex4ht-t4ht.tex" - -static void* malloc_chk(ARG_I(int)); - - -#line 4282 "./tex4ht-t4ht.tex" - -static void* r_alloc(ARG_II(void *, size_t)); - - -#line 4346 "./tex4ht-t4ht.tex" - -static BOOL scan_until_end_str( ARG_IV(const C_CHAR *, int, BOOL, FILE *) ); - - -#line 4396 "./tex4ht-t4ht.tex" - -static BOOL scan_until_str( ARG_IV(const C_CHAR *, int, BOOL, FILE *) ); - - -#line 4434 "./tex4ht-t4ht.tex" - -static BOOL scan_str( ARG_III(const C_CHAR *, BOOL, FILE *) ); - - - -#line 799 "./tex4ht-t4ht.tex" - -#if defined(DOS_WIN32) || defined(__DJGPP__) - -static BOOL is_forward_slash -#ifdef ANSI -#define SEP , -( - Q_CHAR * str -) -#undef SEP -#else -#define SEP ; -(str) - Q_CHAR * str -; -#undef SEP -#endif -{ - while( *str ){ if( *(str++) == '/' ) { return TRUE; } } - return FALSE; -} -#endif - - -#line 1073 "./tex4ht-t4ht.tex" - - -static char * abs_addr -#ifdef ANSI -#define SEP , -( - U_CHAR *dir SEP - U_CHAR *base - -) -#undef SEP -#else -#define SEP ; -( dir, base) - U_CHAR *dir SEP - U_CHAR *base - -; -#undef SEP -#endif -{ U_CHAR *p; - p = m_alloc(char, (int) strlen((char *) dir ) + - (base? (int) strlen((char *) base ):0) + - (int) strlen((char *) HOME_DIR )); - *p = '\0'; - if( (*(dir+1) == '~') && base ){ - if( *base == '~' ){ - (IGNORED) strct(p, HOME_DIR); - (IGNORED) strct(p, base+1); - } else { - (IGNORED) strct(p, base); - } - (IGNORED) strct(p, dir+2); - } else { - (IGNORED) strct(p, HOME_DIR); - (IGNORED) strct(p, dir+1); - } - return p; -} - - -#line 1384 "./tex4ht-t4ht.tex" - - -static void execute_script -#ifdef ANSI -#define SEP , -( - struct script_struct* script SEP - const Q_CHAR * match_1 SEP - const Q_CHAR * match_2 SEP - const Q_CHAR * match_3 SEP - const Q_CHAR * match_4 - -) -#undef SEP -#else -#define SEP ; -(script,match_1,match_2,match_3,match_4) - struct script_struct* script SEP - const Q_CHAR * match_1 SEP - const Q_CHAR * match_2 SEP - const Q_CHAR * match_3 SEP - const Q_CHAR * match_4 - -; -#undef SEP -#endif -{ struct script_struct* temp; - Q_CHAR *p, *q; - const Q_CHAR *t; - -#line 1462 "./tex4ht-t4ht.tex" - -#ifdef KPATHSEA -const char * texmf = kpse_var_value( "TEXMFDIST" ); -#endif - - - temp = script; system_return = 0; - while( temp ){ - -#line 1424 "./tex4ht-t4ht.tex" - -p = temp->command; -q = command; -while( *p != '\0' ){ - *q = *(p++); - if( (*q == '%') && (*p == '%') - && ( (*(p+1) == '%') - || (*(p+1) == '~') - || ( (*(p+1) >= '0') && (*(p+1) < '5') ) ) - ){ p++; - switch( *(p++) ){ - case '%':{ q++; break; } - case '0':{ t = job_name; - while( *t != '\0' ){ *(q++) = *(t++); } break; } - case '1':{ t = match_1; - while( *t != '\0' ){ *(q++) = *(t++); } break; } - case '2':{ t = match_2; - while( *t != '\0' ){ *(q++) = *(t++); } break; } - case '3':{ t = match_3; - while( *t != '\0' ){ *(q++) = *(t++); } break; } - case '4':{ t = match_4; - while( *t != '\0' ){ *(q++) = *(t++); } break; } - case '~':{ -#line 1468 "./tex4ht-t4ht.tex" - -#ifdef KPATHSEA - if( texmf ){ - t = texmf; - while( *t != '\0' ){ *(q++) = *(t++); } - } else { - *(q++) = '~'; - } -#else - *(q++) = '~'; -#endif - - break; } - default: { } - }} else { q++; } -} -*q = '\0'; - - - if( (command[0] != '\0') && !system_return ){ - -#line 4166 "./tex4ht-t4ht.tex" - -(IGNORED) call_sys(command); - - } - temp = temp->next; -} } - - -#line 1540 "./tex4ht-t4ht.tex" - - -static struct script_struct * filterGifScript -#ifdef ANSI -#define SEP , -( - struct script_struct *script SEP - Q_CHAR *file -) -#undef SEP -#else -#define SEP ; -( script, file) - struct script_struct *script SEP - Q_CHAR *file -; -#undef SEP -#endif -{ - struct script_struct *filtered_script, *scr, - *old_script, - *new_script; - Q_CHAR *command, *ext; - filtered_script = NULL_SCRIPT; - if( script == NULL_SCRIPT ) - return filtered_script; - old_script = script; - command = old_script->command; - if( *command != '.' ){ - -#line 1563 "./tex4ht-t4ht.tex" - -new_script = NULL_SCRIPT; -while( old_script != NULL_SCRIPT ){ - command = old_script->command; - if( *command == '.' ){ return filtered_script; } - scr = (struct script_struct *) - m_alloc(struct script_struct, (int) 1); - scr->command = old_script->command; - scr->next = NULL_SCRIPT; - if( new_script == NULL_SCRIPT ){ - filtered_script = new_script = scr; - } else { - new_script = new_script->next = scr; - } - old_script = old_script->next; -} -return filtered_script; - - - } else { - -#line 1582 "./tex4ht-t4ht.tex" - - -#line 1602 "./tex4ht-t4ht.tex" - -ext = file; -while( *ext != '\0' ){ ext++; } -while( (*ext != '.') && (ext != file) ){ ext--; } - - -while( TRUE ){ - if( old_script == NULL_SCRIPT ){ - return NULL_SCRIPT; - } - command = old_script->command; - if(*command != '.') { - old_script = old_script->next; - continue; - } - old_script = old_script->next; - if( (*(command+1) == '\0') || eq_str(ext,command) ){ - break; - } -} - -#line 1563 "./tex4ht-t4ht.tex" - -new_script = NULL_SCRIPT; -while( old_script != NULL_SCRIPT ){ - command = old_script->command; - if( *command == '.' ){ return filtered_script; } - scr = (struct script_struct *) - m_alloc(struct script_struct, (int) 1); - scr->command = old_script->command; - scr->next = NULL_SCRIPT; - if( new_script == NULL_SCRIPT ){ - filtered_script = new_script = scr; - } else { - new_script = new_script->next = scr; - } - old_script = old_script->next; -} -return filtered_script; - - - - - } -} - - -#line 1614 "./tex4ht-t4ht.tex" - - -void free_script -#ifdef ANSI -#define SEP , -( - struct script_struct *script -) -#undef SEP -#else -#define SEP ; -(script) - struct script_struct *script -; -#undef SEP -#endif -{ - struct script_struct *temp; - while( script != NULL_SCRIPT ){ - temp = script; - script = script->next; - free( temp ); - } -} - - -#line 2160 "./tex4ht-t4ht.tex" - - -static BOOL strpre -#ifdef ANSI -#define SEP , -( - char * s1 SEP - char * s2 -) -#undef SEP -#else -#define SEP ; -(s1,s2) - char * s1 SEP - char * s2 -; -#undef SEP -#endif -{ int i; - for( i=0; i < (int) strlen((char *) s1); i++){ - if( *(s1+i) != *(s2+i) ){ return FALSE; } - } - return TRUE; -} - - -#line 3059 "./tex4ht-t4ht.tex" - - -static struct script_struct * add_script -#ifdef ANSI -#define SEP , -( - struct script_struct * script -) -#undef SEP -#else -#define SEP ; -(script) - struct script_struct * script -; -#undef SEP -#endif -{ - struct script_struct* temp, * q; - temp = (struct script_struct *) - m_alloc(struct script_struct, (int) 1); - temp->command = match[1]; - if( debug ){ - (IGNORED) printf("....... %s\n", temp->command); } - temp->next = NULL_SCRIPT; - match[1] = (Q_CHAR *) malloc(70); - max_match[1] = 70; - if( script ){ - q = script; - while( q->next ){ q = q->next; } - q->next = temp; - } else { - script = temp; - } - return script; -} - - -#line 3580 "./tex4ht-t4ht.tex" - -#if defined(__MSDOS__) - -#line 3586 "./tex4ht-t4ht.tex" - - -static char *get_env_dir -#ifdef ANSI -#define SEP , -( - Q_CHAR *progname - -) -#undef SEP -#else -#define SEP ; -(progname) - Q_CHAR *progname - -; -#undef SEP -#endif -{ int i; - Q_CHAR *p; - if(! progname || ! *progname) return NULL; - i = (int) strlen((char *) progname); - while( (progname[--i] != (int) dir_path_slash(progname) ) - && i > 0) ; - if(i == 0) return NULL; - p = (Q_CHAR *) malloc(i+12); - if(p == NULL) return NULL; - strncpy(p, progname, i+1); - (IGNORED) strcpy((char *) &p[i+1], - "tex4ht.env"); - return p; -} - - -#endif - - -#line 3635 "./tex4ht-t4ht.tex" - - -static FILE* f_open -#ifdef ANSI -#define SEP , -( - const char* name SEP - const char* flags -) -#undef SEP -#else -#define SEP ; -( name, flags ) - const char* name SEP - const char* flags -; -#undef SEP -#endif -{ FILE* file; - if( (file = fopen(name,flags) ) != NULL ) { - (IGNORED) printf("(%s)\n",name); - } - return file; -} - - -#line 3656 "./tex4ht-t4ht.tex" - - -static FILE* f_home_open -#ifdef ANSI -#define SEP , -( - const char* name SEP - const char* flags -) -#undef SEP -#else -#define SEP ; -( name, flags ) - const char* name SEP - const char* flags -; -#undef SEP -#endif -{ FILE* file; - U_CHAR *str; - if( *name == '~' ){ - if( HOME_DIR ){ - str = m_alloc(char, strlen((char *) HOME_DIR)+strlen(name)); - (IGNORED) sprintf(str,"%s%s", HOME_DIR, name+1); - file = f_open(str,flags); - free((void *) str); - return file; - } else { return NULL; } - } else { return f_open( name, flags ); } -} - - -#line 3686 "./tex4ht-t4ht.tex" - - -static FILE* open_file -#ifdef ANSI -#define SEP , -( - const C_CHAR *name SEP const C_CHAR *ext -) -#undef SEP -#else -#define SEP ; -(name,ext) - const C_CHAR *name SEP const C_CHAR *ext -; -#undef SEP -#endif -{ FILE* file; - C_CHAR filename[255], *p; - if( eq_str( ext,LG_EXT ) ) { - (IGNORED) strcpy((char *) filename, (char *) job_name); - (IGNORED) strct(filename, ext); - } else { - (IGNORED) strcpy((char *) filename, name ); - p = filename; - while( TRUE ){ - if( *p == '.' ){ break; } - if( *p == '\0' ){ (IGNORED) strcpy((char *) p, ext); break; } - p++; - } - } - file = fopen(filename, READ_TEXT_FLAGS); - if( !file ) { - (IGNORED) warn_i_str(5,filename); - } else { (IGNORED) printf ("Entering %s\n", filename); } - - return file; -} - - -#line 3868 "./tex4ht-t4ht.tex" - - -static void err_i -#ifdef ANSI -#define SEP , -( int n - -) -#undef SEP -#else -#define SEP ; -(n) int n - -; -#undef SEP -#endif -{ (IGNORED) fprintf(stderr,"--- error --- "); - (IGNORED) fprintf(stderr, "%s", warn_err_mssg[n]); - exit(EXIT_FAILURE); -} - - -#line 3884 "./tex4ht-t4ht.tex" - - -static void err_arg -#ifdef ANSI -#define SEP , -( int n - -) -#undef SEP -#else -#define SEP ; -(n) int n - -; -#undef SEP -#endif -{ (IGNORED) fprintf(stderr,"--- error --- "); - (IGNORED) fprintf(stderr, "%s", warn_err_mssg[n]); - exit(EXIT_FAILURE); -} - - -#line 3902 "./tex4ht-t4ht.tex" - - -static void warn_i_str -#ifdef ANSI -#define SEP , -( - int n SEP - const Q_CHAR *str - -) -#undef SEP -#else -#define SEP ; -(n,str) - int n SEP - const Q_CHAR *str - -; -#undef SEP -#endif -{ (IGNORED) fprintf(stderr,"--- warning --- "); - (IGNORED) fprintf(stderr,warn_err_mssg[n], str); -} - - -#line 3991 "./tex4ht-t4ht.tex" - - -static void - -#line 4023 "./tex4ht-t4ht.tex" - -#ifdef CDECL -CDECL -#endif - - -sig_err -#ifdef ANSI -#define SEP , -( int s -) -#undef SEP -#else -#define SEP ; -(s) int s -; -#undef SEP -#endif -{ - (void) signal(s,SIG_IGN); - switch( s ){ -#ifdef SIGSEGV - case SIGSEGV: err_i(2); -#endif - case SIGFPE : err_i(3); -#if defined(SIGINT) && !defined(WIN32) - case SIGINT : err_i(4); -#endif - } - -#line 768 "./tex4ht-t4ht.tex" - -#ifdef __DJGPP__ - if (s != SIGINT && s != SIGQUIT) - exit(EXIT_FAILURE); -#endif - - -} - - -#line 4115 "./tex4ht-t4ht.tex" - -#ifdef KWIN32 - -static BOOL sigint_handler -#ifdef ANSI -#define SEP , -( DWORD dwCtrlType -) -#undef SEP -#else -#define SEP ; -(dwCtrlType) DWORD dwCtrlType -; -#undef SEP -#endif -{ - err_i(32); - return FALSE; -} -#endif - - -#line 4180 "./tex4ht-t4ht.tex" - - -static void call_sys -#ifdef ANSI -#define SEP , -( Q_CHAR * command -) -#undef SEP -#else -#define SEP ; -(command) Q_CHAR * command -; -#undef SEP -#endif -{ - if( *command ){ - (IGNORED) printf("System call: %s\n", command); - system_return = system_yes? (int) system(command) : -1; - (IGNORED) printf("%sSystem return: %d\n", - system_return? "--- Warning --- " : "", system_return ); - if( always_call_sys ){ system_return = 0; } - } -} - - -#line 4220 "./tex4ht-t4ht.tex" - - -static void strct -#ifdef ANSI -#define SEP , -( - C_CHAR * str1 SEP - const C_CHAR * str2 - -) -#undef SEP -#else -#define SEP ; -( str1, str2 ) - C_CHAR * str1 SEP - const C_CHAR * str2 - -; -#undef SEP -#endif -{ Q_CHAR * ch; - ch = str1 + (int) strlen((char *) str1); - (IGNORED) strcpy((char *) ch, str2 ); -} - - -#line 4240 "./tex4ht-t4ht.tex" - - -static long int get_long_int -#ifdef ANSI -#define SEP , -( - Q_CHAR *str -) -#undef SEP -#else -#define SEP ; -(str) - Q_CHAR *str -; -#undef SEP -#endif -{ long int i; - Q_CHAR *ch; - ch = str; i = 0; - while( (*ch>= '0') && (*ch <='9') ){ - i = 10*i + *(ch++) - '0'; - } - return i; -} - - -#line 4269 "./tex4ht-t4ht.tex" - - -static void* malloc_chk -#ifdef ANSI -#define SEP , -( int n -) -#undef SEP -#else -#define SEP ; -( n ) int n -; -#undef SEP -#endif -{ void* p; - if((p = (void *) malloc( (size_t) n)) == NULL ) bad_mem; - return p; -} - - -#line 4286 "./tex4ht-t4ht.tex" - - -static void* r_alloc -#ifdef ANSI -#define SEP , -( - void *q SEP - size_t n -) -#undef SEP -#else -#define SEP ; -( q, n ) - void *q SEP - size_t n -; -#undef SEP -#endif -{ void* p; - if((p = (void *) realloc( q, (size_t) n)) == NULL) bad_mem; - return p; -} - - -#line 4350 "./tex4ht-t4ht.tex" - - -static BOOL scan_until_end_str -#ifdef ANSI -#define SEP , -( - const C_CHAR *str SEP - int n SEP - BOOL flag SEP - FILE* file -) -#undef SEP -#else -#define SEP ; -(str,n,flag,file) - const C_CHAR *str SEP - int n SEP - BOOL flag SEP - FILE* file -; -#undef SEP -#endif -{ Q_CHAR *p; - int i; - if( !flag ) { return flag; } - p = match[n]; i = 0; - while( TRUE ){ - if( (i+1) >= max_match[n] ){ - max_match[n] += 10; - p = match[n] = (Q_CHAR *) - r_alloc((void *) match[n], (size_t) max_match[n]); - } - p[i] = (char) (eoln_ch = getc(file)); - if( (eoln_ch == (int) '\n') || (eoln_ch == EOF) ){ break; } - i++; - } - p[i] = '\0'; - i -= (int) strlen(str); - if( i>= 0 ){ return eq_str(p+i,str); } - return FALSE; -} - - -#line 4400 "./tex4ht-t4ht.tex" - - -static BOOL scan_until_str -#ifdef ANSI -#define SEP , -( - const C_CHAR *str SEP - int n SEP - BOOL flag SEP - FILE* file -) -#undef SEP -#else -#define SEP ; -(str,n,flag,file) - const C_CHAR *str SEP - int n SEP - BOOL flag SEP - FILE* file -; -#undef SEP -#endif -{ Q_CHAR *p, ch; - int i, j; - if( !flag ) { return flag; } - p = match[n]; i = 0; - while( TRUE ){ - ch = (char) (eoln_ch = getc(file)); - if( (eoln_ch == (int) '\n') || (eoln_ch == EOF) ){ return FALSE; } - if( (i+1) >= max_match[n] ){ - max_match[n] += 10; - p = match[n] = (Q_CHAR *) - r_alloc((void *) match[n], (size_t) max_match[n]); - } - p[i++] = ch; - j = i - (int) strlen(str); - if( j>= 0 ){ - p[i] = '\0'; - if( eq_str(p+j,str) ) { return TRUE; } - } - } -} - - -#line 4438 "./tex4ht-t4ht.tex" - - -static BOOL scan_str -#ifdef ANSI -#define SEP , -( - const C_CHAR *str SEP - BOOL flag SEP - FILE* file -) -#undef SEP -#else -#define SEP ; -(str,flag,file) - const C_CHAR *str SEP - BOOL flag SEP - FILE* file -; -#undef SEP -#endif -{ const Q_CHAR *p; - int temp_eoln_ch; - if( !flag ) { return flag; } - p = str; - while( *p != '\0' ){ - if( *(p++) != (temp_eoln_ch = getc(file)) ) { - while( (temp_eoln_ch != (int) '\n') - && (temp_eoln_ch != EOF) ){ temp_eoln_ch = getc(file); } - eoln_ch = temp_eoln_ch; return FALSE; - } - } - return TRUE; -} - - - -int -#line 4023 "./tex4ht-t4ht.tex" - -#ifdef CDECL -CDECL -#endif - - main -#ifdef ANSI -#define SEP , -( - int argc SEP - Q_CHAR **argv -) -#undef SEP -#else -#define SEP ; -(argc, argv) - int argc SEP - Q_CHAR **argv -; -#undef SEP -#endif -{ -#line 1154 "./tex4ht-t4ht.tex" - -struct empty_pic_struct *empty_pic; - - -#line 3559 "./tex4ht-t4ht.tex" - -Q_CHAR * tex4ht_env_file = (Q_CHAR *) 0; -Q_CHAR * dos_env_file = -#if defined(__MSDOS__) - -#line 3576 "./tex4ht-t4ht.tex" - -get_env_dir(argv[0]) - -; -#endif -#if !defined(__MSDOS__) - (Q_CHAR *) 0; -#endif - - - - -#line 3927 "./tex4ht-t4ht.tex" - -#ifdef WIN32 - /* See comments in tex4ht */ - if (argc > 2) { - int i, nargc; - char **nargv, **pnargv, **pargv; - - nargv = (char **) xmalloc (2 * argc * sizeof (char *)); - pnargv = nargv; - pargv = argv; - *pnargv++ = xstrdup (*pargv++); - *pnargv++ = xstrdup (*pargv++); - nargc = 2; - - for (i=2; i < argc; i++) { - char *p, *q, *r; - p = q = *pargv++; - while (*p == ' ' || *p == '\t') { - p++; - q++; - } - while (*p != ' ' && *p != '\t' && *p) { - p++; - if (*p == '\0') { - *pnargv++ = xstrdup(q); - nargc++; - } else if (*p == ' ' || *p == '\t') { - r = p; - while (*p == ' ' || *p == '\t') - p++; - if (*p == '-' || *p == '\0') { - *r = '\0'; - *pnargv++ = xstrdup(q); - nargc++; - q = p; - } - } - } - } - - nargv[nargc] = NULL; - argv = nargv; - argc = nargc; - } -#endif - - - -#line 4032 "./tex4ht-t4ht.tex" - - -#ifdef SIGSEGV - (void) signal(SIGSEGV,sig_err); -#endif - (void) signal(SIGFPE,sig_err); -#ifdef KWIN32 - -#line 4055 "./tex4ht-t4ht.tex" - -SetConsoleCtrlHandler((PHANDLER_ROUTINE)sigint_handler, TRUE); - - -#else -#ifdef SIGINT - (void) signal(SIGINT,sig_err); -#endif -#endif - - - -#line 173 "./tex4ht-t4ht.tex" - -(IGNORED) printf("----------------------------\n"); -#ifndef KPATHSEA -#ifdef PLATFORM - (IGNORED) printf("t4ht.c (2018-07-04-14:25 %s)\n",PLATFORM); -#else - (IGNORED) printf("t4ht.c (2018-07-04-14:25)\n"); -#endif -#else -#ifdef PLATFORM - (IGNORED) printf("t4ht.c (2018-07-04-14:25 %s kpathsea)\n",PLATFORM); -#else - (IGNORED) printf("t4ht.c (2018-07-04-14:25 kpathsea)\n"); -#endif -#endif - - -#line 910 "./tex4ht-t4ht.tex" - -{ int i, count = 0; - for(i=0; i<argc; i++){ - Q_CHAR *p = argv[i]; - count++; - if( (*p == '\'') || (*p == '\"') ){ - int cnt; - int len = 0; - for( cnt=i; cnt < argc; cnt++ ){ - len += (int) strlen((char *) argv[cnt]); - if( *(argv[cnt] + (int) strlen((char *) argv[cnt]) -1) == *p ){ - Q_CHAR * arg = m_alloc(char, len + cnt - i + 1); - Q_CHAR * toArg = arg; - Q_CHAR *pp; - i--; - do { - pp = argv[++i]; - while( *pp != '\0' ){ - if( *pp != *p ){ *(toArg++) = *pp; } - pp++; - } - *(toArg++) = ' '; - } while ( i != cnt ); - *(toArg-1) = '\0'; - argv[count-1] = arg; - break; - } } } } - argc = count; -} - - -{ int i; - for(i=0; i<argc; i++){ - (IGNORED) printf("%s%s ", (i>1)?"\n " : "", argv[i]); } - (IGNORED) printf("\n"); -} - - - -#line 1104 "./tex4ht-t4ht.tex" - -HOME_DIR = getenv("HOME"); - - -#line 4146 "./tex4ht-t4ht.tex" - -{ C_CHAR *yes = NULL; - system_yes = ( -#line 4158 "./tex4ht-t4ht.tex" - -#ifdef SYSTEM_FUNCTION_OK -0 -#else -system( yes ) != 0 -#endif - -); -} - - -#line 4386 "./tex4ht-t4ht.tex" - -{ int i; - for( i=0; i<=9; i++){ - match[i] = (Q_CHAR *) malloc(70); - max_match[i] = 70; - } -} - - - - -#line 892 "./tex4ht-t4ht.tex" - -{ int i; - Q_CHAR *p, *q; - -#line 1002 "./tex4ht-t4ht.tex" - -#ifdef KPATHSEA - kpse_set_program_name (argv[0], "tex4ht"); -#endif - - - - if( argc == 1 ){ bad_arg; } - for(i=1; i<argc; i++){ - if( *( p=argv[i] ) == '-' ){ -#line 1014 "./tex4ht-t4ht.tex" - -if( (int) strlen((char *) argv[i] ) == 2 ){ - if( -#line 1041 "./tex4ht-t4ht.tex" - - (*(p+1) != 'i') -&& (*(p+1) != 'p') -&& (*(p+1) != 'r') -&& (*(p+1) != 'b') -&& (*(p+1) != 'g') -&& (*(p+1) != 'Q') - - ) - { if( ++i == argc ) bad_arg; } - q = argv[i]; -} else q = p+2; -switch( *(p+1) ){ - case 'M':{ ch_mod = q; newchmod = TRUE; break; } - case 'S':{ -#line 2283 "./tex4ht-t4ht.tex" - -{ struct sys_call_rec *q; - q = m_alloc(struct sys_call_rec, 1); - q->next = system_calls; - q->filter = p + 2; - system_calls = q; -} - - break; } - case 'X':{ Xfield = q; break;} - case 'b':{ bitmaps_no_dm = q-1; break;} - case 'c':{ -#line 2194 "./tex4ht-t4ht.tex" - -struct env_c_rec *temp = (struct env_c_rec*) - m_alloc(struct env_c_rec, (int) 1); -temp->option = q; -temp->next = envChoice; -envChoice = temp; - - break;} - case 'd':{ dir = (*q=='~')? abs_addr(q,NULL) : q; break; } - case 'e':{ -#line 3486 "./tex4ht-t4ht.tex" - -tex4ht_env_file = q; - - break; } - case 'f':{ -#line 1058 "./tex4ht-t4ht.tex" - -p = p + 2; -lg_name = p + (int) strlen((char *) p ); -while( *lg_name != *p ){ lg_name--; } -lg_name++; - - break; } - case 'i':{ debug = q-1; break;} - case 'g':{ always_call_sys = TRUE; break;} - case 'm':{ ch_mod = q; break; } - case 'p':{ nopict = q-1; break;} - case 'Q':{ check_tex4ht_c_err = TRUE; break;} - case 'r':{ noreuse = q-1; break;} - case '.':{ Dotfield = q; break;} - default:{ bad_arg; } -} - - } - else - { lg_name = argv[i]; } - } - if( lg_name == NULL ){ bad_arg; } - -#line 944 "./tex4ht-t4ht.tex" - -{ Q_CHAR *p, *q; - FILE* file; - (IGNORED) strcpy((char *) (char *) tmp_name, (char *) (char *) lg_name); - p = q = tmp_name + strlen((char *) tmp_name ); - while( p != tmp_name ){ - if( *p == '.' ){ - if( eq_str( p+1,LG_EXT ) ) { *p = '\0'; } - else { - (IGNORED) strct( tmp_name, LG_EXT); - file = fopen( tmp_name, READ_TEXT_FLAGS ); - if( file ){ - (IGNORED) fclose(file); *q = '\0'; - } else { *p = '\0'; } - } - break; - } - p--; - } - (IGNORED) strct(tmp_name, ".tmp"); -} - - - -#line 968 "./tex4ht-t4ht.tex" - -(IGNORED) strcpy((char *) job_name, (char *) tmp_name); -*(job_name + strlen((char *) job_name) - 4) = '\0'; - - -} - - - -#line 92 "./tex4ht-t4ht.tex" - - -#line 2914 "./tex4ht-t4ht.tex" - -{ FILE* file; - U_CHAR env_loc[512]; - env_loc[0] = '\0'; - -#line 3168 "./tex4ht-t4ht.tex" - -{ Q_CHAR str[512], - *TEX4HTENV; - -#line 3453 "./tex4ht-t4ht.tex" - -if( tex4ht_env_file ){ - if( debug ){ - (IGNORED) printf("%s?\n", tex4ht_env_file); - } - file = f_home_open( tex4ht_env_file, READ_TEXT_FLAGS ); -} else { - file = NULL; -} -if( tex4ht_env_file ){ - (IGNORED) strcpy((char *) &env_loc[0], (char *) tex4ht_env_file); -} -if( debug && file ){ - (IGNORED) printf(".......Open: %s\n", tex4ht_env_file); } - - - -#line 3156 "./tex4ht-t4ht.tex" - -if( !file ) { - if( debug ){ - (IGNORED) printf("tex4ht.env?\n"); - } - file = f_open("tex4ht.env", READ_TEXT_FLAGS); - (IGNORED) strcpy((char *) &env_loc[0], "tex4ht.env"); - if( debug && file ){ - (IGNORED) printf(".......Open: ./tex4ht.env\n"); } -} - - - -#line 3207 "./tex4ht-t4ht.tex" - -#ifndef DOS_WIN32 - if( !file ) { - if( debug ){ - (IGNORED) printf(".tex4ht?\n"); - } - file = f_open(".tex4ht", READ_TEXT_FLAGS); - (IGNORED) strcpy((char *) &env_loc[0], ".tex4ht"); - if( debug && file ){ - (IGNORED) printf(".......Open: ./.tex4ht\n"); } - } -#endif - - - -#line 3190 "./tex4ht-t4ht.tex" - -if( !file ){ - TEX4HTENV = getenv("TEX4HTENV"); - if( TEX4HTENV ){ - if( debug ){ - (IGNORED) printf("%s?\n", TEX4HTENV); - } - file = f_home_open(TEX4HTENV,READ_TEXT_FLAGS); - } -} - - - -#line 3394 "./tex4ht-t4ht.tex" - -if( !file ){ - if( HOME_DIR ){ (IGNORED) sprintf(str, -#line 3433 "./tex4ht-t4ht.tex" - -#if defined(DOS_WIN32) || defined(__DJGPP__) - is_forward_slash(HOME_DIR)? "%s/tex4ht.env" : "%s\\tex4ht.env" -#else - "%s/tex4ht.env" -#endif - -, HOME_DIR); - if( debug ){ - (IGNORED) printf("%s?\n", str); - } - file = f_open(str,READ_TEXT_FLAGS); - (IGNORED) strcpy((char *) &env_loc[0], (char *) str); - if( debug && file ){ - (IGNORED) printf(".......Open: %s\n", str); } - } -} -#ifndef DOS_WIN32 - if( !file ){ - if( HOME_DIR ){ - (IGNORED) sprintf(str,"%s/.tex4ht", HOME_DIR); - if( debug ){ - (IGNORED) printf("%s?\n", str); - } - file = f_open(str,READ_TEXT_FLAGS); - (IGNORED) strcpy((char *) &env_loc[0], (char *) str); - if( debug && file ){ - (IGNORED) printf(".......Open: %s\n", str); } - } - } -#endif -#if defined(DOS_WIN32) || defined(__MSDOS__) - if( !file ){ - if( debug ){ - (IGNORED) printf("C:/tex4ht.env?\n"); - } - file = f_open("C:/tex4ht.env",READ_TEXT_FLAGS); - (IGNORED) strcpy((char *) &env_loc[0], "C:/tex4ht.env"); - if( debug && file ){ - (IGNORED) printf(".......Open: C:/tex4ht.env\n"); } - } -#endif - - - -#line 3221 "./tex4ht-t4ht.tex" - -#ifdef ENVFILE - if( !file ) { - if( debug ){ - (IGNORED) printf("%s?\n", ENVFILE); - } - file = f_home_open( ENVFILE,READ_TEXT_FLAGS); - (IGNORED) strcpy((char *) &env_loc[0], (char *) ENVFILE); - if( debug && file ){ - (IGNORED) printf(".......Open: %s\n", ENVFILE); } - } -#endif - - - if( !file ) { -#line 3469 "./tex4ht-t4ht.tex" - -if( dos_env_file ){ - if( debug ){ - (IGNORED) printf("%s?\n", dos_env_file); - } - file = f_open( dos_env_file, READ_TEXT_FLAGS ) ; - (IGNORED) strcpy((char *) &env_loc[0], (char *) dos_env_file); - if( debug && file ){ - (IGNORED) printf(".......Open: %s\n", dos_env_file); } -} - - } - -#line 3257 "./tex4ht-t4ht.tex" - - -#ifdef KPATHSEA -if( !file ) { U_CHAR * envfile; - char *arch, *p, str[256]; - -#line 3284 "./tex4ht-t4ht.tex" - -p = arch = (char *) kpse_var_value( "SELFAUTOLOC" ); -while( *p != '\0' ){ - if( (*p == '/') || (*p == '\\') ){ - arch = p; - } - p++; -} - - - envfile = (char *) 0; - -#line 3295 "./tex4ht-t4ht.tex" - -if( arch ){ - (IGNORED) sprintf(str,"%s%ctex4ht.env", arch+1, *arch); - if( debug ){ - (IGNORED) printf( - "kpse_open_file (\"%s\", kpse_program_text_format)?\n", str ); - } - envfile= kpse_find_file (str, kpse_program_text_format, 0); -} - - - if ( !envfile ){ -#line 3307 "./tex4ht-t4ht.tex" - -if( debug ){ - (IGNORED) printf( - "kpse_open_file (\"tex4ht.env\", kpse_program_text_format)?\n"); -} -envfile= kpse_find_file ("tex4ht.env", kpse_program_text_format, 0); - - } - if ( !envfile ){ -#line 3361 "./tex4ht-t4ht.tex" - -if( system("kpsewhich --progname=tex4ht tex4ht.env > tex4ht.tmp") == 0 ){ - -#line 3374 "./tex4ht-t4ht.tex" - -char fileaddr [256]; -int loc = 0; -FILE* file = f_open("tex4ht.tmp", READ_TEXT_FLAGS); -if( file ){ - while( (fileaddr[loc] = getc(file)) >=0 ){ - if( fileaddr[loc] == '\n' ){ fileaddr[loc] = '\0'; break; } - loc++; - } - (IGNORED) fclose(file); -} - - - envfile= kpse_find_file (fileaddr, kpse_program_text_format, 0); -} - - } - if ( envfile ){ - file = kpse_open_file (envfile, kpse_program_text_format); - (IGNORED) printf("(%s)\n", envfile); - } - if( debug && file ){ - (IGNORED) printf(".......Open kpathsea %s\n", envfile); - } -} -if( debug ){ - U_CHAR *p, *q; - -#line 3326 "./tex4ht-t4ht.tex" - -p = (U_CHAR *) kpse_var_value( "T4HTINPUTS" ); -if( p ){ - (IGNORED) printf("T4HTINPUTS = %s\n", p); -} -q = getenv("T4HTINPUTS"); -if( q ){ (IGNORED) printf( - "Environmet var T4HTINPUTS: %s\n", q); -} -if( !p && !q ){ - (IGNORED) printf( "Missing T4HTINPUTS for kpathsea\n" ); -} - - -} -#endif - - - if( !file ) warn_i_str( 5, -#line 3245 "./tex4ht-t4ht.tex" - -#ifdef DOS_WIN32 - "tex4ht.env" -#endif -#ifndef DOS_WIN32 - "tex4ht.env | .tex4ht" -#endif - -); -} - - - if( file ){ - -#line 2931 "./tex4ht-t4ht.tex" - -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { Q_CHAR ch; - ch = (char) (eoln_ch = getc(file)); - if( eoln_ch != (int) '\n' ){ - status = scan_until_end_str("", 1, TRUE, file); - if( status ){ - switch( ch ){ - case 'A':{ -#line 2996 "./tex4ht-t4ht.tex" - -if( debug ){ - (IGNORED) printf(".......'A' script\n"); } -chmod_script = add_script(chmod_script); - - break;} - case 'C':{ -#line 2971 "./tex4ht-t4ht.tex" - -if( debug ){ - (IGNORED) printf(".......'C' script\n"); } -copy_script = add_script(copy_script); - - break;} - case 'E':{ -#line 3002 "./tex4ht-t4ht.tex" - -if( debug ){ - (IGNORED) printf(".......'E' script\n"); } -empty_fig_script = add_script(empty_fig_script); - - break;} - case 'F':{ -#line 2957 "./tex4ht-t4ht.tex" - -if( debug ){ - (IGNORED) printf(".......'F' script\n"); } -dvigif_glyp_script = add_script(dvigif_glyp_script); - - break;} - case 'G':{ -#line 1179 "./tex4ht-t4ht.tex" - -if( debug ){ (IGNORED) printf(".......'G' script\n"); } -dvigif_script = add_script(dvigif_script); - - break;} - case 'M':{ -#line 2964 "./tex4ht-t4ht.tex" - -if( debug ){ - (IGNORED) printf(".......'M' script\n"); } -move_script = add_script(move_script); - - break;} - case 'S':{ -#line 2270 "./tex4ht-t4ht.tex" - -{ struct sys_call_rec *q; - q = m_alloc(struct sys_call_rec, 1); - q->next = system_calls; - q->filter = match[1]; - match[1] = (Q_CHAR *) malloc(70); max_match[1] = 70; - system_calls = q; -if( debug ){ - (IGNORED) printf(".......'S' script: '%s'\n", - q->filter); } -} - - break;} - case 'X':{ -#line 2981 "./tex4ht-t4ht.tex" - -if( debug ){ - (IGNORED) printf(".......'X' script\n"); } - -#line 2239 "./tex4ht-t4ht.tex" - -file_script - - = add_script( -#line 2239 "./tex4ht-t4ht.tex" - -file_script - -); - - break;} - case '.':{ -#line 2987 "./tex4ht-t4ht.tex" - -if( debug ){ - (IGNORED) printf(".......'.' script\n"); } - -#line 2175 "./tex4ht-t4ht.tex" - -ext_script - - = add_script( -#line 2175 "./tex4ht-t4ht.tex" - -ext_script - -); - - break;} - case '<':{ -#line 3013 "./tex4ht-t4ht.tex" - -if( *(match[1]) != '/' ){ - U_CHAR *p; - BOOL env_skip; - for( p = match[1]; - (*p != '>') && (*p != '\n') && (*p != EOF ) ; - p++ ){} - if( *p == '>' ){ *p = '\0'; } - -#line 2202 "./tex4ht-t4ht.tex" - -if( envChoice == (struct env_c_rec*) 0 ){ - env_skip = !eq_str(match[1], "default" ); -} else { - struct env_c_rec *p; - env_skip = TRUE; - for( p=envChoice; p!=(struct env_c_rec*) 0 ; p = p->next ){ - if( eq_str(match[1], p->option ) ){ env_skip = FALSE; } -} } - - - if( env_skip ){ - -#line 3034 "./tex4ht-t4ht.tex" - - U_CHAR cur_block[90]; -if( debug ){ - (IGNORED) printf("....... <%s> skipping ...\n", match[1]); -} -(IGNORED) strcpy((char *) cur_block, (char *) match[1]); -status = FALSE; -while( !status && (eoln_ch != EOF) ){ - status = scan_str("</", TRUE, file); - status = scan_until_str(">", 1, status, file); - status = scan_until_end_str("", 2, status, file); - if( status ){ - *(match[1] + strlen((char *) match[1]) - 1) = '\0'; - status = eq_str(match[1], cur_block); - if( debug ){ - (IGNORED) printf("....... </%s>\n", match[1]); -} } } - - - } else { - if( debug ){ - (IGNORED) printf("....... <%s>\n", match[1]); - } - } -} else if( debug ){ - (IGNORED) printf("....... <%s\n", match[1]); -} - - break;} - default:{ } -} } } } - - - (IGNORED) fclose(file); -} } - - -lg_file = open_file(lg_name,LG_EXT); -if( lg_file ) { - -#line 3759 "./tex4ht-t4ht.tex" - -begin_lg_file = ftell(lg_file); - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 274 "./tex4ht-t4ht.tex" - -if( check_tex4ht_c_err ){ - eoln_ch = (int) 'x'; - while( eoln_ch != EOF ) { - status = scan_str("tex4ht.c error: ", TRUE, lg_file); - if( status ){ - (IGNORED) fprintf(stderr, - "--- Error --- tex4ht.c ran into problems\n" - ); - exit(EXIT_FAILURE); - } - status = scan_until_end_str("", 1, status, lg_file); -} } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 1704 "./tex4ht-t4ht.tex" - -{ -#line 2056 "./tex4ht-t4ht.tex" - -Q_CHAR *file_name, file_mode[5]; -int i, start_loc, end_loc, addr = 0; -char rec_op, *ch; -static struct files_rec *to_rec, *from_rec, - *opened_files = (struct files_rec *) 0, - *p, *p1, *p2, *p3, *p4, *from_op; -FILE *in_file, *out_file; -BOOL write_on; - - - eoln_ch = (int) 'x'; - while( eoln_ch != EOF ) { - status = scan_str("CopyTo: ", TRUE, lg_file); - status = scan_until_str(" ", 1, status, lg_file); - status = scan_until_str(" ", 2, status, lg_file); - status = scan_until_str(" ", 3, status, lg_file); - status = scan_until_str(" ", 4, status, lg_file); - status = scan_until_end_str("", 5, status, lg_file); - if( status ){ - if( debug ){ - (IGNORED) printf("...CopyTo: %s%s%s%s%s...\n", - match[1], match[2], match[3], match[4], match[5]); - } - rec_op = eq_str(match[2],"From ")? From_op : - ( eq_str(match[2],"Until ")? Until_op : - ( eq_str(match[2],"Skip ")? Skip_op : - ( eq_str(match[2],"Cont ")? Cont_op : No_op ))); - if( rec_op == No_op ){ -#line 1740 "./tex4ht-t4ht.tex" - -ch = match[2]; -if( (ch[0]=='S') && (ch[1]=='e') && (ch[2]=='t') ){ - ch += 3; rec_op = Set_op; -} else if( (ch[0]=='A') && (ch[1]=='d') && (ch[2]=='d') && (ch[3]=='r') ){ - ch += 4; rec_op = Addr_op; -} -if( rec_op != No_op ){ - addr = 0; while( (*ch>='0') && (*ch<='9') ){ - addr = addr*10 + *ch - '0'; ch++; -} } - - } - if( rec_op == No_op ){ - (IGNORED) fprintf(stderr,"--- warning --- "); - (IGNORED) fprintf(stderr,"CopyTo: %s%s%s%s%s?\n", - match[1], match[2], match[3], match[4], match[5]); - } else { - -#line 2002 "./tex4ht-t4ht.tex" - -file_name = match[1]; -*(file_name + (int) strlen((char *) file_name) - 1) = '\0'; -strcpy((char *) file_mode, WRITE_TEXT_FLAGS); -for(i=1; i<=2; i++){ - -#line 2021 "./tex4ht-t4ht.tex" - -for( p = opened_files; p != (struct files_rec*) 0; p = p->right ){ - if( eq_str(file_name,p->name) ) { break; } -} -if( p == (struct files_rec*) 0 ){ - p = m_alloc(struct files_rec, 1); - p->right = opened_files; opened_files = p; - p->down = (struct files_rec*) 0; - strcpy((char *) p->file_mode, (char *) file_mode); - p->name = m_alloc(char, (int) strlen((char *) file_name) + 1); - (IGNORED) strcpy((char *) p->name, (char *) file_name ); - if( (p->file = fopen(file_name, file_mode)) == NULL ) - { (IGNORED) warn_i_str(5,file_name); } -} -to_rec = from_rec; from_rec = p; - - - file_name = match[5]; - strcpy((char *) file_mode, -#line 4309 "./tex4ht-t4ht.tex" - -READ_BIN_FLAGS - -); -} - - - -#line 1963 "./tex4ht-t4ht.tex" - -if( to_rec->down == (struct files_rec*) 0 ){ - -#line 1977 "./tex4ht-t4ht.tex" - -to_rec->down = p = m_alloc(struct files_rec, 1); -p->up = to_rec; -p->right = p->left = p->down = (struct files_rec*) 0; -p->name = to_rec->name; -p->file = to_rec->file; -p->from_rec = from_rec; -p->loc = -1; -p->op = No_op; -to_rec = p; - - -} else { - to_rec = to_rec->down; - for( p = to_rec->right; p != (struct files_rec*) 0; p = p->right ){ - if( to_rec->from_rec == from_rec ){ break; } - to_rec = p; - } - if( to_rec->from_rec != from_rec ){ - -#line 1989 "./tex4ht-t4ht.tex" - -to_rec->right = p = m_alloc(struct files_rec, 1); -p->left = to_rec; -p->right = p->down = (struct files_rec*) 0; -p->up = to_rec->up; -p->name = to_rec->name; -p->file = to_rec->file; -p->from_rec = from_rec; -p->loc = -1; -to_rec = p; - - -} } - - - -#line 1917 "./tex4ht-t4ht.tex" - -if( to_rec->down == (struct files_rec*) 0 ){ - -#line 1933 "./tex4ht-t4ht.tex" - -to_rec->down = p = m_alloc(struct files_rec, 1); -p->up = to_rec; -p->right = p->left = p->down = (struct files_rec*) 0; -p->name = to_rec->name; -p->file = to_rec->file; -p->from_rec = from_rec; -p->loc = -1; -p->op = No_op; -p->group = m_alloc(char, (int) strlen((char *) match[3]) + 1); -(IGNORED) strcpy((char *) p->group, (char *) match[3] ); -to_rec = p; - - -} else { - to_rec = to_rec->down; - for( p = to_rec->right; p != (struct files_rec*) 0; p = p->right ){ - if( eq_str(to_rec->group,match[3]) ){ break; } - to_rec = p; - } - if( !eq_str(to_rec->group,match[3]) ){ - -#line 1947 "./tex4ht-t4ht.tex" - -to_rec->right = p = m_alloc(struct files_rec, 1); -p->left = to_rec; -p->right = p->down = (struct files_rec*) 0; -p->up = to_rec->up; -p->name = to_rec->name; -p->file = to_rec->file; -p->from_rec = from_rec; -p->loc = -1; -p->group = m_alloc(char, (int) strlen((char *) match[3]) + 1); -(IGNORED) strcpy((char *) p->group, (char *) match[3] ); -to_rec = p; - - -} } - - - -#line 1904 "./tex4ht-t4ht.tex" - -p = m_alloc(struct files_rec, 1); -p->down = to_rec->down; to_rec->down = p; -p->up = to_rec; -if( p->down != (struct files_rec*) 0 ){ - (p->down)->up = p; -} -*(match[4] + (int) strlen((char *) match[4]) - 1) = '\0'; -p->loc = (int) get_long_int(match[4]); -p->op = rec_op; -p->label = addr; - - - -#line 1786 "./tex4ht-t4ht.tex" - -if( rec_op == Until_op ){ - for( p = to_rec->down; - p != (struct files_rec*) 0; p = p->down ){ - if( p->op == From_op ){ from_op = p; break; } - } - if( p == (struct files_rec*) 0 ){ - -#line 1886 "./tex4ht-t4ht.tex" - -(IGNORED) fprintf(stderr,"%sMissing `CopyTo From':\n", "--- warning --- "); -for( p = to_rec->down; p != (struct files_rec*) 0; p = p->down ){ - (IGNORED) fprintf(stderr," %s %s%d %s\n", to_rec->name, - p->op == From_op ? "From " : - ( p->op == Until_op ? "Until " : - ( p->op == Skip_op ? "Skip " : - ( p->op == Cont_op? "Cont " : - ( p->op == Addr_op? "Addr " : - ( p->op == Set_op? "Set " : "No_op " ))))), - p->loc, from_rec->name - ); -} - - - } else { - -#line 1804 "./tex4ht-t4ht.tex" - -in_file = from_rec->file; -out_file = to_rec->file; -start_loc = from_op->loc; -write_on = TRUE; -(IGNORED) fseek(in_file, (long) start_loc, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); -for( p= from_op; p != to_rec; p = p->up ){ - switch( p->op ){ - case Until_op:{ -#line 1821 "./tex4ht-t4ht.tex" - -if( write_on ){ - end_loc = p->loc; - for(; start_loc<end_loc; start_loc++) { - (IGNORED) putc( getc(in_file), out_file ); -} } - - break; } - case Skip_op:{ -#line 1830 "./tex4ht-t4ht.tex" - -if( write_on ){ - end_loc = p->loc; - for(; start_loc<end_loc; start_loc++) { - (IGNORED) putc( getc(in_file), out_file ); - } -} -write_on = FALSE; - - break; } - case Cont_op:{ -#line 1841 "./tex4ht-t4ht.tex" - -end_loc = p->loc; -if( write_on ){ - for(; start_loc<end_loc; start_loc++) { - (IGNORED) putc( getc(in_file), out_file ); - } -} else { - start_loc = end_loc; - (IGNORED) fseek(in_file, (long) end_loc, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); -} -write_on = TRUE; - - break; } - case Set_op:{ -#line 1855 "./tex4ht-t4ht.tex" - -addr = -1; -for( p1 = from_op->up; p1 != to_rec; p1 = p1->up ){ - if( (p1->op == Addr_op) && (p1->label == p->label) ){ - addr = p1->loc; break; -} } -if( addr != -1 ){ (p->up)->loc = addr; } - - break; } - default: { } -} } - - - -#line 1865 "./tex4ht-t4ht.tex" - -to_rec->down = from_op->down; -if( from_op->down != (struct files_rec*) 0){ - (from_op->down)->up = to_rec; -} -for( p = from_op; p != to_rec; ){ - p1 = p; p = p->up; free((void *) p1); -} -if( to_rec->down == (struct files_rec*) 0){ - if( to_rec->left == (struct files_rec*) 0 ){ - (to_rec->up)->down = to_rec->right; - } else { - (to_rec->left)->right = to_rec->right; - } - if( to_rec->right != (struct files_rec*) 0 ){ - (to_rec->right)->left = to_rec->left; - } - p1 = to_rec; to_rec = to_rec->up; free((void *) p1); -} - - - } -} - - - } } } - -#line 1753 "./tex4ht-t4ht.tex" - -for( p = opened_files; p != (struct files_rec*) 0; ){ - (IGNORED) fclose(p->file); - free((void *) p->name); - -#line 1762 "./tex4ht-t4ht.tex" - -for( p1 = p->down; p1 != (struct files_rec*) 0; ){ - -#line 1769 "./tex4ht-t4ht.tex" - -for( p2 = p1->down; p2 != (struct files_rec*) 0; ){ - -#line 1776 "./tex4ht-t4ht.tex" - -for( p3 = p2->down; p3 != (struct files_rec*) 0; ){ - p4 = p3; p3 = p3->down; free((void *) p4); -} - - - p3 = p2; p2 = p2->right; free((void *) p3); -} - - - p2 = p1; p1 = p1->right; free((void *) p2); -} - - - p1= p; p = p->right; free((void *) p1); -} - - -} - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2372 "./tex4ht-t4ht.tex" - -{ struct htf_struct *last_rec, *p; - last_rec = (struct htf_struct *) 0; - eoln_ch = (int) 'x'; - while( eoln_ch != EOF ) { - status = scan_str("htfcss: ", TRUE, lg_file); - status = scan_until_end_str("", 1, status, lg_file); - -#line 2387 "./tex4ht-t4ht.tex" - -if( status ){ - Q_CHAR *s, *t; - int i; - s = t = match[1]; - for( i=0; *s == ' '; s++ ) { i++; } - if( i>0 ){ - while( *s != 0 ){ - *(t++) = *(s++); - } - *t = 0; -} } - - - if( status ){ Q_CHAR *key, *body, *media; - media = body = key = match[1]; - -#line 2404 "./tex4ht-t4ht.tex" - -while( *body && (*body != ' ') ){ body++; } -if( *body == ' ' ){ media = body; *(body++) = '\0'; } - -#line 2416 "./tex4ht-t4ht.tex" - -if( (int) strlen((char *) body) > 6 ){ - if( (*(body) == '@') - && (*(body+1) == 'm') - && (*(body+2) == 'e') - && (*(body+3) == 'd') - && (*(body+4) == 'i') - && (*(body+5) == 'a') ) - { - body += 6; - while( *body == ' ' ){ body++; } - media = body; - while( (*body != ' ') && (*body != '\0') ){ body++; } - if( *body == ' ' ){ *(body++) = '\0'; } - while( *body == ' ' ){ body++; } -} } - - -if( *body ){ - if( *key ){ -#line 2434 "./tex4ht-t4ht.tex" - -p = m_alloc(struct htf_struct, 1); -p->next = (struct htf_struct *) 0; -p->key = m_alloc(char, (int) strlen((char *) key) + 1); -(IGNORED) strcpy((char *) p->key, (char *) key ); -p->media = m_alloc(char, (int) strlen((char *) media) + 1); -(IGNORED) strcpy((char *) p->media, (char *) media ); -p->body = m_alloc(char, (int) strlen((char *) body) + 1); -(IGNORED) strcpy((char *) p->body, (char *) body ); -if( last_rec ){ - last_rec->next = p; last_rec = p; -} else { - htf_rec = last_rec = p; -} -if( debug ){ - (IGNORED) printf(".......%s...%s...%s\n", key, media, body); -} - - } -#if 0 /* unreachable */ - else if( last_rec ){ -#line 2453 "./tex4ht-t4ht.tex" - -last_rec->body = (Q_CHAR *) r_alloc((void *) last_rec->body, - (size_t) strlen((char *) last_rec->body) - + (size_t) strlen((char *) body) - + 2); -(IGNORED) strct(last_rec->body,"\n"); -(IGNORED) strct(last_rec->body,body); -if( debug ){ - (IGNORED) printf(".......%s\n", body); -} - - } -#endif /* 0, unreachable */ -} - - - } } -} - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2475 "./tex4ht-t4ht.tex" - -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { - status = scan_str("Font_Css_Plus ", TRUE, lg_file); - status = scan_until_str(" ", 1, status, lg_file); - status = scan_until_end_str("", 2, status, lg_file); - if( status ){ Q_CHAR *key; - key = match[1]; - *(key + (int) strlen((char *) key) - 1) = '\0'; - -#line 2490 "./tex4ht-t4ht.tex" - -if( (*key != '\0') && (*key != '\n') ) { - struct htf_struct *p; - p = m_alloc(struct htf_struct, 1); - p->next = htf_rec; - htf_rec = p; - p->key = m_alloc(char, (int) strlen((char *) key) + 1); - (IGNORED) strcpy((char *) p->key, (char *) key ); - p->body = m_alloc(char, (int) strlen((char *) match[2]) + 1); - (IGNORED) strcpy((char *) p->body, (char *) match[2] ); - if( debug ){ - (IGNORED) printf(".......%s...%s\n", key, match[2]); -} } - - -} } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 1124 "./tex4ht-t4ht.tex" - -{ struct empty_pic_struct *last; - last = empty_pic = (struct empty_pic_struct *) 0; - while( TRUE ) { - status = scan_str("--- empty picture --- ", TRUE, lg_file); - status = scan_until_str( ".idv[" , 1, status, lg_file); - status = scan_until_end_str("] ---", 1, status, lg_file); - if( status ){ -#line 1141 "./tex4ht-t4ht.tex" - -if( last == (struct empty_pic_struct *) 0 ){ - last = empty_pic = (struct empty_pic_struct *) - m_alloc(struct empty_pic_struct, (int) 1); -} else { - last = last->next = (struct empty_pic_struct *) - m_alloc(struct empty_pic_struct, (int) 1); -} -last->next = (struct empty_pic_struct *) 0; -last->n = get_long_int(match[1]); - - } - if ( eoln_ch == EOF ){ break; } - } - -#line 1141 "./tex4ht-t4ht.tex" - -if( last == (struct empty_pic_struct *) 0 ){ - last = empty_pic = (struct empty_pic_struct *) - m_alloc(struct empty_pic_struct, (int) 1); -} else { - last = last->next = (struct empty_pic_struct *) - m_alloc(struct empty_pic_struct, (int) 1); -} -last->next = (struct empty_pic_struct *) 0; -last->n = get_long_int(match[1]); - - - last->next = (struct empty_pic_struct *) 0; - last->n = 100000; -} - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 1192 "./tex4ht-t4ht.tex" - -{ BOOL characters, skip; - characters = skip = FALSE; - while( TRUE ) { - status = scan_until_str("--- ", 1, TRUE, lg_file); - status = scan_until_str( " ---" , 2, status, lg_file); - if( status ) { - if( eq_str(match[1],"--- ") ){ - if( eq_str(match[2],"needs ---") ){ - -#line 1231 "./tex4ht-t4ht.tex" - -status = scan_until_str(" ", 1, status, lg_file); -status = scan_until_str(".idv", 1, status, lg_file); -status = scan_until_str("[", 2, status, lg_file); -status = scan_until_str("] ==> ", 2, status, lg_file); -status = scan_until_str(" ", 3, status, lg_file); - *(match[3] + (int) strlen((char *) match[3]) - 1) = '\0'; -status = scan_until_end_str("---", 4, status, lg_file); -if( status ) { - -#line 1353 "./tex4ht-t4ht.tex" - -struct script_struct - * filtered_dvigif_script = NULL_SCRIPT; - - - long int gif_i; - Q_CHAR *p; - gif_i = get_long_int(match[2]); - p = match[2]; - *(p + (int) strlen((char *) p) - 6) = '\0'; - if( characters ){ - -#line 1295 "./tex4ht-t4ht.tex" - - Q_CHAR filename[255]; - FILE* file; -(IGNORED) strcpy((char *) filename, ""); -if( dir && !bitmaps_no_dm ){ (IGNORED) strct(filename, dir); } -(IGNORED) strct(filename, match[3]); -file = fopen(filename, READ_TEXT_FLAGS); -if( !file || noreuse ){ - -#line 1332 "./tex4ht-t4ht.tex" - -filtered_dvigif_script = dvigif_glyp_script? - filterGifScript(dvigif_glyp_script, match[3]): - filterGifScript(dvigif_script, match[3]); -(void) execute_script( - filtered_dvigif_script,match[1],match[2],match[3],job_name); -(void) free_script( filtered_dvigif_script ); -if( dir && !bitmaps_no_dm && !system_return ){ - (void) execute_script(move_script,match[3],dir,".",""); - -#line 1346 "./tex4ht-t4ht.tex" - -if( ch_mod && !bitmaps_no_dm && !system_return ){ - (void) execute_script(chmod_script, ch_mod, dir?dir:"",match[3], ""); -} - - -} - - -} else { - (IGNORED) fclose(file); - if( newchmod ) - { -#line 1346 "./tex4ht-t4ht.tex" - -if( ch_mod && !bitmaps_no_dm && !system_return ){ - (void) execute_script(chmod_script, ch_mod, dir?dir:"",match[3], ""); -} - - } - (IGNORED) printf("%s already in %s\n", match[3], - dir? dir : "current directory" ); -} - - - } else { -#line 1258 "./tex4ht-t4ht.tex" - -if( gif_i == -#line 1286 "./tex4ht-t4ht.tex" - -empty_pic->n - - ) { - -#line 1272 "./tex4ht-t4ht.tex" - -if( !skip ){ - (void) execute_script(empty_fig_script, - (dir && !bitmaps_no_dm )? dir :"", match[3],"",""); - if( ch_mod && !bitmaps_no_dm && !system_return ){ - (void) execute_script(chmod_script, ch_mod, - dir?dir:"",match[3], ""); - } -} -empty_pic = empty_pic->next; - - -} else { -#line 1265 "./tex4ht-t4ht.tex" - -if( !nopict && !skip ){ - -#line 1319 "./tex4ht-t4ht.tex" - -filtered_dvigif_script = filterGifScript(dvigif_script, match[3]); -(void) execute_script( - filtered_dvigif_script,match[1],match[2],match[3],job_name); -(void) free_script( filtered_dvigif_script ); -if( dir && !bitmaps_no_dm && !system_return ){ - (void) execute_script(move_script,match[3],dir,".",""); -} -if( ch_mod && !bitmaps_no_dm && !system_return ){ - (void) execute_script(chmod_script, ch_mod, dir?dir:"",match[3], ""); -} - - -} - - } - - } -} - - - } else if( eq_str(match[2],"characters ---") ){ - -#line 1221 "./tex4ht-t4ht.tex" - -status = scan_until_end_str("", 1, status, lg_file); -characters = eq_str(match[1],""); - - - } else { -#line 1212 "./tex4ht-t4ht.tex" - -status = scan_until_end_str("", 1, status, lg_file); - - } - } else { -#line 1647 "./tex4ht-t4ht.tex" - -status = scan_until_end_str(" ignore ---", 2, status, lg_file); -if( status ){ - skip = eq_str(match[2]," ignore ---") ? TRUE : - ( eq_str(match[2]," end ignore ---") ? FALSE : skip ); -} - - } - } - if ( eoln_ch == EOF ){ break; } -} } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2538 "./tex4ht-t4ht.tex" - -{ - Q_CHAR css_name[255]; - FILE *css_file, *tmp_file; - BOOL css_sty; - -#line 2582 "./tex4ht-t4ht.tex" - -(IGNORED) strcpy((char *) css_name, (char *) job_name); -(IGNORED) strct(css_name, ".css"); -css_file = fopen(css_name, READ_TEXT_FLAGS); - - - if( css_file ){ - (IGNORED) printf ("Entering %s\n", css_name); - tmp_file = fopen(tmp_name, WRITE_TEXT_FLAGS); - if( !tmp_file ) { - (IGNORED) warn_i_str(5,tmp_name); - } else { -#line 2572 "./tex4ht-t4ht.tex" - - int ch; -while( (ch = getc(css_file)) != EOF ) { - (IGNORED) putc( ch, tmp_file ); -} -(IGNORED) fclose(tmp_file); -(IGNORED) fclose(css_file); - - } - tmp_file = open_file(tmp_name, ".tmp"); - css_file = fopen(css_name, WRITE_TEXT_FLAGS); - if( !tmp_file ) { - (IGNORED) warn_i_str(5,tmp_name); - } else if( !css_file ) { - (IGNORED) warn_i_str(5,css_name); - } else { - -#line 2594 "./tex4ht-t4ht.tex" - -css_sty = FALSE; -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { - status = scan_until_end_str("", 1, TRUE, tmp_file); - -#line 2611 "./tex4ht-t4ht.tex" - -{ Q_CHAR *p, *q; - int n; - n = 0; p = match[1]; q = match[2]; - while ( (*p != '\0') ){ - if (n == 13) { *(q-10) = '\0'; break;} - if( *p != ' ' ){ *(q++) = *p; n++; } - p++; - } - *q = '\0'; -} - - - if( eq_str(match[2], "/*css.sty*/") ){ css_sty = TRUE; break; } - (IGNORED) fprintf(css_file, "%s\n", match[1]); -} - - - if( css_sty ){ - -#line 2628 "./tex4ht-t4ht.tex" - -(IGNORED) fprintf(css_file, "/* start css.sty */\n"); - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2801 "./tex4ht-t4ht.tex" - -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { - status = scan_str("Font_css_base: ", TRUE, lg_file); - status = scan_until_str("Font_css_mag: ", 1, status, lg_file); - status = scan_until_end_str("", 2, status, lg_file); - if( status ){ - Font_css_base = match[1]; - *(Font_css_base + (int) strlen((char *) Font_css_base) - 14) = '\0'; - match[1] = (Q_CHAR *) malloc(70); max_match[1] = 70; - Font_css_mag = match[2]; - match[2] = (Q_CHAR *) malloc(70); max_match[2] = 70; -} } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2686 "./tex4ht-t4ht.tex" - -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { - status = scan_str("Font_Size: ", TRUE, lg_file); - status = scan_until_end_str("", 1, status, lg_file); - if( status ){ - base_font_size = (int) get_long_int(match[1]); -} } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2715 "./tex4ht-t4ht.tex" - -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { - status = scan_str("Font(\"", TRUE, lg_file); - status = scan_until_str("\",\"", 1, status, lg_file); - status = scan_until_str("\",\"", 2, status, lg_file); - status = scan_until_str("\",\"", 3, status, lg_file); - status = scan_until_end_str("\")", 4, status, lg_file); - if( status ){ - Q_CHAR *p; - struct htf_struct *font_sty; - int second; - p = match[1]; - *(p + (int) strlen((char *) p) - 3) = '\0'; - p = match[2]; - *(p + (int) strlen((char *) p) - 3) = '\0'; - p = match[3]; - *(p + (int) strlen((char *) p) - 3) = '\0'; - p = match[4]; - *(p + (int) strlen((char *) p) - 2) = '\0'; - -#line 2763 "./tex4ht-t4ht.tex" - -{ Q_CHAR *p; - second = (int) - ( (int) get_long_int(match[3]) - * (int) get_long_int(match[4]) - / base_font_size - ); - while( second > 700 ){ second /= 10; } - p = match[3]; - while( *p != '\0' ){ - if( (*p < '0') || (*p > '9') ){ second = 100; break; } - p++; - } - -#line 2783 "./tex4ht-t4ht.tex" - -if( (int) ( (double) get_long_int(match[2]) - / (int) get_long_int(match[4]) - + 0.5 - ) - == base_font_size -){ - second = 100; -}; - - -} - - - -#line 2744 "./tex4ht-t4ht.tex" - -font_sty = htf_rec; -while ( font_sty ) { - if( eq_str(font_sty->key,match[1]) ){ - if( *(font_sty->media) == '\0' ){ - -#line 2827 "./tex4ht-t4ht.tex" - -(IGNORED) fprintf(css_file, - (Font_css_base == NULL)? ".%s-%s" : Font_css_base, - match[1], match[2]); -if( !eq_str(match[4],"100") ){ - (IGNORED) fprintf(css_file, - (Font_css_mag == NULL)? "x-x-%s" : Font_css_mag, - match[4]); -} -(IGNORED) fprintf(css_file, "{"); -if( (second < 98) || (second > 102) ){ - (IGNORED) fprintf(css_file, "font-size:%d%c;", second, '%'); -} -if( font_sty ) { - (IGNORED) fprintf(css_file, "%s", font_sty->body); -} -(IGNORED) fprintf(css_file, "}\n"); - - - second = 100; - } else { - -#line 2847 "./tex4ht-t4ht.tex" - -(IGNORED) fprintf(css_file, "@media %s{", font_sty->media); -(IGNORED) fprintf(css_file, - (Font_css_base == NULL)? ".%s-%s" : Font_css_base, - match[1], match[2]); -if( !eq_str(match[4],"100") ){ - (IGNORED) fprintf(css_file, - (Font_css_mag == NULL)? "x-x-%s" : Font_css_mag, - match[4]); -} -(IGNORED) fprintf(css_file, "{"); -if( font_sty ) { - (IGNORED) fprintf(css_file, "%s", font_sty->body); -} -(IGNORED) fprintf(css_file, "}}\n"); - - - } - } - font_sty = font_sty->next; -} -if( second != 100 ){ -#line 2827 "./tex4ht-t4ht.tex" - -(IGNORED) fprintf(css_file, - (Font_css_base == NULL)? ".%s-%s" : Font_css_base, - match[1], match[2]); -if( !eq_str(match[4],"100") ){ - (IGNORED) fprintf(css_file, - (Font_css_mag == NULL)? "x-x-%s" : Font_css_mag, - match[4]); -} -(IGNORED) fprintf(css_file, "{"); -if( (second < 98) || (second > 102) ){ - (IGNORED) fprintf(css_file, "font-size:%d%c;", second, '%'); -} -if( font_sty ) { - (IGNORED) fprintf(css_file, "%s", font_sty->body); -} -(IGNORED) fprintf(css_file, "}\n"); - - } - - -} } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2871 "./tex4ht-t4ht.tex" - -{ char *font_class [256]; - int last_class; - -#line 2890 "./tex4ht-t4ht.tex" - -last_class = 0; -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { - status = scan_str("Font_Class(", TRUE, lg_file); - status = scan_until_str(",\"", 1, status, lg_file); - status = scan_until_str("\"): ", 1, status, lg_file); - status = scan_until_end_str("", 2, status, lg_file); - if( status ){ - font_class[last_class++] = match[1]; - match[1] = (Q_CHAR *) malloc(7); max_match[1] = 7; -} } - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - - - - eoln_ch = (int) 'x'; - while( eoln_ch != EOF ) { - status = scan_str("Font_Css(\"", TRUE, lg_file); - status = scan_until_str("\"): ", 1, status, lg_file); - status = scan_until_end_str("", 2, status, lg_file); - if( status ){ int i; - for(i=0; i<last_class; i++){ - if( eq_str(match[1],font_class[i]) ){ - (IGNORED) fprintf(css_file, "%s\n", match[2]); - break; -} } } } } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2667 "./tex4ht-t4ht.tex" - -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { - status = scan_str("Css: ", TRUE, lg_file); - status = scan_until_end_str("", 1, status, lg_file); - if( status ){ - (IGNORED) fprintf(css_file, "%s\n", match[1]); -} } - - -(IGNORED) fprintf(css_file, "/* end css.sty */\n"); - - - -#line 2649 "./tex4ht-t4ht.tex" - -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { - status = scan_until_end_str("", 1, TRUE, tmp_file); - -#line 2611 "./tex4ht-t4ht.tex" - -{ Q_CHAR *p, *q; - int n; - n = 0; p = match[1]; q = match[2]; - while ( (*p != '\0') ){ - if (n == 13) { *(q-10) = '\0'; break;} - if( *p != ' ' ){ *(q++) = *p; n++; } - p++; - } - *q = '\0'; -} - - - if( !eq_str(match[2], "/*css.sty*/") ){ - (IGNORED) fprintf(css_file, "%s\n", match[1]); - } -} - - - } - } - (IGNORED) fclose(tmp_file); - (IGNORED) fclose(css_file); -} } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2086 "./tex4ht-t4ht.tex" - -if( -#line 2175 "./tex4ht-t4ht.tex" - -ext_script - - ){ - eoln_ch = (int) 'x'; - while( eoln_ch != EOF ) { - status = scan_str("File: ", TRUE, lg_file); - status = scan_until_str(".", 1, status, lg_file); - status = scan_until_end_str("", 2, status, lg_file); - if( status ){ Q_CHAR *ext; - struct script_struct *cur_script; - ext = match[1]; - (IGNORED) strct( ext, match[2] ); - ext += strlen((char *) ext); - while( *(--ext) != '.' ){ ; } - *ext = '\0'; ext++; - -#line 2108 "./tex4ht-t4ht.tex" - -{ - struct script_struct *cur, *add, *temp; - Q_CHAR extPlus[256]; - cur = -#line 2175 "./tex4ht-t4ht.tex" - -ext_script - -; - add = cur_script = NULL_SCRIPT; - while( cur ){ - -#line 2129 "./tex4ht-t4ht.tex" - -(IGNORED) strcpy((char *) extPlus, (char *) ext); -/* - if ( envChoice ) { - (IGNORED) strct ( extPlus, envChoice ); - } -*/ -(IGNORED) strct ( extPlus, " " ); - - - if( strpre(extPlus, cur->command) ){ - -#line 2139 "./tex4ht-t4ht.tex" - -temp = (struct script_struct *) - m_alloc(struct script_struct, (int) 1); -temp->command = m_alloc(char, (int) strlen((char *) cur->command) + 1); -temp->next = NULL_SCRIPT; -(IGNORED) strcpy((char *) temp->command, - (char *) cur->command + (int) strlen((char *) extPlus) ); - - - if( cur_script == NULL_SCRIPT ){ - cur_script = add = temp; - } else { - add = add->next = temp; - } } - cur = cur->next; -} } - - - (void) execute_script(cur_script, - match[1], Dotfield? Dotfield : "", "", ""); - -#line 2148 "./tex4ht-t4ht.tex" - -while( cur_script != (struct script_struct*) 0 ){ - struct script_struct *temp; - temp = cur_script; cur_script = cur_script->next; free((void *) temp); -} - - -} } } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2221 "./tex4ht-t4ht.tex" - -if( -#line 2239 "./tex4ht-t4ht.tex" - -file_script - - ){ - eoln_ch = (int) 'x'; - while( eoln_ch != EOF ) { - status = scan_str("File: ", TRUE, lg_file); - status = scan_until_str(".", 1, status, lg_file); - status = scan_until_end_str("", 2, status, lg_file); - if( status ){ Q_CHAR *p; - p = match[1]; - (IGNORED) strct( p, match[2] ); - p += strlen((char *) p); - while( *(--p) != '.' ){ ; } - *p = '\0'; p++; - (void) execute_script(file_script, match[1], - p, Xfield? Xfield : "", ""); -} } } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 112 "./tex4ht-t4ht.tex" - -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { - status = scan_str("File: ", TRUE, lg_file); - status = scan_until_end_str("", 1, status, lg_file); - status = status && !eq_str(match[1],tmp_name); - if( status ){ - FILE* file; - file = fopen(match[1], READ_TEXT_FLAGS); - if( file ){ - (IGNORED) fclose(file); - } else { status = FALSE; } - } - if( status ){ - if( dir ){ - (void) execute_script(copy_script, match[1], - dir? dir :"",".",""); - } - if( ch_mod ){ - (void) execute_script(chmod_script, ch_mod, - dir? dir:"",match[1], ""); - } -} } - - - -#line 3763 "./tex4ht-t4ht.tex" - -(IGNORED) fseek(lg_file, begin_lg_file, -#line 3767 "./tex4ht-t4ht.tex" - -0 -); - - -#line 2249 "./tex4ht-t4ht.tex" - -eoln_ch = (int) 'x'; -while( eoln_ch != EOF ) { Q_CHAR *command, ch; - int n; - struct sys_call_rec *p; - BOOL flag; - status = scan_str("l. ", TRUE, lg_file); - status = scan_until_str(" --- needs --- \"", 1, status, lg_file); - status = scan_until_str("\" ---", 2, status, lg_file); - if( status ){ - command = match[2]; - *(command + (int) strlen((char *) command) - 5) = '\0'; - -#line 2293 "./tex4ht-t4ht.tex" - -flag = FALSE; -p = system_calls; -while( p ){ - if( (n = (int) strlen((char *) p->filter)) == 1 ) { - if( *(p->filter) == '*' ){ - flag = TRUE; break; - } - } - if( strlen((char *) command) >= (unsigned int) n ) { - ch = command[n]; command[n] = '\0'; - flag = flag || eq_str(p->filter,command); - command[n] = ch; - } - p = p->next; -} - - - if( flag ){ - -#line 4166 "./tex4ht-t4ht.tex" - -(IGNORED) call_sys(command); - - - } else { (IGNORED) printf( - "No permission for system call: %s\n", command); } -} } - - - (IGNORED) fclose(lg_file); -} - - - return 0; -} - - diff --git a/Build/source/texk/tex4htk/teicontext b/Build/source/texk/tex4htk/teicontext deleted file mode 100755 index 0bbfd358742..00000000000 --- a/Build/source/texk/tex4htk/teicontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teilatex b/Build/source/texk/tex4htk/teilatex deleted file mode 100755 index 43910cc5235..00000000000 --- a/Build/source/texk/tex4htk/teilatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teimcontext b/Build/source/texk/tex4htk/teimcontext deleted file mode 100755 index 0bbfd358742..00000000000 --- a/Build/source/texk/tex4htk/teimcontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teimex b/Build/source/texk/tex4htk/teimex deleted file mode 100755 index 316a4c1b3b4..00000000000 --- a/Build/source/texk/tex4htk/teimex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teimlatex b/Build/source/texk/tex4htk/teimlatex deleted file mode 100755 index c3f48c03299..00000000000 --- a/Build/source/texk/tex4htk/teimlatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teimmex b/Build/source/texk/tex4htk/teimmex deleted file mode 100755 index fb87cf283aa..00000000000 --- a/Build/source/texk/tex4htk/teimmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teimtex b/Build/source/texk/tex4htk/teimtex deleted file mode 100755 index 6b57c94b877..00000000000 --- a/Build/source/texk/tex4htk/teimtex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teimtexi b/Build/source/texk/tex4htk/teimtexi deleted file mode 100755 index 81c00cad2ca..00000000000 --- a/Build/source/texk/tex4htk/teimtexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/teimxelatex b/Build/source/texk/tex4htk/teimxelatex deleted file mode 100755 index 5d0a81bd001..00000000000 --- a/Build/source/texk/tex4htk/teimxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei-mml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teimxetex b/Build/source/texk/tex4htk/teimxetex deleted file mode 100755 index e0c3fa220e8..00000000000 --- a/Build/source/texk/tex4htk/teimxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei-mml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teitex b/Build/source/texk/tex4htk/teitex deleted file mode 100755 index 6f772153ba2..00000000000 --- a/Build/source/texk/tex4htk/teitex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teitexi b/Build/source/texk/tex4htk/teitexi deleted file mode 100755 index 352dbc26ef0..00000000000 --- a/Build/source/texk/tex4htk/teitexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/teixelatex b/Build/source/texk/tex4htk/teixelatex deleted file mode 100755 index a3a5595682d..00000000000 --- a/Build/source/texk/tex4htk/teixelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,tei]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/teixetex b/Build/source/texk/tex4htk/teixetex deleted file mode 100755 index 349274351e1..00000000000 --- a/Build/source/texk/tex4htk/teixetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,tei}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/test.tex b/Build/source/texk/tex4htk/test.tex deleted file mode 100644 index d05b994669e..00000000000 --- a/Build/source/texk/tex4htk/test.tex +++ /dev/null @@ -1,261 +0,0 @@ -% \def\CALL{{tex}{latex}} -% \let\PC=Y -% \let\DOS=Y -% \def\WWW{XXX} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% test.tex % -% % -% Please DON'T try to understand the code of this file---it % -% can be harmful to your eyes and brain! % -% % -% gurari@cis.ohio-state.edu % -% http://www.cis.ohio-state.edu/~gurari % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - - -\ifx \SCRIPT\UnDef - \ifx \PC\UnDef - \def\SCRIPT{ - \Needs{cp \FN.tex \WWW \FN.txt} - \Needs{chmod 644 \WWW \FN.txt} - \Needs{ht \TEX\space - \FN\space - \ifx\WWW\empty \else ' -d\WWW\space - -m644'\fi} - } - \else % dos batch file - \def\SCRIPT{ - \Needs{call ht \TEX\space \FN} - \Needs{if exist \FN.txt del \FN.txt} - \Needs{ren \FN.tex \FN.txt} - } -\fi\fi - -% \def\SCRIPT{ -% \Needs{call ht \TEX\space \FN} -% \Needs{if exist \FN.txt del /q \FN.txt} -% \Needs{ren /q \FN.tex \FN.txt} -% } - - - - -\ifx \PC\UnDef -\else - -\openin15=clean.bat -\ifeof15 -\closein15 -\immediate\openout15=clean.bat -\immediate\write15{DEL hti.bat} -\immediate\write15{DEL htii.bat} -\immediate\write15{DEL htiii.bat} -\immediate\write15{DEL htiv.bat} -\immediate\write15{DEL htv.bat} -\immediate\write15{DEL htvi.bat} -\immediate\write15{DEL htvii.bat} -\immediate\write15{DEL httest.bat} -\immediate\write15{DEL i.*} -\immediate\write15{DEL ia.*} -\immediate\write15{DEL ii.*} -\immediate\write15{DEL iia.*} -\immediate\write15{DEL iii.*} -\immediate\write15{DEL iiia.*} -\immediate\write15{DEL iv.*} -\immediate\write15{DEL iv2.*} -\immediate\write15{DEL iva2.*} -\immediate\write15{DEL iva.*} -\immediate\write15{DEL test*.aux} -\immediate\write15{DEL test*.bat} -\immediate\write15{DEL test*.dvi} -\immediate\write15{DEL test*.htm*} -\immediate\write15{DEL test*.css} -\immediate\write15{DEL test*.lg} -\immediate\write15{DEL test*.idv} -\immediate\write15{DEL test*.log} -\immediate\write15{DEL test*.otc} -\immediate\write15{DEL test*.toc} -\immediate\write15{DEL test*.txt} -\immediate\write15{DEL test*.xre*} -\immediate\write15{DEL tex4ht.ps} -\immediate\write15{DEL v.*} -\immediate\write15{DEL va.*} -\immediate\write15{DEL vi.*} -\immediate\write15{DEL viIa.*} -\immediate\write15{DEL via.*} -\immediate\write15{DEL vii.*} -\immediate\write15{DEL viia.*} -\immediate\write15{DEL clean.bat} -\immediate\closeout15 -\else \closein15 \fi - -\fi - -\ifx \DOS\UnDef - \def\HTML{html} \def\ARG{} - \else \def\HTML{htm} \def\ARG{[htm]} - \fi - -\ifx \documentclass\undef \else - \documentclass{article} -\fi -\input tex4ht.sty -\def\temp{htm}\ifx \HTML\temp - \Preamble{htm,no_,no^} -\else - \Preamble{html,no_,no^} -\fi - \ifx \documentclass\undef \else - \begin{document} - \fi - - \Configure{Needs}{l. \the\inputlineno\space--- needs --- "#1" ---} - - -\newlinechar=`\^^J - -\ifx \WWW\UnDef \let\WWW=\empty \fi -\ifx \DOS\UnDef\else -% \Needs{CLS} % clear screen -\fi - - -\ifx \CALL\UnDef - \def\TEX{\ifx \documentclass\undef \else la\fi tex} -\else - \def\TEX#1#2{\def\TEX{\ifx \documentclass\undef #1\else #2\fi}} - \expandafter\TEX\CALL -\fi - -\edef\type{\ifx \documentclass\undef \else a\fi} - -\def\\#1\\{\expandafter\noexpand\csname#1\endcsname} -\catcode`\#=11 \def\Sharp{#} \catcode`\#=6 -\def\source#1#2{ - \def\doc##1##2##3{#2} - \HAdvance\FileNo by 1 - \NextFileName - \immediate\openout15=\FN.tex - \immediate\write16{--- Writing file \FN.tex}% - \SCRIPT - \immediate\write15{\ifx \documentclass\undef - \noexpand \input tex4ht.sty ^^J - \noexpand \Preamble{\HTML#1} ^^J - \noexpand \EndPreamble ^^J^^J\else - \noexpand \documentclass{article} ^^J - \noexpand \usepackage\ARG{tex4ht} ^^J - \noexpand \begin{document} ^^J^^J\fi - \doc{PSALMS (131:1)} - {My heart is not haughty, nor ^^J - mine eyes lofty:} - {neither do I ^^J - exercise myself in great ^^J - matters, or in things too high ^^J - for me.} ^^J^^J - {\\it\\ Example \FileNo\space (out of \examples)} ^^J^^J - \noexpand \end\ifx \documentclass\undef \else - {document}\fi } - \immediate\closeout15 - \Link[\jobname\FileNo\type f.\HTML\space TARGET="X"]{}{}\FileNo\EndLink - \File+{\jobname\FileNo\type f.\HTML} - \HorFrames{*,*} - \Frame[\romannumeral\FileNo\type.txt]{} - \Frame[\romannumeral\FileNo\type.\HTML]{} - \EndPreamble - \Link[\romannumeral\FileNo\type.txt]{}{}outcome\EndLink{} / - \Link[\romannumeral\FileNo\type.\HTML]{}{}source\EndLink{} / - \Link{1}{}pointers\EndLink - \EndFile{\jobname\FileNo\type f.\HTML} -} - -\def\NextFileName{\edef\FN{\romannumeral\FileNo\type}} - -\HAssign\examples=0\LikeRef{count} -\HAssign\FileNo=1 \NextFileName - - \VerFrames{7*,*} - \Frame[\jobname\FileNo\type f.\HTML\space NAME="X"]{} - \Frame[ NAME="Y"]{1} - -\EndPreamble - -\Link[\FN.txt]{}{}source\EndLink{} / -\Link[\FN.\HTML]{}{}outcome\EndLink{} / - -\HAssign\FileNo=0 - -\edef\temp{\noexpand\HPage<\jobname p.\HTML>} -\temp{Pointers}\Link{}{1}~\EndLink - - -Goto to Example: -\source{%,fonts -}{#1^^J^^J#2^^J^^J#3} - \def\HR{^^J\\HCode\\{<HR>}^^J} -\source{%,fonts -}{\HR #1 \HR #2 \HR #3 \HR} -\source{%,fonts -}{{\\bf\\#1}^^J^^J{\\it\\#2}^^J^^J{\\tt\\#3}} -\source{%,fonts -}{\\HPage\\{#1}^^J^^J#2^^J^^J#3^^J^^J - \\ExitHPage\\{}\\EndHPage\\{}} -% -\ifx \documentclass\undef -\source{%,fonts -}{\\Contribute\\{halign}{BORDER<>0 1 < 0 2 - 0 3 > }^^J -\\halign\\{&\Sharp\\cr\\#1^^J&^^J#2^^J&^^J#3\\cr\\}} -\else -\source{%,fonts -}{\string\begin{tabular}{|l|c|r|}^^J -#1^^J&^^J#2^^J&^^J#3^^J -\string\end{tabular}} -\fi -% - - \def\d{\\scriptstyle\\ \\diamondsuit\\ - \\diamondsuit\\ \\diamondsuit\\ } -\ifx \documentclass\undef -\source{%,fonts -}{^^J -\\settabs\\ 6 \\columns\\^^J -\\+\\PSALMS & (131:1)\\cr\\^^J -\\+\\My heart & is not haughty,\\cr\\ ^^J -\\+\\nor mine & eyes lofty:\\cr\\^^J -\\settabs\\ \\+\\ neither & do I exercise & \\cr\\^^J -\\+\\neither & do I exercise \\cr\\^^J -\\+\\ & myself in & great matters, \\cr\\^^J -\\+\\or & in things & too high for me. \\cr\\^^J -} -\else -\source{%,fonts -}{^^J -\\begin\\{tabbing}^^J -XXXXXXXXX \\=\\\\kill\\^^J -PSALMS \\>\\ (131:1) \string\\^^J -My heart \\>\\ is not haughty, \string\\^^J -nor mine \\>\\ eyes lofty:\string\\^^J -neither \\=\\ do I exercise \\=\\ \\kill\\^^J -neither \\>\\ do I exercise \string\\^^J - \\>\\ myself in \\>\\ great matters, \string\\^^J -or \\>\\ in things \\>\\ too high for me. \string\\^^J -\\end\\{tabbing}^^J -} -\fi -% -\source{%,fonts -}{\ifx \documentclass\undef\space - \string\def\string\(\string{\string\Picture+\string{\string}\string - $\string}^^J - \string\def\string\)\string{\string$\string\EndPicture\string}^^J -\fi -\\Picture\\+{ ALIGN="LEFT"}\\vtop\\{\\hsize\\=2in^^J - \\hrule\\\\smallskip\\ #1\\smallskip\\\\hrule\\}\string - \EndPicture^^J #2^^J\\(\\ \d \\)\\ ^^J#3 $\d$} -\EndHPage{} - - \Tag{count}{\FileNo} - -\end{document} -\endinput - diff --git a/Build/source/texk/tex4htk/test1.tex b/Build/source/texk/tex4htk/test1.tex deleted file mode 100644 index 3eba9e1a077..00000000000 --- a/Build/source/texk/tex4htk/test1.tex +++ /dev/null @@ -1,10 +0,0 @@ - -\documentclass {article} - \usepackage {tex4ht} -\begin {document} - -A single $\heartsuit$ and a full -suit: \( \clubsuit \diamondsuit -\heartsuit \spadesuit \). - -\end {document} diff --git a/Build/source/texk/tex4htk/testa.tex b/Build/source/texk/tex4htk/testa.tex deleted file mode 100644 index 755ec27f9f7..00000000000 --- a/Build/source/texk/tex4htk/testa.tex +++ /dev/null @@ -1,11 +0,0 @@ -\documentclass {article} - \usepackage {tex4ht} -\begin {document} - -A single $\heartsuit$ and a full -suit: \( \clubsuit \diamondsuit -\heartsuit \spadesuit \). - -\end {document} -\endinput - diff --git a/Build/source/texk/tex4htk/testb.tex b/Build/source/texk/tex4htk/testb.tex deleted file mode 100644 index dac78522b0a..00000000000 --- a/Build/source/texk/tex4htk/testb.tex +++ /dev/null @@ -1,10 +0,0 @@ -\documentclass {article} -\begin {document} - -A single $\heartsuit$ and a full -suit: \( \clubsuit \diamondsuit -\heartsuit \spadesuit \). - -\end {document} -\endinput - diff --git a/Build/source/texk/tex4htk/tex4ht.c b/Build/source/texk/tex4htk/tex4ht.c deleted file mode 100644 index b90067ffc0b..00000000000 --- a/Build/source/texk/tex4htk/tex4ht.c +++ /dev/null @@ -1,15742 +0,0 @@ - -#line 231 "./tex4ht-c.tex" - -/* tex4ht.c (2018-07-03-10:36), generated from tex4ht-c.tex - Copyright 2009-2018 TeX Users Group - Copyright 1996-2009 Eitan M. Gurari - -#line 1 "./tex4ht-c.tex" - -% -% This work may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either -% version 1.3c of this license or (at your option) any -% later version. The latest version of this license is in -% http://www.latex-project.org/lppl.txt -% and version 1.3c or later is part of all distributions -% of LaTeX version 2005/12/01 or later. -% -% This work has the LPPL maintenance status "maintained". -% -% The Current Maintainer of this work -% is the TeX4ht Project <http://tug.org/tex4ht>. -% -% If you modify this program, changing the -% version identification would be appreciated. - */ - -#line 245 "./tex4ht-c.tex" - -/* Compiler options (uncommented | command line), as comments: - - Classic C (CC) default -#define ANSI ansi-c, c++ -#define DOS_C -#define HAVE_STRING_H <string.h> -#define HAVE_DIRENT_H <dirent.h> -#define HAVE_SYS_NDIR_H <sys/ndir.h> -#define HAVE_SYS_DIR_H <sys/dir.h> -#define HAVE_NDIR_H <ndir.h> -#define HAVE_IO_H <io.h> -#define HAVE_UNISTD_H <unistd.h> -#define WIN32 -#define KPATHSEA -#define CDECL ....... -#define BCC32 bordland c++ - -************************************************* - Tex4ht variables * - (uncommented | command line) * ------------------------------------------------ */ - -#line 8844 "./tex4ht-c.tex" - -#ifndef LGFNT -#define LGFNT "Font(\"%s\",\"%s\",\"%d\",\"%d\")\n" -#endif - - -#line 10841 "./tex4ht-c.tex" - -#ifndef LGCLS -#define LGCLS "Font_Class(%d,\"%s\"): %s\n" -#endif - - -#line 11065 "./tex4ht-c.tex" - -#ifndef LGPIC -#define LGPIC "--- needs --- %%1.idv[%%2] ==> %%3 ---\n%" -#endif - - -#line 11102 "./tex4ht-c.tex" - -#ifndef LGSEP -#define LGSEP "--- characters ---\n" -#endif - - -#line 11130 "./tex4ht-c.tex" - -#ifndef LGTYP -#define LGTYP ".png" -#endif - - -#line 13170 "./tex4ht-c.tex" - -#ifndef ENVFILE - -#endif - - -#line 13552 "./tex4ht-c.tex" - -#ifndef TFMDIR - -#endif - - -#line 13924 "./tex4ht-c.tex" - -#ifndef HTFDIR - -#endif - - -/* ******************************************** */ - - -#line 294 "./tex4ht-c.tex" - -#ifdef BCC32 -#define DOS_WIN32 -#define ANSI -#define HAVE_DIRENT_H -#define PLATFORM "ms-win32" -#endif - - - -#line 305 "./tex4ht-c.tex" - -#ifdef BCC -#define DOS_C -#define ANSI -#define HAVE_DIRENT_H -#define PLATFORM "ms-dos" -#ifndef PATH_MAX -#define PATH_MAX 256 -#endif -#endif - - - -#line 615 "./tex4ht-c.tex" - -#ifdef __DJGPP__ -#define DOS_WIN -#define ANSI -#ifndef HAVE_STRING_H -#define HAVE_STRING_H 1 -#endif -#endif - - -#ifdef DOS_C -#define DOS -#endif -#ifdef DOS -#define DOS_WIN32 -#define HAVE_STRING_H <string.h> -#endif -#ifdef WIN32 -#define DOS_WIN32 -#ifndef KPATHSEA -#define HAVE_STRING_H <string.h> -#endif -#endif - -#line 15685 "./tex4ht-c.tex" - -#ifdef DOS_WIN32 -#define STRUCT_DIRENT -#endif - - - -#line 441 "./tex4ht-c.tex" - -#ifdef KPATHSEA -#ifdef WIN32 -#define KWIN32 -#endif -#endif - - - -#line 361 "./tex4ht-c.tex" - -#ifdef KPATHSEA -#include <kpathsea/config.h> -#endif -#include <stdio.h> -#include <stdlib.h> - - -#line 375 "./tex4ht-c.tex" - -#ifdef HAVE_STRING_H -#include <string.h> -#endif - - -#line 457 "./tex4ht-c.tex" - -#ifdef WIN32 -#ifdef KPATHSEA -#undef CDECL -#define CDECL __cdecl -#else -#include <windows.h> -#endif -#else -#ifdef KPATHSEA -#define CDECL -#endif -#endif - - -#line 1036 "./tex4ht-c.tex" - -#include <limits.h> - - -#line 1120 "./tex4ht-c.tex" - -#include <signal.h> - - -#line 13767 "./tex4ht-c.tex" - -#ifndef F_OK -#ifdef DOS_WIN32 -#define F_OK 0 -#endif -#ifndef KPATHSEA -#ifndef DOS_WIN32 -#define HAVE_UNISTD_H -#endif -#endif -#endif -#ifdef HAVE_IO_H -#include <io.h> -#endif -#ifndef KPATHSEA -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif -#endif - - -#line 14872 "./tex4ht-c.tex" - - -#line 1231 "./tex4ht-c.tex" - -#ifdef KPATHSEA -#include <kpathsea/c-errno.h> -#include <kpathsea/c-ctype.h> -#include <kpathsea/c-fopen.h> -#include <kpathsea/c-pathmx.h> -#include <kpathsea/proginit.h> -#include <kpathsea/tex-file.h> -#include <kpathsea/tex-make.h> -#include <kpathsea/variable.h> -#include <signal.h> -#if !defined(_AMIGA) && !defined(WIN32) -#include <sys/time.h> -#endif -#include <fcntl.h> -#include <setjmp.h> -#endif - - - - -#line 15623 "./tex4ht-c.tex" - -#ifdef DOS_WIN32 -#include <io.h> -#endif - - -#line 15674 "./tex4ht-c.tex" - -#include <sys/stat.h> - - - -#line 15692 "./tex4ht-c.tex" - -#ifdef HAVE_DIRENT_H - -#line 15707 "./tex4ht-c.tex" - -#include <dirent.h> - - -#else -#ifndef STRUCT_DIRENT -#define STRUCT_DIRECT -#endif - -#line 15712 "./tex4ht-c.tex" - -#ifdef HAVE_SYS_NDIR_H -#include <sys/ndir.h> -#endif -#ifdef HAVE_SYS_DIR_H -#include <sys/dir.h> -#endif -#ifdef HAVE_NDIR_H -#include <ndir.h> -#endif - - -#endif - - - -#line 10877 "./tex4ht-c.tex" - -#ifdef DOS -#define HTM -#endif - - - - -#line 17267 "./tex4ht-c.tex" - -#ifdef DOS -#define PROTOTYP -#endif -#ifdef ANSI -#define PROTOTYP -#endif -#ifdef KWIN32 -#define PROTOTYP -#endif - - - - -#line 1308 "./tex4ht-c.tex" - - -#line 369 "./tex4ht-c.tex" - -#ifndef EXIT_FAILURE -#define EXIT_FAILURE 1 -#endif - - -#line 1015 "./tex4ht-c.tex" - -#if INT_MAX < 2147483647L -#define LONG L -#endif - - -#line 1040 "./tex4ht-c.tex" - -#ifdef LONG -#define INTEGER long -#else -#define INTEGER int -#endif -#define U_CHAR char - - -#line 1396 "./tex4ht-c.tex" - -#define m_alloc(typ,n) (typ *) malloc_chk((int) ((n) * sizeof(typ))) - - -#line 1558 "./tex4ht-c.tex" - -#ifndef PATH_MAX -#define PATH_MAX 512 -#endif - - -#line 4276 "./tex4ht-c.tex" - -#define IGNORED void - - -#line 4568 "./tex4ht-c.tex" - -struct files_rec{ - FILE *file, *prev_file; - char* name; - struct files_rec *next, *prev; -}; - - -#line 4669 "./tex4ht-c.tex" - -struct sys_call_rec{ - char* filter; - struct sys_call_rec *next; -}; - - -#line 4850 "./tex4ht-c.tex" - -#define HEIGHT 120 - - -#line 4892 "./tex4ht-c.tex" - -#define NULL_MAP (struct map_line_type*) 0 - - -#line 4952 "./tex4ht-c.tex" - -#define XRESOLUTION MARGINSP -#ifdef LONG -#define YRESOLUTION 786432L -#else -#define YRESOLUTION 786432 -#endif - - -#line 5084 "./tex4ht-c.tex" - -#define MAX_MAP_LINE 500 - - -#line 6038 "./tex4ht-c.tex" - -#define idv_int(val) int_to_dvi((long int) val,4) - - -#line 6293 "./tex4ht-c.tex" - -struct halign_rec{ - char * str; - int refs; -}; - - -#line 8636 "./tex4ht-c.tex" - -#define design_size_to_pt(n) ((double)n / (double)(1L<<20)) - - -#line 8715 "./tex4ht-c.tex" - -#define new_font font_tbl[font_tbl_size] - - -#line 9734 "./tex4ht-c.tex" - -#ifdef LONG -#define MARGINSP 344061L -#else -#define MARGINSP 344061 -#endif - - -#line 10124 "./tex4ht-c.tex" - -#define HTF_ALIAS 10000000 - - -#line 10627 "./tex4ht-c.tex" - -#ifndef TRUE -#define TRUE 1 -#endif -#ifndef FALSE -#define FALSE 0 -#endif -#ifndef BOOL -#define BOOL int -#endif - - -#line 10869 "./tex4ht-c.tex" - -#define GIF_I "-%x%s" -#define GIF_II "-%x-%x%s" -#define GIF_VII "%s" - - -#line 10883 "./tex4ht-c.tex" - -#ifdef HTM -#define DOS_GIF_FILE -#endif - - -#line 11310 "./tex4ht-c.tex" - -#define BASE 36 - - -#line 11330 "./tex4ht-c.tex" - -#define store_bit_I(ch,i) ch[(i)/8]|=(1<<((i)%8)); -#define store_bit_Z(ch,i) ch[(i)/8]&=~(1<<((i)%8)) -#define add_bit(ch,i,b) ch[(i)/8] |= ((b) << ((i)%8)) -#define get_bit(ch,i) ((ch[(i)/8] >> ((i)%8)) & 1) - - -#line 11675 "./tex4ht-c.tex" - -#define gif_open span_open -#define gif_alt span_name -#define gif_class span_size -#define gif_size span_mag -#define gif_mag span_ord -#define gif_ord span_ch -#define gif_end end_span - - -#line 13414 "./tex4ht-c.tex" - -struct env_c_rec{ - char *option; - struct env_c_rec *next; -}; - - -#line 13496 "./tex4ht-c.tex" - -#ifndef MAXFDIRS -#define MAXFDIRS 100 -#endif - - -#line 15568 "./tex4ht-c.tex" - -#if defined(__DJGPP__) -#define dir_path_slash(str) (is_forward_slash(str)? '/' : '\\') -#else -#define dir_path_slash(str) '/' -#endif - - -#line 15633 "./tex4ht-c.tex" - -#ifndef S_ISDIR -#define S_ISDIR(M) (((M) & _S_IFMT)==_S_IFDIR) -#endif - -#ifndef _S_IFDIR -#define _S_IFDIR S_IFDIR -#endif - -#ifndef _S_IFMT -#define _S_IFMT S_IFMT -#endif - - -#line 15663 "./tex4ht-c.tex" - -#if defined(DOS_WIN32) || !defined(S_ISLNK) -#define LSTAT stat -#else -#define LSTAT lstat -#endif -#define STSTAT stat - - -#line 15883 "./tex4ht-c.tex" - -#define MAX_UNI_CODE 20 - - -#line 16076 "./tex4ht-c.tex" - -#define BASE_A 55 -#define BASE_a 87 - - -#line 16737 "./tex4ht-c.tex" - -#define get_unt(n) fget_unt(dvi_file,n) - - -#line 16761 "./tex4ht-c.tex" - -#define get_int(n) fget_int(dvi_file,n) - - -#line 16827 "./tex4ht-c.tex" - -#define eq_str(x,y) (!strcmp(x,y)) -#define gt_str(x,y) (strcmp(x,y)>0) - - -#line 17007 "./tex4ht-c.tex" - -#define bad_arg err_i(0) -#define bad_in_file(name) err_i_str(1,name) -#define bad_out_file(name) err_i_str(2,name) -#define bad_special(name) warn_i_str(3,name) -#define bad_mem err_i(4) -#define bad_char(chr) warn_i_int(5,chr) -#define bad_dvi err_i(7) - - -#line 17231 "./tex4ht-c.tex" - -#if defined(DOS_WIN32) || defined(__MSDOS__) -#define READ_BIN_FLAGS "rb" -#define READ_TEXT_FLAGS "r" -#define WRITE_BIN_FLAGS "wb" -#ifdef WIN32 -#define WRITE_TEXT_FLAGS "wb" -#else -#define WRITE_TEXT_FLAGS "w" -#endif -#else -#define READ_BIN_FLAGS "r" -#define READ_TEXT_FLAGS "r" -#define WRITE_BIN_FLAGS "w" -#define WRITE_TEXT_FLAGS "w" -#endif - - -#line 17279 "./tex4ht-c.tex" - -#ifdef PROTOTYP -#define MYVOID void -#define ARG_I(x) x -#define ARG_II(x,y) x,y -#define ARG_III(x,y,z) x,y,z -#define ARG_IV(x,y,z,w) x,y,z,w -#define ARG_V(x,y,z,w,v) x,y,z,w,v -#define ARG_VI(x,y,z,w,v,u) x,y,z,w,v,u -#define ARG_VII(x,y,z,w,v,u,t) x,y,z,w,v,u,t -#else -#define MYVOID -#define ARG_I(x) -#define ARG_II(x,y) -#define ARG_III(x,y,z) -#define ARG_IV(x,y,z,w) -#define ARG_V(x,y,z,w,v) -#define ARG_VI(x,y,z,w,v,u) -#define ARG_VII(x,y,z,w,v,u,t) -#endif - - - -#line 4212 "./tex4ht-c.tex" - -struct hcode_repl_typ { char *str; - struct hcode_repl_typ *next; }; - - -#line 4738 "./tex4ht-c.tex" - -struct count_rec{ - char* str; - int i, depth, max; - int* stack; - struct count_rec* next; -}; - - -#line 4830 "./tex4ht-c.tex" - -struct ch_map_rec{ - char* line; - int max, chars; -}; - - -#line 6669 "./tex4ht-c.tex" - -struct stack_entry{ - long int x_val, y_val; - INTEGER dx_1, dx_2, dy_1, dy_2; - BOOL text_on; - BOOL -#line 12464 "./tex4ht-c.tex" - -accented - -; - -#line 6348 "./tex4ht-c.tex" - -struct halign_rec *halign[8]; -BOOL halign_on, halign_info, row_no, col_no; - - -#line 6697 "./tex4ht-c.tex" - -int stack_id; -struct group_info * begin; -struct stack_end_entry * end; - - -#line 7789 "./tex4ht-c.tex" - -struct group_path * path_start, * path_end; - - -#line 12872 "./tex4ht-c.tex" - -char *class_open, *class_close, - *temp_class_open, *temp_class_close; -BOOL temp_class_del, ignore_subclass_del, active_class_del, - no_left_del, sv_no_left_del; - - -}; - - -#line 6704 "./tex4ht-c.tex" - -struct group_info{ - int stack_id; - U_CHAR *info; - struct group_info* next; -}; - - -#line 6762 "./tex4ht-c.tex" - -struct stack_end_entry{ - struct stack_end_entry *next; - U_CHAR *send; -}; - - -#line 7444 "./tex4ht-c.tex" - -struct del_stack_entry{ - struct del_stack_entry *next; - U_CHAR ch; - int fnt, id; -}; - - -#line 7530 "./tex4ht-c.tex" - -struct send_back_entry{ - struct send_back_entry *next; - U_CHAR *send; - int id; -}; - - -#line 7794 "./tex4ht-c.tex" - -struct group_path{ - U_CHAR action; - U_CHAR *path; - U_CHAR *info; - struct group_path * next; -}; - - -#line 8620 "./tex4ht-c.tex" - -struct font_entry { - INTEGER num; - INTEGER scale; - INTEGER design_sz; - -#line 8772 "./tex4ht-c.tex" - -INTEGER mag; - - - -#line 8776 "./tex4ht-c.tex" - -char *family_name, *font_size; - - - -#line 9446 "./tex4ht-c.tex" - - INTEGER design_pt; - int char_f, char_l; - U_CHAR *char_wi; - U_CHAR *char_hidp; - int wtbl_n; - int htbl_n; - int dtbl_n; - INTEGER *wtbl; - INTEGER *htbl; - INTEGER *dtbl; - INTEGER word_sp; - INTEGER it; - INTEGER ex; - - - -#line 9954 "./tex4ht-c.tex" - -char *name, *gif_on, *ch_str, ch255; -unsigned U_CHAR **str, *ch, *gif1; - - -#line 12073 "./tex4ht-c.tex" - -unsigned U_CHAR *accent, *accented; -unsigned int *accent_array, *accented_array, accent_N, accented_N; - - - -#line 12764 "./tex4ht-c.tex" - -char *math, *math_closing; - - - -#line 8941 "./tex4ht-c.tex" - -INTEGER layout_dir; -unsigned long rgba_color; - - -}; - - -#line 10274 "./tex4ht-c.tex" - -struct html_font_rec{ char* name; - int i; }; - - -#line 11222 "./tex4ht-c.tex" - - -struct gif_file_rec{ - U_CHAR code[4]; - U_CHAR *name; - struct gif_file_rec *next; }; - - - -#line 11863 "./tex4ht-c.tex" - -struct css_ext_rec{ char* name; - struct css_ext_rec *next; }; - - -#line 11973 "./tex4ht-c.tex" - -struct visited_file_rec{ char *name; - struct visited_file_rec *next; }; - - -#line 13655 "./tex4ht-c.tex" - -struct env_var_rec{ char* base; - struct env_var_rec *next; }; - - -#line 13733 "./tex4ht-c.tex" - -struct cache_font_rec{ char* dir; - struct cache_file_rec * cache_file; - struct cache_font_rec* next; }; -struct cache_file_rec{ struct cache_file_rec* next; - U_CHAR * file; }; - - -#line 13854 "./tex4ht-c.tex" - -struct htf_com_rec{ char* name; - struct htf_com_rec* next; }; - - -#line 16042 "./tex4ht-c.tex" - -struct charset_rec{ int ch; - char* str; }; - - -#line 16454 "./tex4ht-c.tex" - -struct htf_4hf_rec { int ch, type1, type2; - char* str; }; - - - -#line 528 "./tex4ht-c.tex" - -#ifdef WIN32 -static U_CHAR dirname[PATH_MAX]; -#endif - - -#line 625 "./tex4ht-c.tex" - -static BOOL dos_file_names = -#ifdef DOS_GIF_FILE - TRUE -#else - FALSE -#endif -; - - -#line 1381 "./tex4ht-c.tex" - -static FILE* dot_file; - - -#line 1572 "./tex4ht-c.tex" - -static FILE* dvi_file; - - -#line 1629 "./tex4ht-c.tex" - -static U_CHAR *ext = NULL; - - -#line 1670 "./tex4ht-c.tex" - -static char* job_name; -static int job_name_n; - - -#line 1779 "./tex4ht-c.tex" - -static U_CHAR *no_root_file; - - -#line 1840 "./tex4ht-c.tex" - -static FILE *out_file = (FILE *) 0, - *root_file = (FILE *) 0, - *cur_o_file = (FILE *) 0; - - -#line 2166 "./tex4ht-c.tex" - -static int version_id; - - -#line 2213 "./tex4ht-c.tex" - -static int stack_len; - - -#line 2581 "./tex4ht-c.tex" - -static BOOL start_span = FALSE, in_span_ch = FALSE; - - -#line 2726 "./tex4ht-c.tex" - -static BOOL in_trace_char = FALSE, block_start = FALSE; -static int trace_dvi_P = 0, trace_dvi_C = 0, - trace_dvi_H = 0, trace_dvi_R = 0, trace_dvi_V = 0; -static U_CHAR *trace_dvi_del_P, *end_trace_dvi_del_P, - *trace_dvi_del_p, *end_trace_dvi_del_p, - *trace_dvi_del_C, *end_trace_dvi_del_C, - *trace_dvi_del_c, *end_trace_dvi_del_c, - *trace_dvi_del_H, *end_trace_dvi_del_H, - *trace_dvi_del_h, *end_trace_dvi_del_h, - *trace_dvi_del_R, *end_trace_dvi_del_R, - *trace_dvi_del_r, *end_trace_dvi_del_r, - *trace_dvi_del_V, *end_trace_dvi_del_V, - *trace_dvi_del_v, *end_trace_dvi_del_v; -static int push_depth=0, push_id=0, push_st[256]; - - -#line 2959 "./tex4ht-c.tex" - -static long int x_val = 0, max_x_val = -10000, - max_y_val = 0, prev_y_val = 0; - - -#line 3071 "./tex4ht-c.tex" - -static INTEGER dx_1 = 0, dx_2 = 0; - - -#line 3172 "./tex4ht-c.tex" - -static INTEGER dy_1 = 0, dy_2 = 0; -static long int y_val = 0; - - -#line 3415 "./tex4ht-c.tex" - -static U_CHAR *eoln_str = (char *)0; - - -#line 3436 "./tex4ht-c.tex" - -static U_CHAR *space_str = (char *)0; - - -#line 3447 "./tex4ht-c.tex" - -static int ignore_chs=0, ignore_spaces=0, recover_spaces=0; - - -#line 3600 "./tex4ht-c.tex" - -static BOOL text_on = FALSE; - - -#line 3673 "./tex4ht-c.tex" - -static U_CHAR rule_ch = '_'; -static BOOL -#line 3739 "./tex4ht-c.tex" - -rule_ch_off - - = FALSE; - - -#line 3819 "./tex4ht-c.tex" - -static int cur_fnt = -1; - - -#line 3937 "./tex4ht-c.tex" - -static U_CHAR special_hd[10]; - - -#line 4218 "./tex4ht-c.tex" - -static struct hcode_repl_typ *hcode_repl - = (struct hcode_repl_typ*) 0; - - -#line 4270 "./tex4ht-c.tex" - -static BOOL nomargin = FALSE; -static int next_char = -1; -static U_CHAR *next_str = (char *) 0; - - -#line 4357 "./tex4ht-c.tex" - -static BOOL keepChar = FALSE; - - -#line 4563 "./tex4ht-c.tex" - -static struct files_rec - *opened_files = (struct files_rec *) 0, *p; - - -#line 4677 "./tex4ht-c.tex" - -static BOOL system_yes; -static struct sys_call_rec *system_calls = (struct sys_call_rec *) 0; - - -#line 4747 "./tex4ht-c.tex" - -static struct count_rec *counter = (struct count_rec *) 0; - - -#line 4838 "./tex4ht-c.tex" - -static struct ch_map_rec ch_map[HEIGHT]; -static int max_map_line, min_map_line; - - -#line 4884 "./tex4ht-c.tex" - -static BOOL ch_map_flag = FALSE; - - -#line 4939 "./tex4ht-c.tex" - -static INTEGER xresolution, yresolution; - - -#line 5039 "./tex4ht-c.tex" - -static U_CHAR ok_map = TRUE; - - -#line 5078 "./tex4ht-c.tex" - -static int prevcol = -1, prevrow; -static double prev_x; - - -#line 5385 "./tex4ht-c.tex" - -static BOOL dvi_flag = FALSE, dvi_page = FALSE; -static FILE *idv_file; - - -#line 5426 "./tex4ht-c.tex" - -static int errCode = 0; - - -#line 5485 "./tex4ht-c.tex" - -static int id_version = -1; - - -#line 5964 "./tex4ht-c.tex" - -static FILE* log_file; - - -#line 5973 "./tex4ht-c.tex" - -static INTEGER mid_page_y, mid_page_x; - - -#line 6106 "./tex4ht-c.tex" - -static int page_n, file_n; - - -#line 6289 "./tex4ht-c.tex" - -static struct halign_rec *halign[8]; - - -#line 6374 "./tex4ht-c.tex" - -static BOOL new_halign = FALSE; - - -#line 6600 "./tex4ht-c.tex" - -static BOOL group_dvi = FALSE; - - -#line 6664 "./tex4ht-c.tex" - -static int stack_n = 0; -static struct stack_entry* stack; - - -#line 6798 "./tex4ht-c.tex" - -static int ignore_end_group; - - -#line 7435 "./tex4ht-c.tex" - -static struct del_stack_entry *del_stack; - - -#line 7460 "./tex4ht-c.tex" - -static int ch_id, sv_id, id_latex, back_id_off; - - -#line 7539 "./tex4ht-c.tex" - -static struct send_back_entry *back_token, *back_group; - - -#line 8442 "./tex4ht-c.tex" - -static BOOL pos_dvi = FALSE; -static U_CHAR *pos_body, * pos_text, * pos_line, - *end_pos_body, * end_pos_text; -static double pos_x_A, pos_x_B, pos_y_C, pos_y_D, pos_y_E; -static long int base_pos_x, base_pos_y, min_pos_x, - max_pos_x, min_pos_y, max_pos_y; -static short rect_pos; - - -#line 8640 "./tex4ht-c.tex" - -static struct font_entry* font_tbl; -static int font_tbl_size = 0; - - -#line 8709 "./tex4ht-c.tex" - -static char* new_font_name; - - -#line 8851 "./tex4ht-c.tex" - -static U_CHAR *lg_font_fmt = NULL; - - -#line 9742 "./tex4ht-c.tex" - -static double word_sp = 999999.0, margin_sp; - - -#line 9976 "./tex4ht-c.tex" - -static int ignore_ch = 0; - - -#line 10020 "./tex4ht-c.tex" - -static unsigned U_CHAR null_str = '\0'; - - -#line 10486 "./tex4ht-c.tex" - -static short dump_htf_files = 0; -static BOOL dump_env_files = FALSE; - - -#line 10536 "./tex4ht-c.tex" - -static BOOL dumped_env = FALSE; - - -#line 10693 "./tex4ht-c.tex" - -static BOOL verb_ch = FALSE; - - -#line 10848 "./tex4ht-c.tex" - -static U_CHAR *class_fmt = NULL; - - -#line 11072 "./tex4ht-c.tex" - -static U_CHAR *font_gif = NULL; - - -#line 11109 "./tex4ht-c.tex" - -static U_CHAR *begin_char_gif = NULL; - - -#line 11137 "./tex4ht-c.tex" - -static U_CHAR *gif = NULL; - - -#line 11235 "./tex4ht-c.tex" - - -static struct gif_file_rec * gif_file = (struct gif_file_rec *) 0; - - - -#line 11314 "./tex4ht-c.tex" - - -static U_CHAR xeh[]="0123456789abcdefghijklmnopqrstuvxyz"; - - - -#line 11386 "./tex4ht-c.tex" - -static BOOL gif_ch = TRUE; -static int design_ch = 0; - - -#line 11436 "./tex4ht-c.tex" - -static int pause_style = 0, default_font = -1, base_font_size=6533; -static BOOL - span_name_on = FALSE, - span_on = FALSE; - - -#line 11638 "./tex4ht-c.tex" - -static BOOL not_notify = FALSE; - - -#line 11654 "./tex4ht-c.tex" - -static U_CHAR * span_name[256], * span_open[256], * span_size[256], - * span_mag[256], * span_ch[256], * end_span[256], - * span_ord[256], * gif_id[256]; -static U_CHAR class_on[32]; - - -#line 12334 "./tex4ht-c.tex" - -static BOOL needs_accent_sym = FALSE, needs_end_accent = FALSE; -static char * t_accent_template = (char *) 0, - * t_accent_first, * t_accent_second, - * t_accent_third, * t_accent_fourth, * t_accent_fifth, - * m_accent_template = (char *) 0, - * m_accent_first, * m_accent_second, - * m_accent_third, * m_accent_fourth, * m_accent_fifth; - - -#line 12435 "./tex4ht-c.tex" - -static BOOL needs_accented_sym = 0; -static char * a_accent_template = (char *) 0, - * a_accent_first, * a_accent_second, - * a_accent_third, * a_accent_fourth, * a_accent_fifth; - - -#line 12451 "./tex4ht-c.tex" - -static char * i_accent_template = (char *) 0, - * i_accent_first, * i_accent_second, - * i_accent_third, * i_accent_fourth, * i_accent_fifth; - - -#line 12553 "./tex4ht-c.tex" - -static BOOL math_class_on = FALSE, show_class = FALSE; -static int open_del = 256, math_class, pause_class, ignore_subclass_del; - - -#line 12561 "./tex4ht-c.tex" - -static int sv_group_dvi, sv_trace_dvi_C, sv_in_trace_char, sv_span_on, - sv_in_span_ch; - - -#line 12707 "./tex4ht-c.tex" - -static U_CHAR *open_class[ -#line 12743 "./tex4ht-c.tex" - -82 - -], - *close_class[ -#line 12743 "./tex4ht-c.tex" - -82 - -]; - - -#line 13058 "./tex4ht-c.tex" - -static BOOL dump_env_search = FALSE; - - -#line 13421 "./tex4ht-c.tex" - -static struct env_c_rec *envChoice - = (struct env_c_rec*) 0; - - -#line 13489 "./tex4ht-c.tex" - -static U_CHAR *fontdir[MAXFDIRS]; -static int fontdir_count = 0; - - -#line 13724 "./tex4ht-c.tex" - -static struct cache_font_rec *cache_font, *cur_cache_font; - - -#line 14140 "./tex4ht-c.tex" - -#ifndef KPATHSEA -static BOOL tex4ht_fls = FALSE; -static char *tex4ht_fls_name = (char *) 0; -#endif - - -#line 14203 "./tex4ht-c.tex" - -static U_CHAR *HOME_DIR; - - -#line 14332 "./tex4ht-c.tex" - -#ifndef KPATHSEA -static FILE* cache_files; -#endif - - -#line 14656 "./tex4ht-c.tex" - - -#ifdef KPATHSEA -static char * export_str_chars = (char *) 0; -#endif - - -#line 15062 "./tex4ht-c.tex" - -static BOOL dump_htf_search = FALSE; - - -#line 15876 "./tex4ht-c.tex" - -static FILE* put_4ht_file = (FILE *) 0; -static int put_4ht_off = 1; -static char uni_code[MAX_UNI_CODE]; -static short uni_code_p = 0; - - -#line 16047 "./tex4ht-c.tex" - -static int charset_n = 0, max_charset_n; -static struct charset_rec *charset; - - -#line 16215 "./tex4ht-c.tex" - -static BOOL u10 = FALSE; - - -#line 16358 "./tex4ht-c.tex" - -static BOOL utf8 = FALSE; - - -#line 16459 "./tex4ht-c.tex" - -static int htf_4hf_n = 0, max_htf_4hf_n; -static struct htf_4hf_rec *htf_4hf; - - -#line 16633 "./tex4ht-c.tex" - -static BOOL special_on = FALSE; - - -#line 16901 "./tex4ht-c.tex" - -static const U_CHAR *warn_err_mssg[]={ -#line 16842 "./tex4ht-c.tex" - - -#line 1530 "./tex4ht-c.tex" - -"improper command line\ntex4ht [-f<path-separator-ch>]in-file[.dvi]\n" -" [-.<ext>] replacement to default file extension name .dvi\n" -" [-c<tag name>] choose named segment in env file\n" -" [-e<env-file>]\n" -" [-f<path-separator-ch>] remove path from the file name\n" -" [-F<ch-code>] replacement for missing font characters; 0--255; default 0\n" -" [-g<bitmap-file-ext>]\n" -" [-h[efFgsvVA]] trace: e-errors/warnings, f-htf, F-htf search\n" -" g-groups, s-specials, v-env, V-env search, A-all\n" -" [-i<htf-font-dir>]\n" -" [-l<bookkeeping-file>]\n" -" [-P(*|<filter>)] permission for system calls: *-always, filter\n" -" [-S<image-script>]\n" -" [-s<css-file-ext>] default: -s4cs; multiple entries allowed\n" -" [-t<tfm-font-dir>]\n" -" [-u10] base 10 for unicode characters\n" -" [-utf8] utf-8 encoding for unicode characters\n" -" [-v<idv version>] replacement for the given dvi version\n" -" [-xs] ms-dos file names for automatically generated gifs\n" - -, -"Can't find/open file `%s'\n", -"Can't open output file for `%s'\n", -"Can't close file `%s' (file is not open)\n", -"Insufficient memory\n", -"Bad character code: %d\n", -"Can't find font number %d\n", -"Improper dvi file\n", -"Improper op while scanning font defs in postamble\n", -"Problem with command line\n", -"Font definition repeated in postamble\n", -"Empty entry in font environment variable\n", -"Can't access directory `%s\n'", -"Too many directories in font environment variable\n", -"Missing fonts, can't proceed\n", -"Invalid header in file `%s'\n", -"Checksum inconsistent\n", -"MAXFONTS too small: %d\n", -"Improper signature at end of file `%s.htf'\n", -"Improper signature at start of file `%s.htf'\n", -"Improper file `%s.htf'\n", -"Couldn't find font `%s.htf' (char codes: ", -"File `%s.htf' starts/ends with character code %d (instead of %d)\n", -"Implementation problem\n", -"Improper groups in \\special{t4ht+}... idv[%d]\n", -"Too many characters (> %d) for map line: `%c'\n", -"Extra characters in \\special{t4ht%c...", -"Page break within a ch map/picture\n", -"Char code >255 in htf file: %d\n", -"Improper char for code in htf file: %c\n", - -#line 1220 "./tex4ht-c.tex" - -"Illegal storage address\n", -"Floating-point\n", -"Interrupt with Cntr-C\n", - - -#ifdef DOS_WIN32 -"%c-script too long in tex4ht.env \n", -#else -"%c-script too long in tex4ht.env (.tex4ht)\n", -#endif -"Too many rows (> %d) for map: `%c'\n", -"More than 256 strings in font\n", -"\\special{t4ht;%c...}?\n", -"\\special{t4ht;|%s}?\n", -"\\special{t4ht~!%s}?\n", -"\\special{t4ht\"...%s}?\n", -"System error 40\n", -"`%c' in \\special{t4ht@...} or \\special{t4ht@-...}?\n", -"\\special{t4ht~...} without \\special{t4ht~}\n", -"Ignoring \\special{t4ht.%s}\n", -"PUSH for \\special{t4ht<...%s}?\n", -"Bad character code (%d) in \\special{t4h~}...\n", -"Page break in \\special{t4h~}...\n", -"tex4ht.fls: Couldn't find file `%s'\n", -"Improper entry (line %d)\n", -"Improper environment variable %s: `%s'\n", -"Missing %s\n", -"Can't back from file `%s\n'", -"\\special{t4ht%s}?\n", -"Improper -v option\n", - - "" }; - - -#line 17132 "./tex4ht-c.tex" - -static BOOL err_context = FALSE; - - -#line 17149 "./tex4ht-c.tex" - -static U_CHAR *err_mark = (char *) 0; - - -#line 17169 "./tex4ht-c.tex" - -static BOOL trace_special = FALSE; - - - -#line 482 "./tex4ht-c.tex" - -#ifdef WIN32 -static BOOL sigint_handler(ARG_I(DWORD)); -#endif - - -#line 1124 "./tex4ht-c.tex" - -static void - -#line 507 "./tex4ht-c.tex" - -#ifdef CDECL -CDECL -#endif - - -sig_err(ARG_I(int)); - - -#line 1402 "./tex4ht-c.tex" - -static void* malloc_chk(ARG_I(int)); - - -#line 1418 "./tex4ht-c.tex" - -static void* r_alloc(ARG_II(void *, size_t)); - - -#line 1681 "./tex4ht-c.tex" - -static void strct( ARG_II(char *, const U_CHAR *) ); - - -#line 1720 "./tex4ht-c.tex" - -static void open_o_file( ARG_I(void) ); - - -#line 1820 "./tex4ht-c.tex" - -static FILE* open_html_file( ARG_I(char*) ); - - -#line 2798 "./tex4ht-c.tex" - -static void set_del( ARG_II(char **, U_CHAR **) ); - - -#line 2989 "./tex4ht-c.tex" - -static void try_new_line( ARG_I(void) ); - - -#line 3078 "./tex4ht-c.tex" - -static INTEGER move_x( ARG_I(register INTEGER) ); - - -#line 3177 "./tex4ht-c.tex" - -static INTEGER move_y( ARG_I(register INTEGER) ); - - -#line 3647 "./tex4ht-c.tex" - -static void rule_x( ARG_I(BOOL) ); - - -#line 3877 "./tex4ht-c.tex" - -static BOOL tex4ht_special( ARG_II( int*, long int*) ); - - -#line 4962 "./tex4ht-c.tex" - -static void init_ch_map( ARG_I(void) ); - - -#line 4999 "./tex4ht-c.tex" - -static void insert_ch_map( ARG_II(char,BOOL) ); - - -#line 5289 "./tex4ht-c.tex" - -static void dump_ch_map( ARG_I(void) ); - - -#line 5783 "./tex4ht-c.tex" - -static void set_loc( ARG_II(int, long int) ); - - -#line 6002 "./tex4ht-c.tex" - -static void idv_char( ARG_I(int) ); - - -#line 6015 "./tex4ht-c.tex" - -static void cond_idv_char( ARG_I(int) ); - - -#line 6030 "./tex4ht-c.tex" - -static void idv_copy( ARG_I(void) ); - - -#line 6045 "./tex4ht-c.tex" - -static void cond_idv_int( ARG_II(long int, int) ); - - -#line 6059 "./tex4ht-c.tex" - -static void int_to_dvi( ARG_II(long int, int) ); - - -#line 6081 "./tex4ht-c.tex" - -static void cond_string( ARG_II(int, int) ); - - -#line 6111 "./tex4ht-c.tex" - -static INTEGER advance_idv_page( ARG_II( INTEGER,char*) ); - - -#line 6154 "./tex4ht-c.tex" - -static void store_mv( ARG_II( int, INTEGER) ); - - -#line 7237 "./tex4ht-c.tex" - -static void push_stack( ARG_I(void) ); - - -#line 7284 "./tex4ht-c.tex" - -static void pop_stack( ARG_I(void) ); - - -#line 7385 "./tex4ht-c.tex" - -static struct del_stack_entry* push_del( ARG_II(char, int) ); - - -#line 7406 "./tex4ht-c.tex" - -static struct del_stack_entry* pop_del( ARG_III(char,int,int) ); - - -#line 7618 "./tex4ht-c.tex" - -static -struct send_back_entry * rev_list( ARG_I(struct send_back_entry *) ); - - -#line 7672 "./tex4ht-c.tex" - -static struct send_back_entry * - back_insert( ARG_II(struct send_back_entry *, int) ); - - -#line 8546 "./tex4ht-c.tex" - -static double pos_dbl( ARG_I(long int *) ); - - -#line 9266 "./tex4ht-c.tex" - -static void doGlyphArray( ARG_I(BOOL) ); - - -#line 9314 "./tex4ht-c.tex" - -static int search_font_tbl( ARG_I(int) ); - - -#line 10415 "./tex4ht-c.tex" - -static int get_html_ch( ARG_I(FILE*) ); - - -#line 10436 "./tex4ht-c.tex" - -static FILE* f_open( ARG_II(const char*,const char*) ); - - -#line 10460 "./tex4ht-c.tex" - -static void dump_htf( ARG_I(FILE*) ); - - -#line 10512 "./tex4ht-c.tex" - -static void dump_env( ARG_I(void) ); - - -#line 10545 "./tex4ht-c.tex" - -static void htf_to_lg( ARG_IV(struct html_font_rec*,char*,int,FILE*)); - - -#line 10595 "./tex4ht-c.tex" - -static INTEGER get_html_file_id( ARG_IV(FILE*, int, int, int) ); - - -#line 10729 "./tex4ht-c.tex" - -static void notify_class_info( ARG_I(int) ); - - -#line 10953 "./tex4ht-c.tex" - -static void script( ARG_IV(char *, U_CHAR *, int, U_CHAR *) ); - - -#line 11175 "./tex4ht-c.tex" - - -static void dos_gif_file( ARG_III(char *, int, int) ); - - - -#line 11344 "./tex4ht-c.tex" - -static void put_alt_ch( ARG_II( int, BOOL) ); - - -#line 12347 "./tex4ht-c.tex" - -static void get_open_accent( - ARG_VII(char**, char**, char**, char**, char**, char**, long int*)); - - -#line 12589 "./tex4ht-c.tex" - -static int scan_class( ARG_I(int) ); - - -#line 12629 "./tex4ht-c.tex" - -static INTEGER set_ch_class( ARG_I(int) ); - - -#line 12684 "./tex4ht-c.tex" - -static int math_class_of( ARG_II(int,int) ); - - -#line 13290 "./tex4ht-c.tex" - -static char* get_script( ARG_III(char *, const U_CHAR *, int) ); - - -#line 13340 "./tex4ht-c.tex" - -static BOOL search_dot_file( ARG_I( int) ); - - -#line 13580 "./tex4ht-c.tex" - -static struct env_var_rec * get_env_var( ARG_I(const char *) ); - - -#line 13883 "./tex4ht-c.tex" - -static void com_dir( ARG_I(char*) ); - - -#line 14574 "./tex4ht-c.tex" - -#ifdef KPATHSEA -static void export_htf( ARG_II(char**, char[]) ); -#endif - - -#line 15304 "./tex4ht-c.tex" - -static FILE* search_in_dot_file( ARG_IV( int, const U_CHAR *, const U_CHAR *, - struct env_var_rec *) ); - - -#line 15349 "./tex4ht-c.tex" - -static FILE* search_file_base( ARG_IV( const U_CHAR *, const U_CHAR *, const U_CHAR *, - struct env_var_rec *) ); - - -#line 15381 "./tex4ht-c.tex" - -static char * abs_addr( ARG_II( const U_CHAR *, const U_CHAR *) ); - - -#line 15422 "./tex4ht-c.tex" - -static FILE* search_file( ARG_III(const char *, const U_CHAR *, const U_CHAR *) ); - - -#line 15482 "./tex4ht-c.tex" - -static void add_to_cache( ARG_III(const char*,const char*,int) ); - - -#line 15503 "./tex4ht-c.tex" - -static FILE* search_file_ext( ARG_III(const char *, const U_CHAR *, const U_CHAR *) ); - - -#line 15578 "./tex4ht-c.tex" - -#if defined(__DJGPP__) - static BOOL is_forward_slash( ARG_I(const char*) ); -#endif - - -#line 15802 "./tex4ht-c.tex" - -static FILE* f_open_pathed_filename( ARG_II(const char*,const char*) ); - - -#line 15836 "./tex4ht-c.tex" - -static INTEGER put_4ht_ch( ARG_II(int,FILE *) ); - - -#line 15910 "./tex4ht-c.tex" - -static void flush_uni( ARG_I(void) ); - - -#line 16573 "./tex4ht-c.tex" - -static INTEGER insert_ch( ARG_I(int) ); - - -#line 16611 "./tex4ht-c.tex" - -static void put_char( ARG_I(int) ); - - -#line 16644 "./tex4ht-c.tex" - -static void print_f( ARG_I(const char*) ); - - -#line 16664 "./tex4ht-c.tex" - -static void print_f_4ht( ARG_I(const char*) ); - - -#line 16689 "./tex4ht-c.tex" - -static int get_char( ARG_I(void) ); - - -#line 16701 "./tex4ht-c.tex" - -static int get_noop( ARG_I(void) ); - - -#line 16717 "./tex4ht-c.tex" - -static char* get_str( ARG_I(int) ); - - -#line 16741 "./tex4ht-c.tex" - -static long fget_unt( ARG_II(FILE*, int) ); - - -#line 16765 "./tex4ht-c.tex" - -static long fget_int( ARG_II(FILE *, int) ); - - -#line 16801 "./tex4ht-c.tex" - -static long cond_int( ARG_I(register INTEGER) ); - - -#line 16908 "./tex4ht-c.tex" - -static void warn_i( ARG_I(int) ); - - -#line 16932 "./tex4ht-c.tex" - -static void warn_i_int( ARG_II(int,int) ); - - -#line 16948 "./tex4ht-c.tex" - -static void warn_i_int_2( ARG_III(int,int,int) ); - - -#line 16964 "./tex4ht-c.tex" - -static void warn_i_str( ARG_II(int,const char *) ); - - -#line 16984 "./tex4ht-c.tex" - -static void warn_i_str2( ARG_III(int,const char *,const char *) ); - - -#line 17018 "./tex4ht-c.tex" - -static void err_i( ARG_I(int) ); - - -#line 17035 "./tex4ht-c.tex" - -static void err_i_int( ARG_II(int,int) ); - - -#line 17051 "./tex4ht-c.tex" - -static void err_i_str( ARG_II(int,char *) ); - - -#line 17098 "./tex4ht-c.tex" - -static void show_err_context( ARG_I(void) ); - - - -#line 488 "./tex4ht-c.tex" - -#ifdef WIN32 - - - -static BOOL sigint_handler -#ifdef ANSI -#define SEP , -( DWORD dwCtrlType -) -#undef SEP -#else -#define SEP ; -(dwCtrlType) DWORD dwCtrlType -; -#undef SEP -#endif -{ - -#line 502 "./tex4ht-c.tex" - -if( dwCtrlType ){ (IGNORED) printf(" "); } - - - err_i(32); - return FALSE; -} -#endif - - -#line 1133 "./tex4ht-c.tex" - - -static void - -#line 507 "./tex4ht-c.tex" - -#ifdef CDECL -CDECL -#endif - - -sig_err -#ifdef ANSI -#define SEP , -( int s -) -#undef SEP -#else -#define SEP ; -(s) int s -; -#undef SEP -#endif -{ - (void) signal(s,SIG_IGN); - switch( s ){ -#ifdef SIGSEGV - case SIGSEGV: err_i(30); -#endif - case SIGFPE : err_i(31); -#if defined(SIGINT) && !defined(WIN32) - case SIGINT : err_i(32); -#endif - } - -#line 750 "./tex4ht-c.tex" - -#ifdef __DJGPP__ - if (s != SIGINT && s != SIGQUIT) - exit(EXIT_FAILURE); -#endif - - -} - - -#line 1406 "./tex4ht-c.tex" - - -static void* malloc_chk -#ifdef ANSI -#define SEP , -( int n -) -#undef SEP -#else -#define SEP ; -( n ) int n -; -#undef SEP -#endif -{ void* p; - if((p = (void *) malloc( (size_t) n)) == NULL ) bad_mem; - return p; -} - - -#line 1422 "./tex4ht-c.tex" - - -static void* r_alloc -#ifdef ANSI -#define SEP , -( - void *q SEP - size_t n -) -#undef SEP -#else -#define SEP ; -( q, n ) - void *q SEP - size_t n -; -#undef SEP -#endif -{ void* p; - if((p = (void *) realloc( q, (size_t) n)) == NULL) bad_mem; - return p; -} - - -#line 1685 "./tex4ht-c.tex" - - -static void strct -#ifdef ANSI -#define SEP , -( - U_CHAR * str1 SEP - const U_CHAR * str2 - -) -#undef SEP -#else -#define SEP ; -( str1, str2 ) - U_CHAR * str1 SEP - const U_CHAR * str2 - -; -#undef SEP -#endif -{ U_CHAR * ch; - ch = str1 + (int) strlen((char *) str1); - (IGNORED) strcpy((char *) ch, str2 ); -} - - -#line 1724 "./tex4ht-c.tex" - -static void open_o_file(MYVOID) -{ - -#line 1735 "./tex4ht-c.tex" - - struct files_rec* p; -p = m_alloc(struct files_rec, 1); -if( opened_files != (struct files_rec*) 0 ) opened_files->prev = p; -p->prev = (struct files_rec *) 0; -p->next = opened_files; opened_files = p; -p->name = no_root_file; -p->file = - - - cur_o_file = root_file = open_html_file(no_root_file); - no_root_file = (char *) 0; -} - - -#line 1824 "./tex4ht-c.tex" - - -static FILE* open_html_file -#ifdef ANSI -#define SEP , -( - char* name -) -#undef SEP -#else -#define SEP ; -(name) - char* name -; -#undef SEP -#endif -{ FILE* file; - char* str; - str = m_alloc(char, (int) strlen((char *) name) + 1); - (IGNORED) strcpy((char *) str, (char *) name); - (IGNORED) printf(" file %s\n", str); - (IGNORED) fprintf(log_file, "File: %s\n", str); - if( (file = fopen(str, WRITE_TEXT_FLAGS)) == NULL ) bad_in_file(str); - free((void *) str); - return file; -} - - -#line 2802 "./tex4ht-c.tex" - - -static void set_del -#ifdef ANSI -#define SEP , -( - U_CHAR ** del SEP - U_CHAR ** end_del -) -#undef SEP -#else -#define SEP ; -( del, end_del ) - U_CHAR ** del SEP - U_CHAR ** end_del -; -#undef SEP -#endif -{ - *del = m_alloc(char, 1); **del = '\0'; - *end_del = m_alloc(char, 1); **end_del = '\0'; -} - - -#line 2993 "./tex4ht-c.tex" - -static void try_new_line(MYVOID) -{ long int v; - double dy; - dy = (cur_fnt == -1)? 0.0 : ( -#line 3016 "./tex4ht-c.tex" - -( -#line 9905 "./tex4ht-c.tex" - -design_size_to_pt( 1.7 * (double) font_tbl[cur_fnt].ex ) -* (double) font_tbl[cur_fnt].scale - - < 0? -1 : 1) - - * -#line 9905 "./tex4ht-c.tex" - -design_size_to_pt( 1.7 * (double) font_tbl[cur_fnt].ex ) -* (double) font_tbl[cur_fnt].scale - -) ; - v = y_val - prev_y_val; - if( !text_on && (y_val > max_y_val) ){ - if( v > dy/2.5 ){ - -#line 1748 "./tex4ht-c.tex" - -if( !no_root_file ){ - -#line 12281 "./tex4ht-c.tex" - -if( needs_end_accent && t_accent_template ){ - -#line 2609 "./tex4ht-c.tex" - -if( span_on && in_span_ch ){ - if( *end_span[0] ){ - in_span_ch = FALSE; - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, "%s", end_span[0]); -} } - - - (IGNORED) fprintf(cur_o_file, "%s", t_accent_fifth); - needs_end_accent = FALSE; -#line 12424 "./tex4ht-c.tex" - -needs_accented_sym--; - - -} - - - if( ! -#line 3739 "./tex4ht-c.tex" - -rule_ch_off - - ){ put_char('\n'); } -} - - max_x_val = -10000; - prev_y_val = max_y_val = stack_n? y_val : 0; - } - }else{ - if( v > dy ){ -#line 1748 "./tex4ht-c.tex" - -if( !no_root_file ){ - -#line 12281 "./tex4ht-c.tex" - -if( needs_end_accent && t_accent_template ){ - -#line 2609 "./tex4ht-c.tex" - -if( span_on && in_span_ch ){ - if( *end_span[0] ){ - in_span_ch = FALSE; - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, "%s", end_span[0]); -} } - - - (IGNORED) fprintf(cur_o_file, "%s", t_accent_fifth); - needs_end_accent = FALSE; -#line 12424 "./tex4ht-c.tex" - -needs_accented_sym--; - - -} - - - if( ! -#line 3739 "./tex4ht-c.tex" - -rule_ch_off - - ){ put_char('\n'); } -} - - max_x_val = x_val; - prev_y_val = stack_n? y_val : 0; - }else if( v < -(dy / 1.4) ) prev_y_val = stack_n? y_val : 0; -} } - - -#line 3082 "./tex4ht-c.tex" - - -static INTEGER move_x -#ifdef ANSI -#define SEP , -( - register INTEGER d -) -#undef SEP -#else -#define SEP ; -( d ) - register INTEGER d -; -#undef SEP -#endif -{ register long i, dx; - x_val += d; - if( (x_val > max_x_val) && x_val ){ - if( max_x_val == -10000) max_x_val = x_val - d; - -#line 3237 "./tex4ht-c.tex" - -i = (INTEGER) ( (double) (dx = x_val - max_x_val) - / (text_on? word_sp : margin_sp) - + 0.5 ); - -#line 3252 "./tex4ht-c.tex" - -if( i==0 ){ - i = (INTEGER) ( (double) dx - / word_sp - + 0.5 ); -} - - -if( i<0 ) i=0; -if( i==0 ){ -#line 3457 "./tex4ht-c.tex" - - long curr_pos; - BOOL done; - int ch, cr_fnt; -curr_pos = ftell(dvi_file); -done = FALSE; -while( !done ){ - ch = get_char(); - switch( ch ){ - - - -#line 3764 "./tex4ht-c.tex" - -case -#line 17460 "./tex4ht-c.tex" - -246 -: (void) get_char(); -case -#line 17457 "./tex4ht-c.tex" - -245 -: (void) get_char(); -case -#line 17454 "./tex4ht-c.tex" - -244 -: (void) get_char(); -case -#line 17451 "./tex4ht-c.tex" - -243 -: { - for( i=0; i<14; i++ ){ ch = get_char(); } - for( i=ch + get_char(); i>0; i--) (void) get_char(); - break; -} - - - case -#line 17326 "./tex4ht-c.tex" - -141 -: - case -#line 17329 "./tex4ht-c.tex" - -142 -: { break; } - default: { - if( (ch < -#line 17417 "./tex4ht-c.tex" - -171 -) || (ch > -#line 17423 "./tex4ht-c.tex" - -234 -) ){ - done = TRUE; - } else { - -#line 3482 "./tex4ht-c.tex" - - double word_sp; -cr_fnt = ch - -#line 17417 "./tex4ht-c.tex" - -171 -; -cr_fnt = search_font_tbl( cr_fnt ); -word_sp = design_size_to_pt( font_tbl[cr_fnt].word_sp ) - * (double) font_tbl[cr_fnt].scale; -i = (INTEGER) ( (double) dx - / (text_on? word_sp : margin_sp) - + 0.5 ); - -#line 3252 "./tex4ht-c.tex" - -if( i==0 ){ - i = (INTEGER) ( (double) dx - / word_sp - + 0.5 ); -} - - -if( i>0 ){ i =1; } - - -} } } } -(IGNORED) fseek(dvi_file, curr_pos, -#line 2174 "./tex4ht-c.tex" - -0 -); - - } -if( i ){ -#line 2822 "./tex4ht-c.tex" - -if( trace_dvi_H && !ch_map_flag ){ - if( *trace_dvi_del_H != '\0' ){ - (IGNORED) fprintf(cur_o_file, "%s%d", trace_dvi_del_H, (int) dx); - } - (IGNORED) fprintf(cur_o_file, "%s", end_trace_dvi_del_H); -} - - } -if( !ignore_spaces ){ - -#line 12281 "./tex4ht-c.tex" - -if( needs_end_accent && t_accent_template ){ - -#line 2609 "./tex4ht-c.tex" - -if( span_on && in_span_ch ){ - if( *end_span[0] ){ - in_span_ch = FALSE; - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, "%s", end_span[0]); -} } - - - (IGNORED) fprintf(cur_o_file, "%s", t_accent_fifth); - needs_end_accent = FALSE; -#line 12424 "./tex4ht-c.tex" - -needs_accented_sym--; - - -} - - - while( i-- ) { text_on=TRUE; put_char(' '); } -} else { recover_spaces = (int) i; } -max_x_val = x_val; - - - } else if( d && text_on && (x_val != max_x_val) ){ - -#line 3128 "./tex4ht-c.tex" - -if( !ignore_spaces ){ - i = (INTEGER) ( (double) (dx = d) / word_sp + 0.5 ); - if( i<0 ) i=0; - if( !i ) i = dx>99999L; - if( i ){ put_char(' '); } -} - - - } - return d; -} - - -#line 3181 "./tex4ht-c.tex" - - -static INTEGER move_y -#ifdef ANSI -#define SEP , -( register INTEGER d -) -#undef SEP -#else -#define SEP ; -( d ) register INTEGER d -; -#undef SEP -#endif -{ y_val += d; - -#line 2831 "./tex4ht-c.tex" - -if( trace_dvi_V && !ch_map_flag ){ - if( *trace_dvi_del_V != '\0' ){ - (IGNORED) fprintf(cur_o_file, "%s%d", trace_dvi_del_V, d); - } - (IGNORED) fprintf(cur_o_file, "%s", end_trace_dvi_del_V); -} - - - return d; -} - - -#line 3652 "./tex4ht-c.tex" - - -static void rule_x -#ifdef ANSI -#define SEP , -( - BOOL tag -) -#undef SEP -#else -#define SEP ; -( tag ) - BOOL tag -; -#undef SEP -#endif -{ long i, right, up; - up = (INTEGER) get_int(4); - right = (INTEGER) get_int(4); - if( ch_map_flag ){ -#line 5246 "./tex4ht-c.tex" - - long int sv_x_val, sv_y_val, sv_right, sv; - int ch; -sv_x_val = x_val; -sv_y_val = y_val; -sv_right = right; -y_val-=up; -if( right < 0 ){ x_val += right; right = -right; } -if( up < 0 ){ y_val += up; up = -up; } -ch = ( (right > xresolution) && (up > yresolution) ) ? - -#line 4861 "./tex4ht-c.tex" - -3 - : ( ( right > up )? -#line 4855 "./tex4ht-c.tex" - -1 - : -#line 4858 "./tex4ht-c.tex" - -2 - ); -right += x_val; -up += sv = y_val; -for( ; x_val < right; x_val += xresolution ) - for( y_val = sv ; y_val < up; y_val += yresolution ) - insert_ch_map((char) ch, FALSE); -x_val = sv_x_val; -y_val = sv_y_val; -if( sv_x_val + sv_right > max_x_val ) max_x_val = sv_x_val + sv_right; -if( -#line 4994 "./tex4ht-c.tex" - -tag - ) x_val += sv_right; - - } - else if( pos_dvi ){ - -#line 8351 "./tex4ht-c.tex" - - long int d; -if( (up > 0) && (right > 0) ){ - if( *pos_line ){ - double from_x, from_y; - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - from_x = pos_x_A * (x_val - base_pos_x) + pos_x_B; - from_y = pos_y_C * (y_val - pos_y_E * up - base_pos_y) + pos_y_D; - switch (rect_pos){ - case 1: { - (IGNORED) fprintf(cur_o_file, pos_line, - from_x, from_y, - pos_x_A * right + pos_x_B + from_x, - pos_y_C * up + pos_y_D + from_y ); - break; } - case 2: { - (IGNORED) fprintf(cur_o_file, pos_line, - from_x, from_y, - pos_x_A * right + pos_x_B + from_x, - from_y, - pos_y_C * up + pos_y_D ); - break; } - default: { - (IGNORED) fprintf(cur_o_file, pos_line, - from_x, from_y, - pos_x_A * right, - pos_y_C * up); - } - } - } - if( x_val < min_pos_x ) min_pos_x = x_val; - if( (d = x_val + right) > max_pos_x ) max_pos_x = d; - if( (d = y_val - up) < min_pos_y ) min_pos_y = d; - if( y_val > max_pos_y ) max_pos_y = y_val; -} - - - if( tag ) x_val += right; - } else if( (up>0) && (right>0) ) { - -#line 3703 "./tex4ht-c.tex" - -if( (x_val + right) && - ( ((x_val + right) > max_x_val) - || ( !text_on && !ignore_chs ) - ) -){ - if( (max_x_val == -10000) || ((x_val + right) <= max_x_val) ) - { max_x_val = x_val; } - i = (INTEGER) ( (double) (x_val + right - max_x_val) - / (text_on? word_sp : margin_sp) - + 0.5 ); - -#line 3728 "./tex4ht-c.tex" - -if( i==0 ){ - i = (INTEGER) ( (double) (x_val + right - max_x_val) - / word_sp - + 0.5 ); -} - - - if( i && !text_on ) try_new_line(); - -#line 2844 "./tex4ht-c.tex" - -if( trace_dvi_R && !ch_map_flag ){ - if( *trace_dvi_del_R != '\0' ){ - (IGNORED) fprintf(cur_o_file, "%s%d %d", - trace_dvi_del_R, (int) x_val, (int) y_val); - } - (IGNORED) fprintf(cur_o_file, "%s", end_trace_dvi_del_R); -} - - - while( i-- ) { text_on=TRUE; - if( rule_ch && ! -#line 3739 "./tex4ht-c.tex" - -rule_ch_off - - ){ put_char(rule_ch); } - } - -#line 2855 "./tex4ht-c.tex" - -if( trace_dvi_R && !ch_map_flag ){ - if( *trace_dvi_del_r != '\0' ){ - (IGNORED) fprintf(cur_o_file, "%s%d %d", - trace_dvi_del_R, (int) right, (int) up); - } - (IGNORED) fprintf(cur_o_file, "%s", end_trace_dvi_del_r); -} - - - max_x_val = x_val + right; -} - - - if( tag ) x_val += right; - } else { - -#line 3746 "./tex4ht-c.tex" - - -#line 2844 "./tex4ht-c.tex" - -if( trace_dvi_R && !ch_map_flag ){ - if( *trace_dvi_del_R != '\0' ){ - (IGNORED) fprintf(cur_o_file, "%s%d %d", - trace_dvi_del_R, (int) x_val, (int) y_val); - } - (IGNORED) fprintf(cur_o_file, "%s", end_trace_dvi_del_R); -} - - - -#line 2855 "./tex4ht-c.tex" - -if( trace_dvi_R && !ch_map_flag ){ - if( *trace_dvi_del_r != '\0' ){ - (IGNORED) fprintf(cur_o_file, "%s%d %d", - trace_dvi_del_R, (int) right, (int) up); - } - (IGNORED) fprintf(cur_o_file, "%s", end_trace_dvi_del_r); -} - - - - - if( tag ) x_val += right; -} } - - -#line 3881 "./tex4ht-c.tex" - - -static BOOL tex4ht_special -#ifdef ANSI -#define SEP , -( - int *chr SEP - long int *special_n - -) -#undef SEP -#else -#define SEP ; -( chr, special_n) - int *chr SEP - long int *special_n - -; -#undef SEP -#endif -{ BOOL tex4ht; - int i; - long unsigned N; - tex4ht = FALSE; - -#line 3930 "./tex4ht-c.tex" - -*special_n = (long int) (N = get_unt(*chr - -#line 17441 "./tex4ht-c.tex" - -239 - + 1)); -for(i=4; i--; ){ - special_hd[i] = (unsigned char) (N & 0xFF); - N = N >> 8; } - - - if( *special_n > (long int) 4 ){ - for(i=4; i<9; i++) special_hd[i]=get_char(); - special_hd[9]='\0'; - -#line 3918 "./tex4ht-c.tex" - -tex4ht = (special_hd[4] == 't') || (special_hd[4] == 'T'); -tex4ht = tex4ht && special_hd[5] == '4'; -tex4ht = tex4ht && ((special_hd[6] == 'h') || (special_hd[6] == 'H')); -tex4ht = tex4ht && ((special_hd[7] == 't') || (special_hd[7] == 'T')); -if( tex4ht && trace_special ){ - -#line 17181 "./tex4ht-c.tex" - -{ long curr_pos; - int n, i; - U_CHAR ch; - - curr_pos = ftell(dvi_file); - print_f("\nSPECIAL: "); ch = special_hd[8]; i=60; - for( n=*special_n - 3; n--;){ - if( !i ){ (IGNORED) putc( '\n', cur_o_file ); i=70; } - else i--; - (IGNORED) putc(( (ch>31) && (ch<127))? ch : ' ', cur_o_file); - ch = get_char(); - } - (IGNORED) putc( '\n', cur_o_file ); - (IGNORED) fseek(dvi_file, curr_pos, -#line 2174 "./tex4ht-c.tex" - -0 -); -} - - -} - - - *chr = special_hd[8]; - tex4ht = tex4ht && ( (*chr == '=') || (*chr == '<') || - (*chr == '>') || (*chr == '*') || (*chr == '@') || - (*chr == ':') || (*chr == '"') || (*chr == '~') || - (*chr == ';') || (*chr == '.') || (*chr == '^') || - (*chr == '|') || (*chr == '+') || (*chr == '!') ); - *special_n -= 5; } - else{ special_hd[4]='\0'; } - return tex4ht; -} - - -#line 4966 "./tex4ht-c.tex" - -static void init_ch_map(MYVOID) -{ int i; - for( i=0; i<HEIGHT; i++ ){ - ch_map[i].max = 0; ch_map[i].chars = 0; ch_map[i].line = NULL; } - max_map_line = -1; - min_map_line = HEIGHT; -} - - -#line 5003 "./tex4ht-c.tex" - - -static void insert_ch_map -#ifdef ANSI -#define SEP , -( - U_CHAR ch SEP - BOOL -#line 4994 "./tex4ht-c.tex" - -tag - - -) -#undef SEP -#else -#define SEP ; -( ch, -#line 4994 "./tex4ht-c.tex" - -tag - ) - U_CHAR ch SEP - BOOL -#line 4994 "./tex4ht-c.tex" - -tag - - -; -#undef SEP -#endif -{ int row, col; - -#line 5045 "./tex4ht-c.tex" - -{ double x; - row = (int) ( (y_val>0? y_val : 0.0) / (double) yresolution + 0.5); - if( row >= HEIGHT ){ - if( ok_map ){ warn_i_int_2( 34, row, ch); ok_map = FALSE; } - return; } - x = (x_val>0? x_val : 0.0 ) / (double) xresolution + 0.75; - col = (int) x; - if( (ch > ' ') && (ch != '-') && (ch != '|') ){ - if( row == prevrow ){ - if( (col == prevcol + 1) && (x > prev_x + 0.5) ) - insert_ch_map(' ', TRUE); - else if( (col > prevcol + 1) && (x < prev_x+0.2) - && ( ch != '&' )) - col = prevcol + 1; - }else prevrow = -1; - prev_x = x - + ( -#line 9821 "./tex4ht-c.tex" - -design_size_to_pt( *(font_tbl[cur_fnt].wtbl - + (int) ( -#line 9828 "./tex4ht-c.tex" - -*(font_tbl[cur_fnt].char_wi + (int) - ( (design_ch? design_ch : ch) - font_tbl[cur_fnt].char_f)% 256) - -)) ) - * (double) font_tbl[cur_fnt].scale - -) - / (double) xresolution; - prevcol = col; - }else prevrow = -1; - prevrow = row; -} - - - if(ch != 10){ - if( (ch_map[row].max > MAX_MAP_LINE) || (col > MAX_MAP_LINE) ){ - if( ok_map ){ warn_i_int_2( 25, MAX_MAP_LINE, ch); - ok_map = FALSE; } - }else{ - if( row < min_map_line ) min_map_line = row; - if( row > max_map_line ) max_map_line = row; - if( ch_map[row].max ){ -#line 5122 "./tex4ht-c.tex" - - int n; - char* p; -if( ch_map[row].chars > col ){ - -#line 5173 "./tex4ht-c.tex" - -if( -#line 4994 "./tex4ht-c.tex" - -tag - ){ - if( *(ch_map[row].line + ch_map[row].max - 1) - || (ch_map[row].chars - col == 1) ){ -#line 5218 "./tex4ht-c.tex" - -ch_map[row].max += 5; -ch_map[row].line = (char *) - r_alloc((void *) ch_map[row].line, - (size_t) ch_map[row].max + 1 ); -for( n = 0; n<5; n++ ) - *(ch_map[row].line + ch_map[row].max - n) = 0; -ch_map[row].chars += 5; - - } - col = (ch_map[row].chars--) - col; - p = ch_map[row].line + ch_map[row].max; - while( col ){ unsigned char temp_ch; - if( ((unsigned char) (*p)) < -#line 4864 "./tex4ht-c.tex" - -4 - ) col--; - temp_ch = *(--p); *(p+1) = temp_ch; } -} else { - col = ch_map[row].chars - col; - p = ch_map[row].line + ch_map[row].max; - while( col ){ - if( ((unsigned char) (*p)) < -#line 4864 "./tex4ht-c.tex" - -4 - ) col--; p--; } -} -*(++p) = ch; - - } -else{ -#line 5136 "./tex4ht-c.tex" - -n = (col - ch_map[row].chars + 8) / 5 * 5; -ch_map[row].chars += n - -#line 4994 "./tex4ht-c.tex" - -tag -; -ch_map[row].max += n; -ch_map[row].line = (char *) - r_alloc((void *) ch_map[row].line, - (size_t) ch_map[row].max + 1); -while( n-- ) *(ch_map[row].line + ch_map[row].max - n) = 0; -*(ch_map[row].line + ch_map[row].max - - (ch_map[row].chars - col) + ! -#line 4994 "./tex4ht-c.tex" - -tag - ) = ch; - - } - - } - else { -#line 5091 "./tex4ht-c.tex" - - int n; - char* p; -ch_map[row].chars = (n = (col + 2 + 5) / 5 * 5) - -#line 4994 "./tex4ht-c.tex" - -tag -; -ch_map[row].max = n - 1; -ch_map[row].line = p = m_alloc(char, n); -while( n-- ){ *(p++) = 0; } -*(ch_map[row].line + col) = ch; - - } -} } } - - -#line 5297 "./tex4ht-c.tex" - -static void dump_ch_map(MYVOID) -{ int n, i, min, k, extra_sp; - U_CHAR *p; - - -#line 5327 "./tex4ht-c.tex" - -{ int max; - min = 100; max = 0; - for( i=min_map_line; i<=max_map_line; i++ ){ - p = ch_map[i].line; - n = ch_map[i].max; if( max < n ) max = n; - k = 0; while( n-- ){ if(*(p++)) break; k++; } - if( ch_map[i].max && (k < min) ) min = k; } - if( (max < 78) && !nomargin ) min = 0; -} - - - for( i=min_map_line; i<=max_map_line; i++ ){ - if( ( n = ch_map[i].max) > 0 ){ - p = ch_map[i].line; k = min; extra_sp = 0; - -#line 5340 "./tex4ht-c.tex" - -{ U_CHAR *s; - s = p + n; - while( n && !(*s) && !(*(s-1)) ){ n--; s--; } - if( n && !(*s) && (((unsigned char) *(s-1)) < -#line 4864 "./tex4ht-c.tex" - -4 -) ) n--; -} - - - while( 1 + n-- ){ - if( --k < 0 ){ - if( extra_sp && (((unsigned char) *p) < -#line 4864 "./tex4ht-c.tex" - -4 -) - && (((unsigned char) *(p+1)) < -#line 4864 "./tex4ht-c.tex" - -4 -) ) - { extra_sp--; - } else { switch( *p ){ -#line 5348 "./tex4ht-c.tex" - - case 0: { put_char(' '); break; } - case -#line 4855 "./tex4ht-c.tex" - -1 -: { put_char('-'); break; } - case -#line 4858 "./tex4ht-c.tex" - -2 -: { put_char('|'); break; } -case -#line 4861 "./tex4ht-c.tex" - -3 -: { put_char('#'); break; } - case ' ': { extra_sp++; } - default: { -#line 5357 "./tex4ht-c.tex" - - BOOL tag; - INTEGER count; -tag = TRUE; count = 0; -do{ if( *p == '<' ) tag = FALSE; - else if( *p == '>' ) tag = TRUE; - else count += tag; - put_char( *p ); n--; -}while( ((unsigned char) *(++p)) >= -#line 4864 "./tex4ht-c.tex" - -4 - ); -if( !count ){ n++; p--; } - - break; } - - } } - } - p++; - } - free((void *) ch_map[i].line ); - } - if( i<max_map_line ) put_char('\n'); - } - nomargin = FALSE; -} - - -#line 5787 "./tex4ht-c.tex" - - -static void set_loc -#ifdef ANSI -#define SEP , -( - int op SEP - long int d - -) -#undef SEP -#else -#define SEP ; -( op, d ) - int op SEP - long int d - -; -#undef SEP -#endif -{ - idv_char( op + 3 ); int_to_dvi( d, 4 ); file_n += 5; -} - - -#line 6006 "./tex4ht-c.tex" - - -static void idv_char -#ifdef ANSI -#define SEP , -( int n -) -#undef SEP -#else -#define SEP ; -( n ) int n -; -#undef SEP -#endif -{ (IGNORED) putc( n, idv_file ); } - - -#line 6019 "./tex4ht-c.tex" - - -static void cond_idv_char -#ifdef ANSI -#define SEP , -( int n -) -#undef SEP -#else -#define SEP ; -( n ) int n -; -#undef SEP -#endif -{ - if( dvi_flag ){ (IGNORED) putc( n, idv_file ); file_n++; } -} - - -#line 6034 "./tex4ht-c.tex" - -static void idv_copy( MYVOID ) -{ idv_char( get_char() ); file_n++; } - - -#line 6049 "./tex4ht-c.tex" - - -static void cond_idv_int -#ifdef ANSI -#define SEP , -( long int val SEP - int n -) -#undef SEP -#else -#define SEP ; -( val, n ) long int val SEP - int n -; -#undef SEP -#endif -{ - if( dvi_flag ){ int_to_dvi((long int) val, n ); file_n += n; } -} - - -#line 6063 "./tex4ht-c.tex" - - -static void int_to_dvi -#ifdef ANSI -#define SEP , -( long int val SEP - int n - -) -#undef SEP -#else -#define SEP ; -( val, n ) long int val SEP - int n - -; -#undef SEP -#endif -{ unsigned U_CHAR ch2, ch3, ch4; - ch4 = (unsigned char) (val & 0xFF); val = val >> 8; - ch3 = (unsigned char) (val & 0xFF); val = val >> 8; - ch2 = (unsigned char) (val & 0xFF); val = val >> 8; - switch( n ){ - case 4: idv_char( (int) val ); - case 3: idv_char( ch2 ); - case 2: idv_char( ch3 ); - case 1: idv_char( ch4 ); } - -} - - -#line 6085 "./tex4ht-c.tex" - - -static void cond_string -#ifdef ANSI -#define SEP , -( int ch SEP int n - -) -#undef SEP -#else -#define SEP ; -(ch, n) int ch SEP int n - -; -#undef SEP -#endif -{ cond_idv_char( ch ); - while( n-- ) cond_idv_char( get_char() ); -} - - -#line 6115 "./tex4ht-c.tex" - - -static INTEGER advance_idv_page -#ifdef ANSI -#define SEP , -( - INTEGER bop_addr SEP - char* cur_font - -) -#undef SEP -#else -#define SEP ; -( bop_addr, cur_font ) - INTEGER bop_addr SEP - char* cur_font - -; -#undef SEP -#endif -{ int i; - if( page_n++ ){ - idv_char( -#line 17329 "./tex4ht-c.tex" - -142 -); file_n++; - idv_char( -#line 17323 "./tex4ht-c.tex" - -140 -); file_n++; - idv_char( -#line 17320 "./tex4ht-c.tex" - -139 - ); - idv_int( page_n ); for( i=36; i--; ) idv_char( 0); - idv_int( bop_addr ); bop_addr = file_n; file_n += 45; - idv_char( -#line 17326 "./tex4ht-c.tex" - -141 -); file_n++; - for( i=1; i<=cur_font[0]; i++ ){ - idv_char( cur_font[i] ); file_n++; - } } - -#line 6147 "./tex4ht-c.tex" - -store_mv( -#line 17356 "./tex4ht-c.tex" - -151 -, dx_1); -store_mv( -#line 17371 "./tex4ht-c.tex" - -156 -, dx_2); -store_mv( -#line 17398 "./tex4ht-c.tex" - -165 -, dy_1); -store_mv( -#line 17413 "./tex4ht-c.tex" - -170 -, dy_2); - - - return bop_addr; -} - - -#line 6172 "./tex4ht-c.tex" - - -static void store_mv -#ifdef ANSI -#define SEP , -( int op SEP INTEGER d - -) -#undef SEP -#else -#define SEP ; -(op, d) int op SEP INTEGER d - -; -#undef SEP -#endif -{ - if( dvi_flag ){ - cond_idv_char(op); idv_int( (INTEGER) -d); - cond_idv_char(op); idv_int( (INTEGER) d); file_n += 8; } -} - - -#line 7241 "./tex4ht-c.tex" - -static void push_stack(MYVOID) -{ - stack[stack_n].x_val = x_val; - stack[stack_n].dx_1 = dx_1; - stack[stack_n].dx_2 = dx_2; - stack[stack_n].y_val = y_val; - stack[stack_n].dy_1 = dy_1; - stack[stack_n].dy_2 = dy_2; - -#line 7259 "./tex4ht-c.tex" - -stack[stack_n+1].sv_no_left_del = stack[stack_n+1].no_left_del; -stack[stack_n+1].no_left_del = stack[stack_n].no_left_del; - - - stack_n++; -if( stack_n > -#line 6684 "./tex4ht-c.tex" - -((int) stack_len + 2) - - ){ - warn_i(40); -} - -#line 12475 "./tex4ht-c.tex" - -stack[stack_n].accented = FALSE; - - -} - - -#line 7288 "./tex4ht-c.tex" - -static void pop_stack(MYVOID) -{ - -#line 12468 "./tex4ht-c.tex" - -if( stack[stack_n].accented ){ - -#line 12419 "./tex4ht-c.tex" - -needs_accented_sym--; - - - stack[stack_n].accented=FALSE; -} - - - -#line 7264 "./tex4ht-c.tex" - -stack[stack_n].no_left_del = stack[stack_n].sv_no_left_del; - - - --stack_n; - x_val = stack[stack_n].x_val; - dx_1 = stack[stack_n].dx_1; - dx_2 = stack[stack_n].dx_2; - y_val = stack[stack_n].y_val; - dy_1 = stack[stack_n].dy_1; - dy_2 = stack[stack_n].dy_2; -} - - -#line 7389 "./tex4ht-c.tex" - - -static struct del_stack_entry* push_del -#ifdef ANSI -#define SEP , -( U_CHAR ch SEP - int cr_fnt -) -#undef SEP -#else -#define SEP ; -(ch, cr_fnt) U_CHAR ch SEP - int cr_fnt -; -#undef SEP -#endif -{ struct del_stack_entry *p; - p = m_alloc(struct del_stack_entry,1); - p->next = del_stack; - p->ch = ch; - p->fnt = cr_fnt; - p->id = ch_id; - return p; -} - - -#line 7410 "./tex4ht-c.tex" - - -static struct del_stack_entry* pop_del -#ifdef ANSI -#define SEP , -( - U_CHAR ch SEP - int id_hide SEP - int cr_fnt -) -#undef SEP -#else -#define SEP ; -(ch, id_hide, cr_fnt) - U_CHAR ch SEP - int id_hide SEP - int cr_fnt -; -#undef SEP -#endif -{ - if( del_stack != (struct del_stack_entry*) 0 ){ - if( (cr_fnt == del_stack->fnt) && - ( *(font_tbl[cr_fnt].math + (ch - font_tbl[cr_fnt].char_f)) - == del_stack->ch) ){ - struct del_stack_entry * p; - if( !id_hide && !id_latex ){ sv_id = del_stack->id; } - del_stack = (p = del_stack)->next; free((void *) p ); - } } - return del_stack; -} - - -#line 7623 "./tex4ht-c.tex" - - -static struct send_back_entry * rev_list -#ifdef ANSI -#define SEP , -( - struct send_back_entry *back_group -) -#undef SEP -#else -#define SEP ; -(back_group) - struct send_back_entry *back_group -; -#undef SEP -#endif -{ struct send_back_entry *p, *q, *t; - if( back_group->id == -1 ){ return back_group; } - p = back_group; q = p->next; - while( p->id != -1 ){ - t = q->next; q->next = p; p = q; q = t; - } - back_group->next = p; - return p->next; -} - - -#line 7677 "./tex4ht-c.tex" - - -static struct send_back_entry * back_insert -#ifdef ANSI -#define SEP , -( - struct send_back_entry *back SEP - int id -) -#undef SEP -#else -#define SEP ; -(back, id) - struct send_back_entry *back SEP - int id -; -#undef SEP -#endif -{ - while( back->id == id ){ - struct send_back_entry *p; - print_f( back->send ); - back = (p = back)->next; - free((void *) p->send ); - free((void *) p ); - } - return back; -} - - -#line 8550 "./tex4ht-c.tex" - - -static double pos_dbl -#ifdef ANSI -#define SEP , -( long int * special_n -) -#undef SEP -#else -#define SEP ; -( special_n ) long int * special_n -; -#undef SEP -#endif -{ - U_CHAR ch; - double v; - int d; - v = 0.0; d = 10; - while( --(*special_n) > 0 ){ - ch = get_char(); - if( ('0' <= ch ) && (ch <= '9' ) ){ - v += (double) (ch -'0') / d; d *= 10; } - else break; - } - return v; -} - - -#line 9270 "./tex4ht-c.tex" - - -static void doGlyphArray -#ifdef ANSI -#define SEP , -( - BOOL yLocs -) -#undef SEP -#else -#define SEP ; -(yLocs) - BOOL yLocs -; -#undef SEP -#endif -{ int i, glyphCount; - (void) get_unt(4); - glyphCount = (INTEGER) get_unt(2); - for( i = 0; i < glyphCount; ++i ){ - (void) get_int(4); - if( yLocs ){ (void) get_int(4); } - } - for (i = 0; i < glyphCount; ++i){ - (void) get_unt(2); - } -} - - -#line 9318 "./tex4ht-c.tex" - - -static int search_font_tbl -#ifdef ANSI -#define SEP , -( - int cur_fnt -) -#undef SEP -#else -#define SEP ; -( cur_fnt ) - int cur_fnt -; -#undef SEP -#endif -{ int i; - for( i=0; i<font_tbl_size; i++){ - if( font_tbl[i].num == cur_fnt ){ return i; } - } - err_i_int( 6,cur_fnt ); - return 0; -} - - -#line 10419 "./tex4ht-c.tex" - - -static int get_html_ch -#ifdef ANSI -#define SEP , -( FILE* file - -) -#undef SEP -#else -#define SEP ; -( file ) FILE* file - -; -#undef SEP -#endif -{ int ch; - if( (ch = (int) getc(file)) == EOF ) { - dump_htf( file ); - err_i_str(20, new_font_name); - } - return ch; -} - - -#line 10440 "./tex4ht-c.tex" - - -static FILE* f_open -#ifdef ANSI -#define SEP , -( - const char* name SEP - const char* flags -) -#undef SEP -#else -#define SEP ; -( name, flags ) - const char* name SEP - const char* flags -; -#undef SEP -#endif -{ FILE* file; - if( (file = fopen(name,flags) ) != NULL ) { - (IGNORED) printf("(%s)\n",name); - } - return file; -} - - -#line 10464 "./tex4ht-c.tex" - - -static void dump_htf -#ifdef ANSI -#define SEP , -( FILE* file - -) -#undef SEP -#else -#define SEP ; -( file ) FILE* file - -; -#undef SEP -#endif -{ int i, j, ch, chr=0; - (IGNORED) fseek(file, 0L, 0); - i=-1; j=0; - while( (ch = getc(file)) != EOF ){ - if( !j ){ chr = ch; } - j += ch==chr; - (IGNORED) putc(ch,stderr); - if( ch == '\n' ){ - if( (i>-1 ) && (j<4) && (dump_htf_files<2) ){ - (IGNORED) printf("missing delimiter \n"); - } - (IGNORED) fprintf(stderr,"%d: ",++i); - j=0; -} } } - - -#line 10516 "./tex4ht-c.tex" - -static void dump_env( MYVOID ) -{ - int ch; - if( !dumped_env ){ - dumped_env = TRUE; - (IGNORED) fseek(dot_file, 0L, -#line 2174 "./tex4ht-c.tex" - -0 -); - (IGNORED) fprintf(stderr, - "\n----------------------------------------------------\n"); - (IGNORED) fprintf(stderr, "environment file\n"); - (IGNORED) fprintf(stderr, - "----------------------------------------------------\n"); - while( (ch = getc(dot_file)) != EOF ){ - (IGNORED) putc(ch,stderr); - } - (IGNORED) fprintf(stderr, - "----------------------------------------------------\n"); -} } - - -#line 10549 "./tex4ht-c.tex" - - -static void htf_to_lg -#ifdef ANSI -#define SEP , -( - - struct html_font_rec* html_font SEP - char* new_font_name SEP - int fonts_n SEP - FILE* file -) -#undef SEP -#else -#define SEP ; -(html_font, new_font_name, fonts_n, file) - - struct html_font_rec* html_font SEP - char* new_font_name SEP - int fonts_n SEP - FILE* file -; -#undef SEP -#endif -{ - int ch, i; - for( i = 0 ; i<fonts_n; ){ - if( eq_str(html_font[i].name, new_font_name) ){ break; } - i++; - } - if( i == fonts_n ){ - BOOL content; - int prev_ch; - prev_ch = '\n'; content = FALSE; - while( (ch = (int) getc(file)) != EOF ) { - if( (ch != '\n') || (prev_ch != '\n') ){ - (void) putc( ch, log_file ); - prev_ch = ch; content = TRUE; - } } - if( content && (prev_ch != '\n') ){ - (void) putc( '\n', log_file ); - } -} } - - -#line 10599 "./tex4ht-c.tex" - - -static INTEGER get_html_file_id -#ifdef ANSI -#define SEP , -( - FILE* file SEP - int first SEP int last SEP int n - -) -#undef SEP -#else -#define SEP ; -(file, first, last, n) - FILE* file SEP - int first SEP int last SEP int n - -; -#undef SEP -#endif -{ int ch, i, bound, cnt; - INTEGER diff; - char* name; - name = new_font_name; - while( *name == (ch = get_html_ch(file)) ) name++; - -#line 10116 "./tex4ht-c.tex" - -if( ( name == new_font_name ) && (n == 19) && (ch=='.') ){ - return HTF_ALIAS; -} - - - if( (*name != '\0') || (ch != ' ') ) warn_i_str(n, name); - bound = first; diff = 0; - for( cnt = 0; cnt < 2; cnt++ ){ - while( ch == ' ' ) ch = get_html_ch(file); - i = 0; - while( (ch >= '0') && (ch <= '9') ){ - i = i * 10 + ch - '0'; ch = get_html_ch(file); } - if( i != bound ){ - -#line 16921 "./tex4ht-c.tex" - -(IGNORED) fprintf(stderr,"--- warning --- "); -(IGNORED) fprintf(stderr, warn_err_mssg[22] - -, new_font_name, i, bound); show_err_context(); - diff = diff * 1000 + i - bound; } - bound = last; } - while( ch != '\n' ) ch = get_html_ch(file); - return diff; -} - - -#line 10733 "./tex4ht-c.tex" - - -static void notify_class_info -#ifdef ANSI -#define SEP , -( int gif_flag -) -#undef SEP -#else -#define SEP ; -( gif_flag ) int gif_flag -; -#undef SEP -#endif -{ U_CHAR str[256], *p; - str[0] = '\0'; - p = gif_open[gif_flag]; - if( p ) - if( *p ) (IGNORED) strct(str,p); - p = gif_alt[gif_flag]; - if( p ) - if( *p ) (IGNORED) strct(str,p); - p = gif_class[gif_flag]; - if( p ) - if( *p ) (IGNORED) strct(str,p); - p = gif_size[gif_flag]; - if( p ) - if( *p ) (IGNORED) strct(str,p); - p = gif_mag[gif_flag]; - if( p ) - if( *p ) (IGNORED) strct(str,p); - p = gif_ord[gif_flag]; - if( p ) - if( *p ) (IGNORED) strct(str,p); - p = gif_end[gif_flag]; - if( p ) - if( *p ) (IGNORED) strct(str,p); - p = str; - while( *p ){ - if( *p == '\n' ) *p = ' '; - p++; - } - (IGNORED) fprintf(log_file, class_fmt, - gif_flag, - gif_id[gif_flag]? gif_id[gif_flag] : "", - str); -} - - -#line 10957 "./tex4ht-c.tex" - - -static void script -#ifdef ANSI -#define SEP , -( - U_CHAR *templt SEP - U_CHAR *job SEP - int page SEP - U_CHAR *font - -) -#undef SEP -#else -#define SEP ; -(templt, job, page, font) - U_CHAR *templt SEP - U_CHAR *job SEP - int page SEP - U_CHAR *font - -; -#undef SEP -#endif -{ U_CHAR *ch, *p; - U_CHAR fmt[256]; - job[ (int) strlen((char *) job) - 1 ] ='\0'; - p = ch = templt; - while( TRUE ){ - if( *ch == '%' ){ - -#line 10991 "./tex4ht-c.tex" - -*ch = '\0'; (IGNORED) fprintf(log_file, "%s", p); -*(ch++) = '%'; - - - -#line 11002 "./tex4ht-c.tex" - -p=fmt; *(p++) = '%'; -if( *ch == '\0' ){ job[ (int) strlen((char *) job) ] ='.'; return; } -while( *ch != '%' ){ *(p++) = *(ch ++); } -*(p+1) = '\0'; - - - switch( *(++ch) ){ - case '1':{ *p = 's'; - (IGNORED) fprintf(log_file, fmt, job); break;} - case '2':{ *p = 'd'; - (IGNORED) fprintf(log_file, fmt, page); break;} - case '3':{ *p = 's'; - (IGNORED) fprintf(log_file, fmt, font); break;} - case '%':{ *p = 'c'; - (IGNORED) fprintf(log_file, fmt, '%'); break;} - default:{ job[ (int) strlen((char *) job) ] ='.'; return;} - } - p = ++ch; - }else ch++; -} } - - -#line 11185 "./tex4ht-c.tex" - - - -static void dos_gif_file -#ifdef ANSI -#define SEP , -( - U_CHAR *str SEP - int mag SEP - int design_ch - -) -#undef SEP -#else -#define SEP ; -(str, mag, design_ch) - U_CHAR *str SEP - int mag SEP - int design_ch - -; -#undef SEP -#endif -{ int n, m, i; - struct gif_file_rec * p, * q; - U_CHAR *ch; - m = n = (int) strlen((char *) str); - if( n > 4 ){ - -#line 11245 "./tex4ht-c.tex" - -if( (p = gif_file) != NULL ){ - while( TRUE ){ - if( eq_str( str, p->name ) ) break; - if( (p = p->next) == gif_file ){ p = NULL; break; } -} } - - - if( p == NULL ){ -#line 11258 "./tex4ht-c.tex" - -p = m_alloc(struct gif_file_rec, 1); - -#line 11278 "./tex4ht-c.tex" - -for(i=str[n]; n; ){ i+=str[--n]; if( i > (INT_MAX / 8) ) i/=2; } -if( (n=i % BASE) <10 ) n+= 10 + i%(BASE-20); -*(ch = p->code)= n; n += i; -ch[1] = n%BASE; n += i; -ch[2] = n%BASE; n += i; -ch[3] = n%BASE; - - - -#line 11292 "./tex4ht-c.tex" - -if( gif_file ){ - q = gif_file->next; - while( TRUE ){ - if( (*(q->code) == *ch) && (*(q->code+1) == ch[1]) && - (*(q->code) == ch[2]) && (*(q->code+2) == ch[3]) ){ - ch[3] ++; ch[2] += ch[3]/ BASE; ch[3] = ch[3] % BASE; - ch[1] += ch[2]/ BASE; ch[2] = ch[2] % BASE; - ch[1] = ch[1] % BASE; - q = gif_file; - } else if( q == gif_file ) break; - q = q->next; -} } - - -(IGNORED) printf("\nRenaming `%s____%s' to `%c%c%c%c____%s'\n", - str, gif, - xeh[(int)(ch[0])], xeh[(int)(ch[1])], - xeh[(int)(ch[2])], xeh[(int)(ch[3])] - , gif); -p->name = m_alloc(char,m+1); -(IGNORED) strcpy((char *) p->name, (char *) str ); -if( gif_file ){ p->next = gif_file->next; gif_file->next = p; } - else p->next = p; - - } - gif_file = p; - for( n=0; n<4; n++ ) str[n] = xeh[(int)(*(p->code + n))]; - } - str[n++] = xeh[mag<16? 0: mag / 16]; - str[n++] = xeh[mag % 16]; - str[n++] = xeh[design_ch<16? 0: design_ch / 16]; - str[n++] = xeh[design_ch % 16]; - str[n] = '\0'; -} - - - -#line 11348 "./tex4ht-c.tex" - - -static void put_alt_ch -#ifdef ANSI -#define SEP , -( - int chr SEP - BOOL ch_str_flag -) -#undef SEP -#else -#define SEP ; -(chr,ch_str_flag) - int chr SEP - BOOL ch_str_flag -; -#undef SEP -#endif -{ - if( !ch_str_flag ) put_char( chr ); - else if( chr > 0 ){ -#line 11365 "./tex4ht-c.tex" - - unsigned U_CHAR * p; -p = font_tbl[cur_fnt].str[chr-1]; -if( gif_ch ) print_f( (char *) p ); -else while( *p ){ - switch( *p ){ - case '<': { while( *p && (*p != '>') ) p++; break; } - case '>': - case '"': { p++; break; } - case '\'': { p++; break; } - default: { put_char( (int) *p ) ; p++; } -} } - - } -} - - -#line 12352 "./tex4ht-c.tex" - - -static void get_open_accent -#ifdef ANSI -#define SEP , -( - char **all SEP - char **first SEP - char **second SEP - char **third SEP - char **fourth SEP - char **fifth SEP - long int *n -) -#undef SEP -#else -#define SEP ; -(all,first,second,third,fourth,fifth,n) - char **all SEP - char **first SEP - char **second SEP - char **third SEP - char **fourth SEP - char **fifth SEP - long int *n -; -#undef SEP -#endif -{ char *p, *q; - int i; - if( *all ){ free((void *) *all); } - *all = p = get_str( (int) *n ); *n=0; - i = 2; - *first = q = p + 1; - while ( TRUE ){ - if( *q == *p ){ - *q = '\0'; - switch( i ){ - case 2:{ *second = q+1; break; } - case 3:{ *third = q+1; break; } - case 4:{ *fourth = q+1; break; } - case 5:{ *fifth = q+1; break; } - } - if( i++ == 5 ){ break; } - } else if( !*q ){ - free((void *) *all); *all = (char *) 0; break; - } - q++; -} } - - -#line 12593 "./tex4ht-c.tex" - - -static int scan_class -#ifdef ANSI -#define SEP , -( - int flag -) -#undef SEP -#else -#define SEP ; -( flag ) - int flag -; -#undef SEP -#endif -{ int math_class; - math_class = get_char(); - if( (math_class >= '0' ) - && (math_class < '0' + -#line 12719 "./tex4ht-c.tex" - -79 - -) ){ - { math_class -= '0'; } - } else { - if( flag== 1 ) { - switch( math_class ){ - case '-': { math_class = -#line 12719 "./tex4ht-c.tex" - -79 - -; - pause_class++; break; } - case '+': { math_class = -#line 12719 "./tex4ht-c.tex" - -79 - -; - pause_class--; break; } - default: { math_class = 0; } - } } else if( flag== 2 ) { - switch( math_class ){ - case -#line 12726 "./tex4ht-c.tex" - -')' - -: { - math_class = -#line 12734 "./tex4ht-c.tex" - -( -#line 12719 "./tex4ht-c.tex" - -79 - - + 1) - -; break; } - case -#line 12730 "./tex4ht-c.tex" - -'(' - -: - { math_class = -#line 12738 "./tex4ht-c.tex" - -( -#line 12719 "./tex4ht-c.tex" - -79 - - + 2) - -; break; } - default: { math_class = 0; } - } - } else { math_class = 0; } - } - return math_class; -} - - -#line 12633 "./tex4ht-c.tex" - - -static INTEGER set_ch_class -#ifdef ANSI -#define SEP , -( int ch -) -#undef SEP -#else -#define SEP ; -(ch) int ch -; -#undef SEP -#endif -{ int r_ch; - r_ch = ch - font_tbl[cur_fnt].char_f; - if( math_class == -#line 7369 "./tex4ht-c.tex" - -5 - - ){ - store_bit_I( font_tbl[cur_fnt].math_closing, r_ch ); - *(font_tbl[cur_fnt].math + r_ch) = - (char) ((open_del == 256)? ch : open_del); - } else { - store_bit_Z( font_tbl[cur_fnt].math_closing, r_ch ); - *(font_tbl[cur_fnt].math + r_ch) = math_class; - } - open_del = ( math_class == -#line 7373 "./tex4ht-c.tex" - -4 - - )? ch : 256; - -#line 9800 "./tex4ht-c.tex" - -return (INTEGER)( - -#line 9837 "./tex4ht-c.tex" - -design_size_to_pt( *(font_tbl[cur_fnt].wtbl - + (int) ( -#line 9845 "./tex4ht-c.tex" - -*(font_tbl[cur_fnt].char_wi + (int) - ( ch - font_tbl[cur_fnt].char_f)% 256) - -) ) - ) -* (double) font_tbl[cur_fnt].scale - - - ); - - -} - - -#line 12688 "./tex4ht-c.tex" - - -static int math_class_of -#ifdef ANSI -#define SEP , -( int ch SEP int cur_fnt -) -#undef SEP -#else -#define SEP ; -(ch,cur_fnt) int ch SEP int cur_fnt -; -#undef SEP -#endif -{ int math_class; - math_class = ch - font_tbl[cur_fnt].char_f; - return ((get_bit( font_tbl[cur_fnt].math_closing, math_class))? - -#line 7369 "./tex4ht-c.tex" - -5 - - : *( math_class + font_tbl[cur_fnt].math)); - -} - - -#line 13225 "./tex4ht-c.tex" - -#if defined(__MSDOS__) - -#line 13234 "./tex4ht-c.tex" - - -static char *get_env_dir -#ifdef ANSI -#define SEP , -( - U_CHAR *progname - -) -#undef SEP -#else -#define SEP ; -(progname) - U_CHAR *progname - -; -#undef SEP -#endif -{ int i; - U_CHAR *p; - if(! progname || ! *progname) return NULL; - i = (int) strlen((char *) progname); - while( (progname[--i] != (int) dir_path_slash(progname) ) - && (i > 0) ) ; - if(i == 0) return NULL; - p = (char *) malloc(i+12); - if(p == NULL) return NULL; - strncpy(p, progname, i+1); - (IGNORED) strcpy((char *) &p[i+1], "tex4ht.env"); - return p; -} - - -#endif - - -#line 13294 "./tex4ht-c.tex" - - -static char* get_script -#ifdef ANSI -#define SEP , -( - char * name SEP - const U_CHAR * inln SEP - int x - -) -#undef SEP -#else -#define SEP ; -(name, inln,x) - char * name SEP - const U_CHAR * inln SEP - int x - -; -#undef SEP -#endif -{ - if( !name ) - { U_CHAR str[256], *ch; - (IGNORED) fseek(dot_file, 0L, -#line 2174 "./tex4ht-c.tex" - -0 -); - if( search_dot_file( x ) ){ - -#line 13318 "./tex4ht-c.tex" - -ch = str; str[254] = '\0'; -do{ int int_ch; - while((*(ch++) = (char) - (int_ch = (int) getc(dot_file)) - ) != '\n'){ - if( int_ch == EOF ){ *(ch-1)='\n'; break; } - if( str[254] ){ warn_i_int(33, x); break; } - } -}while( (int) getc(dot_file) == x ); -*ch = '\0'; - - - } else {(IGNORED) strcpy((char *) str, inln); } - ch = m_alloc(char, (int) strlen((char *) str)+2); - (IGNORED) strcpy((char *) ch, (char *) str); - return ch; - }else return name; -} - - -#line 13344 "./tex4ht-c.tex" - - -static BOOL search_dot_file -#ifdef ANSI -#define SEP , -( - int ch -) -#undef SEP -#else -#define SEP ; -( ch ) - int ch -; -#undef SEP -#endif -{ int chr; - - while( TRUE ){ - chr = getc(dot_file); - if( chr == ch ){ return TRUE; } - if( chr == '<' ) { - -#line 13367 "./tex4ht-c.tex" - - U_CHAR match[256]; - int i; -for( i = 0; (chr != '\n') && (chr != EOF ) ; i++){ - chr = (int) getc(dot_file); - match[i] = (U_CHAR) chr; -} -match[i-1] = '\0'; -if( match[0] != '/' ){ - BOOL env_skip; - for( i = 0; - (match[i] != '>') && (match[i] != '\n') && (match[i] != EOF ); - i++){} - if( match[i] == '>' ){ match[i] = '\0'; } - -#line 13435 "./tex4ht-c.tex" - -if( envChoice == (struct env_c_rec*) 0 ){ - env_skip = !eq_str(match, "default" ); -} else { - struct env_c_rec *p; - env_skip = TRUE; - for( p=envChoice; p!=(struct env_c_rec*) 0 ; p = p->next ){ - if( eq_str(match, p->option ) ){ env_skip = FALSE; } -} } - - - if( env_skip ){ - -#line 13387 "./tex4ht-c.tex" - - U_CHAR cur_block[90]; - BOOL status; -(IGNORED) strcpy((char *) cur_block, (char *) match); -status = FALSE; -while( !status && (chr != EOF) ){ - chr = 'x'; - for( i = 0; (chr != '\n') && (chr != EOF ) ; i++){ - chr = (int) getc(dot_file); - match[i] = (U_CHAR) chr; - } - match[i-1] = '\0'; - for(i=0; match[i]!='\0'; i++){ - if( match[i] == '>' ){ break; } - } - if( (match[0] == '<') && (match[1] == '/') - && (match[i] == '>') ){ - match[i]='\0'; - status = eq_str(match+2, cur_block); - } else { status = FALSE; } -} - - -} } - - - continue; - } - if( chr == '\n' ){ continue; } - do - if( chr == EOF ) return FALSE; - while( (chr = getc(dot_file)) != '\n' ); -} } - - -#line 13584 "./tex4ht-c.tex" - - -static struct env_var_rec * get_env_var -#ifdef ANSI -#define SEP , -( - const char *env_var -) -#undef SEP -#else -#define SEP ; -( env_var ) - const char *env_var -; -#undef SEP -#endif -{ U_CHAR *TEX4HTTFM, *from; - struct env_var_rec *tfm_dirs, *p; - int env_var_len; - tfm_dirs = (struct env_var_rec *) 0; - TEX4HTTFM = getenv( env_var ); - if( TEX4HTTFM ){ - env_var_len = (int) strlen((char *) TEX4HTTFM); - if ( *TEX4HTTFM == *(TEX4HTTFM + env_var_len - 1 ) ){ - from = TEX4HTTFM + env_var_len - 1; - *from = '\0'; - do{ - from--; - if( *from == *TEX4HTTFM ){ char * base; - *from = '\0'; - base = from + 1; - -#line 13626 "./tex4ht-c.tex" - -{ U_CHAR *str; - if( *(from+1) == '~' ){ - if( HOME_DIR ){ - str = m_alloc(char, strlen((char *) HOME_DIR)+strlen((char *) base)); - (IGNORED) sprintf(str,"%s%s", HOME_DIR, base+1); - if( access(str,F_OK) ) { - warn_i_str2(49, env_var, str); base = NULL; } - free((void *) str); - } else { - if( access(base,F_OK) ) { - warn_i_str2(49, env_var, base); base = NULL; } - } - } else { - if( access(base,F_OK) ) { - warn_i_str2(49, env_var, base); base = NULL; } -} } - - - if( base ){ - -#line 13618 "./tex4ht-c.tex" - -p = m_alloc(struct env_var_rec, 1); -p->next = tfm_dirs; -p->base = base; -tfm_dirs = p; - - - } } - } while (from > TEX4HTTFM ); - } else { warn_i_str2( 49, env_var, TEX4HTTFM); } - } - return tfm_dirs; -} - - -#line 13887 "./tex4ht-c.tex" - - -static void com_dir -#ifdef ANSI -#define SEP , -( - char* p -) -#undef SEP -#else -#define SEP ; -(p) - char* p -; -#undef SEP -#endif -{ int i; U_CHAR str[256]; - (IGNORED) strcpy((char *) str, (char *) p+2 ); - i = (int) strlen((char *) str) - 1; - if( str[i] == '!' ) str[i] = '\0'; -} - - -#line 14580 "./tex4ht-c.tex" - -#ifdef KPATHSEA - -static void export_htf -#ifdef ANSI -#define SEP , -( - char** export_str SEP - char str[] -) -#undef SEP -#else -#define SEP ; -(export_str, str) - char** export_str SEP - char str[] -; -#undef SEP -#endif -{ int i; - char* p; - BOOL found; - i = (int) strlen((char *) str) - 1; - while( (i>=0) && (str[i] == '\n') ){ str[i--] = '\0'; } - while( (i>=0) && (str[i] == ' ') ) { str[i--] = '\0'; } - if( (i>=0) && (str[i] == '!') ){ str[i--] = '\0'; } - if( (i>=0) && ((str[i] == '/') || (str[i] == '\\')) ){ - str[i--] = '\0'; } - i -= 8; found = FALSE; - while( --i>=0 ){ - if( ((str[i] == '/') || (str[i] == '\\')) && (str[i+1]== 'h') - && (str[i+2]=='t') && (str[i+3]=='-') - && (str[i+4]=='f') && (str[i+5]=='o') - && (str[i+6]=='n') && (str[i+7]=='t') - && (str[i+8]=='s') - && ((str[i+9] == '/') || (str[i+9] == '\\')) - ){ - p = str + i + 10; i=0; - while( *p ){ str[i++] = *(p++); } - str[i] = '\0'; - found = TRUE; break; - } } - if( found ){ - *export_str = (char *) r_alloc((void *) *export_str, - (int) strlen((char *) *export_str) + (int) strlen((char *) str) + 2 ); - if( (int) strlen((char *) *export_str) > 0 ){ - (IGNORED) strcat((char *) *export_str, ","); - } - (IGNORED) strcat((char *) *export_str, (char *) str); - } -} -#endif - - -#line 15309 "./tex4ht-c.tex" - - -static FILE* search_in_dot_file -#ifdef ANSI -#define SEP , -( - int typ SEP - const U_CHAR *name SEP - const U_CHAR *flags SEP - struct env_var_rec *env_dirs - -) -#undef SEP -#else -#define SEP ; -( typ, name, flags, env_dirs) - int typ SEP - const U_CHAR *name SEP - const U_CHAR *flags SEP - struct env_var_rec *env_dirs - -; -#undef SEP -#endif -{ U_CHAR *ch, dir[256]; - FILE* file; -#ifndef KPATHSEA - if( cache_files != (FILE *) 0 ){ - -#line 14019 "./tex4ht-c.tex" - - U_CHAR cache_dir[256], dot_dir[256], *p, *q; - BOOL flag; - int n, ch; -(IGNORED) fseek(cache_files, 0L, -#line 2174 "./tex4ht-c.tex" - -0 -); -ch = (int) getc(cache_files); -while ( ch != EOF ){ - if ( ch == ' ' ) { -#line 14036 "./tex4ht-c.tex" - -q = cache_dir; -do - *(q++) = ch = (int) getc(cache_files); -while( (ch !='\n') && (ch != EOF) ); -*(q-1 - (*(q-2) == -#line 15558 "./tex4ht-c.tex" - -#if defined(__DJGPP__) - '\\' -#else - '/' -#endif - -) -#ifdef DOS_WIN32 - - (*(q-2) == '/') -#endif - ) = '\0'; - - } - else { -#line 14048 "./tex4ht-c.tex" - -p = name; flag = FALSE; -while( *(p++) == ch ){ - ch = (int) getc(cache_files); -} -if( (*(p-1) == '\0') && ((ch == '\n') || (ch == EOF)) ){ flag = TRUE; } -else{ - while( (ch != '\n') && (ch != EOF) ) { ch = (int) getc(cache_files); } -} - - - if( flag ){ - -#line 14059 "./tex4ht-c.tex" - -flag = FALSE; -(IGNORED) fseek(dot_file, 0L, -#line 2174 "./tex4ht-c.tex" - -0 -); -while( search_dot_file( typ ) && !flag ){ U_CHAR *q, save_ch; - int n, m; - q = dot_dir; - do - *(q++) = ch = (int) getc(dot_file); - while( (ch !='\n') && (ch != EOF) ); - flag = *(q - 2) = '!'; - q -= (flag? 2 : 1); - *(q - (*(q-1) == -#line 15558 "./tex4ht-c.tex" - -#if defined(__DJGPP__) - '\\' -#else - '/' -#endif - -) -#ifdef DOS_WIN32 - - (*(q-1) == '/') -#endif - ) = '\0'; - if( (n = strlen((char *) dot_dir)) > (m = strlen((char *) cache_dir)) ){ flag = FALSE; } - else { - save_ch = *(cache_dir + n); - *(cache_dir + n) = '\0'; - flag = eq_str(dot_dir,cache_dir) && ( flag || (m == n) ); - *(cache_dir + n) = save_ch; - } -} - - - if( flag ){ -#line 14085 "./tex4ht-c.tex" - -n = (int) strlen((char *) cache_dir); -cache_dir[n] = dir_path_slash(cache_dir); -cache_dir[n+1] = '\0'; -(IGNORED) strcat((char *) cache_dir, (char *) name); - - } - } } - if ( ch != EOF ){ ch = (int) getc(cache_files); } -} - - - } -#endif - (IGNORED) fseek(dot_file, 0L, -#line 2174 "./tex4ht-c.tex" - -0 -); - while( search_dot_file( typ ) ){ - ch = dir; - while((*(ch++) = (int) getc(dot_file)) > ' '); - while(*(ch-1) != '\n'){ - *(ch-1) = (int) getc(dot_file); - } - *(ch-1) = '\0'; - file = search_file_base(name, dir, flags, env_dirs); - if( file != NULL ){ -#ifndef KPATHSEA - tex4ht_fls = TRUE; -#endif - return file; - } } - return NULL; -} - - -#line 15354 "./tex4ht-c.tex" - - -static FILE* search_file_base -#ifdef ANSI -#define SEP , -( - const U_CHAR *name SEP - const U_CHAR *dir SEP - const U_CHAR *flags SEP - struct env_var_rec *env_dirs - -) -#undef SEP -#else -#define SEP ; -( name, dir, flags, env_dirs) - const U_CHAR *name SEP - const U_CHAR *dir SEP - const U_CHAR *flags SEP - struct env_var_rec *env_dirs - -; -#undef SEP -#endif -{ U_CHAR *p; - FILE* file; - if( *dir == '~' ){ - while( TRUE ){ - p = abs_addr(dir, env_dirs? env_dirs->base : NULL); - file = search_file(name, p, flags); - free((void *) p); - if( file || !env_dirs ){ return file; } - env_dirs = env_dirs->next; - } - } else { - file = search_file(name, dir, flags); - } - return file; -} - - -#line 15385 "./tex4ht-c.tex" - - -static char * abs_addr -#ifdef ANSI -#define SEP , -( - const U_CHAR *dir SEP - const U_CHAR *base - -) -#undef SEP -#else -#define SEP ; -( dir, base) - const U_CHAR *dir SEP - const U_CHAR *base - -; -#undef SEP -#endif -{ U_CHAR *p; - p = m_alloc(char, (int) strlen( dir ) + - (base? (int) strlen( base ):0) + - (int) strlen((char *) HOME_DIR ) + 1 ); - *p = '\0'; - if( (*(dir+1) == '~') && base ){ - if( *base == '~' ){ - (IGNORED) strct(p, HOME_DIR); - (IGNORED) strct(p, base+1); - } else { - (IGNORED) strct(p, base); - } - (IGNORED) strct(p, dir+2); - } else { - (IGNORED) strct(p, HOME_DIR); - (IGNORED) strct(p, dir+1); - } - return p; -} - - -#line 15426 "./tex4ht-c.tex" - - -static FILE* search_file -#ifdef ANSI -#define SEP , -( - const char *name SEP - const U_CHAR *dir SEP - const U_CHAR *flags - -) -#undef SEP -#else -#define SEP ; -( name, dir, flags ) - const char *name SEP - const U_CHAR *dir SEP - const U_CHAR *flags - -; -#undef SEP -#endif -{ FILE* file; - U_CHAR str[256]; - int i; - BOOL subs; - -#line 15467 "./tex4ht-c.tex" - -if( (file = f_open(name, flags)) != NULL ){ - return file; } - - - (IGNORED) strcpy((char *) str, dir); - i = (int) strlen((char *) str) - 1; - subs = str[i] == '!'; - if( subs ) str[i] = '\0'; else i++; - -#line 15451 "./tex4ht-c.tex" - -(IGNORED) strct(str, -#if defined(__DJGPP__) - (( dir[i-1] == '/') || ( dir[i-1] == '\\')) - ? "" - : (is_forward_slash(dir)? "/" : "\\" ) -#else - (dir[i-1] == '/')? "" : "/" -#endif - ); - - - - -#line 15472 "./tex4ht-c.tex" - -(IGNORED) strct(str,name); -if( (file = f_open(str, flags)) != NULL ){ - str[i] = '\0'; add_to_cache(str,name,i); - return file; } - - - str[i] = '\0'; - return subs? search_file_ext( name, str, flags): - NULL; -} - - -#line 15486 "./tex4ht-c.tex" - - -static void add_to_cache -#ifdef ANSI -#define SEP , -( - const char* dir SEP const char* name SEP int n - -) -#undef SEP -#else -#define SEP ; -(dir,name,n) - const char* dir SEP const char* name SEP int n - -; -#undef SEP -#endif -{ - struct cache_font_rec *cur_cache_font; - - -#line 13681 "./tex4ht-c.tex" - -{ int found; - found = FALSE; - for( cur_cache_font = cache_font; - cur_cache_font; - cur_cache_font = cur_cache_font->next ) - { found = found || eq_str(cur_cache_font->dir, dir ) ; - if( found ) break; } - if( !found ){ - cur_cache_font = m_alloc(struct cache_font_rec, 1); - -#line 13944 "./tex4ht-c.tex" - -cur_cache_font->cache_file = (struct cache_file_rec *) 0; - - - cur_cache_font->dir = m_alloc(char, n+1); - (IGNORED) strcpy((char *) cur_cache_font->dir, dir); - if( !cache_font ){ - cur_cache_font->next = cache_font; - cache_font = cur_cache_font; - } else if ( gt_str(cache_font->dir, dir) ) { - cur_cache_font->next = cache_font; - cache_font = cur_cache_font; - } else { - struct cache_font_rec * after_cache_font; - after_cache_font = cache_font; - while( after_cache_font->next ){ - if ( gt_str(after_cache_font->next->dir, dir) ) { break; } - after_cache_font = after_cache_font->next; - } - cur_cache_font->next = after_cache_font->next; - after_cache_font->next = cur_cache_font; -} } } - - - -#line 13948 "./tex4ht-c.tex" - -{ - struct cache_file_rec *file_rec, *prev_file_rec; - prev_file_rec = (struct cache_file_rec *) 0; - file_rec = cur_cache_font->cache_file; - while( file_rec ) { - if( !gt_str(name,file_rec->file) ) break; - prev_file_rec = file_rec; - file_rec = file_rec->next; - } - { - struct cache_file_rec * file_entry; - BOOL flag; - flag = TRUE; - if( file_rec ) { - if( eq_str(name,file_rec->file) ){ flag = FALSE; } - } - if( flag ) { - -#line 13973 "./tex4ht-c.tex" - -file_entry = m_alloc(struct cache_file_rec, 1); -file_entry->file = m_alloc(char, strlen(name)+1); -(IGNORED) strcpy((char *) file_entry->file, name); -if( ! cur_cache_font->cache_file ){ - cur_cache_font->cache_file = file_entry; - file_entry->next = (struct cache_file_rec *) 0; -} else if( !prev_file_rec ){ - file_entry->next = cur_cache_font->cache_file; - cur_cache_font->cache_file = file_entry; -} else { - file_entry->next = prev_file_rec->next; - prev_file_rec->next = file_entry; -} - - - } - } -} - - -} - - -#line 15507 "./tex4ht-c.tex" - - -static FILE* search_file_ext -#ifdef ANSI -#define SEP , -( - const char *name SEP - const U_CHAR *dir SEP - const U_CHAR *flags - -) -#undef SEP -#else -#define SEP ; -( name, dir, flags ) - const char *name SEP - const U_CHAR *dir SEP - const U_CHAR *flags - -; -#undef SEP -#endif -{ U_CHAR str[256]; - FILE* file; - int n; - n = (int) strlen(dir); - (IGNORED) sprintf(str, -#if defined(__DJGPP__) - (( dir[n-1] == '/') || ( dir[n-1] == '\\')) - ? "%s%s" - : (is_forward_slash(dir)? "%s/%s" : "%s\\%s" ) -#else - (dir[n-1] == '/')? "%s%s" : "%s/%s" -#endif - , dir, name); - if( (file = f_open(str,flags)) != NULL ){ - add_to_cache(dir,name,n); - return file; - } - if( (str[n] == -#line 15558 "./tex4ht-c.tex" - -#if defined(__DJGPP__) - '\\' -#else - '/' -#endif - -) -#ifdef DOS_WIN32 - || (str[n] == '/' ) -#endif - ) n++; - str[n-1] = '\0'; -#ifndef NOSUBDIR -#ifdef WIN32 - -#line 537 "./tex4ht-c.tex" - -{ - WIN32_FIND_DATA find_file_data; - HANDLE hnd; - int proceed; - (IGNORED) strcpy((char *) dirname, (char *) str); - strct(dirname, "/*.*"); - hnd = FindFirstFile(dirname, &find_file_data); - if (hnd != INVALID_HANDLE_VALUE) { - -#line 551 "./tex4ht-c.tex" - -proceed = 1; -while (proceed) { - if( !eq_str(find_file_data.cFileName, ".") && - !eq_str(find_file_data.cFileName, "..") ) - { - (IGNORED) strcpy((char *) str+n, (char *) find_file_data.cFileName ); - str[n-1] = dir_path_slash(str); - if (find_file_data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) { - if( (file = search_file_ext(name, str, flags)) != NULL ){ - FindClose(hnd); - return file; } - } - } - proceed = FindNextFile(hnd, &find_file_data); -} -FindClose(hnd); - - - } -} - - -#else - -#line 15598 "./tex4ht-c.tex" - -{ DIR *dp; - -#line 15727 "./tex4ht-c.tex" - - -#ifdef STRUCT_DIRECT - struct direct -#else - struct dirent -#endif - - *dirp; - struct STSTAT buf; - if( (dp = opendir( str )) != NULL ){ - while( (dirp = readdir(dp)) != NULL ){ - if( !eq_str(dirp->d_name, ".") && - !eq_str(dirp->d_name, "..") ) - { -#line 15613 "./tex4ht-c.tex" - -(IGNORED) strcpy((char *) str+n, (char *) dirp->d_name ); -str[n-1] = dir_path_slash(str); -if( LSTAT(str, &buf) >= 0 ) - if( S_ISDIR( buf.st_mode ) ) - if( (file = search_file_ext(name, str, flags)) != NULL ){ - (void) closedir(dp); - return file; } - - - } } - (void) closedir(dp); -} } - - -#endif -#endif - return NULL; -} - - -#line 15584 "./tex4ht-c.tex" - -#if defined(__DJGPP__) - -static BOOL is_forward_slash -#ifdef ANSI -#define SEP , -( - const char* str -) -#undef SEP -#else -#define SEP ; -(str) - const char* str -; -#undef SEP -#endif -{ - while( *str ){ if( *(str++) == '/' ) { return TRUE; } } - return FALSE; -} -#endif - - -#line 15806 "./tex4ht-c.tex" - - -static FILE* f_open_pathed_filename -#ifdef ANSI -#define SEP , -( - const char* name SEP - const char* flags -) -#undef SEP -#else -#define SEP ; -( name, flags ) - const char* name SEP - const char* flags -; -#undef SEP -#endif -{ FILE* file; - U_CHAR *str; - file = NULL; - if( *name == '~' ){ - if( HOME_DIR ){ - str = m_alloc(char, strlen((char *) HOME_DIR)+strlen(name)); - (IGNORED) sprintf(str,"%s%s", HOME_DIR, name+1); - file = f_open(str,flags); - free((void *) str); - } - } else { file = f_open( name, flags ); } - return file; -} - - -#line 15840 "./tex4ht-c.tex" - - -static INTEGER put_4ht_ch -#ifdef ANSI -#define SEP , -( int ch SEP FILE* htFile -) -#undef SEP -#else -#define SEP ; -(ch,htFile) int ch SEP FILE* htFile -; -#undef SEP -#endif -{ - int c; - c = ch; - if( ch=='&' ){ - -#line 15906 "./tex4ht-c.tex" - -flush_uni(); - - - if( put_4ht_off ){ - c = putc( ch, htFile ); - } else { - uni_code[0] = '&'; - uni_code_p = 1; - put_4ht_file = htFile; - } - } else - if( uni_code_p ){ - if( ch == ';' ){ -#line 16129 "./tex4ht-c.tex" - -if( uni_code[1] != '#' ){ - -#line 15906 "./tex4ht-c.tex" - -flush_uni(); - - - (IGNORED) putc( ch, htFile ); -} -else{ - int i, base, value, digit; - if( (uni_code[2] == 'x') || (uni_code[2] == 'X') ){ - base =16; i=3; - } else { base=10; i=2; } - value = 0; - for( ; i<uni_code_p; i++ ){ - digit = uni_code[i]; - if( (digit>='0') && (digit<='9') ){ digit -= '0'; } - else if( (digit>='A') && (digit<='F') ){ digit -= BASE_A; } - else if( (digit>='a') && (digit<='f') ){ digit -= BASE_a; } - else { value = -1; break; } - if( digit >= base ){ value=-1; break; } - value = value*base + digit; - } - if( value<0 ){ -#line 15906 "./tex4ht-c.tex" - -flush_uni(); - - - (IGNORED) putc( ch, htFile ); - } else { - -#line 16156 "./tex4ht-c.tex" - - int bottom, mid, top; - BOOL found=FALSE; -bottom = 0; top = charset_n; -while( !found ){ - mid = (bottom + top) / 2; - if( value == charset[mid].ch ){ - -#line 16182 "./tex4ht-c.tex" - -{ U_CHAR *p; - p = charset[mid].str; - while( *p != '\0' ){ - if( *p=='\\' ){ - p++; - if( *p=='\\' ){ - (IGNORED) putc( '\\', htFile ); - } else { - int i; - i = *p - '0'; - while( *(++p) != '\\' ){ i = 10*i + *p - '0'; } - (IGNORED) putc( i, htFile ); - } } - else { - (IGNORED) putc( *p, htFile ); - if ( (*p=='&') && u10 ){ -#line 16256 "./tex4ht-c.tex" - -if ( *(p+1) == '#' ){ - p++; - (IGNORED) putc( '#', htFile ); - if ( (*(p+1) == 'x') || (*(p+1) == 'X') ){ - int value, digit; - U_CHAR *q; - q = p+2; - value = 0; - digit = *(q++); - while( digit!=0 ){ - if( (digit>='0') && (digit<='9') ){ - value = value*16 + digit - '0'; - } - else if( (digit>='A') && (digit<='F') ){ - value = value*16 + digit - 'A'+10; - } - else if( (digit>='a') && (digit<='f') ){ - value = value*16 + digit - 'a'+10; } - else { - if( digit == ';' ){ - -#line 16287 "./tex4ht-c.tex" - - char uni_10[MAX_UNI_CODE]; - int n; -n = 0; -while( value>0 ){ - uni_10[ n++ ] = value % 10 + '0'; - value /= 10; -} -while( n>0 ){ - (IGNORED) putc( uni_10[--n], htFile ); -} - - - p=q-2; - } - break; - } - digit = *(q++); - } -} } - - } - } - p++; -} } - - - found = TRUE; - } else if( value < charset[mid].ch ){ - if( bottom == top ){ break; } - top = mid; - } - else { - if ( bottom < mid ){ bottom = mid; } - else if ( bottom<top ){ bottom++; } - else{ break; } - } -} -if( ! found ){ - if( u10 || utf8 ){ -#line 16225 "./tex4ht-c.tex" - - short n; - long dec; - int ch; - char uni_10[MAX_UNI_CODE]; -if( (uni_code[2] == 'x') || (uni_code[2] == 'X') ) { - dec = 0; - for( n=3; n<uni_code_p; n++ ){ - ch = uni_code[n]; - dec = 16*dec + - ((ch > '9')? - ( 10 + ((ch > 'Z')? (ch-'a') : (ch-'A')) ) - : (ch-'0')); - } - if( u10 ){ -#line 16245 "./tex4ht-c.tex" - - if( dec == 0 ){ - uni_code_p = 3; uni_code[2] = '0'; - } else { - n = 0; - while( dec > 0 ){ uni_10[ n++ ] = dec % 10 + '0'; dec /= 10; } - uni_code_p = 2; - while( n>0 ){ uni_code[ uni_code_p++ ] = uni_10[ --n ]; } - } - - } - else { -#line 16366 "./tex4ht-c.tex" - - -#line 16316 "./tex4ht-c.tex" - -if( dec < 0x80 ){ - uni_code_p = 1; uni_code[0] = dec; -} -else if( dec < 0x800 ){ - uni_code_p = 2; - uni_code[0] = (dec >> 6) | 0xC0; - uni_code[1] = (dec & 0x3F) | 0x80; -} -else if( dec < 0x10000 ){ - uni_code_p = 3; - uni_code[0] = (dec >> 12) | 0xE0; - uni_code[1] = ((dec >> 6) & 0x3F) | 0x80; - uni_code[2] = (dec & 0x3F) | 0x80; -} -else if( dec < 0x200000 ){ - uni_code_p = 4; - uni_code[0] = (dec >> 18) | 0xF0; - uni_code[1] = ((dec >> 12) & 0x3F) | 0x80; - uni_code[2] = ((dec >> 6) & 0x3F) | 0x80; - uni_code[3] = (dec & 0x3F) | 0x80; -} -else if( dec < 0x4000000 ){ - uni_code_p = 5; - uni_code[0] = (dec >> 24) | 0xF8; - uni_code[1] = ((dec >> 18) & 0x3F) | 0x80; - uni_code[2] = ((dec >> 12) & 0x3F) | 0x80; - uni_code[3] = ((dec >> 6) & 0x3F) | 0x80; - uni_code[4] = (dec & 0x3F) | 0x80; -} -else if( dec <= 0x7FFFFFFF ){ - uni_code_p = 6; - uni_code[0] = (dec >> 30) | 0xFC; - uni_code[1] = ((dec >> 24) & 0x3F) | 0x80; - uni_code[2] = ((dec >> 18) & 0x3F) | 0x80; - uni_code[3] = ((dec >> 12) & 0x3F) | 0x80; - uni_code[4] = ((dec >> 6) & 0x3F) | 0x80; - uni_code[5] = (dec & 0x3F) | 0x80; -} - - -else { - n = 0; - while( dec > 0 ){ uni_10[ n++ ] = dec % 10 + '0'; dec /= 10; } - uni_code_p = 2; - while( n>0 ){ uni_code[ uni_code_p++ ] = uni_10[ --n ]; } -} - - } -} - - } - -#line 15906 "./tex4ht-c.tex" - -flush_uni(); - - - if( !utf8 ){ (IGNORED) putc( ch, htFile ); } -} - - -} } - - uni_code_p = 0; } - else if ( ((uni_code_p+1) == MAX_UNI_CODE) - || - ( ((ch<'0') || (ch>'9')) - && ((ch<'a') || (ch>'f')) - && ((ch<'A') || (ch>'F')) - && (ch!='#') - && (ch!='x') - && (ch!='X') - ) - ) - { -#line 15906 "./tex4ht-c.tex" - -flush_uni(); - - - c = putc( ch, htFile ); - } else { uni_code[ uni_code_p++ ] = ch; } - } else { c = putc( ch, htFile ); } - return c; -} - - -#line 15914 "./tex4ht-c.tex" - -static void flush_uni( MYVOID ) -{ - int i; - for( i=0; i<uni_code_p; i++ ){ - (IGNORED) putc( uni_code[i], put_4ht_file ); - } - uni_code_p = 0; - put_4ht_file = (FILE *) 0; -} - - -#line 16577 "./tex4ht-c.tex" - - -static INTEGER insert_ch -#ifdef ANSI -#define SEP , -( int ch -) -#undef SEP -#else -#define SEP ; -(ch) int ch -; -#undef SEP -#endif -{ - if( !ignore_chs ){ - BOOL flag; - -#line 16599 "./tex4ht-c.tex" - -flag = FALSE; -if( -#line 4338 "./tex4ht-c.tex" - -next_str - - ) { - if( eq_str(next_str, "") ) { - flag = TRUE; - free((void *) next_str); - next_str = (char *) 0; -} } - - - if( !flag ){ - try_new_line(); - -#line 10649 "./tex4ht-c.tex" - - -#line 12298 "./tex4ht-c.tex" - -if( x_val > needs_end_accent ){ - -#line 12281 "./tex4ht-c.tex" - -if( needs_end_accent && t_accent_template ){ - -#line 2609 "./tex4ht-c.tex" - -if( span_on && in_span_ch ){ - if( *end_span[0] ){ - in_span_ch = FALSE; - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, "%s", end_span[0]); -} } - - - (IGNORED) fprintf(cur_o_file, "%s", t_accent_fifth); - needs_end_accent = FALSE; -#line 12424 "./tex4ht-c.tex" - -needs_accented_sym--; - - -} - - -} - - - -#line 2543 "./tex4ht-c.tex" - -if( span_on && (default_font != font_tbl[cur_fnt].num) ){ - if( !ch_map_flag && start_span ){ - if( span_name_on ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - if( span_open[0] ) if( *span_open[0] ) - (IGNORED) fprintf(cur_o_file, "%s", span_open[0]); - if( span_name[0] ) if( *span_name[0] ) - (IGNORED) fprintf(cur_o_file, - span_name[0], font_tbl[cur_fnt].family_name); - if( span_size[0] ) if( *span_size[0] ) - (IGNORED) fprintf(cur_o_file, - span_size[0], font_tbl[cur_fnt].font_size); - if( span_mag[0] ) - if( *span_mag[0] && (font_tbl[cur_fnt].mag != 100)) - (IGNORED) fprintf(cur_o_file, - span_mag[0], font_tbl[cur_fnt].mag); - if( span_ch[0] ) if( *span_ch[0] ) - (IGNORED) fprintf(cur_o_file, "%s", span_ch[0]); - } - start_span = FALSE; - } -} - - -#line 2897 "./tex4ht-c.tex" - -if( trace_dvi_C ){ - if( !ch_map_flag ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - if( *trace_dvi_del_C != '\0' ){ - (IGNORED) fprintf(cur_o_file, - block_start? "%s%s %d B" : "%s%s %d", - trace_dvi_del_C, font_tbl[cur_fnt].name, ch); - } - (IGNORED) fprintf(cur_o_file,"%s", end_trace_dvi_del_C); - } - block_start = FALSE; -} - - - -#line 12913 "./tex4ht-c.tex" - -if( show_class && !pause_class && !ignore_subclass_del){ - if( !stack[stack_n].no_left_del && stack[stack_n+1].active_class_del ){ - -#line 12988 "./tex4ht-c.tex" - -(IGNORED) print_f( (stack[stack_n+1].temp_class_del)? - stack[stack_n+1].temp_class_open - : stack[stack_n+1].class_open); - - - if( !stack[stack_n+1].ignore_subclass_del ){ - -#line 12926 "./tex4ht-c.tex" - -math_class = math_class_of( ch, cur_fnt ); -(IGNORED) print_f( open_class[math_class]); - - - } - } else { - -#line 12926 "./tex4ht-c.tex" - -math_class = math_class_of( ch, cur_fnt ); -(IGNORED) print_f( open_class[math_class]); - - -} } - - -#line 8194 "./tex4ht-c.tex" - -if( pos_dvi ){ long int d; - if( *pos_text ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, pos_text, - pos_x_A * (x_val - base_pos_x) + pos_x_B, - pos_y_C * (y_val - base_pos_y) + pos_y_D); - } - if( x_val < min_pos_x ) min_pos_x = x_val; - if( (d = x_val + -#line 9851 "./tex4ht-c.tex" - -(int)( -#line 9837 "./tex4ht-c.tex" - -design_size_to_pt( *(font_tbl[cur_fnt].wtbl - + (int) ( -#line 9845 "./tex4ht-c.tex" - -*(font_tbl[cur_fnt].char_wi + (int) - ( ch - font_tbl[cur_fnt].char_f)% 256) - -) ) - ) -* (double) font_tbl[cur_fnt].scale - -) - -) > max_pos_x ) max_pos_x = d; - if( (d = y_val - -#line 9875 "./tex4ht-c.tex" - -(int)( -#line 9860 "./tex4ht-c.tex" - -design_size_to_pt( *(font_tbl[cur_fnt].htbl - + (int) ( -#line 9867 "./tex4ht-c.tex" - -( *(font_tbl[cur_fnt].char_hidp + (int) - ( ch - font_tbl[cur_fnt].char_f)% 256) - >> 4 -) & 0x0F - -)) ) - * (double) font_tbl[cur_fnt].scale - -) - -) < min_pos_y ) min_pos_y = d; - if( (d = y_val + -#line 9898 "./tex4ht-c.tex" - -(int)( -#line 9884 "./tex4ht-c.tex" - -design_size_to_pt( *(font_tbl[cur_fnt].dtbl - + (int) ( -#line 9891 "./tex4ht-c.tex" - -( *(font_tbl[cur_fnt].char_hidp + (int) - ( ch - font_tbl[cur_fnt].char_f)% 256) -) & 0x0F - -)) ) -* (double) font_tbl[cur_fnt].scale - -) - -) > max_pos_y ) max_pos_y = d; -} - - - -#line 12392 "./tex4ht-c.tex" - -if( a_accent_template && needs_accented_sym ){ - (IGNORED) fprintf(cur_o_file, "%s%s%s%d%s%d%s", - a_accent_first, font_tbl[cur_fnt].family_name, - a_accent_second, ch, a_accent_third, - font_tbl[cur_fnt].accented[ch]? - font_tbl[cur_fnt].accented_array[font_tbl[cur_fnt].accented[ch]-1] - : 0, - a_accent_fourth); -} - - -if( -#line 4332 "./tex4ht-c.tex" - -next_char - - != -1 ) { - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) put_4ht_ch( -#line 4332 "./tex4ht-c.tex" - -next_char - -, cur_o_file ); - -#line 4332 "./tex4ht-c.tex" - -next_char - - = -1; -} else if( -#line 4338 "./tex4ht-c.tex" - -next_str - - ) { - -#line 4347 "./tex4ht-c.tex" - -if( keepChar ){ - keepChar=FALSE; - { -#line 10678 "./tex4ht-c.tex" - - int gif_flag, chr, r_ch; - BOOL ch_str_flag; -r_ch = ch - font_tbl[cur_fnt].char_f; -gif_flag = font_tbl[cur_fnt].gif1[r_ch]; -ch_str_flag = get_bit( font_tbl[cur_fnt].ch_str, r_ch); -chr = ((r_ch == 255) && font_tbl[cur_fnt].ch255 )? 256 : - *(font_tbl[cur_fnt].ch + r_ch); -if( (gif_flag % 2) || ch_str_flag ){ design_ch = ch; - { -#line 10701 "./tex4ht-c.tex" - - U_CHAR str[256], *p; - BOOL sv; - int mag; -sv = special_on; special_on = TRUE; -if( gif_ch && (gif_flag % 2) ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - if( !gif_open[gif_flag] ){ - -#line 10778 "./tex4ht-c.tex" - -(IGNORED) sprintf(str, - "configuration for htf class %d (char %d of %s.htf)", - gif_flag, ch,font_tbl[cur_fnt].name - ); -warn_i_str(50,str); - - -#line 10786 "./tex4ht-c.tex" - -gif_open[gif_flag] = m_alloc(char, - -#line 10811 "./tex4ht-c.tex" - -29 - -); -(IGNORED) strcpy((char *) gif_open[gif_flag], - -#line 10807 "./tex4ht-c.tex" - -"<img src=\"+\" alt=\"+++++\" />+" - -); -gif_alt[gif_flag] = gif_open[gif_flag]+11; - *(gif_alt[gif_flag] - 1) = '\0'; -gif_class[gif_flag] = gif_open[gif_flag]+19; - *(gif_class[gif_flag] - 1) = '\0'; -gif_size[gif_flag] = gif_open[gif_flag]+20; - *(gif_size[gif_flag] - 1) = '\0'; -gif_mag[gif_flag] = gif_open[gif_flag]+21; - *(gif_mag[gif_flag] - 1) = '\0'; -gif_ord[gif_flag] = gif_open[gif_flag]+22; - *(gif_ord[gif_flag] - 1) = '\0'; -gif_end[gif_flag] = gif_open[gif_flag]+23; - *(gif_end[gif_flag] - 1) = '\0'; -gif_id[gif_flag] = gif_open[gif_flag]+28; - *(gif_id[gif_flag] - 1) = '\0'; - - - } else if( !get_bit( class_on, gif_flag ) ) { - notify_class_info(gif_flag); - store_bit_I( class_on, gif_flag ); - } - -#line 11467 "./tex4ht-c.tex" - -p= gif_open[gif_flag]; -if( p ) -if( *p ){ - print_f(p); (IGNORED) strcpy((char *) str, (char *) font_tbl[cur_fnt].name); - mag = (int) ((double) font_tbl[cur_fnt].scale / - font_tbl[cur_fnt].design_sz * 10 ); - -#line 10893 "./tex4ht-c.tex" - -if( !dos_file_names ){ - print_f(font_tbl[cur_fnt].name); - if( mag == 10 ) (IGNORED) sprintf(str, GIF_I, design_ch, gif); - else (IGNORED) sprintf(str, GIF_II, mag, design_ch, gif); -} - - -#line 10914 "./tex4ht-c.tex" - - -if( dos_file_names ){ - dos_gif_file(str, mag, design_ch); - print_f(str); - (IGNORED) sprintf(str, GIF_VII, gif); -} - - - - print_f(str); - add_bit( font_tbl[cur_fnt].gif_on, r_ch, 1 ); -} - - - -#line 11500 "./tex4ht-c.tex" - -p = gif_alt[gif_flag]; -if( p ) - if( *p ){ - print_f(p); put_alt_ch(chr,ch_str_flag); -} - - - -#line 11514 "./tex4ht-c.tex" - -p = gif_class[gif_flag]; -if( p ) - if( *p ){ - (IGNORED) fprintf(cur_o_file, p, - font_tbl[cur_fnt].family_name); } - - - -#line 11538 "./tex4ht-c.tex" - -p = gif_size[gif_flag]; -if( p ) - if( *p ){ - (IGNORED) fprintf(cur_o_file, p, - font_tbl[cur_fnt].font_size); } - - - -#line 11555 "./tex4ht-c.tex" - -p = gif_mag[gif_flag]; -if( p ) - if( *p && (font_tbl[cur_fnt].mag != 100) ){ - (IGNORED) fprintf(cur_o_file, p, font_tbl[cur_fnt].mag); -} - - - -#line 11570 "./tex4ht-c.tex" - -p = gif_ord[gif_flag]; -if( p ) - if( *p ){ - (IGNORED) fprintf(cur_o_file, p, ch); -} - - - -#line 11587 "./tex4ht-c.tex" - -p = gif_end[gif_flag]; -if( p ) - if( *p ){ print_f( p ); } - - -} else { -#line 10830 "./tex4ht-c.tex" - -if( !gif_flag || (gif_flag % 2) || ch_map_flag ) { - put_alt_ch(chr,ch_str_flag); } -else{ -#line 11723 "./tex4ht-c.tex" - - -#line 11739 "./tex4ht-c.tex" - -if( gif_flag && !get_bit( class_on, gif_flag ) ) { - notify_class_info(gif_flag); - store_bit_I( class_on, gif_flag ); -} - - -if( span_on ){ - -#line 11749 "./tex4ht-c.tex" - -if( span_open[gif_flag] ) - if( *span_open[gif_flag] ){ - print_f( span_open[gif_flag] ); -} - - - -#line 11773 "./tex4ht-c.tex" - -if( span_name[gif_flag] ) - if( *span_name[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_name[gif_flag], - font_tbl[cur_fnt].family_name); -} - - - -#line 11783 "./tex4ht-c.tex" - -if( span_size[gif_flag] ) - if( *span_size[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_size[gif_flag], - font_tbl[cur_fnt].font_size); -} - - - -#line 11792 "./tex4ht-c.tex" - -if( span_mag[gif_flag] ) - if( *span_mag[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_mag[gif_flag], - font_tbl[cur_fnt].mag); -} - - - -#line 11801 "./tex4ht-c.tex" - -if( span_ord[gif_flag] ) - if( *span_ord[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_ord[gif_flag], chr); -} - - - -#line 11765 "./tex4ht-c.tex" - -if( span_ch[gif_flag] ) - if( *span_ch[gif_flag] ){ - print_f( span_ch[gif_flag] ); -} - - -} -put_alt_ch(chr,ch_str_flag); -if( span_on ){ - -#line 11756 "./tex4ht-c.tex" - -if( end_span[gif_flag] ) - if( *end_span[gif_flag] ){ - print_f( end_span[gif_flag] ); -} - - -} - - } - - } -special_on = sv; - - } design_ch = 0; } -else { -#line 10821 "./tex4ht-c.tex" - -if( !gif_flag || (gif_flag % 2) || ch_map_flag ) { put_char(chr); -} else{ -#line 11704 "./tex4ht-c.tex" - - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - -#line 11739 "./tex4ht-c.tex" - -if( gif_flag && !get_bit( class_on, gif_flag ) ) { - notify_class_info(gif_flag); - store_bit_I( class_on, gif_flag ); -} - - -if( span_on ){ - -#line 11749 "./tex4ht-c.tex" - -if( span_open[gif_flag] ) - if( *span_open[gif_flag] ){ - print_f( span_open[gif_flag] ); -} - - - -#line 11773 "./tex4ht-c.tex" - -if( span_name[gif_flag] ) - if( *span_name[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_name[gif_flag], - font_tbl[cur_fnt].family_name); -} - - - -#line 11783 "./tex4ht-c.tex" - -if( span_size[gif_flag] ) - if( *span_size[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_size[gif_flag], - font_tbl[cur_fnt].font_size); -} - - - -#line 11792 "./tex4ht-c.tex" - -if( span_mag[gif_flag] ) - if( *span_mag[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_mag[gif_flag], - font_tbl[cur_fnt].mag); -} - - - -#line 11801 "./tex4ht-c.tex" - -if( span_ord[gif_flag] ) - if( *span_ord[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_ord[gif_flag], chr); -} - - - -#line 11765 "./tex4ht-c.tex" - -if( span_ch[gif_flag] ) - if( *span_ch[gif_flag] ){ - print_f( span_ch[gif_flag] ); -} - - -} -put_char(chr); -if( span_on ){ - -#line 11756 "./tex4ht-c.tex" - -if( end_span[gif_flag] ) - if( *end_span[gif_flag] ){ - print_f( end_span[gif_flag] ); -} - - -} - - } - - } - - } -} - - - print_f_4ht(next_str); free((void *) next_str); - next_str = (char *) 0; -} else { - if( verb_ch ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) put_4ht_ch( ch, cur_o_file ); - } else { -#line 10678 "./tex4ht-c.tex" - - int gif_flag, chr, r_ch; - BOOL ch_str_flag; -r_ch = ch - font_tbl[cur_fnt].char_f; -gif_flag = font_tbl[cur_fnt].gif1[r_ch]; -ch_str_flag = get_bit( font_tbl[cur_fnt].ch_str, r_ch); -chr = ((r_ch == 255) && font_tbl[cur_fnt].ch255 )? 256 : - *(font_tbl[cur_fnt].ch + r_ch); -if( (gif_flag % 2) || ch_str_flag ){ design_ch = ch; - { -#line 10701 "./tex4ht-c.tex" - - U_CHAR str[256], *p; - BOOL sv; - int mag; -sv = special_on; special_on = TRUE; -if( gif_ch && (gif_flag % 2) ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - if( !gif_open[gif_flag] ){ - -#line 10778 "./tex4ht-c.tex" - -(IGNORED) sprintf(str, - "configuration for htf class %d (char %d of %s.htf)", - gif_flag, ch,font_tbl[cur_fnt].name - ); -warn_i_str(50,str); - - -#line 10786 "./tex4ht-c.tex" - -gif_open[gif_flag] = m_alloc(char, - -#line 10811 "./tex4ht-c.tex" - -29 - -); -(IGNORED) strcpy((char *) gif_open[gif_flag], - -#line 10807 "./tex4ht-c.tex" - -"<img src=\"+\" alt=\"+++++\" />+" - -); -gif_alt[gif_flag] = gif_open[gif_flag]+11; - *(gif_alt[gif_flag] - 1) = '\0'; -gif_class[gif_flag] = gif_open[gif_flag]+19; - *(gif_class[gif_flag] - 1) = '\0'; -gif_size[gif_flag] = gif_open[gif_flag]+20; - *(gif_size[gif_flag] - 1) = '\0'; -gif_mag[gif_flag] = gif_open[gif_flag]+21; - *(gif_mag[gif_flag] - 1) = '\0'; -gif_ord[gif_flag] = gif_open[gif_flag]+22; - *(gif_ord[gif_flag] - 1) = '\0'; -gif_end[gif_flag] = gif_open[gif_flag]+23; - *(gif_end[gif_flag] - 1) = '\0'; -gif_id[gif_flag] = gif_open[gif_flag]+28; - *(gif_id[gif_flag] - 1) = '\0'; - - - } else if( !get_bit( class_on, gif_flag ) ) { - notify_class_info(gif_flag); - store_bit_I( class_on, gif_flag ); - } - -#line 11467 "./tex4ht-c.tex" - -p= gif_open[gif_flag]; -if( p ) -if( *p ){ - print_f(p); (IGNORED) strcpy((char *) str, (char *) font_tbl[cur_fnt].name); - mag = (int) ((double) font_tbl[cur_fnt].scale / - font_tbl[cur_fnt].design_sz * 10 ); - -#line 10893 "./tex4ht-c.tex" - -if( !dos_file_names ){ - print_f(font_tbl[cur_fnt].name); - if( mag == 10 ) (IGNORED) sprintf(str, GIF_I, design_ch, gif); - else (IGNORED) sprintf(str, GIF_II, mag, design_ch, gif); -} - - -#line 10914 "./tex4ht-c.tex" - - -if( dos_file_names ){ - dos_gif_file(str, mag, design_ch); - print_f(str); - (IGNORED) sprintf(str, GIF_VII, gif); -} - - - - print_f(str); - add_bit( font_tbl[cur_fnt].gif_on, r_ch, 1 ); -} - - - -#line 11500 "./tex4ht-c.tex" - -p = gif_alt[gif_flag]; -if( p ) - if( *p ){ - print_f(p); put_alt_ch(chr,ch_str_flag); -} - - - -#line 11514 "./tex4ht-c.tex" - -p = gif_class[gif_flag]; -if( p ) - if( *p ){ - (IGNORED) fprintf(cur_o_file, p, - font_tbl[cur_fnt].family_name); } - - - -#line 11538 "./tex4ht-c.tex" - -p = gif_size[gif_flag]; -if( p ) - if( *p ){ - (IGNORED) fprintf(cur_o_file, p, - font_tbl[cur_fnt].font_size); } - - - -#line 11555 "./tex4ht-c.tex" - -p = gif_mag[gif_flag]; -if( p ) - if( *p && (font_tbl[cur_fnt].mag != 100) ){ - (IGNORED) fprintf(cur_o_file, p, font_tbl[cur_fnt].mag); -} - - - -#line 11570 "./tex4ht-c.tex" - -p = gif_ord[gif_flag]; -if( p ) - if( *p ){ - (IGNORED) fprintf(cur_o_file, p, ch); -} - - - -#line 11587 "./tex4ht-c.tex" - -p = gif_end[gif_flag]; -if( p ) - if( *p ){ print_f( p ); } - - -} else { -#line 10830 "./tex4ht-c.tex" - -if( !gif_flag || (gif_flag % 2) || ch_map_flag ) { - put_alt_ch(chr,ch_str_flag); } -else{ -#line 11723 "./tex4ht-c.tex" - - -#line 11739 "./tex4ht-c.tex" - -if( gif_flag && !get_bit( class_on, gif_flag ) ) { - notify_class_info(gif_flag); - store_bit_I( class_on, gif_flag ); -} - - -if( span_on ){ - -#line 11749 "./tex4ht-c.tex" - -if( span_open[gif_flag] ) - if( *span_open[gif_flag] ){ - print_f( span_open[gif_flag] ); -} - - - -#line 11773 "./tex4ht-c.tex" - -if( span_name[gif_flag] ) - if( *span_name[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_name[gif_flag], - font_tbl[cur_fnt].family_name); -} - - - -#line 11783 "./tex4ht-c.tex" - -if( span_size[gif_flag] ) - if( *span_size[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_size[gif_flag], - font_tbl[cur_fnt].font_size); -} - - - -#line 11792 "./tex4ht-c.tex" - -if( span_mag[gif_flag] ) - if( *span_mag[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_mag[gif_flag], - font_tbl[cur_fnt].mag); -} - - - -#line 11801 "./tex4ht-c.tex" - -if( span_ord[gif_flag] ) - if( *span_ord[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_ord[gif_flag], chr); -} - - - -#line 11765 "./tex4ht-c.tex" - -if( span_ch[gif_flag] ) - if( *span_ch[gif_flag] ){ - print_f( span_ch[gif_flag] ); -} - - -} -put_alt_ch(chr,ch_str_flag); -if( span_on ){ - -#line 11756 "./tex4ht-c.tex" - -if( end_span[gif_flag] ) - if( *end_span[gif_flag] ){ - print_f( end_span[gif_flag] ); -} - - -} - - } - - } -special_on = sv; - - } design_ch = 0; } -else { -#line 10821 "./tex4ht-c.tex" - -if( !gif_flag || (gif_flag % 2) || ch_map_flag ) { put_char(chr); -} else{ -#line 11704 "./tex4ht-c.tex" - - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - -#line 11739 "./tex4ht-c.tex" - -if( gif_flag && !get_bit( class_on, gif_flag ) ) { - notify_class_info(gif_flag); - store_bit_I( class_on, gif_flag ); -} - - -if( span_on ){ - -#line 11749 "./tex4ht-c.tex" - -if( span_open[gif_flag] ) - if( *span_open[gif_flag] ){ - print_f( span_open[gif_flag] ); -} - - - -#line 11773 "./tex4ht-c.tex" - -if( span_name[gif_flag] ) - if( *span_name[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_name[gif_flag], - font_tbl[cur_fnt].family_name); -} - - - -#line 11783 "./tex4ht-c.tex" - -if( span_size[gif_flag] ) - if( *span_size[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_size[gif_flag], - font_tbl[cur_fnt].font_size); -} - - - -#line 11792 "./tex4ht-c.tex" - -if( span_mag[gif_flag] ) - if( *span_mag[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_mag[gif_flag], - font_tbl[cur_fnt].mag); -} - - - -#line 11801 "./tex4ht-c.tex" - -if( span_ord[gif_flag] ) - if( *span_ord[gif_flag] ){ - (IGNORED) fprintf(cur_o_file, span_ord[gif_flag], chr); -} - - - -#line 11765 "./tex4ht-c.tex" - -if( span_ch[gif_flag] ) - if( *span_ch[gif_flag] ){ - print_f( span_ch[gif_flag] ); -} - - -} -put_char(chr); -if( span_on ){ - -#line 11756 "./tex4ht-c.tex" - -if( end_span[gif_flag] ) - if( *end_span[gif_flag] ){ - print_f( end_span[gif_flag] ); -} - - -} - - } - - } - - } -} - -#line 12405 "./tex4ht-c.tex" - -if( a_accent_template && needs_accented_sym ){ - (IGNORED) fprintf(cur_o_file, "%s", a_accent_fifth); -} - - - -#line 8213 "./tex4ht-c.tex" - -if( pos_dvi ){ - print_f(end_pos_text); -} - - -#line 12947 "./tex4ht-c.tex" - -if( show_class && !pause_class && !ignore_subclass_del ){ - if( !stack[stack_n].no_left_del && stack[stack_n+1].active_class_del ){ - if( !stack[stack_n+1].ignore_subclass_del ){ - -#line 12962 "./tex4ht-c.tex" - -(IGNORED) print_f( close_class[math_class]); - - - } - -#line 12975 "./tex4ht-c.tex" - -(IGNORED) print_f( (stack[stack_n+1].temp_class_del)? - stack[stack_n+1].temp_class_close - : stack[stack_n+1].class_close); - - - stack[stack_n+1].active_class_del = FALSE; - } else { - -#line 12962 "./tex4ht-c.tex" - -(IGNORED) print_f( close_class[math_class]); - - - stack[stack_n+1].active_class_del = FALSE; - } -} - - - -#line 2913 "./tex4ht-c.tex" - -if( trace_dvi_C && !ch_map_flag ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, "%s%s", - trace_dvi_del_c, end_trace_dvi_del_c); -} - - -#line 2619 "./tex4ht-c.tex" - - - - - -#line 12307 "./tex4ht-c.tex" - - -#line 12281 "./tex4ht-c.tex" - -if( needs_end_accent && t_accent_template ){ - -#line 2609 "./tex4ht-c.tex" - -if( span_on && in_span_ch ){ - if( *end_span[0] ){ - in_span_ch = FALSE; - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, "%s", end_span[0]); -} } - - - (IGNORED) fprintf(cur_o_file, "%s", t_accent_fifth); - needs_end_accent = FALSE; -#line 12424 "./tex4ht-c.tex" - -needs_accented_sym--; - - -} - - - - - - - text_on = TRUE; - } } - -#line 9800 "./tex4ht-c.tex" - -return (INTEGER)( - -#line 9837 "./tex4ht-c.tex" - -design_size_to_pt( *(font_tbl[cur_fnt].wtbl - + (int) ( -#line 9845 "./tex4ht-c.tex" - -*(font_tbl[cur_fnt].char_wi + (int) - ( ch - font_tbl[cur_fnt].char_f)% 256) - -) ) - ) -* (double) font_tbl[cur_fnt].scale - - - ); - - -} - - -#line 16615 "./tex4ht-c.tex" - - -static void put_char -#ifdef ANSI -#define SEP , -( int ch -) -#undef SEP -#else -#define SEP ; -( ch ) int ch -; -#undef SEP -#endif -{ - if( !ignore_chs - && !( ((ch==' ') || (ch=='\n')) && no_root_file ) - ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - if( ch_map_flag ){ - if( special_on || ((ch != '\n') && (ch != ' ')) ){ - -#line 4990 "./tex4ht-c.tex" - -insert_ch_map((char) ch, TRUE); - - } - }else { - if ( ch == '\n' ){ -#line 3409 "./tex4ht-c.tex" - -if( eoln_str ){ print_f(eoln_str); } -else { (IGNORED) put_4ht_ch( ch, cur_o_file ); } -recover_spaces = 0; - - } - else if ( ch == ' ' ){ -#line 3431 "./tex4ht-c.tex" - -if( space_str ){ print_f(space_str); } -else { (IGNORED) put_4ht_ch( ch, cur_o_file ); } - - } - else { (IGNORED) put_4ht_ch( ch, cur_o_file ); } -} } } - - -#line 16648 "./tex4ht-c.tex" - - -static void print_f -#ifdef ANSI -#define SEP , -( const char* str -) -#undef SEP -#else -#define SEP ; -(str) const char* str -; -#undef SEP -#endif -{ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - if( ch_map_flag ){ - while( *str ){ put_char( *str ); str++; } - }else { - (IGNORED) print_f_4ht( str ); -} } - - -#line 16668 "./tex4ht-c.tex" - - -static void print_f_4ht -#ifdef ANSI -#define SEP , -( const char* str -) -#undef SEP -#else -#define SEP ; -(str) const char* str -; -#undef SEP -#endif -{ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - if( ch_map_flag ){ - while( *str ){ put_char( *str ); str++; } - } else { - while( *str ){ - (IGNORED) put_4ht_ch( *str, cur_o_file ); - str++; -} } } - - -#line 16693 "./tex4ht-c.tex" - -static int get_char(MYVOID) -{ - return (int) getc(dvi_file); -} - - -#line 16705 "./tex4ht-c.tex" - -static int get_noop(MYVOID) -{ int ch; - while( (ch = get_char()) == -#line 17317 "./tex4ht-c.tex" - -138 - ){;} - return ch; -} - - -#line 16721 "./tex4ht-c.tex" - - -static char* get_str -#ifdef ANSI -#define SEP , -( int n -) -#undef SEP -#else -#define SEP ; -(n) int n -; -#undef SEP -#endif -{ U_CHAR *q, *p; - p = q = m_alloc(char,n+1); - while( n-- ) *q++ = get_char(); - *q = '\0'; - return p; -} - - -#line 16745 "./tex4ht-c.tex" - - -static long fget_unt -#ifdef ANSI -#define SEP , -( - FILE* file SEP - register int n - -) -#undef SEP -#else -#define SEP ; -( file, n ) - FILE* file SEP - register int n - -; -#undef SEP -#endif -{ register long val = 0; - while( n-- ){ val = (val << 8) + (unsigned INTEGER) getc(file) ; } - return val; -} - - -#line 16769 "./tex4ht-c.tex" - - -static long fget_int -#ifdef ANSI -#define SEP , -( - FILE *file SEP - int n - -) -#undef SEP -#else -#define SEP ; -( file, n ) - FILE *file SEP - int n - -; -#undef SEP -#endif -{ register long val; - val = (unsigned INTEGER) getc(file); - if( val & 0x80 ) val -= 0x100; - while( --n ){ val = (val << 8) + (unsigned INTEGER) getc(file); } - return val; -} - - -#line 16805 "./tex4ht-c.tex" - - -static long cond_int -#ifdef ANSI -#define SEP , -( - register INTEGER n -) -#undef SEP -#else -#define SEP ; -( n ) - register INTEGER n -; -#undef SEP -#endif -{ register long val; - int ch; - val = (unsigned int) (ch = get_char()); - cond_idv_char( ch ); - if( val & 0x80 ) val -= 0x100; - while( --n ){ - val = (val << 8) + (unsigned int) (ch = get_char()); - cond_idv_char( ch ); - } - return val; -} - - -#line 16912 "./tex4ht-c.tex" - - -static void warn_i -#ifdef ANSI -#define SEP , -( int n -) -#undef SEP -#else -#define SEP ; -(n) int n -; -#undef SEP -#endif -{ (IGNORED) fprintf(stderr,"--- warning --- "); - (IGNORED) fprintf(stderr, "%s", warn_err_mssg[n]); - show_err_context(); -} - - -#line 16936 "./tex4ht-c.tex" - - -static void warn_i_int -#ifdef ANSI -#define SEP , -( int n SEP int i - -) -#undef SEP -#else -#define SEP ; -(n,i) int n SEP int i - -; -#undef SEP -#endif -{ (IGNORED) fprintf(stderr,"--- warning --- "); - (IGNORED) fprintf(stderr, warn_err_mssg[n], i); - show_err_context(); -} - - -#line 16952 "./tex4ht-c.tex" - - -static void warn_i_int_2 -#ifdef ANSI -#define SEP , -( int n SEP int i SEP int j - -) -#undef SEP -#else -#define SEP ; -(n,i,j) int n SEP int i SEP int j - -; -#undef SEP -#endif -{ (IGNORED) fprintf(stderr,"--- warning --- "); - (IGNORED) fprintf(stderr, warn_err_mssg[n], i, j); - show_err_context(); -} - - -#line 16968 "./tex4ht-c.tex" - - -static void warn_i_str -#ifdef ANSI -#define SEP , -( - int n SEP - const char *str - -) -#undef SEP -#else -#define SEP ; -(n,str) - int n SEP - const char *str - -; -#undef SEP -#endif -{ - (IGNORED) fprintf(stderr,"--- warning --- "); - (IGNORED) fprintf(stderr,warn_err_mssg[n], str); - show_err_context(); -} - - -#line 16988 "./tex4ht-c.tex" - - -static void warn_i_str2 -#ifdef ANSI -#define SEP , -( - int n SEP - const char *str1 SEP - const char *str2 - -) -#undef SEP -#else -#define SEP ; -(n,str1,str2) - int n SEP - const char *str1 SEP - const char *str2 - -; -#undef SEP -#endif -{ (IGNORED) fprintf(stderr,"--- warning --- "); - (IGNORED) fprintf(stderr,warn_err_mssg[n], str1,str2); - show_err_context(); -} - - -#line 17022 "./tex4ht-c.tex" - - -static void err_i -#ifdef ANSI -#define SEP , -( int n - -) -#undef SEP -#else -#define SEP ; -(n) int n - -; -#undef SEP -#endif -{ (IGNORED) fprintf(stderr,"--- error --- "); - (IGNORED) fprintf(stderr, "%s", warn_err_mssg[n]); - show_err_context(); - exit(EXIT_FAILURE); -} - - -#line 17039 "./tex4ht-c.tex" - - -static void err_i_int -#ifdef ANSI -#define SEP , -( int n SEP int i - -) -#undef SEP -#else -#define SEP ; -(n,i) int n SEP int i - -; -#undef SEP -#endif -{ (IGNORED) fprintf(stderr,"--- error --- "); - (IGNORED) fprintf(stderr, warn_err_mssg[n], i); - show_err_context(); - exit(EXIT_FAILURE); -} - - -#line 17055 "./tex4ht-c.tex" - - -static void err_i_str -#ifdef ANSI -#define SEP , -( - int n SEP - U_CHAR *str - -) -#undef SEP -#else -#define SEP ; -(n,str) - int n SEP - U_CHAR *str - -; -#undef SEP -#endif -{ (IGNORED) fprintf(stderr,"--- error --- "); - (IGNORED) fprintf(stderr, warn_err_mssg[n], str); - show_err_context(); - exit(EXIT_FAILURE); -} - - -#line 17102 "./tex4ht-c.tex" - -static void show_err_context(MYVOID) -{ long curr_pos; - int n, i; - U_CHAR ch; - if( err_context ){ - curr_pos = ftell(dvi_file); - for(n=6; n--;){ - (IGNORED) putc( '\n', stderr ); - for(i=70; i--;){ - ch = get_char(); - (IGNORED) putc(( (ch>31) && (ch<127))? ch : ' ', stderr); - } - } - (IGNORED) fseek(dvi_file, curr_pos, -#line 2174 "./tex4ht-c.tex" - -0 -); - (IGNORED) putc( '\n', stderr ); (IGNORED) putc( '\n', stderr ); - if( err_mark ){ print_f( err_mark ); } -} } - - - -int -#line 507 "./tex4ht-c.tex" - -#ifdef CDECL -CDECL -#endif - - main -#ifdef ANSI -#define SEP , -( - int argc SEP - U_CHAR **argv -) -#undef SEP -#else -#define SEP ; -(argc, argv) - int argc SEP - U_CHAR **argv -; -#undef SEP -#endif -{ -#line 1385 "./tex4ht-c.tex" - -register INTEGER i; -int ch; - - -#line 2208 "./tex4ht-c.tex" - -int unread_pages; - - -#line 5400 "./tex4ht-c.tex" - -long int eof_op_n, begin_postamble; -int dis_pages; - - -#line 6604 "./tex4ht-c.tex" - -int stack_id=0; - - -#line 11858 "./tex4ht-c.tex" - -static struct css_ext_rec * css_ext = (struct css_ext_rec *) 0; -static char css_default[] = "4cs"; - - -#line 12259 "./tex4ht-c.tex" - -BOOL in_accenting; - - -#line 13034 "./tex4ht-c.tex" - -char* tex4ht_env_file = (char *) 0; -char* dos_env_file = -#if defined(__MSDOS__) - -#line 13221 "./tex4ht-c.tex" - -get_env_dir(argv[0]) - -; -#endif -#if !defined(__MSDOS__) - (char *) 0; -#endif - - - -#line 13859 "./tex4ht-c.tex" - -struct htf_com_rec* htf_font_dir = (struct htf_com_rec *) 0; - - - -#line 1064 "./tex4ht-c.tex" - -#ifdef WIN32 - /* The idea here is to split options apart at spaces: a single argument - "-foo -bar" becomes the two options "-foo" and "-bar". We need to - do this for Windows because mk4ht passes this sort of combined - option in one string to scripts like htlatex.{unix,bat}. In the - Unix case, the shell resplits words when calling t4ht and tex4ht, - so the program see two options. But this does not happen with the - .bat; %4, for instance, remains "-foo -bar". So we fix it here. */ - if (argc > 2) { - int i, nargc; - char **nargv, **pnargv, **pargv; - - nargv = (char **) xmalloc (2 * argc * sizeof (char *)); - pnargv = nargv; - pargv = argv; - *pnargv++ = xstrdup (*pargv++); - *pnargv++ = xstrdup (*pargv++); - nargc = 2; - - for (i=2; i < argc; i++) { - char *p, *q, *r; - p = q = *pargv++; - while (*p == ' ' || *p == '\t') { - p++; - q++; - } - while (*p != ' ' && *p != '\t' && *p) { - p++; - if (*p == '\0') { - *pnargv++ = xstrdup(q); - nargc++; - } else if (*p == ' ' || *p == '\t') { - r = p; - while (*p == ' ' || *p == '\t') - p++; - if (*p == '-' || *p == '\0') { - *r = '\0'; - *pnargv++ = xstrdup(q); - nargc++; - q = p; - } - } - } - } - - nargv[nargc] = NULL; - argv = nargv; - argc = nargc; - } -#endif - - - -#line 1159 "./tex4ht-c.tex" - - -#ifdef SIGSEGV - (void) signal(SIGSEGV,sig_err); -#endif - (void) signal(SIGFPE,sig_err); -#ifdef WIN32 - -#line 577 "./tex4ht-c.tex" - -SetConsoleCtrlHandler((PHANDLER_ROUTINE)sigint_handler, TRUE); - - -#else -#ifdef SIGINT - (void) signal(SIGINT,sig_err); -#endif -#endif - - - -#line 1336 "./tex4ht-c.tex" - -(IGNORED) printf("----------------------------\n"); -#ifndef KPATHSEA -#ifdef PLATFORM - (IGNORED) printf("tex4ht.c (2018-07-03-10:36 %s)\n",PLATFORM); -#else - (IGNORED) printf("tex4ht.c (2018-07-03-10:36)\n"); -#endif -#else -#ifdef PLATFORM - (IGNORED) printf("tex4ht.c (2018-07-03-10:36 %s kpathsea)\n",PLATFORM); -#else - (IGNORED) printf("tex4ht.c (2018-07-03-10:36 kpathsea)\n"); -#endif -#endif -for(i=0; i<argc; i++){ - (IGNORED) printf("%s%s ", (i>1)?"\n " : "", argv[i]); } -(IGNORED) printf("\n"); - - - -#line 2781 "./tex4ht-c.tex" - -set_del( &trace_dvi_del_P, &end_trace_dvi_del_P); -set_del( &trace_dvi_del_p, &end_trace_dvi_del_p); -set_del( &trace_dvi_del_C, &end_trace_dvi_del_C); -set_del( &trace_dvi_del_c, &end_trace_dvi_del_c); -set_del( &trace_dvi_del_H, &end_trace_dvi_del_H); -set_del( &trace_dvi_del_h, &end_trace_dvi_del_h); -set_del( &trace_dvi_del_R, &end_trace_dvi_del_R); -set_del( &trace_dvi_del_r, &end_trace_dvi_del_r); -set_del( &trace_dvi_del_V, &end_trace_dvi_del_V); -set_del( &trace_dvi_del_v, &end_trace_dvi_del_v); - - - -#line 1576 "./tex4ht-c.tex" - -dvi_file = stdin; - - -#line 4682 "./tex4ht-c.tex" - -{ U_CHAR *yes = NULL; - system_yes = (system( yes ) != 0); -} - - -#line 6300 "./tex4ht-c.tex" - -{ int i; - for( i=8; i--; ){ - halign[i] = m_alloc(struct halign_rec, 1); - halign[i]->str = m_alloc(char, 1); - *(halign[i]->str) = '\0'; - halign[i]->refs = 1; - } -} - - -#line 7439 "./tex4ht-c.tex" - -del_stack = (struct del_stack_entry *) 0; - - -#line 7464 "./tex4ht-c.tex" - -back_id_off = 1; id_latex = 0; - - -#line 7543 "./tex4ht-c.tex" - -back_token = back_group = m_alloc(struct send_back_entry,1); -back_token->id = -1; - - -#line 8460 "./tex4ht-c.tex" - -pos_text = pos_line = end_pos_body = end_pos_text = pos_body = - m_alloc(char, (int) 1); -(IGNORED) strcpy((char *) pos_text, "" ); - - -#line 9748 "./tex4ht-c.tex" - -margin_sp = (double) MARGINSP; - - -#line 11662 "./tex4ht-c.tex" - -{ int i; i=256; while( i-- ) { - span_name[i] = span_open[i] = span_size[i] = - span_mag[i] = span_ch[i] = end_span[i] = - span_ord[i] = gif_id[i] = NULL; - if( (i>0) && !(i%2) ) { store_bit_Z( class_on, i ); } - else { store_bit_I( class_on, i ); } - } -} - - -#line 12263 "./tex4ht-c.tex" - -in_accenting = FALSE; - - -#line 12753 "./tex4ht-c.tex" - -for( math_class=0; math_class< -#line 12719 "./tex4ht-c.tex" - -79 - -; math_class++ ){ - open_class[math_class] = m_alloc(char, 1); - close_class[math_class] = m_alloc(char, 1); - *(open_class[math_class]) = *(close_class[math_class]) = '\0'; -} - - -#line 14207 "./tex4ht-c.tex" - -HOME_DIR = getenv("HOME"); - - - -#line 1360 "./tex4ht-c.tex" - -{ long file_len; - -#line 1443 "./tex4ht-c.tex" - -{ int i; - U_CHAR *p; - const U_CHAR *in_name = "", *out_name = ""; - -#line 14878 "./tex4ht-c.tex" - - -#ifdef KPATHSEA - kpse_set_program_name (argv[0], "tex4ht"); -#endif - - - -#line 642 "./tex4ht-c.tex" - -#if !defined(DOS_GIF_FILE) && !defined(WIN32) && defined(__DJGPP__) - dos_file_names = !_use_lfn(NULL); -#endif - - - if( argc == 1 ){ bad_arg; } - for(i=1; i<argc; i++) { - if( *( p=argv[i] ) == '-' ){ -#line 1468 "./tex4ht-c.tex" - -if( (int) strlen((char *) argv[i] ) == 2 ){ - if( ++i == argc ) bad_arg; -} -switch( *(p+1) ){ - case 'b':{ -#line 11115 "./tex4ht-c.tex" - -begin_char_gif = p+2; - - break; } - case 'c':{ -#line 13427 "./tex4ht-c.tex" - -struct env_c_rec *temp = (struct env_c_rec*) - m_alloc(struct env_c_rec, (int) 1); -temp->option = p+2; -temp->next = envChoice; -envChoice = temp; - - break;} - case 'e':{ -#line 13025 "./tex4ht-c.tex" - -tex4ht_env_file = p+2; - -break; } - case 'f':{ -#line 1503 "./tex4ht-c.tex" - -p = p + 2; -in_name = p + (int) strlen((char *) p ); -while( *in_name != *p ){ in_name--; } -in_name++; - -break; } - case 'F':{ -#line 9963 "./tex4ht-c.tex" - -char *digit = p+2; -ignore_ch = 0; -while( *digit != '\0' ){ - if( (*digit < '0') || (*digit > '9') ){ - ignore_ch = 0; break; - } - ignore_ch = 10 * ignore_ch + (*digit - '0'); - if( ignore_ch > 255 ){ ignore_ch = 0; break; } - digit++; -} - - break; } - case 'g':{ -#line 11143 "./tex4ht-c.tex" - -gif = p+2; - - break; } - case 'h':{ -#line 1513 "./tex4ht-c.tex" - -{ - char trace = *(p+2); - if (trace == 'A' || trace == 'e') { -#line 17136 "./tex4ht-c.tex" - -err_context = TRUE; - - } - if (trace == 'A' || trace == 'f') { -#line 10491 "./tex4ht-c.tex" - -dump_htf_files = 1; - - } - if (trace == 'A' || trace == 'F') { -#line 15066 "./tex4ht-c.tex" - -dump_htf_search = TRUE; - - } - if (trace == 'A' || trace == 's') { -#line 17165 "./tex4ht-c.tex" - -trace_special = TRUE; - - } - if (trace == 'A' || trace == 'g') { -#line 2753 "./tex4ht-c.tex" - -trace_dvi_P++; -if( !( *trace_dvi_del_P || *end_trace_dvi_del_P - || *trace_dvi_del_p || *end_trace_dvi_del_p - ) - ){ - trace_dvi_del_P = - (char *) r_alloc((void *) trace_dvi_del_P, - (size_t) 4); - (IGNORED) strcpy((char *) trace_dvi_del_P, "[G " ); - end_trace_dvi_del_P = - (char *) r_alloc((void *) end_trace_dvi_del_P, - (size_t) 2); - (IGNORED) strcpy((char *) end_trace_dvi_del_P, "]" ); - trace_dvi_del_p = - (char *) r_alloc((void *) trace_dvi_del_p, - (size_t) 5); - (IGNORED) strcpy((char *) trace_dvi_del_p, "[/G " ); - end_trace_dvi_del_p = - (char *) r_alloc((void *) end_trace_dvi_del_p, - (size_t) 2); - (IGNORED) strcpy((char *) end_trace_dvi_del_p, "]" ); -} - - } - if (trace == 'A' || trace == 'v') { -#line 10495 "./tex4ht-c.tex" - -dump_env_files = TRUE; - - } - if (trace == 'A' || trace == 'V') { -#line 13062 "./tex4ht-c.tex" - -dump_env_search = TRUE; - - } - else { bad_arg; } -} - - break; } - case 'i':{ -#line 13863 "./tex4ht-c.tex" - - com_dir(p); - { - struct htf_com_rec *q, *t; - q = m_alloc( struct htf_com_rec, 1); - q->name = p+2; - q->next = (struct htf_com_rec *) 0; - if( htf_font_dir ){ - t = htf_font_dir; - while( t->next ){ t = t->next; } - t->next = q; - } else { - htf_font_dir = q; - } -} - - break; } - case 'l':{ -#line 14214 "./tex4ht-c.tex" - -#ifndef KPATHSEA -tex4ht_fls_name = p+2; -#endif - - break; } - case 'P':{ -#line 4644 "./tex4ht-c.tex" - -{ struct sys_call_rec *q; - q = m_alloc(struct sys_call_rec, 1); - q->next = system_calls; - q->filter = p + 2; - system_calls = q; -} - - break; } - case 'S':{ -#line 11077 "./tex4ht-c.tex" - -font_gif = p+2; - - break; } - case 's':{ -#line 11842 "./tex4ht-c.tex" - -struct css_ext_rec * css = m_alloc(struct css_ext_rec, 1);; -css->name = p + 2; -css->next = css_ext; -css_ext = css; - - break; } - case 't':{ -#line 13481 "./tex4ht-c.tex" - -com_dir(p); fontdir[fontdir_count++] = p+2; - - break; } - case 'u':{ -#line 16219 "./tex4ht-c.tex" - -if( eq_str(p+2, "10") ){ u10 = TRUE; } - -#line 16362 "./tex4ht-c.tex" - -else if( eq_str(p+2, "tf8") ){ utf8 = TRUE; } - - -else{ bad_arg;} - - break; } - case 'v':{ -#line 5469 "./tex4ht-c.tex" - -{ U_CHAR *q; - q = p + 2; - id_version = 0; - while( *q != '\0' ){ - if( id_version != -1 ){ - if( (*q < '0') || (*q > '9') ){ - id_version = -1; - warn_i(53); - } - id_version = id_version * 10 + *q - '0'; - } - q++; -} } - - break; } - case 'x':{ -#line 649 "./tex4ht-c.tex" - -switch( *(p+2) ){ - case 's':{ dos_file_names = TRUE; break; } - default:{ bad_arg; } -} - - break; } - case '.':{ -#line 1634 "./tex4ht-c.tex" - -ext = p+1; - - break; } - default:{ bad_arg; } -} - - } - else in_name = argv[i]; - } - -#line 11849 "./tex4ht-c.tex" - -if( css_ext == (struct css_ext_rec *) 0 ){ - struct css_ext_rec * css = m_alloc(struct css_ext_rec, 1);; - css->name = css_default; - css->next = css_ext; - css_ext = css; -} - - - -#line 1588 "./tex4ht-c.tex" - -if( *in_name != '\0' ){ -#line 1596 "./tex4ht-c.tex" - - BOOL tag; -job_name_n = (int) strlen( in_name ); -job_name = m_alloc(char, job_name_n+6); -(IGNORED) strcpy((char *) job_name, in_name); -tag = job_name_n < 3; -if( !tag ){ - tag = !eq_str( job_name+job_name_n- -#line 1614 "./tex4ht-c.tex" - -( - (ext==NULL)? 4 : (int) strlen((char *) ext) -) - -, -#line 1620 "./tex4ht-c.tex" - -( - (ext==NULL)? ".dvi" : ext -) - -); -} -if( tag ){ - job_name_n+= -#line 1614 "./tex4ht-c.tex" - -( - (ext==NULL)? 4 : (int) strlen((char *) ext) -) - -; (IGNORED) strct(job_name, -#line 1620 "./tex4ht-c.tex" - -( - (ext==NULL)? ".dvi" : ext -) - -); -} -if( (dvi_file = fopen(job_name, READ_BIN_FLAGS)) == NULL ) - { -#line 1655 "./tex4ht-c.tex" - -{ int i; - for(i=job_name_n-5; i; i--){ - if( job_name[i] == '.' ){ - job_name[i] = '\0'; - job_name_n = i + -#line 1614 "./tex4ht-c.tex" - -( - (ext==NULL)? 4 : (int) strlen((char *) ext) -) - -; - (IGNORED) strct(job_name, -#line 1620 "./tex4ht-c.tex" - -( - (ext==NULL)? ".dvi" : ext -) - -); - break; - } } - if( (dvi_file = fopen(job_name, READ_BIN_FLAGS)) == NULL ){ - warn_i_str(1, job_name); bad_in_file(job_name); -} } - - } - -#line 5390 "./tex4ht-c.tex" - -job_name[job_name_n-1] = 'v'; -job_name[job_name_n-2] = 'd'; -job_name[job_name_n-3] = 'i'; -if( (idv_file = fopen(job_name, WRITE_BIN_FLAGS)) == NULL ) - bad_in_file(job_name); - - - - - } -#ifdef KWIN32 - else if (!isatty(fileno(stdin))) SET_BINARY(fileno(stdin)); -#endif - - - { -#line 1700 "./tex4ht-c.tex" - - U_CHAR *name=0; -if( *out_name == '\0' ) - { if( *in_name == '\0' ){ -#line 1785 "./tex4ht-c.tex" - -bad_arg; - - } - else { -#line 1790 "./tex4ht-c.tex" - -int n = (int) strlen((char *) job_name ); -name = m_alloc(char, 6 + n); -(IGNORED) strcpy((char *) name, (char *) job_name); -n -= 4; *(name + n) = '\0'; -(IGNORED) strct(name,".html"); -#ifdef HTM -name[n+4] ='\0'; -#endif - - } - } -else{ -#line 1808 "./tex4ht-c.tex" - - int tag = 1; - int n = (int) strlen( out_name ); -name = m_alloc(char, 6 + n); -(IGNORED) strcpy((char *) name, out_name); -while( n-- ) tag = tag && (*(name+n) != '.') ; -if( tag ) (IGNORED) strct(name,".html"); -#ifdef HTM -name[n+4] = '\0'; -#endif - - } -no_root_file = name; - - } -} - - - -#line 13066 "./tex4ht-c.tex" - -{ U_CHAR str[PATH_MAX], *TEX4HTENV; - -#line 13084 "./tex4ht-c.tex" - -if( dump_env_search && tex4ht_env_file ){ - (IGNORED) printf("-e: %s?\n", tex4ht_env_file); -} -dot_file = tex4ht_env_file? - f_open_pathed_filename( tex4ht_env_file, READ_TEXT_FLAGS ) : NULL; - - - -#line 13129 "./tex4ht-c.tex" - -if( !dot_file ){ - if( dump_env_search ){ (IGNORED) printf("%s?\n", "tex4ht.env"); } - dot_file = f_open("tex4ht.env", READ_TEXT_FLAGS); -} -#ifndef DOS_WIN32 - if( !dot_file ){ - if( dump_env_search ){ (IGNORED) printf("%s?\n", ".tex4ht"); } - dot_file = f_open(".tex4ht", READ_TEXT_FLAGS); - if( dot_file ){ - printf("(%s)\n", ".tex4ht"); - } } -#endif - - - if( !dot_file ){ - -#line 13158 "./tex4ht-c.tex" - -TEX4HTENV = getenv("TEX4HTENV"); -if( TEX4HTENV ){ - if( dump_env_search ){ - (IGNORED) printf("TEX4HTENV: %s?\n", TEX4HTENV); } - dot_file = f_open_pathed_filename(TEX4HTENV,READ_TEXT_FLAGS); -} else { - if( dump_env_search ){ - (IGNORED) printf("getenv(\"TEX4HTENV\")=\n"); -} } - - - } - -#line 13096 "./tex4ht-c.tex" - -if( !dot_file ){ - if( HOME_DIR ){ - (IGNORED) sprintf(str, -#line 13177 "./tex4ht-c.tex" - -#if defined(__DJGPP__) - is_forward_slash(HOME_DIR)? "%s/tex4ht.env" : "%s\\tex4ht.env" -#else - "%s/tex4ht.env" -#endif - -, HOME_DIR); - if( dump_env_search ){ (IGNORED) printf("%s?\n", str); } - dot_file = f_open(str,READ_TEXT_FLAGS); -} } -#ifndef DOS_WIN32 - if( !dot_file ){ - if( HOME_DIR ){ - (IGNORED) sprintf(str,"%s/.tex4ht", HOME_DIR); - if( dump_env_search ){ (IGNORED) printf("%s?\n", str); } - dot_file = f_open(str,READ_TEXT_FLAGS); - } } -#endif -#if defined(__MSDOS__) - if( !dot_file ){ - if( dump_env_search ){ (IGNORED) printf("%s?\n", "C:/tex4ht.env"); } - dot_file = f_open("C:/tex4ht.env",READ_TEXT_FLAGS); - } -#endif - - - -#line 13145 "./tex4ht-c.tex" - -#ifdef ENVFILE - if( !dot_file ){ - if( dump_env_search ){ (IGNORED) printf("ENVFILE: %s?\n", ENVFILE); } - dot_file = f_open_pathed_filename( ENVFILE,READ_TEXT_FLAGS); - } -#else - if( dump_env_search ){ - (IGNORED) printf("tex4ht compiled without ENVFILE\n"); - } -#endif - - - -#line 13122 "./tex4ht-c.tex" - -if( !dot_file && dos_env_file){ - if( dump_env_search ){ (IGNORED) printf("%s?\n", dos_env_file); } - dot_file = f_open( dos_env_file, READ_TEXT_FLAGS ); -} - - - -#line 14887 "./tex4ht-c.tex" - - -#ifdef KPATHSEA -if( !dot_file ) { U_CHAR * envfile; - char *arch, *p, str[256]; - -#line 14939 "./tex4ht-c.tex" - -p = arch = (char *) kpse_var_value( "SELFAUTOLOC" ); -while( *p != '\0' ){ - if( (*p == '/') || (*p == '\\') ){ - arch = p; - } - p++; -} - - - envfile = (char *) 0; - -#line 14950 "./tex4ht-c.tex" - -if( arch ){ - (IGNORED) sprintf(str,"%s%ctex4ht.env", arch+1, *arch); - if( dump_env_search ){ - (IGNORED) printf("kpse_open_file (\"%s\", ...)?\n", str ); - } - envfile= kpse_find_file (str, kpse_program_text_format, 0); -} - - - if ( !envfile ){ -#line 14961 "./tex4ht-c.tex" - -if( dump_env_search ){ - (IGNORED) printf("kpse_open_file (\"tex4ht.env\", ...)?\n"); -} -envfile= kpse_find_file ("tex4ht.env", kpse_program_text_format, 0); - - } - if ( !envfile ){ -#line 15012 "./tex4ht-c.tex" - -#define KPSEWHICH_CMD "kpsewhich --progname=tex4ht --format=othertext tex4ht.env" -if( dump_env_search ){ - (IGNORED) printf("system(" KPSEWHICH_CMD ")?\n"); /* cpp concatenation */ -} -if( system(KPSEWHICH_CMD ">tex4ht.tmp") == 0 ){ - -#line 15042 "./tex4ht-c.tex" - -char fileaddr [256]; -int loc = 0; -FILE* file = f_open("tex4ht.tmp", READ_TEXT_FLAGS); -if( file ){ - while( (fileaddr[loc] = getc(file)) >=0 ){ - if( fileaddr[loc] == '\n' ){ fileaddr[loc] = '\0'; break; } - loc++; - } - (IGNORED) fclose(file); -} - - - envfile= kpse_find_file (fileaddr, kpse_program_text_format, 0); - if( envfile ){ - warn_i_str( 50, - "search support for kpse_find_file--using kpsewhich calls instead"); -} } - - } - if ( envfile ){ - dot_file = kpse_open_file (envfile, - kpse_program_text_format); - (IGNORED) printf("(%s)\n", envfile); - } else if( dump_env_search ){ - p = (char *) kpse_var_value( "TEX4HTINPUTS" ); - if( p ){ - (IGNORED) printf( "TEX4HTINPUTS = %s\n", p ); - } else { warn_i_str( 50, "kpathsea variable TEX4HTINPUTS"); } - } -} -#endif - - - if( !dot_file ) { bad_in_file( -#line 13187 "./tex4ht-c.tex" - -#ifdef DOS_WIN32 - "tex4ht.env" -#else - "tex4ht.env | .tex4ht" -#endif - -); } /* give up if no tex4ht.env */ -} - - - -#line 4626 "./tex4ht-c.tex" - -(IGNORED) fseek(dot_file, 0L, -#line 2174 "./tex4ht-c.tex" - -0 -); -while ( search_dot_file( 'P' ) ){ struct sys_call_rec *q; - U_CHAR *p, str[256]; - q = m_alloc(struct sys_call_rec, 1); - q->next = system_calls; - system_calls = q; - p = str; - do - *(p++) = ch = (int) getc(dot_file); - while( (ch !='\n') && (ch != EOF) ); - p--; - *p = '\0'; - q->filter = m_alloc(char, (int) strlen((char *) str)+1); - (IGNORED) strcpy((char *) q->filter, (char *) str); -} - - -#line 8857 "./tex4ht-c.tex" - -lg_font_fmt = (char *) get_script(lg_font_fmt,LGFNT,'f'); - - -#line 10854 "./tex4ht-c.tex" - -class_fmt = (char *) get_script(class_fmt,LGCLS,'c'); - - -#line 11083 "./tex4ht-c.tex" - -font_gif = (char *) get_script(font_gif,LGPIC,'s'); - -#line 11089 "./tex4ht-c.tex" - -{ int n; - n = (int) strlen((char *) font_gif); - if( font_gif[n-1] != '%' ){ font_gif[n] = '%'; font_gif[n+1] = '\0'; } -} - - - - -#line 11121 "./tex4ht-c.tex" - -begin_char_gif = (char *) get_script(begin_char_gif,LGSEP,'b'); - - -#line 11149 "./tex4ht-c.tex" - -gif = (char *) get_script(gif,LGTYP,'g'); -{ int n; - n = (int) strlen((char *) gif) - 1; - if( gif[n] == '%' ){ gif[n] = '%'; } - else if( gif[n] == '\n' ) { gif[n] = '\0'; } -} - - - -#line 1880 "./tex4ht-c.tex" - -{ long curr_pos; - curr_pos = ftell(dvi_file); - (IGNORED) fseek(dvi_file, 0, SEEK_END); - file_len = ftell(dvi_file); - (IGNORED) fseek(dvi_file, curr_pos, -#line 2174 "./tex4ht-c.tex" - -0 -); - if( (file_len % 4) != 0 ) bad_dvi; -} - - - -#line 5953 "./tex4ht-c.tex" - -{ U_CHAR str[256]; - (IGNORED) strcpy((char *) str, (char *) job_name); - str[job_name_n-1] = '\0'; - str[job_name_n-2] = 'g'; - str[job_name_n-3] = 'l'; - if( (log_file = fopen(str, WRITE_TEXT_FLAGS)) == NULL ) - bad_in_file(str); -} - - - -#line 14437 "./tex4ht-c.tex" - -#ifdef KPATHSEA -{ char str [256], *export_str, *postfix; - export_str = m_alloc(char, 1); - *export_str = '\0'; - -#line 14525 "./tex4ht-c.tex" - -{ - struct htf_com_rec *q; - q = htf_font_dir; - while( q != (struct htf_com_rec *) 0 ){ - (IGNORED) strcpy((char *) str, (char *) q->name); - export_htf( &export_str, str ); - q = q->next; -} } -(IGNORED) fseek(dot_file, 0L, -#line 2174 "./tex4ht-c.tex" - -0 -); -while ( search_dot_file( 'i' ) ){ - int ch; - char* p; - p = str; - do { - ch = (int) getc(dot_file); - if( ch != EOF) { *(p++) = ch;} - } while( (ch !='\n') && (ch != EOF) ); - *p = '\0'; - export_htf( &export_str, str ); -} -#ifdef HTFDIR - (IGNORED) strcpy((char *) str, (char *) HTFDIR); - export_htf( &export_str, str ); -#endif - -#line 14555 "./tex4ht-c.tex" - -{ U_CHAR * q; - q = (U_CHAR *) kpse_var_value( "TEX4HTFONTSET" ); - if( q ){ - if( (int) strlen((char *) q) > 0 ){ - export_str = (char *) r_alloc((void *) export_str, - (int) strlen((char *) export_str) + (int) strlen((char *) q) + 2); - if( (int) strlen((char *) export_str) > 0 ){ - (IGNORED) strcat((char *) export_str, ","); - } - (IGNORED) strcat((char *) export_str, (char *) q); -} } } - - - - - if( (int) strlen((char *) export_str) > 0 ){ - (IGNORED) strcpy((char *) str, "%%12"); - export_str = (char *) r_alloc((void *) export_str, - (int) strlen((char *) export_str) + (int) strlen((char *) str) + 1 ); - postfix = str - 1; - while( *(++postfix) != '\0' ){ - if( (*postfix=='%') && (*(postfix+1)=='%') && - (*(postfix+2)=='1') && (*(postfix+3)=='2') ){ - *postfix='\0'; postfix += 4; break; - } } - if( (int) strlen((char *) export_str) != 0 ){ - -#line 14468 "./tex4ht-c.tex" - -{ char *from_ch; - int i, n, m; - n = (int) strlen((char *) str); - m = (int) strlen((char *) export_str); - from_ch = export_str + m; - for( i = 0; i<=m; i++){ - *(from_ch + n) = *(from_ch); - from_ch--; - } - for( i = 0; i<n; i++){ - export_str[i] = str[i]; - } - (IGNORED) strcat((char *) export_str, (char *) postfix); -} - - - -#line 14493 "./tex4ht-c.tex" - -{ U_CHAR * q; - if( dump_htf_search ) { U_CHAR *p, *q; - -#line 14842 "./tex4ht-c.tex" - -p = (U_CHAR *) kpse_var_value( "TEX4HTFONTSET" ); -if( p ){ - (IGNORED) printf("given TEX4HTFONTSET = %s\n", p); -} -q = getenv("TEX4HTFONTSET"); -if( q ){ (IGNORED) printf( - "Environmet var TEX4HTFONTSET: %s\n", q); -} -if( !p && !q ){ - (IGNORED) printf( "Missing TEX4HTFONTSET for kpathsea\n" ); -} - - - } - q = (U_CHAR *) kpse_var_value( "TEX4HTFONTSET" ); - if( q ){ - xputenv("TEX4HTFONTSET", export_str); - if( dump_htf_search ){ - (IGNORED) printf("setting TEX4HTFONTSET={%s}\n", export_str); - } - } else if( dump_htf_search ) { - warn_i_str( 50, "TEX4HTFONTSET for kpathsea" ); - } -} - - - } - } - -#line 14673 "./tex4ht-c.tex" - -{ int n; - n = (int) strlen((char *) export_str); - if( n > 0 ){ - export_str_chars = m_alloc(char, n+1); - (IGNORED) strcpy((char *) export_str_chars, (char *) export_str); -} } - - - free((void *) export_str); - -#line 14790 "./tex4ht-c.tex" - -if( dump_htf_search || dump_env_search ) { - U_CHAR *p, *q; - -#line 14820 "./tex4ht-c.tex" - -p = kpse_find_file ( "texmf.cnf", kpse_cnf_format, 0); -if( p ){ - (IGNORED) printf( "texmf.cnf = %s\n", p); -} else { warn_i_str(1, "texmf.cnf" ); } -p = (U_CHAR *) kpse_var_value( "TEX4HTINPUTS" ); -if( p ){ - (IGNORED) printf("TEX4HTINPUTS = %s\n", p); -} -q = getenv("TEX4HTINPUTS"); -if( q ){ (IGNORED) printf( - "Environment var TEX4HTINPUTS: %s\n", q); -} -if( !p && !q ){ - (IGNORED) printf( "Missing TEX4HTINPUTS for kpathsea\n" ); -} - - -} - - -} -#endif - - - -#line 2150 "./tex4ht-c.tex" - -i=0; -do{ - i++; file_len -= 1; - (IGNORED) fseek(dvi_file, file_len, -#line 2174 "./tex4ht-c.tex" - -0 -); -} while( (ch=get_char()) == -#line 17420 "./tex4ht-c.tex" - -223 - ); -eof_op_n = file_len; -if( (i<4) - || - ((ch != -#line 2283 "./tex4ht-c.tex" - -2 -) && (ch > -#line 2292 "./tex4ht-c.tex" - -10 - -)) - ) bad_dvi; -version_id = ch; - - -#line 2185 "./tex4ht-c.tex" - -file_len -= 5; -(IGNORED) fseek(dvi_file, file_len, -#line 2174 "./tex4ht-c.tex" - -0 -); -if( get_char() != -#line 17469 "./tex4ht-c.tex" - -249 - ) bad_dvi; -eof_op_n -= begin_postamble = get_unt(4); -(IGNORED) fseek(dvi_file, begin_postamble, -#line 2174 "./tex4ht-c.tex" - -0 -); - - -#line 2197 "./tex4ht-c.tex" - -if( get_char() != -#line 17466 "./tex4ht-c.tex" - -248 - ) bad_dvi; -(IGNORED) fseek(dvi_file, 16L, -#line 2177 "./tex4ht-c.tex" - -1 -); - -#line 5968 "./tex4ht-c.tex" - -mid_page_y = (INTEGER) get_unt(4) / 2; -mid_page_x = (INTEGER) get_unt(4) / 2; - - -if( (stack_len = (int) get_unt(2)) < 1) bad_dvi; - -#line 6679 "./tex4ht-c.tex" - -stack = m_alloc(struct stack_entry, -#line 6684 "./tex4ht-c.tex" - -((int) stack_len + 2) - -); - -#line 6718 "./tex4ht-c.tex" - -{ int i; - for( i= -#line 6684 "./tex4ht-c.tex" - -((int) stack_len + 2) - --1; i>=0; i--){ - stack[i].begin = (struct group_info *) 0; - stack[i].end = (struct stack_end_entry *) 0; - stack[i].stack_id = -1; - -#line 6354 "./tex4ht-c.tex" - -stack[i].halign_info = FALSE; -stack[i].halign_on = FALSE; - - -#line 7804 "./tex4ht-c.tex" - -stack[i].path_start = (struct group_path *) 0; -stack[i].path_end = (struct group_path *) 0; - - -#line 12887 "./tex4ht-c.tex" - -stack[i].class_open = stack[i].class_close - = (char *) 0; -stack[i].temp_class_open = m_alloc(char, 1 ); -stack[i].temp_class_close = m_alloc(char, 1 ); -stack[i].ignore_subclass_del = stack[i].temp_class_del - = stack[i].active_class_del - = FALSE; - - -} } - - - - -unread_pages = (int) get_unt(2); - - -#line 2222 "./tex4ht-c.tex" - -{ -#line 10256 "./tex4ht-c.tex" - -int fonts_n; -struct html_font_rec *html_font=0; - - -#line 11938 "./tex4ht-c.tex" - -struct visited_file_rec * visited_file = - (struct visited_file_rec *) 0; - - -#line 13648 "./tex4ht-c.tex" - -#ifndef KPATHSEA -struct env_var_rec *tfm_dirs; -#endif -struct env_var_rec *htf_dirs; - - -#line 14663 "./tex4ht-c.tex" - - -#ifdef KPATHSEA - -#line 14683 "./tex4ht-c.tex" - -int cardinality=0; -char ** fontset=0; - - -#endif - - - BOOL missing_fonts; -#ifndef KPATHSEA - -#line 14195 "./tex4ht-c.tex" - -U_CHAR files_cache[PATH_MAX]; - - - -#line 14155 "./tex4ht-c.tex" - -{ U_CHAR *p; - if( !tex4ht_fls_name ){ - tex4ht_fls_name = p = files_cache; - (IGNORED) fseek(dot_file, 0L, -#line 2174 "./tex4ht-c.tex" - -0 -); - if ( search_dot_file( 'l' ) ){ - do - *(p++) = ch = (int) getc(dot_file); - while( (ch !='\n') && (ch != EOF) ); - p--; *p = '\0'; - } else { (IGNORED) strcpy((char *) p, -(char *) getenv("TEX4HTWR")? "~~/tex4ht.fls" : "tex4ht.fls"); - } - } - -#line 14174 "./tex4ht-c.tex" - -if( *tex4ht_fls_name == '~' ){ - tex4ht_fls_name = abs_addr(tex4ht_fls_name,getenv("TEX4HTWR")); -} - - -} - - - -#line 14338 "./tex4ht-c.tex" - -cache_files = f_open(tex4ht_fls_name, READ_BIN_FLAGS); - - -#endif - -#line 10261 "./tex4ht-c.tex" - -fonts_n = 0; - - -#line 13728 "./tex4ht-c.tex" - -cache_font = (struct cache_font_rec *) 0; -cur_cache_font = (struct cache_font_rec *) 0; - - - missing_fonts = FALSE; - -#line 13568 "./tex4ht-c.tex" - -#ifndef KPATHSEA -tfm_dirs = get_env_var("TEX4HTTFM"); -#endif -htf_dirs = get_env_var("TEX4HTHTF"); - - - -#line 14688 "./tex4ht-c.tex" - - -#ifdef KPATHSEA -if( export_str_chars ){ - -#line 14709 "./tex4ht-c.tex" - -{ U_CHAR *p; - int n; - cardinality = 1; - p = (U_CHAR *) export_str_chars; - while( *p != '\0' ){ - if( *p == ',' ){ cardinality++; } - p++; - } - fontset = m_alloc(char *, cardinality); - p = (U_CHAR *) export_str_chars; - fontset[0] = p; - n=1; - while( *p != '\0' ){ - if( *p == ',' ){ fontset[n++] = p+1; *p = '\0'; } - p++; -} } - - -} -#endif - - - -#line 15935 "./tex4ht-c.tex" - -{ U_CHAR name[256]; - FILE* file; - (IGNORED) sprintf(name, "%s.4hf", "unicode"); - -#line 13837 "./tex4ht-c.tex" - - file = NULL; - -#line 13905 "./tex4ht-c.tex" - -{ - struct htf_com_rec *p; - p = htf_font_dir; - while( p ){ - file = search_file_base(name, p->name, READ_TEXT_FLAGS, htf_dirs); - if( file ){ -#ifndef KPATHSEA - tex4ht_fls = TRUE; -#endif - break; - } - p = p->next; - } -} - - - if( !file ){ - if( ((file = f_open(name, READ_TEXT_FLAGS)) == NULL) && dot_file ) - file = search_in_dot_file( 'i', name, READ_TEXT_FLAGS, htf_dirs); -#ifdef HTFDIR - if( !file ) file = search_file_base(name, HTFDIR, - READ_TEXT_FLAGS, htf_dirs); -#endif - -#line 15073 "./tex4ht-c.tex" - - -#ifdef KPATHSEA - if( !file ){ U_CHAR * htfname; - htfname= kpse_find_file (name, kpse_program_text_format, 0); - if ( htfname ){ - -#line 14729 "./tex4ht-c.tex" - -{ U_CHAR * head, * tail, *p; - int n; - -#line 14739 "./tex4ht-c.tex" - -n = (int) strlen((char *) htfname); -tail = head = m_alloc(char, n+1); -(IGNORED) strcpy((char *) head, (char *) htfname); -while( n>11 ){ - if( (*tail=='\\') || (*tail=='/') ){ - if( (*tail == *(tail+9)) && (*(tail+1) == 'h') - && (*(tail+2) == 't') && (*(tail+3) == '-') - && (*(tail+4) == 'f') && (*(tail+5) == 'o') - && (*(tail+6) == 'n') && (*(tail+7) == 't') - && (*(tail+8) == 's') ){ - p = tail + 9; *(tail + 10) = '\0'; tail += 11; - while( (*tail != *p) && (*tail != '\0') ){ tail++; } - break; - } } - tail++; n--; -} - - - htfname = (U_CHAR *) 0; - -#line 14761 "./tex4ht-c.tex" - -for( n = 0 ; (n < cardinality) && !htfname ; n++){ - p = tail; - while( *p != '\0' ){ - char * s, *nm; - s = m_alloc(char, (int) strlen((char *) head ) + - (int) strlen((char *) fontset[n] ) + - (int) strlen((char *) p ) + 1); - (IGNORED) strcpy((char *) s, (char *) head); - (IGNORED) strcat((char *) s, (char *) fontset[n]); - (IGNORED) strcat((char *) s, (char *) p); - nm = kpse_find_file (s, kpse_program_text_format, 0); - free((void *) s); - if ( nm ){ - htfname = nm; break; - } - p++; - while( (*p != '\\') && (*p != '/') && (*p != '\0') ){ p++; } -} } - - -} - - - if ( htfname ){ - (IGNORED) printf("(%s)\n", htfname); - file= fopen(htfname,READ_TEXT_FLAGS); - } } - } -#endif - - - } - - - if( file ){ - -#line 15950 "./tex4ht-c.tex" - -int chr, delimiter, delimiter_n, line_no, digit, i, j; -U_CHAR in[512], *in_p, * start[4], *p; -BOOL char_on, err; -int value; - - - -#line 16053 "./tex4ht-c.tex" - -max_charset_n = 256; -charset = m_alloc(struct charset_rec, 256); - - -#line 16465 "./tex4ht-c.tex" - -max_htf_4hf_n = 256; -htf_4hf = m_alloc(struct htf_4hf_rec, 256); - - - -#line 15958 "./tex4ht-c.tex" - -err = FALSE; -line_no = 0; -while( TRUE ){ - line_no++; - chr = (int) getc(file); - if( chr == EOF ){ break; } - if( (chr>32) && (chr<127) ){ - -#line 15994 "./tex4ht-c.tex" - -delimiter = chr; -delimiter_n = 1; -char_on = TRUE; -in_p = in; -while( TRUE ) { - chr = (int) getc(file); - if( (chr == EOF) || (chr=='\n') ){ break; } - if( chr == delimiter ){ - if( char_on ){ *(in_p++) = '\0'; } - else{ start[ delimiter_n/2 ] = in_p; } - char_on = !char_on; - delimiter_n++; - } else if (char_on ) { - *(in_p++) = chr; - } - if( delimiter_n==8 ){ break; } -} - - - if( delimiter_n == 8 ){ - if( *in != '?' ) { - if( -#line 15987 "./tex4ht-c.tex" - - (*in != '&') -|| (*(in+1) != '#') -|| ( (*(in+2) != 'x') && (*(in+2) != 'X')) -|| (*(start[1] - 2) != ';') - - ){ err = TRUE; } - else { - -#line 16063 "./tex4ht-c.tex" - -value = 0; -for( p=in+3; *p!=';'; p++){ - digit = (int) *p; - if( (digit>='0') && (digit<='9') ){ digit -= '0'; } - else if( (digit>='A') && (digit<='F') ){ digit -= BASE_A; } - else if( (digit>='a') && (digit<='f') ){ digit -= BASE_a; } - else { digit=0; err = TRUE; } - value = 16*value + digit; -} - - - if( start[3] == (in_p-1) ){ - if( !err ){ -#line 16082 "./tex4ht-c.tex" - - -#line 16112 "./tex4ht-c.tex" - -if( (charset_n+1) == max_charset_n){ - max_charset_n += 10; - charset = (struct charset_rec *) r_alloc((void *) charset, - (size_t) ((max_charset_n) * sizeof(struct charset_rec) )); -} - - -p = m_alloc(char, (int) (start[3] - start[2]) ); -(IGNORED) strcpy((char *) p, (char *) start[2] ); -i = charset_n; -while( i-- > 0 ){ - if( charset[i].ch == value ){ - free((void *) charset[i].str); - break; - } else { - if( (charset[i].ch < value) - || ((charset[i].ch > value) && (i==0)) ){ - if( charset[i].ch < value ){ i++; } - charset_n++; - for( j=charset_n; j>i; j-- ){ - charset[j].ch = charset[j-1].ch; - charset[j].str = charset[j-1].str; - } - break; - } } -} -if(i == -1){ i = charset_n; } -if( i==charset_n ){ charset_n++; } -charset[i].str = p; -charset[i].ch = value; - - } - } else { -#line 16381 "./tex4ht-c.tex" - - -#line 16421 "./tex4ht-c.tex" - -if( (htf_4hf_n+1) == max_htf_4hf_n){ - max_htf_4hf_n += 10; - htf_4hf = (struct htf_4hf_rec *) r_alloc((void *) htf_4hf, - (size_t) ((max_htf_4hf_n) * sizeof(struct htf_4hf_rec) )); -} -p = m_alloc(char, (int) (start[3] - start[2]) ); - - -(IGNORED) strcpy((char *) p, (char *) start[2] ); -i = htf_4hf_n; -while( i-- > 0 ){ - if( htf_4hf[i].ch == value ){ - free((void *) htf_4hf[i].str); - break; - } else { - if( (htf_4hf[i].ch < value) - || ((htf_4hf[i].ch > value) && (i==0)) ){ - if( htf_4hf[i].ch < value ){ i++; } - htf_4hf_n++; - for( j=htf_4hf_n; j>i; j-- ){ - htf_4hf[j].ch = htf_4hf[j-1].ch; - htf_4hf[j].str = htf_4hf[j-1].str; - htf_4hf[j].type1 = htf_4hf[j-1].type1; - htf_4hf[j].type2 = htf_4hf[j-1].type2; - } - break; -} } } -if(i == -1){ i = htf_4hf_n; } -if(i == htf_4hf_n){ htf_4hf_n++; } -htf_4hf[i].str = p; -htf_4hf[i].ch = value; - -#line 16431 "./tex4ht-c.tex" - -value = 0; -p = start[1]; -while( *p != '\0' ){ - if( (*p < '0') || (*p > '9') ) break; - value = value * 10 + *p - '0'; - p++; -} -htf_4hf[i].type1 = value; - - -#line 16442 "./tex4ht-c.tex" - -value = 0; -p = start[3]; -while( *p != '\0' ){ - if( (*p < '0') || (*p > '9') ) break; - value = value * 10 + *p - '0'; - p++; -} -htf_4hf[i].type2 = value; - - - - - } - } } } - else { err = TRUE; } - -#line 16020 "./tex4ht-c.tex" - -if( err ){ - warn_i_int(48,line_no); - (IGNORED) printf( "%c", delimiter ); - for( p=in; p != in_p; p++ ){ - if( *p=='\0' ){ - (IGNORED) printf("%c", delimiter); - if( p != in_p-1 ){ (IGNORED) printf(" %c", delimiter); } - } - else { (IGNORED) printf( "%c", *p ); } - } - (IGNORED) printf( "\n" ); - err = FALSE; -} - - - } - while( (chr != EOF) && (chr!='\n') ){ - chr = (int) getc(file); - } - if( chr == EOF ){ break; } -} - - - put_4ht_off = 0; - } else{ put_4ht_off = 1; -#line 16058 "./tex4ht-c.tex" - -max_charset_n = 0; - - -#line 16470 "./tex4ht-c.tex" - -max_htf_4hf_n = 0; - - } -} - - - while( (ch = get_char()) != -#line 17469 "./tex4ht-c.tex" - -249 - ){ - -#line 8663 "./tex4ht-c.tex" - -#ifdef MAXFONTS -if( (font_tbl_size + 1) < MAXFONTS ) -#endif -{ - INTEGER new_font_checksum; - int font_name_n; - font_tbl = font_tbl_size? - (struct font_entry *) r_alloc((void *) font_tbl, - (size_t) ((font_tbl_size+1) - * sizeof(struct font_entry))) - : m_alloc(struct font_entry, 1); - if( (version_id == -#line 2292 "./tex4ht-c.tex" - -10 - -) - && (ch == -#line 17490 "./tex4ht-c.tex" - -252 - -) - ){ - -#line 8886 "./tex4ht-c.tex" - - unsigned short flags; -new_font.num = (INTEGER) get_unt(4); -new_font.scale = (INTEGER) get_unt(4); -new_font.design_sz = new_font.scale; -flags = (INTEGER) get_unt(2); - -#line 8913 "./tex4ht-c.tex" - -{ int n, family_name_n, style_name_n; - U_CHAR *ch; - - font_name_n = (INTEGER) get_unt(1); - family_name_n = (INTEGER) get_unt(1); - style_name_n = (INTEGER) get_unt(1); - n = font_name_n + 1; - ch = new_font_name = m_alloc(char, n); - while( --n ){ *ch = (int) get_unt(1); ch++; } - *ch = '\0'; - n = family_name_n + 1; - - while( --n ){ (void) get_unt(1); ch++; } - *ch = '\0'; - n = style_name_n + 1; - - while( --n ){ (void) get_unt(1); ch++; } - *ch = '\0'; -} - - -new_font.layout_dir = (flags & -#line 8951 "./tex4ht-c.tex" - -0x0100 - -) ? 1 : 0; -new_font.rgba_color = (flags & -#line 8955 "./tex4ht-c.tex" - -0x0200 - -)? - (unsigned long) get_unt(4) - : - 0xffffffff; -if( flags & -#line 8959 "./tex4ht-c.tex" - -0x0800 - - ){ - int n = (INTEGER) get_unt(2); - int i; - for (i = 0; i < n; ++i) { - (void) get_unt(4); - } - for (i = 0; i < n; ++i) { - (void) get_int(4); -} } -(IGNORED) printf("(--- xdv font = %s (not implemented) ---)\n", new_font_name); - -#line 9077 "./tex4ht-c.tex" - - -#line 9298 "./tex4ht-c.tex" - -{ int i; - for( i=font_tbl_size-1; i>0; i-- ) - if( new_font.num == font_tbl[i].num ) warn_i(10); } - - - -#line 9098 "./tex4ht-c.tex" - -{ - -/* - if( font_file == NULL ){ - dump_env(); err_i_str(1,file_name); - missing_fonts = TRUE; - new_font.char_f = 2; - new_font.char_l = 1; - } else { -*/ - -#line 9119 "./tex4ht-c.tex" - -{ - -#line 9166 "./tex4ht-c.tex" - -new_font.char_f = 0; -new_font.char_l = 255; -new_font.wtbl_n = 0; -new_font.htbl_n = 0; -new_font.dtbl_n = 0; - - - - -#line 9191 "./tex4ht-c.tex" - -{ U_CHAR *ch, *hidp; - int i; - ch = new_font.char_wi = m_alloc(char, new_font.char_l - - new_font.char_f + 1); - hidp = new_font.char_hidp = m_alloc(char, new_font.char_l - - new_font.char_f + 1); - for( i = new_font.char_f; i <= new_font.char_l; i++ ){ - *(ch++) = 10; - *(hidp++) = 26; -} } - - - -#line 9205 "./tex4ht-c.tex" - -{ INTEGER *p; - int i; - p = new_font.wtbl = m_alloc( INTEGER, new_font.wtbl_n); - for( i = 0; i < new_font.wtbl_n; i++ ){ - *(p++) = 600000; -} } - - - -#line 9216 "./tex4ht-c.tex" - -{ INTEGER *p; - int i; - p = new_font.htbl = m_alloc( INTEGER, new_font.htbl_n); - for( i = 0; i < new_font.htbl_n; i++ ){ - *(p++) = 600000; -} } - - - - - - - - -#line 9140 "./tex4ht-c.tex" - - -#line 9151 "./tex4ht-c.tex" - -new_font.it = 0; - - - -#line 9156 "./tex4ht-c.tex" - -new_font.word_sp = 350000; - -#line 9752 "./tex4ht-c.tex" - -if( new_font.word_sp == 0 ) { - int i; - for( i = new_font.char_f; i <= new_font.char_l; i++ ){ - new_font.word_sp = - ( new_font.word_sp - + - *(new_font.wtbl + (int)(*(new_font.char_wi + i - new_font.char_f))) - ) / (new_font.char_f<i? 2:1); - } } -if( new_font.word_sp == 0 ) new_font.word_sp = MARGINSP; - - - - - - - - - - - -} - - -/* - (IGNORED) fclose(font_file); - } -*/ -} - - -new_font_name[font_name_n] = '\0'; -new_font.name = m_alloc(char, font_name_n + 1); -(IGNORED) strcpy((char *) new_font.name, (char *) new_font_name ); - -#line 8781 "./tex4ht-c.tex" - -{ int n, i; - for( n=0; n<font_name_n; n++ ){ - if( ( '0' <= new_font_name[n] ) && ( new_font_name[n] <= '9' )){ - break; - } - } - -#line 8803 "./tex4ht-c.tex" - -{ int m; - for( m=n; m<font_name_n; m++ ){ - if( ( new_font_name[m] < '0' ) || ( new_font_name[m] > '9' )){ - n=font_name_n; - break; -} } } - - - new_font.family_name = m_alloc(char, n + 2); - new_font.font_size = m_alloc(char, font_name_n - n + 1 ); - for( i=0; i<n; i++ ){ - new_font.family_name[i] = new_font_name[i]; - } - new_font.family_name[i] = '\0'; i = 0; - while( n<font_name_n ){ - new_font.font_size[i++] = new_font_name[n++]; - } - new_font.font_size[i] = '\0'; -} - - - -#line 9088 "./tex4ht-c.tex" - -new_font.mag = new_font.scale / (new_font.design_sz / 100); - - - - - - - } else { - -#line 8697 "./tex4ht-c.tex" - - -#line 8723 "./tex4ht-c.tex" - -switch( ch ){ - case -#line 17451 "./tex4ht-c.tex" - -243 -: - case -#line 17454 "./tex4ht-c.tex" - -244 -: - case -#line 17457 "./tex4ht-c.tex" - -245 -: { - new_font.num = (INTEGER) - get_unt(ch - -#line 17451 "./tex4ht-c.tex" - -243 - + 1); break; } - case -#line 17460 "./tex4ht-c.tex" - -246 -: { - new_font.num = (INTEGER) get_int(4); break; } - default: err_i(8); -} - - -new_font_checksum = (INTEGER) get_int(4); -new_font.scale = (INTEGER) get_unt(4); -new_font.design_sz = (INTEGER) get_unt(4); - -#line 8737 "./tex4ht-c.tex" - -{ int n, area_ln; - U_CHAR *ch; - area_ln = (int) get_unt(1); - font_name_n = (int) get_unt(1); - n = area_ln + font_name_n + 1; - ch = new_font_name = m_alloc(char, n); - while( --n ){ *ch = (int) get_unt(1); ch++; } - *ch = '\0'; -} - - - -#line 8753 "./tex4ht-c.tex" - - -#line 9298 "./tex4ht-c.tex" - -{ int i; - for( i=font_tbl_size-1; i>0; i-- ) - if( new_font.num == font_tbl[i].num ) warn_i(10); } - - - -#line 9344 "./tex4ht-c.tex" - -{ FILE *font_file; - U_CHAR file_name[256]; - -#line 13512 "./tex4ht-c.tex" - -{ - font_file = NULL; - (IGNORED) sprintf(file_name, "%s.tfm", new_font_name); - -#line 14971 "./tex4ht-c.tex" - -#ifdef KPATHSEA -{ - U_CHAR * tfmfile; - tfmfile = kpse_find_file (file_name, kpse_tfm_format, 0); - if( !tfmfile ){ -#line 15026 "./tex4ht-c.tex" - -char s [256]; -(IGNORED) strcpy(s, "kpsewhich "); -(IGNORED) strcat(s, file_name); -(IGNORED) strcat(s, " > tex4ht.tmp "); -if( system(s) == 0 ){ - -#line 15042 "./tex4ht-c.tex" - -char fileaddr [256]; -int loc = 0; -FILE* file = f_open("tex4ht.tmp", READ_TEXT_FLAGS); -if( file ){ - while( (fileaddr[loc] = getc(file)) >=0 ){ - if( fileaddr[loc] == '\n' ){ fileaddr[loc] = '\0'; break; } - loc++; - } - (IGNORED) fclose(file); -} - - - tfmfile = kpse_find_file (fileaddr, kpse_program_text_format, 0); -} - - } - if ( tfmfile ){ - (IGNORED) printf("(%s)\n", tfmfile); - font_file = kpse_open_file (tfmfile, kpse_tfm_format); - } -} -#else - - - -#line 13668 "./tex4ht-c.tex" - -for( cur_cache_font = cache_font; - cur_cache_font; - cur_cache_font = cur_cache_font->next ) - if( (font_file = search_file(file_name, - cur_cache_font->dir, - READ_BIN_FLAGS)) - != NULL) break; - - - if( !font_file ){ int i; - for( i = fontdir_count; i--; ){ - if( (font_file = search_file_base(file_name, fontdir[i], - READ_BIN_FLAGS, tfm_dirs)) - != NULL ) break; } - } - if( !font_file ) font_file = f_open(file_name, READ_BIN_FLAGS); - if( !font_file && dot_file ) - font_file = search_in_dot_file( 't', file_name, - READ_BIN_FLAGS, tfm_dirs); - -#line 13544 "./tex4ht-c.tex" - -#ifdef TFMDIR - if( !font_file ) - font_file = search_file_base(file_name, TFMDIR, - READ_BIN_FLAGS, tfm_dirs); -#endif - - - -#line 14988 "./tex4ht-c.tex" - -#endif - - -} - - - if( font_file == NULL ){ - dump_env(); err_i_str(1,file_name); - missing_fonts = TRUE; - new_font.char_f = 2; - new_font.char_l = 1; - } else { - -#line 9385 "./tex4ht-c.tex" - -{ -#line 9435 "./tex4ht-c.tex" - - INTEGER file_length; - int header_length, - it_correction_table_length, - lig_kern_table_length, - kern_table_length, - extensible_char_table_length, - num_font_parameters; - - - -#line 9407 "./tex4ht-c.tex" - -file_length = (INTEGER) fget_int(font_file,2); -header_length = (int) fget_int(font_file,2); -new_font.char_f = (int) fget_int(font_file,2); -new_font.char_l = (int) fget_int(font_file,2); -new_font.wtbl_n = (int) fget_int(font_file,2); -new_font.htbl_n = (int) fget_int(font_file,2); -new_font.dtbl_n = (int) fget_int(font_file,2); -it_correction_table_length = (int) fget_int(font_file,2); -lig_kern_table_length = (int) fget_int(font_file,2); -kern_table_length = (int) fget_int(font_file,2); -extensible_char_table_length = (int) fget_int(font_file,2); -num_font_parameters = (int) fget_int(font_file,2); -if( file_length != ( 6 + header_length - - new_font.char_f + new_font.char_l + 1 - + new_font.wtbl_n + new_font.htbl_n - + new_font.dtbl_n + it_correction_table_length - + lig_kern_table_length + kern_table_length - + extensible_char_table_length + num_font_parameters ) - ){ err_i_str(15,file_name); } - - - -#line 9480 "./tex4ht-c.tex" - - -#line 9489 "./tex4ht-c.tex" - -{ INTEGER checksum; - checksum = ( INTEGER) fget_int(font_file,4); - if( checksum && new_font_checksum - && (checksum != new_font_checksum) ) - { warn_i(16); - (IGNORED) fprintf(stderr,"%s: %d\ndvi file: %d\n",file_name, - checksum, new_font_checksum); -} } - - - -#line 9509 "./tex4ht-c.tex" - -new_font.design_pt = ( INTEGER) fget_int(font_file,4); - - -(IGNORED) fseek(font_file, (long) ((header_length - 2) * 4), -#line 2177 "./tex4ht-c.tex" - -1 -); - - - -#line 9521 "./tex4ht-c.tex" - -{ U_CHAR *ch, *hidp; - int i; - ch = new_font.char_wi = m_alloc(char, new_font.char_l - - new_font.char_f + 1); - hidp = new_font.char_hidp = m_alloc(char, new_font.char_l - - new_font.char_f + 1); - for( i = new_font.char_f; i <= new_font.char_l; i++ ){ - *(ch++) = (int) fget_unt(font_file,1); - *(hidp++) = (int) fget_unt(font_file,1); - (IGNORED) fseek(font_file, 2L, -#line 2177 "./tex4ht-c.tex" - -1 -); -} } - - - -#line 9576 "./tex4ht-c.tex" - -{ INTEGER *p; - int i; - p = new_font.wtbl = m_alloc( INTEGER, new_font.wtbl_n); - for( i = 0; i < new_font.wtbl_n; i++ ){ - *(p++) = ( INTEGER) fget_int(font_file,4); -} } - - - -#line 9612 "./tex4ht-c.tex" - -{ INTEGER *p; - int i; - p = new_font.htbl = m_alloc( INTEGER, new_font.htbl_n); - for( i = 0; i < new_font.htbl_n; i++ ){ - *(p++) = ( INTEGER) fget_int(font_file,4); -} } - - -#line 9636 "./tex4ht-c.tex" - -{ INTEGER *p; - int i; - p = new_font.dtbl = m_alloc( INTEGER, new_font.dtbl_n); - for( i = 0; i < new_font.dtbl_n; i++ ){ - *(p++) = ( INTEGER) fget_int(font_file,4); -} } - - - - -#line 9659 "./tex4ht-c.tex" - - -(IGNORED) fseek(font_file, (long) (it_correction_table_length * 4), - -#line 2177 "./tex4ht-c.tex" - -1 -); - - - -#line 9669 "./tex4ht-c.tex" - -(IGNORED) fseek(font_file, (long) (lig_kern_table_length * 4), - -#line 2177 "./tex4ht-c.tex" - -1 -); - - - -#line 9678 "./tex4ht-c.tex" - - -(IGNORED) fseek(font_file, (long) (kern_table_length * 4), - -#line 2177 "./tex4ht-c.tex" - -1 -); - - - -#line 9688 "./tex4ht-c.tex" - -(IGNORED) fseek(font_file, (long) (extensible_char_table_length * 4), - -#line 2177 "./tex4ht-c.tex" - -1 -); - - - -#line 9703 "./tex4ht-c.tex" - - -#line 9718 "./tex4ht-c.tex" - -new_font.it = ( INTEGER) fget_int(font_file,4); - - - -#line 9724 "./tex4ht-c.tex" - -new_font.word_sp = ( INTEGER) fget_int(font_file,4); - -#line 9752 "./tex4ht-c.tex" - -if( new_font.word_sp == 0 ) { - int i; - for( i = new_font.char_f; i <= new_font.char_l; i++ ){ - new_font.word_sp = - ( new_font.word_sp - + - *(new_font.wtbl + (int)(*(new_font.char_wi + i - new_font.char_f))) - ) / (new_font.char_f<i? 2:1); - } } -if( new_font.word_sp == 0 ) new_font.word_sp = MARGINSP; - - - - - -#line 9768 "./tex4ht-c.tex" - -(IGNORED) fseek(font_file, 4L, -#line 2177 "./tex4ht-c.tex" - -1 -); - - - -#line 9772 "./tex4ht-c.tex" - -(IGNORED) fseek(font_file, 4L, -#line 2177 "./tex4ht-c.tex" - -1 -); - - - -#line 9161 "./tex4ht-c.tex" - -new_font.ex = 450000; - - -#line 9778 "./tex4ht-c.tex" - -new_font.ex = (INTEGER) fget_int(font_file,4); - - - -#line 9784 "./tex4ht-c.tex" - - - - - -#line 9790 "./tex4ht-c.tex" - - - - - - -} - - - (IGNORED) fclose(font_file); -} } - - -new_font_name[font_name_n] = '\0'; -new_font.name = m_alloc(char, font_name_n + 1); -(IGNORED) strcpy((char *) new_font.name, (char *) new_font_name ); - -#line 8781 "./tex4ht-c.tex" - -{ int n, i; - for( n=0; n<font_name_n; n++ ){ - if( ( '0' <= new_font_name[n] ) && ( new_font_name[n] <= '9' )){ - break; - } - } - -#line 8803 "./tex4ht-c.tex" - -{ int m; - for( m=n; m<font_name_n; m++ ){ - if( ( new_font_name[m] < '0' ) || ( new_font_name[m] > '9' )){ - n=font_name_n; - break; -} } } - - - new_font.family_name = m_alloc(char, n + 2); - new_font.font_size = m_alloc(char, font_name_n - n + 1 ); - for( i=0; i<n; i++ ){ - new_font.family_name[i] = new_font_name[i]; - } - new_font.family_name[i] = '\0'; i = 0; - while( n<font_name_n ){ - new_font.font_size[i++] = new_font_name[n++]; - } - new_font.font_size[i] = '\0'; -} - - - -#line 8768 "./tex4ht-c.tex" - -new_font.mag = new_font.scale / (new_font.design_sz / 100); - - - - - - - } - -#line 9994 "./tex4ht-c.tex" - -{ U_CHAR str[256]; - int i, design_n, n_gif; - -#line 10089 "./tex4ht-c.tex" - -int loopBound = 0; -U_CHAR loopName[256]; -loopName[0] = '\0'; - - - n_gif = new_font.char_l - new_font.char_f + 1; - new_font.ch255 = 0; - -#line 10024 "./tex4ht-c.tex" - -{ int n_gif_bytes; - n_gif_bytes = (n_gif + 7) / 8; - new_font.gif_on = m_alloc(char, n_gif_bytes ); - new_font.ch_str = m_alloc(char, n_gif_bytes ); - -#line 12768 "./tex4ht-c.tex" - -new_font.math_closing = m_alloc(char, n_gif_bytes ); -new_font.math = m_alloc(char, n_gif ); - - - for( i=n_gif_bytes; i--; ) { - -#line 12774 "./tex4ht-c.tex" - -new_font.math_closing[i] = - - new_font.ch_str[i] = new_font.gif_on[i] = 0; - } - new_font.gif1 = m_alloc(unsigned char, n_gif ); - for( i=n_gif; i--; ) { - -#line 12778 "./tex4ht-c.tex" - -new_font.math[i] = - - new_font.gif1[i] = 0; -} } - - - -#line 12078 "./tex4ht-c.tex" - -new_font.accent = m_alloc(unsigned char, n_gif ); -new_font.accented = m_alloc(unsigned char, n_gif ); -new_font.accent_array = (unsigned int *) 0; -new_font.accented_array = (unsigned int *) 0; -new_font.accent_N = new_font.accented_N = 0; -for( i=n_gif; i--; ) { - new_font.accent[i] = new_font.accented[i] = 0; -} - - - new_font.ch = m_alloc(unsigned char, n_gif ); - -#line 10039 "./tex4ht-c.tex" - -for( i = new_font.char_f; i <= new_font.char_l ; i++ ){ - new_font.ch[i - new_font.char_f] = - (char) (((31<i) && (i<128))? i : ignore_ch); -} - - - new_font.str = m_alloc(unsigned char*, n_gif); - new_font.str[0] = &null_str; - design_n = 0; - -#line 10053 "./tex4ht-c.tex" - -{ char search_font_name [256]; - (IGNORED) strcpy((char *) search_font_name, (char *) new_font.name); - while( 1 ){ BOOL flag; - -#line 10095 "./tex4ht-c.tex" - -if( eq_str( new_font_name, loopName) ){ - U_CHAR name[256]; - (IGNORED) sprintf(name, "%s.htf", new_font_name); - err_i_str(1, name); -} else { - (IGNORED) strcpy((char *) loopName, (char *) new_font_name); -} -loopBound++; -if( loopBound > 10 ){ - U_CHAR name[256]; - (IGNORED) sprintf(name, "%s.htf", new_font_name); - err_i_str(1, name); -} - - - flag = TRUE; - for( ; font_name_n; font_name_n-- ){ FILE* file; - int char_f, char_l; - new_font_name[font_name_n] = '\0'; - -#line 13828 "./tex4ht-c.tex" - -{ U_CHAR name[256]; - (IGNORED) sprintf(name, "%s.htf", new_font_name); - -#line 13837 "./tex4ht-c.tex" - - file = NULL; - -#line 13905 "./tex4ht-c.tex" - -{ - struct htf_com_rec *p; - p = htf_font_dir; - while( p ){ - file = search_file_base(name, p->name, READ_TEXT_FLAGS, htf_dirs); - if( file ){ -#ifndef KPATHSEA - tex4ht_fls = TRUE; -#endif - break; - } - p = p->next; - } -} - - - if( !file ){ - if( ((file = f_open(name, READ_TEXT_FLAGS)) == NULL) && dot_file ) - file = search_in_dot_file( 'i', name, READ_TEXT_FLAGS, htf_dirs); -#ifdef HTFDIR - if( !file ) file = search_file_base(name, HTFDIR, - READ_TEXT_FLAGS, htf_dirs); -#endif - -#line 15073 "./tex4ht-c.tex" - - -#ifdef KPATHSEA - if( !file ){ U_CHAR * htfname; - htfname= kpse_find_file (name, kpse_program_text_format, 0); - if ( htfname ){ - -#line 14729 "./tex4ht-c.tex" - -{ U_CHAR * head, * tail, *p; - int n; - -#line 14739 "./tex4ht-c.tex" - -n = (int) strlen((char *) htfname); -tail = head = m_alloc(char, n+1); -(IGNORED) strcpy((char *) head, (char *) htfname); -while( n>11 ){ - if( (*tail=='\\') || (*tail=='/') ){ - if( (*tail == *(tail+9)) && (*(tail+1) == 'h') - && (*(tail+2) == 't') && (*(tail+3) == '-') - && (*(tail+4) == 'f') && (*(tail+5) == 'o') - && (*(tail+6) == 'n') && (*(tail+7) == 't') - && (*(tail+8) == 's') ){ - p = tail + 9; *(tail + 10) = '\0'; tail += 11; - while( (*tail != *p) && (*tail != '\0') ){ tail++; } - break; - } } - tail++; n--; -} - - - htfname = (U_CHAR *) 0; - -#line 14761 "./tex4ht-c.tex" - -for( n = 0 ; (n < cardinality) && !htfname ; n++){ - p = tail; - while( *p != '\0' ){ - char * s, *nm; - s = m_alloc(char, (int) strlen((char *) head ) + - (int) strlen((char *) fontset[n] ) + - (int) strlen((char *) p ) + 1); - (IGNORED) strcpy((char *) s, (char *) head); - (IGNORED) strcat((char *) s, (char *) fontset[n]); - (IGNORED) strcat((char *) s, (char *) p); - nm = kpse_find_file (s, kpse_program_text_format, 0); - free((void *) s); - if ( nm ){ - htfname = nm; break; - } - p++; - while( (*p != '\\') && (*p != '/') && (*p != '\0') ){ p++; } -} } - - -} - - - if ( htfname ){ - (IGNORED) printf("(%s)\n", htfname); - file= fopen(htfname,READ_TEXT_FLAGS); - } } - } -#endif - - - } - - - if( file ){ -#line 8827 "./tex4ht-c.tex" - -if( (strlen((char *) new_font.family_name) + - strlen((char *) new_font.font_size) + 4) == strlen((char *) name) ){ - new_font.family_name = (char *) r_alloc((void *) new_font.family_name, - (size_t) (strlen((char *) name)+1)); - (IGNORED) strcat((char *) new_font.family_name, (char *) new_font.font_size); - *(new_font.font_size)='\0'; -} - - } -} - - - if( file != NULL){ - INTEGER x_char_l; - -#line 10580 "./tex4ht-c.tex" - -x_char_l = - get_html_file_id(file, new_font.char_f, new_font.char_l, 19); -if( x_char_l != HTF_ALIAS) { - char_f = (int) (x_char_l / 1000.0 + 0.5) + new_font.char_f; - x_char_l -= (char_f-new_font.char_f) * 1000 - new_font.char_l; - char_l = (int) x_char_l; -} - - - if( x_char_l == HTF_ALIAS) { - -#line 10166 "./tex4ht-c.tex" - -{ int chr; - font_name_n=0; - while( (chr = get_html_ch(file)) != '\n' ){ - if( chr != ' ' ) search_font_name[font_name_n++] = chr; - } - search_font_name[font_name_n] = '\0'; - if( eq_str( search_font_name, new_font_name) ){ err_i_str(20, new_font_name); } - (IGNORED) printf("Searching `%s.htf' for `%s.htf'\n", - search_font_name, new_font.name); - htf_to_lg(html_font, new_font_name, fonts_n, file); - new_font_name = (char *) r_alloc((void *) new_font_name, - (size_t) (font_name_n+1)); - (IGNORED) strcpy((char *) new_font_name, (char *) search_font_name); - font_name_n = strlen((char *) new_font_name); -} - - - (IGNORED) fclose(file); flag = FALSE; break; - } - -#line 10283 "./tex4ht-c.tex" - -if( char_f <= new_font.char_l ){ U_CHAR del; - int j, n; - -#line 10297 "./tex4ht-c.tex" - -while( char_f < new_font.char_f ){ - while( get_html_ch(file) != '\n' ); - char_f++; } - - - n = ((char_l < new_font.char_l)? char_l : new_font.char_l) - - char_f + 1; - for( i = char_f - new_font.char_f; i < n; i++ ){ - -#line 10312 "./tex4ht-c.tex" - -{ int indirect_ch, base=0, value=0, digit, ch1; - indirect_ch = 0; - del = get_html_ch(file); j=0; - while( (str[j++] = get_html_ch(file)) != del ) - { -#line 10346 "./tex4ht-c.tex" - -if( (digit=str[j-1]) == '\\' ) - if( (indirect_ch = !indirect_ch) != 0) { - switch( value=get_html_ch(file) ){ - case 'x': { base = 16; value = 0; j--; break; } - case 'o': { base = 8; value = 0; j--; break; } - default: { - if( (value < '0') || (value > '9') ) { - indirect_ch = !indirect_ch; str[j-1] = value; - } else { value -= '0'; base = 10; j--; } - } } } - else{ if( value>255 ){ - warn_i_int(28,value); - value = 32; dump_htf( file ); - } - str[j-1] = value; - } -else if ( indirect_ch ){ - j--; digit -= (digit>'9')? 'A'-10 : '0'; - if( (digit<0) || (digit>=base) ){ - warn_i_int(29, str[j]); - digit = 0; dump_htf( file ); - } - value = value*base + digit; -} else if ( str[j-1]==10 ){ - dump_htf( file ); - err_i_int(48, i+1); -} - - }; - str[j-1] = '\0'; - while( get_html_ch(file) != del ); - ch1 = 0; - while( ((ch = (int) get_html_ch(file)) != del) ){ - if( (ch < '0') || (ch > '9') ) break; - ch1 = ch1 * 10 + ch - '0'; } - -#line 16480 "./tex4ht-c.tex" - -if( - (*str == '&') - && (*(str+1) == '#') - && ( (*(str+2) == 'x') || (*(str+2) == 'X')) - && (*(str + strlen((char *) str) - 1) == ';') -) { - char* p; - int value = 0; - BOOL err = FALSE; - for( p=str+3; *p!=';'; p++){ - int digit = (int) *p; - if( (digit>='0') && (digit<='9') ){ digit -= '0'; } - else if( (digit>='A') && (digit<='F') ){ digit -= BASE_A; } - else if( (digit>='a') && (digit<='f') ){ digit -= BASE_a; } - else { digit=0; err = TRUE; } - value = 16*value + digit; - } - if( !err ){ - -#line 16518 "./tex4ht-c.tex" - - int bottom, mid, top; - BOOL found=FALSE; -bottom = 0; top = htf_4hf_n; -while( !found ){ - mid = (bottom + top) / 2; - if( value == htf_4hf[mid].ch ){ - -#line 16504 "./tex4ht-c.tex" - -if( htf_4hf[mid].type1 == ch1 ){ - ch1 = htf_4hf[mid].type2; - (IGNORED) strcpy((char *) str, (char *) htf_4hf[mid].str ); -} - - - found = TRUE; - } else if( value < htf_4hf[mid].ch ){ - if( bottom == top ){ break; } - top = mid; - } - else { - if ( bottom < mid ){ bottom = mid; } - else if ( bottom<top ){ bottom++; } - else{ break; } - } -} - - - -} } - - - new_font.gif1[i] = ch1 % 256; - do{ - if( (ch = get_html_ch(file)) == del ){ - -#line 12090 "./tex4ht-c.tex" - -ch1 = 0; -while( ((ch = (int) get_html_ch(file)) != del) ){ - if( (ch < '0') || (ch > '9') ){ warn_i_int(48,i); break; } - ch1 = ch1 * 10 + ch - '0'; } -new_font.accent_array = new_font.accent_N++? - (unsigned int *) r_alloc((void *) new_font.accent_array, - (size_t) (new_font.accent_N * sizeof(unsigned int))) - : m_alloc(unsigned int, 1); -new_font.accent_array[new_font.accent_N - 1] = ch1; -new_font.accent[i] = new_font.accent_N; - - break; - } - } while( ch != '\n' ); - if( ch != '\n' ){ - do{ - if( (ch = get_html_ch(file)) == del ){ - -#line 12104 "./tex4ht-c.tex" - -ch1 = 0; -while( ((ch = (int) get_html_ch(file)) != del) ){ - if( (ch < '0') || (ch > '9') ){ warn_i_int(48,i); break; } - ch1 = ch1 * 10 + ch - '0'; } -new_font.accented_array = new_font.accented_N++? - (unsigned int *) r_alloc((void *) new_font.accented_array, - (size_t) (new_font.accented_N * sizeof(unsigned int))) - : m_alloc(unsigned int, 1); -new_font.accented_array[new_font.accented_N - 1] = ch1; -new_font.accented[i] = new_font.accented_N; - - break; - } - } while( ch != '\n' ); - } - if( ch != '\n' ) - { while( get_html_ch(file) != '\n' ); } -} - - - -#line 10389 "./tex4ht-c.tex" - -add_bit( new_font.ch_str, i, j!=2 ); -switch( j ){ - case 1: { new_font.ch[i] = 0; break; } - case 2: { new_font.ch[i] = *str; break; } - default: { unsigned U_CHAR *p; - new_font.str[design_n] = p = m_alloc(unsigned char, j); - if( design_n>255 ){ design_n--; warn_i(35);} - if( i==255 ){ - if( design_n == 255 ){ - new_font.ch[i] = 0; new_font.ch255 = 1; - } else { new_font.ch[i] = ++design_n; } - } else { new_font.ch[i] = ++design_n; } - while( j-- ) p[j] = str[j]; -} } - - } - -#line 10303 "./tex4ht-c.tex" - -while( char_l > new_font.char_l ){ - while( get_html_ch(file) != '\n' ); - char_l--; } - - -} - - - -#line 10591 "./tex4ht-c.tex" - -(void) get_html_file_id(file, new_font.char_f, new_font.char_l, 18); - - - htf_to_lg(html_font, new_font_name, fonts_n, file); - -#line 10499 "./tex4ht-c.tex" - -if( dump_htf_files ){ - dump_htf_files++; dump_htf( file ); dump_htf_files--; -} - - - (IGNORED) fclose(file); break; - } } - if( flag ){ break; } - } - if( font_name_n == 0 ){ - if( errCode == 0 ){ errCode= 21; } - warn_i_str(21,search_font_name); - (IGNORED) fprintf(stderr, - "%d--%d)\n", new_font.char_f, new_font.char_l); - dump_env(); - } else { -#line 10505 "./tex4ht-c.tex" - -if( dump_env_files ){ dump_env(); } - - } -} - - - new_font.str = (unsigned U_CHAR **) r_alloc((void *) new_font.str, - (size_t) ( (design_n?design_n:1) * sizeof(char *)) ); - -#line 10231 "./tex4ht-c.tex" - -for( i = fonts_n; i--; ) - if( eq_str(html_font[i].name, new_font_name) ){ int k; - k = html_font[i].i; - free((void *) new_font.gif1 ); new_font.gif1= font_tbl[ k ].gif1; - free((void *) new_font.ch ); new_font.ch = font_tbl[ k ].ch; - free((void *) new_font.str ); new_font.str = font_tbl[ k ].str; - free((void *) new_font.ch_str ); - new_font.ch_str = font_tbl[ k ].ch_str; - -#line 12782 "./tex4ht-c.tex" - -free((void *) new_font.math_closing ); - new_font.math_closing = font_tbl[ k ].math_closing; -free((void *) new_font.math ); - new_font.math = font_tbl[ k ].math; - - - break; } -if( i < 0 ){ -#line 10246 "./tex4ht-c.tex" - -html_font = fonts_n? (struct html_font_rec *) r_alloc((void *) html_font, - (size_t) ((fonts_n+1) * sizeof(struct html_font_rec) )) - : m_alloc(struct html_font_rec, 1); -html_font[fonts_n].name = m_alloc(char, font_name_n + 1); -(IGNORED) strcpy((char *) html_font[fonts_n].name, (char *) new_font_name); -html_font[fonts_n].i = font_tbl_size; -fonts_n++; - - } - - -} - - - -#line 11875 "./tex4ht-c.tex" - -{ static struct css_ext_rec * search_css_ext; - for( search_css_ext = css_ext; - search_css_ext != (struct css_ext_rec *) 0; - search_css_ext = search_css_ext->next ){ - int css_name_n = (int) strlen((char *) new_font.name ); - char * css_file_name = m_alloc(char, css_name_n + 1); - (IGNORED) strcpy((char *) css_file_name, (char *) new_font.name); - for( ; css_name_n; css_name_n-- ){ - FILE* file; - css_file_name[css_name_n] = '\0'; - -#line 11892 "./tex4ht-c.tex" - -{ U_CHAR name[256]; - (IGNORED) sprintf(name, "%s.%s", css_file_name, - search_css_ext->name); - -#line 13837 "./tex4ht-c.tex" - - file = NULL; - -#line 13905 "./tex4ht-c.tex" - -{ - struct htf_com_rec *p; - p = htf_font_dir; - while( p ){ - file = search_file_base(name, p->name, READ_TEXT_FLAGS, htf_dirs); - if( file ){ -#ifndef KPATHSEA - tex4ht_fls = TRUE; -#endif - break; - } - p = p->next; - } -} - - - if( !file ){ - if( ((file = f_open(name, READ_TEXT_FLAGS)) == NULL) && dot_file ) - file = search_in_dot_file( 'i', name, READ_TEXT_FLAGS, htf_dirs); -#ifdef HTFDIR - if( !file ) file = search_file_base(name, HTFDIR, - READ_TEXT_FLAGS, htf_dirs); -#endif - -#line 15073 "./tex4ht-c.tex" - - -#ifdef KPATHSEA - if( !file ){ U_CHAR * htfname; - htfname= kpse_find_file (name, kpse_program_text_format, 0); - if ( htfname ){ - -#line 14729 "./tex4ht-c.tex" - -{ U_CHAR * head, * tail, *p; - int n; - -#line 14739 "./tex4ht-c.tex" - -n = (int) strlen((char *) htfname); -tail = head = m_alloc(char, n+1); -(IGNORED) strcpy((char *) head, (char *) htfname); -while( n>11 ){ - if( (*tail=='\\') || (*tail=='/') ){ - if( (*tail == *(tail+9)) && (*(tail+1) == 'h') - && (*(tail+2) == 't') && (*(tail+3) == '-') - && (*(tail+4) == 'f') && (*(tail+5) == 'o') - && (*(tail+6) == 'n') && (*(tail+7) == 't') - && (*(tail+8) == 's') ){ - p = tail + 9; *(tail + 10) = '\0'; tail += 11; - while( (*tail != *p) && (*tail != '\0') ){ tail++; } - break; - } } - tail++; n--; -} - - - htfname = (U_CHAR *) 0; - -#line 14761 "./tex4ht-c.tex" - -for( n = 0 ; (n < cardinality) && !htfname ; n++){ - p = tail; - while( *p != '\0' ){ - char * s, *nm; - s = m_alloc(char, (int) strlen((char *) head ) + - (int) strlen((char *) fontset[n] ) + - (int) strlen((char *) p ) + 1); - (IGNORED) strcpy((char *) s, (char *) head); - (IGNORED) strcat((char *) s, (char *) fontset[n]); - (IGNORED) strcat((char *) s, (char *) p); - nm = kpse_find_file (s, kpse_program_text_format, 0); - free((void *) s); - if ( nm ){ - htfname = nm; break; - } - p++; - while( (*p != '\\') && (*p != '/') && (*p != '\0') ){ p++; } -} } - - -} - - - if ( htfname ){ - (IGNORED) printf("(%s)\n", htfname); - file= fopen(htfname,READ_TEXT_FLAGS); - } } - } -#endif - - - } - - - if( file != NULL ){ - -#line 11913 "./tex4ht-c.tex" - - -#line 11961 "./tex4ht-c.tex" - -BOOL is_visited = FALSE; -struct visited_file_rec * v = visited_file; -while( v != (struct visited_file_rec *) 0 ){ - if( eq_str(v->name, name) ){ - is_visited = TRUE; break; - } - v = v->next; -} - - -if( !is_visited ){ - -#line 11953 "./tex4ht-c.tex" - -struct visited_file_rec * v = m_alloc(struct visited_file_rec, 1); -v->name = m_alloc(char, (int) strlen((char *) name ) + 1 ); -(IGNORED) strcpy((char *) v->name, (char *) name); -v->next = visited_file; -visited_file = v; - - - while( 1 ){ - int ch; - do{ - ch = (int) getc(file); - } while ( (ch == ' ') || (ch == '\n') || (ch == '\t') ); - if( ch == EOF ){ break; } - do{ - (void) putc( ch, log_file ); - ch = (int) getc(file); - } while ( (ch != '\n') && (ch != EOF) ); - (void) putc( '\n', log_file ); - if( ch == EOF ){ break; } -} } - - - (IGNORED) fclose(file); break; - } -} - - - } - free((void *) css_file_name); -} } - - - free((void *) new_font_name); font_tbl_size++; -} -#ifdef MAXFONTS - else err_i_int(17, MAXFONTS); -#endif - - - } - -#line 11943 "./tex4ht-c.tex" - -while( visited_file != (struct visited_file_rec *) 0 ){ - struct visited_file_rec * v = visited_file; - visited_file = visited_file->next; - free((void *) v->name); - free((void *) v); -} - - -#line 14698 "./tex4ht-c.tex" - - -#ifdef KPATHSEA -if( export_str_chars ){ - free((void *) export_str_chars); - free((void *) fontset); -} -#endif - - -#line 16411 "./tex4ht-c.tex" - -for( i = 0; i<htf_4hf_n; i++){ - free((void *) htf_4hf[i].str); -} -free((void *) htf_4hf); - - - if( missing_fonts ) err_i(14); -#ifndef KPATHSEA - -#line 14342 "./tex4ht-c.tex" - -if( cache_files != (FILE *) 0 ){ (IGNORED) fclose(cache_files); } - - - -#line 14105 "./tex4ht-c.tex" - -if( tex4ht_fls ){ - FILE *in_file, *out_file; - U_CHAR temp_file[256]; - -#line 14126 "./tex4ht-c.tex" - -(IGNORED) strcpy((char *) temp_file, (char *) job_name); -temp_file[job_name_n] = '\0'; -temp_file[job_name_n-1] = 'p'; -temp_file[job_name_n-2] = 'm'; -temp_file[job_name_n-3] = 't'; - - - -#line 14222 "./tex4ht-c.tex" - -if( (out_file = fopen(temp_file, WRITE_TEXT_FLAGS)) == NULL ) -{ bad_in_file(temp_file); -} else { - if( (in_file = fopen(tex4ht_fls_name, READ_TEXT_FLAGS)) != NULL ){ - int ch; - while( (ch = getc(in_file)) != EOF ) { - (IGNORED) putc( ch, out_file ); - } - (IGNORED) fclose(in_file); - } - (IGNORED) fclose(out_file); -} - - - if( (out_file = fopen(tex4ht_fls_name, WRITE_TEXT_FLAGS)) == NULL ) - { bad_in_file(tex4ht_fls_name); - } else { - if( (in_file = fopen(temp_file, READ_TEXT_FLAGS)) != NULL ){ - -#line 14238 "./tex4ht-c.tex" - - U_CHAR dir[255], prev_dir[255], file[255], *p; - int ch; - BOOL is_dir; - struct cache_file_rec *file_rec, *prev_file_rec; -cur_cache_font = cache_font; -ch = 'n'; prev_dir[0] = '\0'; -while( ch != EOF ){ - ch = getc(in_file); - is_dir = (ch == ' '); - p = is_dir? dir : file; - while( ch != '\n' ) { - if( ch == EOF ) break; - if( ch != ' ' ) { *p++ = ch; } - ch = getc(in_file); - } - *p = '\0'; - if( is_dir && (dir[0] != '\0') ){ - -#line 14268 "./tex4ht-c.tex" - -while( cur_cache_font != (struct cache_font_rec *)0 ){ - if( gt_str(dir,cur_cache_font->dir) ){ - -#line 14278 "./tex4ht-c.tex" - -file_rec = cur_cache_font->cache_file; -if( file_rec ){ - if( !eq_str( prev_dir, cur_cache_font->dir) ){ - (IGNORED) fprintf(out_file, " %s\n", cur_cache_font->dir); - (IGNORED) strcpy((char *) prev_dir, (char *) dir); - } - cur_cache_font->cache_file = (struct cache_file_rec *) 0; - while( file_rec ) { - prev_file_rec = file_rec; - file_rec = file_rec->next; - (IGNORED) fprintf(out_file, "%s\n", prev_file_rec->file); - free((void *) prev_file_rec ); - } -} - - - } else break; - cur_cache_font = cur_cache_font->next; -} - - - (IGNORED) fprintf(out_file," %s\n", dir); - (IGNORED) strcpy((char *) prev_dir, (char *) dir); - } else if( !is_dir && (file[0] != '\0') ){ - -#line 14298 "./tex4ht-c.tex" - -if( cur_cache_font != (struct cache_font_rec *)0 ){ - if( eq_str(dir,cur_cache_font->dir) ){ - file_rec = cur_cache_font->cache_file; - while( file_rec ) { - if( gt_str(file_rec->file,file) ){ break; } - else if( gt_str(file,file_rec->file) ){ - (IGNORED) fprintf(out_file, "%s\n", file_rec->file); - } - prev_file_rec = file_rec; - file_rec = file_rec->next; - free((void *) prev_file_rec ); - } - cur_cache_font->cache_file = file_rec; - } -} - - - (IGNORED) fprintf(out_file,"%s\n", file); - } -} - -#line 14318 "./tex4ht-c.tex" - -while( cur_cache_font != (struct cache_font_rec *)0 ){ - -#line 14278 "./tex4ht-c.tex" - -file_rec = cur_cache_font->cache_file; -if( file_rec ){ - if( !eq_str( prev_dir, cur_cache_font->dir) ){ - (IGNORED) fprintf(out_file, " %s\n", cur_cache_font->dir); - (IGNORED) strcpy((char *) prev_dir, (char *) dir); - } - cur_cache_font->cache_file = (struct cache_file_rec *) 0; - while( file_rec ) { - prev_file_rec = file_rec; - file_rec = file_rec->next; - (IGNORED) fprintf(out_file, "%s\n", prev_file_rec->file); - free((void *) prev_file_rec ); - } -} - - - cur_cache_font = cur_cache_font->next; -} - - - - - (IGNORED) fclose(in_file); - } - (IGNORED) fclose(out_file); -} } - - -#endif - -#line 10265 "./tex4ht-c.tex" - -if( html_font ){ - while( fonts_n-- ) free((void *) html_font[fonts_n].name); - free((void *) html_font ); -} - - -#line 13716 "./tex4ht-c.tex" - -while( (cur_cache_font = cache_font) != (struct cache_font_rec *)0 ){ - cache_font = cache_font->next; - free((void *) cur_cache_font->dir ); - free((void *) cur_cache_font ); } - - -} - - - (IGNORED) fclose(dot_file); -} - -#line 2268 "./tex4ht-c.tex" - -(IGNORED) fseek(dvi_file, 0L, -#line 2174 "./tex4ht-c.tex" - -0 -); -ch = get_noop(); -if( ch != -#line 17475 "./tex4ht-c.tex" - -247 - ) bad_dvi; -if( ((int) get_char()) != version_id ) bad_dvi; -(void) get_unt(4); -(void) get_unt(4); - (void) get_unt(4); -for( i= get_char(); i>0; i-- ) ch = get_char(); - - - -#line 2318 "./tex4ht-c.tex" - -{ - dis_pages = unread_pages; - while( unread_pages-- ){ - (IGNORED) printf("[%d", dis_pages - unread_pages); - -#line 2343 "./tex4ht-c.tex" - -x_val = dx_1 = dx_2 = 0; max_x_val = -10000; -y_val = max_y_val = prev_y_val = dy_1 = dy_2 = 0; - - - if( get_noop() != -#line 17320 "./tex4ht-c.tex" - -139 - ) bad_dvi; - for( i = 1; i<45; i++ ) - if( get_char() == EOF ) bad_dvi; - while( (ch = get_char()) != -#line 17323 "./tex4ht-c.tex" - -140 - ){ - -#line 2930 "./tex4ht-c.tex" - -{ register int ch_1; - ch_1 = ch; - -#line 6462 "./tex4ht-c.tex" - -if( stack[stack_n].halign_on ) -{ - switch( ch ){ - case -#line 17374 "./tex4ht-c.tex" - -157 -: { ; } - case -#line 17377 "./tex4ht-c.tex" - -158 -: { ; } - case -#line 17380 "./tex4ht-c.tex" - -159 -: { ; } - case -#line 17383 "./tex4ht-c.tex" - -160 -: { ; } - case -#line 17386 "./tex4ht-c.tex" - -161 -: { ; } - case -#line 17389 "./tex4ht-c.tex" - -162 -: { ; } - case -#line 17392 "./tex4ht-c.tex" - -163 -: { ; } - case -#line 17395 "./tex4ht-c.tex" - -164 -: { ; } - case -#line 17398 "./tex4ht-c.tex" - -165 -: { ; } - case -#line 17401 "./tex4ht-c.tex" - -166 -: { ; } - case -#line 17404 "./tex4ht-c.tex" - -167 -: { ; } - case -#line 17407 "./tex4ht-c.tex" - -168 -: { ; } - case -#line 17410 "./tex4ht-c.tex" - -169 -: { ; } - case -#line 17413 "./tex4ht-c.tex" - -170 -: { ; } - case -#line 17309 "./tex4ht-c.tex" - -132 -: { ; } - case -#line 17314 "./tex4ht-c.tex" - -137 -: { ; } - case -#line 17429 "./tex4ht-c.tex" - -235 -: { ; } - case -#line 17432 "./tex4ht-c.tex" - -236 -: { ; } - case -#line 17435 "./tex4ht-c.tex" - -237 -: { ; } - case -#line 17438 "./tex4ht-c.tex" - -238 -: { ; } - case -#line 17326 "./tex4ht-c.tex" - -141 -: - { break; } - default: { -#line 6498 "./tex4ht-c.tex" - -print_f( stack[stack_n].halign[1]->str ); -stack[stack_n].halign_on = FALSE; - - } -} } - - - -#line 3197 "./tex4ht-c.tex" - -if( (ch > 127) && (ch < 137) && (ch != -#line 17309 "./tex4ht-c.tex" - -132 -) ){ - ch_1 = (int) get_unt( (ch - (ch>132)) % 4 +1); -} - - - -#line 7655 "./tex4ht-c.tex" - -if( group_dvi ){ - if( ( ch < 132 ) || - ( (ch > 127) && (ch < 137) && (ch != -#line 17309 "./tex4ht-c.tex" - -132 - ) ) - ){ - ch_id++; - back_token = back_insert ( back_token, ch_id); -} } - - - -#line 2626 "./tex4ht-c.tex" - -if( trace_dvi_C && !in_trace_char ){ - if( (ch < 137) && (ch != -#line 17309 "./tex4ht-c.tex" - -132 -) ){ - in_trace_char = TRUE; block_start = TRUE; -} } -else if ( in_trace_char ){ - if( !trace_dvi_C || (ch > 136) || (ch == -#line 17309 "./tex4ht-c.tex" - -132 -) ){ - in_trace_char = FALSE; -} } - - - -#line 2587 "./tex4ht-c.tex" - -if( span_on && !in_span_ch && !ignore_chs && !in_accenting - && (default_font != font_tbl[cur_fnt].num) ){ - if( (ch < 137) && (ch != -#line 17309 "./tex4ht-c.tex" - -132 -) ){ - in_span_ch = TRUE; start_span = TRUE; -} } -else if ( in_span_ch ){ - if( !span_on || - (ch == -#line 17309 "./tex4ht-c.tex" - -132 -) || - ((136 < ch) && (ch < -#line 17332 "./tex4ht-c.tex" - -143 -)) || - (ch > -#line 17371 "./tex4ht-c.tex" - -156 -) - ){ - in_span_ch = FALSE; - if( *end_span[0] ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, "%s", end_span[0]); - } -} } - - - -#line 12212 "./tex4ht-c.tex" - -if( in_accenting ){ - -#line 12244 "./tex4ht-c.tex" - - long int width; -if( i_accent_template ){ - (IGNORED) fprintf(cur_o_file, "%s", i_accent_second); } -needs_end_accent = (needs_accent_sym == 2 * TRUE); -if( needs_end_accent && t_accent_template ) -{ -#line 12201 "./tex4ht-c.tex" - -needs_accented_sym++; - - } -else if( m_accent_template ) -{ -#line 12201 "./tex4ht-c.tex" - -needs_accented_sym++; - - stack[stack_n-1].accented = TRUE; } -needs_accent_sym = FALSE; -width = (INTEGER)( -#line 9837 "./tex4ht-c.tex" - -design_size_to_pt( *(font_tbl[cur_fnt].wtbl - + (int) ( -#line 9845 "./tex4ht-c.tex" - -*(font_tbl[cur_fnt].char_wi + (int) - ( ch - font_tbl[cur_fnt].char_f)% 256) - -) ) - ) -* (double) font_tbl[cur_fnt].scale - - ); -if( needs_end_accent ){ needs_end_accent = x_val + 9 * width / 10; } -in_accenting = FALSE; - - -} else if( -#line 12269 "./tex4ht-c.tex" - -needs_accent_sym && (ch < 128) - - ){ - if( needs_accent_sym ){ - BOOL needs_end_accent; - needs_end_accent = (needs_accent_sym == 2 * TRUE); - if( needs_end_accent && t_accent_template ){ - (IGNORED) fprintf(cur_o_file, "%s%s%s%d%s%d%s", - t_accent_first, font_tbl[cur_fnt].family_name, - t_accent_second, ch, t_accent_third, - font_tbl[cur_fnt].accent[ch]? - font_tbl[cur_fnt].accent_array[font_tbl[cur_fnt].accent[ch]-1] - : 0, - t_accent_fourth); - } else if( m_accent_template ){ - (IGNORED) fprintf(cur_o_file, "%s%s%s%d%s%d%s", - m_accent_first, font_tbl[cur_fnt].family_name, - m_accent_second, ch, m_accent_third, - font_tbl[cur_fnt].accent[ch]? - font_tbl[cur_fnt].accent_array[font_tbl[cur_fnt].accent[ch]-1] - : 0, - m_accent_fourth); - } - if( i_accent_template ){ - (IGNORED) fprintf(cur_o_file, "%s", i_accent_first); } - in_accenting = TRUE; - } -} - - - if( ch < 132 ) { - x_val += math_class_on? -#line 12651 "./tex4ht-c.tex" - -set_ch_class(ch_1) - - - : insert_ch(ch_1); - if( max_x_val < x_val ) max_x_val = x_val; - } else switch( ch ) { - case 133: case 134: case 135: case 136: { - INTEGER w; - w = math_class_on? -#line 12651 "./tex4ht-c.tex" - -set_ch_class(ch_1) - - : insert_ch(ch_1); - max_x_val = ( x_val + w > max_x_val )? x_val + w : max_x_val; - break; - } - -#line 3036 "./tex4ht-c.tex" - -case -#line 17332 "./tex4ht-c.tex" - -143 -: {;} -case -#line 17335 "./tex4ht-c.tex" - -144 -: {;} -case -#line 17338 "./tex4ht-c.tex" - -145 -: {;} -case -#line 17341 "./tex4ht-c.tex" - -146 -: { - try_new_line(); - (void) move_x((INTEGER) get_int(ch - -#line 17332 "./tex4ht-c.tex" - -143 - + 1 )); - break; } - - -#line 3046 "./tex4ht-c.tex" - -case -#line 17344 "./tex4ht-c.tex" - -147 -: { - (void) move_x( dx_1 ); break; } -case -#line 17347 "./tex4ht-c.tex" - -148 -: {;} -case -#line 17350 "./tex4ht-c.tex" - -149 -: {;} -case -#line 17353 "./tex4ht-c.tex" - -150 -: {;} -case -#line 17356 "./tex4ht-c.tex" - -151 -: { - try_new_line(); - dx_1 = move_x((INTEGER) get_int(ch - -#line 17344 "./tex4ht-c.tex" - -147 - )); - break; } - - -#line 3058 "./tex4ht-c.tex" - -case -#line 17359 "./tex4ht-c.tex" - -152 -: { - (void) move_x( dx_2 ); break; } -case -#line 17362 "./tex4ht-c.tex" - -153 -: {;} -case -#line 17365 "./tex4ht-c.tex" - -154 -: {;} -case -#line 17368 "./tex4ht-c.tex" - -155 -: {;} -case -#line 17371 "./tex4ht-c.tex" - -156 -: { - try_new_line(); - dx_2 = move_x((INTEGER) get_int(ch - -#line 17359 "./tex4ht-c.tex" - -152 - )); - break; } - - -#line 3143 "./tex4ht-c.tex" - -case -#line 17374 "./tex4ht-c.tex" - -157 -: {;} -case -#line 17377 "./tex4ht-c.tex" - -158 -: {;} -case -#line 17380 "./tex4ht-c.tex" - -159 -: {;} -case -#line 17383 "./tex4ht-c.tex" - -160 -: { - (void) move_y( (INTEGER) get_int(ch - -#line 17374 "./tex4ht-c.tex" - -157 - + 1 )); - break; } - - -#line 3152 "./tex4ht-c.tex" - -case -#line 17386 "./tex4ht-c.tex" - -161 -: { (void) move_y( dy_1 ); break; } -case -#line 17389 "./tex4ht-c.tex" - -162 -: {;} -case -#line 17392 "./tex4ht-c.tex" - -163 -: {;} -case -#line 17395 "./tex4ht-c.tex" - -164 -: {;} -case -#line 17398 "./tex4ht-c.tex" - -165 -: { - dy_1 = move_y( (INTEGER) get_int(ch - -#line 17386 "./tex4ht-c.tex" - -161 - )); - break; } - - -#line 3162 "./tex4ht-c.tex" - -case -#line 17401 "./tex4ht-c.tex" - -166 -: { (void) move_y( dy_2 ); break; } -case -#line 17404 "./tex4ht-c.tex" - -167 -: {;} -case -#line 17407 "./tex4ht-c.tex" - -168 -: {;} -case -#line 17410 "./tex4ht-c.tex" - -169 -: {;} -case -#line 17413 "./tex4ht-c.tex" - -170 -: { - dy_2 = move_y( (INTEGER) get_int(ch - -#line 17401 "./tex4ht-c.tex" - -166 - )); - break; } - - -#line 3586 "./tex4ht-c.tex" - -case -#line 17309 "./tex4ht-c.tex" - -132 -: { - (void) rule_x( TRUE ); break; -} -case -#line 17314 "./tex4ht-c.tex" - -137 -: { - (void) rule_x( FALSE ); break; -} - - -#line 3759 "./tex4ht-c.tex" - - -#line 3764 "./tex4ht-c.tex" - -case -#line 17460 "./tex4ht-c.tex" - -246 -: (void) get_char(); -case -#line 17457 "./tex4ht-c.tex" - -245 -: (void) get_char(); -case -#line 17454 "./tex4ht-c.tex" - -244 -: (void) get_char(); -case -#line 17451 "./tex4ht-c.tex" - -243 -: { - for( i=0; i<14; i++ ){ ch = get_char(); } - for( i=ch + get_char(); i>0; i--) (void) get_char(); - break; -} - - - - -#line 3776 "./tex4ht-c.tex" - -case -#line 17490 "./tex4ht-c.tex" - -252 - -: - if( version_id == -#line 2292 "./tex4ht-c.tex" - -10 - - ){ - -#line 9230 "./tex4ht-c.tex" - - unsigned short flags; -for( i=0; i<8; i++ ){ ch = get_char(); } -flags = (INTEGER) get_unt(2); -for( i = (INTEGER) get_unt(1) - + (INTEGER) get_unt(1) - + (INTEGER) get_unt(1) - ; i>0 - ; i-- ){ ch = get_char(); } -if( flags & -#line 8955 "./tex4ht-c.tex" - -0x0200 - - ){ (void) get_unt(4); } -if( flags & -#line 8959 "./tex4ht-c.tex" - -0x0800 - - ){ - int n = (INTEGER) get_unt(2); - int i; - for (i = 0; i < n; ++i) { - (void) get_unt(4); - } - for (i = 0; i < n; ++i) { - (void) get_int(4); -} } - - - break; - } -case -#line 17496 "./tex4ht-c.tex" - -253 - -: - if( version_id == -#line 2292 "./tex4ht-c.tex" - -10 - - ){ - -#line 9253 "./tex4ht-c.tex" - -doGlyphArray(TRUE); - - - break; - } -case -#line 17501 "./tex4ht-c.tex" - -254 - -: - if( version_id == -#line 2292 "./tex4ht-c.tex" - -10 - - ){ - -#line 9258 "./tex4ht-c.tex" - -doGlyphArray(FALSE); - - - break; - } - - -#line 3795 "./tex4ht-c.tex" - -default: { - if( (ch < -#line 17417 "./tex4ht-c.tex" - -171 -) || (ch > -#line 17423 "./tex4ht-c.tex" - -234 -) ) { - bad_char(ch); - } else { cur_fnt = ch - -#line 17417 "./tex4ht-c.tex" - -171 -; - -#line 9309 "./tex4ht-c.tex" - -cur_fnt = search_font_tbl( cur_fnt ); -word_sp = -#line 9911 "./tex4ht-c.tex" - -design_size_to_pt( font_tbl[cur_fnt].word_sp ) - * (double) font_tbl[cur_fnt].scale - -; - - } - break; -} - - -#line 3805 "./tex4ht-c.tex" - -case -#line 17429 "./tex4ht-c.tex" - -235 - : -case -#line 17432 "./tex4ht-c.tex" - -236 -: -case -#line 17435 "./tex4ht-c.tex" - -237 -: -case -#line 17438 "./tex4ht-c.tex" - -238 - : { - INTEGER n; - n = ch - -#line 17429 "./tex4ht-c.tex" - -235 - + 1; - cur_fnt = (int) ((n==4)? get_int(4) : get_unt((int) n)); - -#line 9309 "./tex4ht-c.tex" - -cur_fnt = search_font_tbl( cur_fnt ); -word_sp = -#line 9911 "./tex4ht-c.tex" - -design_size_to_pt( font_tbl[cur_fnt].word_sp ) - * (double) font_tbl[cur_fnt].scale - -; - - - break; } - - -#line 3841 "./tex4ht-c.tex" - -case -#line 17441 "./tex4ht-c.tex" - -239 -: {;} -case -#line 17443 "./tex4ht-c.tex" - -240 -: {;} -case -#line 17445 "./tex4ht-c.tex" - -241 -: {;} -case -#line 17447 "./tex4ht-c.tex" - -242 -: { -#line 3857 "./tex4ht-c.tex" - -long int special_n; - -#line 12281 "./tex4ht-c.tex" - -if( needs_end_accent && t_accent_template ){ - -#line 2609 "./tex4ht-c.tex" - -if( span_on && in_span_ch ){ - if( *end_span[0] ){ - in_span_ch = FALSE; - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, "%s", end_span[0]); -} } - - - (IGNORED) fprintf(cur_o_file, "%s", t_accent_fifth); - needs_end_accent = FALSE; -#line 12424 "./tex4ht-c.tex" - -needs_accented_sym--; - - -} - - - if( tex4ht_special( &ch, &special_n) ) { int sv; sv = ch; - special_on = TRUE; -#line 3944 "./tex4ht-c.tex" - -try_new_line(); -switch( ch ){ - case '*': { -#line 4585 "./tex4ht-c.tex" - -if( special_n ){ - special_n--; - switch ( get_char() ){ - case '<': { -#line 4689 "./tex4ht-c.tex" - - U_CHAR name[256]; - int i=0; - FILE* file; -name[(int) special_n] = '\0'; -while( special_n-- > 0 ){ name[i++] = get_char(); } -file = f_open(name, READ_TEXT_FLAGS); -if( file ) { - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - while( (ch = getc(file)) >=0 ){ - (IGNORED) put_4ht_ch(ch,cur_o_file); - } - (IGNORED) fclose(file); -} else { warn_i_str( 1, name ); } - - break; } - case '>': { -#line 4394 "./tex4ht-c.tex" - -if( special_n > 0 ){ - -#line 4504 "./tex4ht-c.tex" - - static struct files_rec *p, *q; - U_CHAR name[256]; - int i; - -#line 4514 "./tex4ht-c.tex" - -i = 0; -name[(int) special_n] = '\0'; -while( special_n-- > 0 ){ name[i++] = get_char(); } -for( p = opened_files; p != (struct files_rec*) 0; p = p->next ){ - if( eq_str(p->name, name) ){ break; } -} - - -if( p != (struct files_rec*) 0 ){ - -#line 4525 "./tex4ht-c.tex" - -for( q = p; q->next != (struct files_rec*) 0; q = q->next ){ } -if( q != p ){ - q->next = p; - (p->next)->prev = p->prev; - if( opened_files == p ){ opened_files = p->next; } - else { (p->prev)->next = p->next; } - p->prev = q; - p->next = (struct files_rec*) 0; -} - - -} - - -} else { - -#line 4470 "./tex4ht-c.tex" - - -#line 4474 "./tex4ht-c.tex" - - static struct files_rec *p, *q; -for( p = opened_files; p != (struct files_rec*) 0; p = p->next ){ - if( (p->file == cur_o_file) && p->prev_file ){ - -#line 4486 "./tex4ht-c.tex" - -for( q = opened_files; q != (struct files_rec*) 0; q = q->next ){ - if( q->file == p->prev_file ){ - break; - } -} -if( q == (struct files_rec*) 0 ){ - warn_i_str(51,q->name); - break; -} - - - cur_o_file = p->prev_file; - p->prev_file = (FILE *) 0; - break; - } -} - - - - -} - - break; } - case '!': { -#line 4608 "./tex4ht-c.tex" - - U_CHAR name[256], ch; - int i=0, n; - struct sys_call_rec *p; - BOOL flag; -name[(int) special_n] = '\0'; -while( special_n-- > 0 ){ name[i++] = get_char(); } -(IGNORED) printf("System call: %s\n", name); - -#line 4654 "./tex4ht-c.tex" - -flag = FALSE; -p = system_calls; -while( p ){ - if( (n = (int) strlen((char *) p->filter)) == 1 ) { - flag = flag || (*(p->filter) == '*'); - } if( strlen((char *) name) >= (unsigned int) n ) { - ch = name[n]; name[n] = '\0'; - flag = flag || eq_str(p->filter,name); - name[n] = ch; - } - p = p->next; -} - - -if( flag ){ - (IGNORED) printf("System return: %d\n", - system_yes? (int) system(name) : -1 ); -} else { (IGNORED) printf("No permission for system call\n"); } - - break; } - case '^': { -#line 12155 "./tex4ht-c.tex" - -special_n--; -switch ( get_char() ){ - case 't': { if( special_n ){ - -#line 12317 "./tex4ht-c.tex" - -(IGNORED) get_open_accent(&t_accent_template, - &t_accent_first, &t_accent_second, - &t_accent_third, &t_accent_fourth, - &t_accent_fifth, &special_n); - - - } else { -#line 12193 "./tex4ht-c.tex" - -needs_accent_sym = TRUE * 2; - - } - break; - } - case 'm': { if( special_n ){ - -#line 12324 "./tex4ht-c.tex" - -(IGNORED) get_open_accent(&m_accent_template, - &m_accent_first, &m_accent_second, - &m_accent_third, &m_accent_fourth, - &m_accent_fifth, &special_n); - - - } else { -#line 12197 "./tex4ht-c.tex" - -needs_accent_sym = TRUE; - - } - break; - } - case 'a': { -#line 12428 "./tex4ht-c.tex" - -(IGNORED) get_open_accent(&a_accent_template, - &a_accent_first, &a_accent_second, - &a_accent_third, &a_accent_fourth, - &a_accent_fifth, &special_n); - - - break; - } - case 'i': { -#line 12444 "./tex4ht-c.tex" - -(IGNORED) get_open_accent(&i_accent_template, - &i_accent_first, &i_accent_second, - &i_accent_third, &i_accent_fourth, - &i_accent_fifth, &special_n); - - - break; - } - default: { -#line 17088 "./tex4ht-c.tex" - -while( special_n-- ) (void) get_char(); - - } -} - - break; } - case '@': { -#line 6239 "./tex4ht-c.tex" - - int i; -i = 0; -special_n--; -switch ( get_char() ){ - case '8': { i++; } - case '7': { i++; } - case '6': { i++; } - case '5': { i++; } - case '4': { i++; } - case '3': { i++; } - case '2': { i++; } - case '1': { -#line 6313 "./tex4ht-c.tex" - -if( halign[i]->refs == 1 ){ - free((void *) halign[i]->str ); -} else { - (halign[i]->refs)--; - halign[i] = m_alloc(struct halign_rec, 1); - halign[i]->refs = 1; -} -halign[i]->str = get_str( (int) special_n ); -special_n=0; - - break; } - case '/': { if( special_n ){ - -#line 17088 "./tex4ht-c.tex" - -while( special_n-- ) (void) get_char(); - - - } else { -#line 6492 "./tex4ht-c.tex" - -if( stack[stack_n].halign_on ) -{ -#line 6498 "./tex4ht-c.tex" - -print_f( stack[stack_n].halign[1]->str ); -stack[stack_n].halign_on = FALSE; - - } - - } - break; - } - case '&': { i++; } - case '@': { i++; - if( special_n ){ - -#line 17088 "./tex4ht-c.tex" - -while( special_n-- ) (void) get_char(); - - - } else { - -#line 6370 "./tex4ht-c.tex" - -new_halign = i * TRUE; - - - } - break; - } - default: { -#line 17088 "./tex4ht-c.tex" - -while( special_n-- ) (void) get_char(); - - } -} - - break; } - case '=': { -#line 4149 "./tex4ht-c.tex" - - char *str, *repl; - struct hcode_repl_typ *p, *q; - BOOL flag; -if( special_n ){ - repl = str = m_alloc(char, (int) special_n + 1); - while( special_n-- > 0 ){ - *str = get_char(); str++; - } - *str = 0; - -#line 4176 "./tex4ht-c.tex" - -if( hcode_repl != (struct hcode_repl_typ*) 0 ){ - if( *(hcode_repl->str) == *repl ){ - p = hcode_repl; - hcode_repl = hcode_repl->next; - free((void *) p->str); - free((void *) p); - } else { - p = hcode_repl; - while( TRUE ){ - q = p->next; - if( q == (struct hcode_repl_typ*) 0 ){ break; } - if( *(q->str) == *repl ){ - p->next = q->next; - free((void *) q->str); - free((void *) q); - break; - } - p = q; -} } } - - - -#line 4199 "./tex4ht-c.tex" - -flag = *repl != *(repl+1); -if( !flag ){ flag = *(repl+2) != 0; } -if( flag ){ - p = (struct hcode_repl_typ *) m_alloc(struct hcode_repl_typ, 1); - p->str = repl; - p->next = hcode_repl; - hcode_repl = p; -} - - -} else { - -#line 4166 "./tex4ht-c.tex" - -while( hcode_repl != (struct hcode_repl_typ*) 0 ){ - p = hcode_repl; - hcode_repl = hcode_repl->next; - free((void *) p->str); - free((void *) p); -} - - -} - - break; } - default: { -#line 17088 "./tex4ht-c.tex" - -while( special_n-- ) (void) get_char(); - - } - } -} else { -#line 17093 "./tex4ht-c.tex" - -; - - } - - break; } - case '@': { -#line 4240 "./tex4ht-c.tex" - - int code, digit; -special_n--; -switch ( code = get_char() ){ - case '%': { -#line 2511 "./tex4ht-c.tex" - -if( special_n>1 ) { - special_n--; - if ( get_char() == '%' ) { - if( special_n>2 ) { -#line 2648 "./tex4ht-c.tex" - - U_CHAR type, ch, *p, *q, *pp=0, *qq=0, pre[256], post[256]; -special_n -= 2; type = get_char(); ch = get_char(); -p = pre; -while( special_n-- > 0 ) { - if ( (*(p++)=get_char() ) == ch ) { p--; break; } -} -*p = '\0'; -p = post; -while( special_n-- > 0 ) { *(p++)=get_char(); } *p='\0'; - - -#line 2661 "./tex4ht-c.tex" - -p = m_alloc(char, 1 + (int) strlen((char *) pre)); -(IGNORED) strcpy((char *) p, (char *) pre ); -q = m_alloc(char, 1 + (int) strlen((char *) post)); -(IGNORED) strcpy((char *) q, (char *) post ); - - -#line 2670 "./tex4ht-c.tex" - -switch ( type ){ - case 'P': { - pp = trace_dvi_del_P; trace_dvi_del_P = p; - qq = end_trace_dvi_del_P; end_trace_dvi_del_P = q; - break; } - case 'C': { - pp = trace_dvi_del_C; trace_dvi_del_C = p; - qq = end_trace_dvi_del_C; end_trace_dvi_del_C = q; - break; } - case 'V': { - pp = trace_dvi_del_V; trace_dvi_del_V = p; - qq = end_trace_dvi_del_V; end_trace_dvi_del_V = q; - break; } - case 'H': { - pp = trace_dvi_del_H; trace_dvi_del_H = p; - qq = end_trace_dvi_del_H; end_trace_dvi_del_H = q; - break; } - case 'R': { - pp = trace_dvi_del_R; trace_dvi_del_R = p; - qq = end_trace_dvi_del_R; end_trace_dvi_del_R = q; - break; } - case 'p': { - pp = trace_dvi_del_p; trace_dvi_del_p = p; - qq = end_trace_dvi_del_p; end_trace_dvi_del_p = q; - break; } - case 'c': { - pp = trace_dvi_del_c; trace_dvi_del_c = p; - qq = end_trace_dvi_del_c; end_trace_dvi_del_c = q; - break; } - case 'v': { - pp = trace_dvi_del_v; trace_dvi_del_v = p; - qq = end_trace_dvi_del_v; end_trace_dvi_del_v = q; - break; } - case 'h': { - pp = trace_dvi_del_h; trace_dvi_del_h = p; - qq = end_trace_dvi_del_h; end_trace_dvi_del_h = q; - break; } - case 'r': { - pp = trace_dvi_del_r; trace_dvi_del_r = p; - qq = end_trace_dvi_del_r; end_trace_dvi_del_r = q; - break; } - default: { ; } -} -free((void *) pp); -free((void *) qq); - - } - else { -#line 17088 "./tex4ht-c.tex" - -while( special_n-- ) (void) get_char(); - - } - } else { -#line 17088 "./tex4ht-c.tex" - -while( special_n-- ) (void) get_char(); - - } -} else if( special_n ) { - special_n--; - switch ( get_char() ){ - case 'P': { trace_dvi_P++; break; } - case 'C': { trace_dvi_C++; break; } - case 'V': { trace_dvi_V++; break; } - case 'H': { trace_dvi_H++; break; } - case 'R': { trace_dvi_R++; break; } - case 'p': { trace_dvi_P--; break; } - case 'c': { trace_dvi_C--; break; } - case 'v': { trace_dvi_V--; break; } - case 'h': { trace_dvi_H--; break; } - case 'r': { trace_dvi_R--; break; } - default: { ; } -} } - - break; } - case '@': { verb_ch = !verb_ch; break; } - case '/': { -#line 17176 "./tex4ht-c.tex" - -trace_special = !trace_special; - - break; } - case 'e': { -#line 17153 "./tex4ht-c.tex" - -if( err_mark ){ free((void *) err_mark); } -if( special_n ){ - err_mark = get_str( (int) special_n ); special_n=0; -} else { err_mark = (char *) 0; } - - break; } - case '!': { -#line 3262 "./tex4ht-c.tex" - -while( recover_spaces-- ){ text_on=TRUE; put_char(' '); } -recover_spaces = 0; - - break; } - case '(': { -#line 3268 "./tex4ht-c.tex" - -ignore_spaces++; - - break; } - case ')': { -#line 3272 "./tex4ht-c.tex" - -ignore_spaces--; - - break; } - case '[': { -#line 3290 "./tex4ht-c.tex" - -if( special_n ){ - -#line 3278 "./tex4ht-c.tex" - -U_CHAR *unhskip_mark; -long retract_addr; -BOOL unhskip; -int cr_fnt, ch, unskip_depth; - - - cr_fnt = cur_fnt; - unskip_depth = 0; - unhskip_mark = get_str( (int) special_n ); special_n=0; - retract_addr = ftell(dvi_file); - -#line 3304 "./tex4ht-c.tex" - -unhskip = TRUE; -while( unhskip ){ - if( (ch = get_char()) >= 128 ) { - switch( ch ){ - -#line 7080 "./tex4ht-c.tex" - -case -#line 17460 "./tex4ht-c.tex" - -246 -: (void) get_char(); -case -#line 17457 "./tex4ht-c.tex" - -245 -: (void) get_char(); -case -#line 17454 "./tex4ht-c.tex" - -244 -: (void) get_char(); -case -#line 17451 "./tex4ht-c.tex" - -243 -: { int i; - for( i=14; i; i-- ){ ch = get_char(); } - i = ch + get_char(); - (IGNORED) fseek(dvi_file, (long) i, -#line 2177 "./tex4ht-c.tex" - -1 -); - break; } - - - -#line 7151 "./tex4ht-c.tex" - -case -#line 17309 "./tex4ht-c.tex" - -132 -: -case -#line 17314 "./tex4ht-c.tex" - -137 -:{ - (IGNORED) fseek(dvi_file, 8L, -#line 2177 "./tex4ht-c.tex" - -1 -); - break; -} - - -#line 7159 "./tex4ht-c.tex" - -case -#line 17320 "./tex4ht-c.tex" - -139 -: { - (IGNORED) fseek(dvi_file, 44L, -#line 2177 "./tex4ht-c.tex" - -1 -); break; } - - -#line 7164 "./tex4ht-c.tex" - -case -#line 17332 "./tex4ht-c.tex" - -143 -: case -#line 17335 "./tex4ht-c.tex" - -144 -: -case -#line 17338 "./tex4ht-c.tex" - -145 -: case -#line 17341 "./tex4ht-c.tex" - -146 -: { - (IGNORED) (get_int( ch - -#line 17332 "./tex4ht-c.tex" - -143 - + 1 )); break; } -case -#line 17347 "./tex4ht-c.tex" - -148 -: -case -#line 17350 "./tex4ht-c.tex" - -149 -: -case -#line 17353 "./tex4ht-c.tex" - -150 -: -case -#line 17356 "./tex4ht-c.tex" - -151 -: { - (IGNORED) (get_int( ch - -#line 17347 "./tex4ht-c.tex" - -148 - + 1)); - break; } -case -#line 17362 "./tex4ht-c.tex" - -153 -: -case -#line 17365 "./tex4ht-c.tex" - -154 -: -case -#line 17368 "./tex4ht-c.tex" - -155 -: -case -#line 17371 "./tex4ht-c.tex" - -156 -: { - (IGNORED) (get_int( ch - -#line 17362 "./tex4ht-c.tex" - -153 - + 1)); - break; } -case -#line 17374 "./tex4ht-c.tex" - -157 -: case -#line 17377 "./tex4ht-c.tex" - -158 -: -case -#line 17380 "./tex4ht-c.tex" - -159 -: case -#line 17383 "./tex4ht-c.tex" - -160 -: { - (IGNORED) (get_int( ch - -#line 17374 "./tex4ht-c.tex" - -157 - + 1)); - break; } -case -#line 17389 "./tex4ht-c.tex" - -162 -: -case -#line 17392 "./tex4ht-c.tex" - -163 -: -case -#line 17395 "./tex4ht-c.tex" - -164 -: -case -#line 17398 "./tex4ht-c.tex" - -165 -: { - (IGNORED) (get_int( ch - -#line 17389 "./tex4ht-c.tex" - -162 - + 1)); - break; } -case -#line 17404 "./tex4ht-c.tex" - -167 -: -case -#line 17407 "./tex4ht-c.tex" - -168 -: -case -#line 17410 "./tex4ht-c.tex" - -169 -: -case -#line 17413 "./tex4ht-c.tex" - -170 -: { - (IGNORED) (get_int( ch - -#line 17404 "./tex4ht-c.tex" - -167 - + 1)); - break; } - - -#line 7200 "./tex4ht-c.tex" - -case -#line 17344 "./tex4ht-c.tex" - -147 -: -case -#line 17359 "./tex4ht-c.tex" - -152 -: -case -#line 17386 "./tex4ht-c.tex" - -161 -: -case -#line 17401 "./tex4ht-c.tex" - -166 -: - { break; } - - - -#line 3342 "./tex4ht-c.tex" - -case 128: case 129: case 130: case 131: case 133: -case 134: case 135: case 136: { - (void) get_unt( (ch-(ch>132)) % 4 +1); - break; -} - - - -#line 3355 "./tex4ht-c.tex" - -case -#line 17326 "./tex4ht-c.tex" - -141 -: -case -#line 17329 "./tex4ht-c.tex" - -142 -: { break; } - - - -#line 3364 "./tex4ht-c.tex" - -case -#line 17441 "./tex4ht-c.tex" - -239 -: case -#line 17443 "./tex4ht-c.tex" - -240 -: -case -#line 17445 "./tex4ht-c.tex" - -241 -: case -#line 17447 "./tex4ht-c.tex" - -242 -: { long int i; - if( tex4ht_special( &ch, &i ) ){ char *mark; - mark = get_str( (int) i ); - if( i ){ - if( (ch=='@') && eq_str(mark+1,unhskip_mark) ){ - switch( *mark ){ - case '[': { unskip_depth++; break; } - case ']': { - unhskip = !(--unskip_depth); - break; - } - default: { ; } - } } } - }else{ -#line 7016 "./tex4ht-c.tex" - - U_CHAR *ch; -ch = special_hd + 4; -while( *ch ){ ch++; } -(IGNORED) fseek(dvi_file, (long) i, -#line 2177 "./tex4ht-c.tex" - -1 -); - - } - break; -} - - - -#line 7093 "./tex4ht-c.tex" - -case -#line 17429 "./tex4ht-c.tex" - -235 -: -case -#line 17432 "./tex4ht-c.tex" - -236 -: -case -#line 17435 "./tex4ht-c.tex" - -237 -: -case -#line 17438 "./tex4ht-c.tex" - -238 -: { - INTEGER n; - n = ch - -#line 17429 "./tex4ht-c.tex" - -235 - + 1; - cr_fnt = (int) ((n==4)? get_int(4) : get_unt((int) n)); - cr_fnt = search_font_tbl( cr_fnt ); - break; } -default: { - if( (ch < -#line 17417 "./tex4ht-c.tex" - -171 -) || (ch > -#line 17423 "./tex4ht-c.tex" - -234 -) ) { - if( ch == -#line 17323 "./tex4ht-c.tex" - -140 - ) { warn_i(46); } - else { warn_i_int(45,ch); } - } else { cr_fnt = ch - -#line 17417 "./tex4ht-c.tex" - -171 -; - cr_fnt = search_font_tbl( cr_fnt ); - } - break; -} - - - } -} } - -#line 3320 "./tex4ht-c.tex" - -do{ - long int i; - char *mark; - ch = get_char(); - if( - ( ch== -#line 17441 "./tex4ht-c.tex" - -239 -) || ( ch== -#line 17443 "./tex4ht-c.tex" - -240 -) || - ( ch== -#line 17445 "./tex4ht-c.tex" - -241 -) || ( ch== -#line 17447 "./tex4ht-c.tex" - -242 -) - ) - { - if( tex4ht_special( &ch, &i ) ){ - mark = get_str( (int) i ); - if( (ch=='@') && ( *mark=='?') && eq_str(mark+1,unhskip_mark)){ - break; - } } - } - (IGNORED) fseek(dvi_file, (long) retract_addr, -#line 2174 "./tex4ht-c.tex" - -0 -); -} while(FALSE); - - - - - cur_fnt = cr_fnt; - free((void *) unhskip_mark); -} else { ignore_chs++;; } - - break; } - case ']': { -#line 3390 "./tex4ht-c.tex" - -if( special_n ){ - while( special_n-- > 0 ){ (void) get_char(); } -} else { ignore_chs--; } - - break; } - case '?': { -#line 3397 "./tex4ht-c.tex" - -while( special_n-- > 0 ){ (void) get_char(); } - - break; } - case '-': { - if( special_n ) { code = 0; -#line 4280 "./tex4ht-c.tex" - -while( special_n-- > 0 ){ - digit = get_char() - '0'; - if ( (digit < 0) || (digit > 9) ) { warn_i_int(41,digit+'0') ; } - else { code = code * 10 + digit; } -} -if ( (code < 0) || (code > 255) ) { code = '?'; warn_i_int(41,'?') ; } - - - put_char( code ); - } else { nomargin = TRUE; } - break; } - case '*': { -#line 4342 "./tex4ht-c.tex" - -keepChar=1; - - } - case '+': { -#line 4299 "./tex4ht-c.tex" - -if( -#line 4332 "./tex4ht-c.tex" - -next_char - - != -1 ) { - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) put_4ht_ch( -#line 4332 "./tex4ht-c.tex" - -next_char - - , cur_o_file ); - -#line 4332 "./tex4ht-c.tex" - -next_char - - = -1; -} -if( -#line 4338 "./tex4ht-c.tex" - -next_str - - ){ print_f(next_str); - free((void *) next_str); next_str = (char *) 0; } -next_str = get_str( (int) special_n ); special_n = 0; - -#line 4314 "./tex4ht-c.tex" - -{ char *front, *back; - int i; - back = front = next_str; - while( *front != '\0' ){ - if( *front == '{' ){ - i = *(++front) - '0'; - while( *(++front) != '}' ){ i = i*10 + (*front - '0'); } - *front = (char) i; - } - *(back++) = *(front++); - } - *back = '\0'; -} - - - - break; } - case '.': { -#line 3402 "./tex4ht-c.tex" - -if( eoln_str ){ free((void *) eoln_str); } -if( special_n ){ - eoln_str = get_str( (int) special_n ); special_n=0; -} else { eoln_str = (char *) 0; } - - break; } - case ',': { -#line 3424 "./tex4ht-c.tex" - -if( space_str ){ free((void *) space_str); } -if( special_n ){ - space_str = get_str( (int) special_n ); special_n=0; -} else { space_str = (char *) 0; } - - break; } - case '_': { -#line 3678 "./tex4ht-c.tex" - -if( !special_n ){ rule_ch = '\0'; } -else { while( special_n-- > 0 ){ rule_ch = get_char(); } - } - - break; } - case 'D': { -#line 3686 "./tex4ht-c.tex" - - struct files_rec *p; -while( special_n-- > 0 ) (void) putc( get_char(), log_file ); -for( p = opened_files; p != (struct files_rec*) 0; p = p->next ){ - if( p->file == cur_o_file) { - (IGNORED) fprintf(log_file, "%d %s\n", - (int) ftell(cur_o_file), p->name); - break; -} } - - break; } - case 'u': { -#line 15888 "./tex4ht-c.tex" - -special_n--; -switch ( code = get_char() ){ - case '+': { put_4ht_off++; -#line 15906 "./tex4ht-c.tex" - -flush_uni(); - - break; } - case '-': { if( put_4ht_off>0 ){ put_4ht_off--; } - else { warn_i_str(52, "@u-"); } - break; } -} - - break; } - default: { -#line 4289 "./tex4ht-c.tex" - -code -= '0'; -#line 4280 "./tex4ht-c.tex" - -while( special_n-- > 0 ){ - digit = get_char() - '0'; - if ( (digit < 0) || (digit > 9) ) { warn_i_int(41,digit+'0') ; } - else { code = code * 10 + digit; } -} -if ( (code < 0) || (code > 255) ) { code = '?'; warn_i_int(41,'?') ; } - - next_char = code; -if( -#line 4338 "./tex4ht-c.tex" - -next_str - - ){ print_f(next_str); - free((void *) next_str); next_str = (char *) 0; } - - } -} - - break; } - case '+': { -#line 5440 "./tex4ht-c.tex" - -while( special_n-- > 0 ) (void) get_char(); - - break; } - case '=': { -#line 4119 "./tex4ht-c.tex" - -while( special_n-- > 0 ){ - int ch; - BOOL flag; - struct hcode_repl_typ *q; - ch = get_char(); - q = hcode_repl; - flag = FALSE; - while( q != (struct hcode_repl_typ*) 0 ){ - if( ch == *(q->str) ){ flag = TRUE; break; } - q = q->next; - } - if( flag ){ - char *chr; - chr = (q->str) + 1; - while( *chr != 0 ){ put_char( *chr ); chr++; } - } else { put_char( ch ); } -} - - break; } - case '<': - case '>': { -#line 4383 "./tex4ht-c.tex" - - -#line 4541 "./tex4ht-c.tex" - - int i=0; - U_CHAR *name; -name = m_alloc(char, (int) special_n+1); -*(name + (int) special_n) = '\0'; -while( special_n-- > 0 ) *(name + i++) = get_char(); - - - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - -#line 4555 "./tex4ht-c.tex" - -for( p = opened_files; p != (struct files_rec*) 0; p = p->next ) - { if( eq_str(p->name, name) ) break; } - - -if( ch == '>' ){ -#line 4407 "./tex4ht-c.tex" - -if( p != (struct files_rec*) 0 ){ - out_file = p->file; - p->prev_file = cur_o_file; - free((void *) name ); -} else { - if( !(*name) ) out_file = (FILE *) 0; - else { -#line 4419 "./tex4ht-c.tex" - -p = m_alloc(struct files_rec, 1); -if( opened_files != (struct files_rec*) 0 ) opened_files->prev = p; -p->prev = (struct files_rec *) 0; -p->next = opened_files; opened_files = p; -p->name = name; -p->file = out_file = open_html_file(name); -p->prev_file = cur_o_file; - - } -} - - } -else { -#line 4431 "./tex4ht-c.tex" - -if( p == (struct files_rec *) 0 ) bad_special( name ); -else { /* if p is null, do nothing more */ - -#line 4444 "./tex4ht-c.tex" - -if( p->prev != (struct files_rec*) 0 ) (p->prev)->next = p->next; -else opened_files = p->next; -if( p->next != (struct files_rec*) 0 ) (p->next)->prev = p->prev; - - -if( opened_files != (struct files_rec*) 0 ) - { if( out_file == p->file ) out_file = opened_files->file; } -else out_file = (FILE *) 0; -(IGNORED) fclose( p->file ); free((void *) p->name ); -free((void *) p ); -} - - } -cur_o_file = ( out_file == (FILE *) 0 )? root_file - : out_file; - - break; } - case '!': { -#line 4816 "./tex4ht-c.tex" - -ch_map_flag = !ch_map_flag; -if( ch_map_flag ){ -#line 4906 "./tex4ht-c.tex" - -init_ch_map(); -xresolution = yresolution = 0; -while( special_n-- > 0 ){ - ch = get_char(); - if( (ch >= '0') && (ch <= '9') ) - { yresolution = yresolution * 10 + ch - '0'; } - else if( (ch == ',') && !xresolution && yresolution ) - { xresolution = yresolution; yresolution = 0; } - else { -#line 4930 "./tex4ht-c.tex" - -xresolution = yresolution = 0; - -#line 17080 "./tex4ht-c.tex" - -warn_i_int( 26, '!'); -(IGNORED) putc( ch, stderr); -while( special_n-- ) (IGNORED) putc( get_char(), stderr); - - - - } -} -if( !xresolution ) xresolution = yresolution; -if( !xresolution ){ xresolution = XRESOLUTION; - yresolution = YRESOLUTION; } -else { xresolution = xresolution * (INTEGER) (XRESOLUTION / 100); - yresolution = yresolution * (INTEGER) (YRESOLUTION / 100); } - - } -else { -#line 5275 "./tex4ht-c.tex" - -dump_ch_map(); - - } - - break; } - case '|': { gif_ch = !gif_ch; break; } - case ':': { -#line 4722 "./tex4ht-c.tex" - -if( special_n-- ){ - int code, n; - U_CHAR str [255], *p; - struct count_rec *q; - code = get_char(); - while( special_n > 254 ){ (void) get_char(); special_n--; } - p = str; n = special_n; - while( special_n-- ) { *(p++) = get_char(); } - *p = '\0'; - -#line 4751 "./tex4ht-c.tex" - -q = counter; -while( q ){ - if( eq_str(str,q->str) ) break; q = q->next; -} -if( !q ){ - q = m_alloc(struct count_rec, 1); - q->i = q->depth = 0; q->max = 10; - q->next = counter; counter = q; - q->str = m_alloc(char, (int) n+1); - (IGNORED) strcpy((char *) q->str, (char *) str ); - q->stack = m_alloc(int, q->max); -} - - - -#line 4783 "./tex4ht-c.tex" - -switch ( code ){ - case '+': { (q->i)++; break; } - case '-': { (q->i)--; break; } - case '>': { -#line 4766 "./tex4ht-c.tex" - -if( q->depth == q->max ){ - q->max += 10; - if( (q->stack = (int *) r_alloc( (void *) q->stack, - (size_t) (q->max * sizeof(int)))) == NULL) bad_mem; -} -q->stack[q->depth++] = q->i; - - break; } - case '<': { if( q->depth ){ -#line 4775 "./tex4ht-c.tex" - -q->depth--; -if( q->max > q->depth + 20 ){ q->max -= 15; - if( (q->stack = (int *) r_alloc( (void *) q->stack, - (size_t) (q->max * sizeof(int)))) == NULL) bad_mem; -} - - } - break; } - case '!': { -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, "%d", q->i); break; } - case '|': { if( q->depth ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - (IGNORED) fprintf(cur_o_file, "%d", q->stack[q->depth - 1] ); - } - break; } - default: { ; } -} - - -} - - break; } - case ';': { -#line 11400 "./tex4ht-c.tex" - - int n, code; - U_CHAR *p, *q; -code = get_char(); -n = 1 + ((--special_n>254)? 254 : special_n); -q = p = m_alloc(char, (int) n); -while( special_n > 254 ){ (void) get_char(); special_n--; } -while( special_n-- ) { *(q++) = get_char(); } -*q = '\0'; q = p; -switch ( code ){ - case '8': { pause_style--; break; } - case '9': { pause_style++; break; } - case '-': { default_font = font_tbl[cur_fnt].num; - base_font_size = font_tbl[cur_fnt].scale / 100; - break; } - case '+': { default_font = -1; break; } - case '%': { -#line 11814 "./tex4ht-c.tex" - - int f; -f = 0; while( *p ){ f = 10*f + *(p++) - '0'; } - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - -(IGNORED) fprintf(cur_o_file, "%d", - (font_tbl[cur_fnt].scale / base_font_size - 100) * f / 100 +100 - ); - - break; } - case '=': { -#line 11823 "./tex4ht-c.tex" - - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - -(IGNORED) fprintf(cur_o_file, "%s", font_tbl[cur_fnt].name); -if( font_tbl[cur_fnt].mag != 100 ){ - (IGNORED) fprintf(cur_o_file,"_%d", font_tbl[cur_fnt].mag); -} - - break; } - case '|': { -#line 11599 "./tex4ht-c.tex" - -{ int bad_str, m; - U_CHAR ch, *t[ -#line 11643 "./tex4ht-c.tex" - -8 -], err_str[256]; -bad_str= -#line 11645 "./tex4ht-c.tex" - -7 -; (IGNORED) strcpy((char *) err_str, (char *) p); -if( n> -#line 11647 "./tex4ht-c.tex" - -10 - ){ - m = 100*( *p-'0' ) + 10*( *(p+1)-'0' )+ *(p+2)-'0'; - if( (m>-1) && (m<256) ){ - ch = *(p + 3); t[0]=p; - while( (*p = *(p+4)) != '\0' ){ - if( ch == *p ){ *p = '\0'; - if( bad_str-- > 0 ) t[ -#line 11645 "./tex4ht-c.tex" - -7 - - bad_str] = p+1; - } - p++; - } } - if( !bad_str ){ - if( m==0 ){ span_name_on = n> -#line 11649 "./tex4ht-c.tex" - -11 -; } - q = span_open[m]; span_open[m] = t[0]; - span_name[m] = t[1]; span_size[m] = t[2]; - span_mag[m] = t[3]; span_ord[m] = t[4]; - span_ch[m] = t[5]; end_span[m] = t[6]; - gif_id[m] = t[7]; - if( not_notify ) { - store_bit_I( class_on, m ); - not_notify = FALSE; - } else store_bit_Z( class_on, m ); - } -} -if( bad_str ){ warn_i_str(37,err_str); } -} - - break; } - case ',': { -#line 11634 "./tex4ht-c.tex" - -not_notify = TRUE; - - break; } - default: { warn_i_int( 36, code); } -} -span_on = span_name_on && !pause_style; -if( q ) free((void *) q); - - break; } - case '"': { -#line 8396 "./tex4ht-c.tex" - -if( special_n ){ - -#line 8467 "./tex4ht-c.tex" - -{ U_CHAR * p, ch, i; - ch = get_char(); - p = pos_text = pos_line = end_pos_text - = end_pos_body = pos_body - = (char *) r_alloc((void *) pos_body,(size_t) special_n + 1); - i = 0; -#line 8486 "./tex4ht-c.tex" - -{ BOOL after_star=0; - while( special_n-- > 0 ){ - if( (*p = get_char()) == ch ){ - *p = '\0'; i++; - if( i==1 ){ end_pos_body = p + 1; after_star = FALSE; } - else if( i==2 ){ pos_text = p + 1; - if( !after_star ){ i--; after_star = TRUE; } - } - else if( i==3 ){ end_pos_text = p + 1; } - else if( i==4 ){ pos_line = p + 1; } - else { p++; break; } - } else { after_star = FALSE; } - p++; - } -} - - - -#line 8506 "./tex4ht-c.tex" - -{ long int v=0; - double w[5]; - int j; - U_CHAR ch, sign; - BOOL done; - for(j=0;j<5;j++){ - -#line 8528 "./tex4ht-c.tex" - -done = FALSE; sign = 1; -if( --special_n > 0 ){ - if( (ch = get_char()) == '-' ){ sign = -1; v=0; } - else v = ch - '0'; - if( (v<0) || (v>9) ) done = TRUE; -} -if( !done ) - while( --special_n > 0 ){ - ch = get_char(); - if( ('0' <= ch ) && (ch <= '9' ) ){ - v = v * 10 + ch - '0'; } - else{ done = TRUE; break; } - } - - - if( done ){ - i++; - w[j] = sign * ((double) v + pos_dbl( &special_n )); - } - } - pos_x_A = w[0]; pos_x_B = w[1]; - pos_y_C = w[2]; pos_y_D = w[3]; pos_y_E = w[4]; -} -rect_pos = (special_n == 2); -if( rect_pos ){ special_n -= 2; rect_pos = get_char() - '0';} - - - if( (i != 10) || special_n ){ - warn_i_str(39,pos_text); - *(pos_text = end_pos_body = pos_line = - end_pos_text = pos_body) = '\0'; - } -} - - -} else if( (pos_dvi = !pos_dvi) == TRUE ){ - print_f(pos_body); - min_pos_x = max_pos_x = base_pos_x = x_val; - min_pos_y = max_pos_y = base_pos_y = y_val ; -} else { U_CHAR *p; - double dim=0.0; - BOOL dim_on; - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - p = end_pos_body; - while( *p ){ - dim_on = TRUE; - switch( *p ){ - -#line 8426 "./tex4ht-c.tex" - -case 'X': { dim = pos_x_A * (max_pos_x - base_pos_x) + pos_x_B; - break; } -case 'x': { dim = pos_x_A * (base_pos_x - min_pos_x) + pos_x_B; - break; } -case 'd': { dim = pos_x_A * (max_pos_x - min_pos_x) + pos_x_B; - break; } -case 'y': { dim = pos_y_C * (base_pos_y - min_pos_y - 1) + pos_y_D; - break; } -case 'Y': { dim = pos_y_C * (max_pos_y - base_pos_y) + pos_y_D; - break; } -case 'D': { dim = pos_y_C * (max_pos_y - min_pos_y) + pos_y_D; - break; } - - - default: { dim_on = FALSE; } - } - p++; - if( dim_on ){ (IGNORED) fprintf(cur_o_file, p, dim); } - else { (IGNORED) fprintf(cur_o_file, "%s", p); } - while( * (p++) ); - } -} - - break; } - case '~': { -#line 6581 "./tex4ht-c.tex" - -if( special_n ){ - -#line 6612 "./tex4ht-c.tex" - - U_CHAR in_ch; -if( (in_ch = get_char()) == '>' ) { - -#line 6734 "./tex4ht-c.tex" - -if( special_n == 1 ){ - special_n--; - switch( get_char() ){ - case '[': { ignore_end_group++; break; } - case ']': { ignore_end_group--; break; } - default: { -#line 17093 "./tex4ht-c.tex" - -; - - } - } -} else { - struct stack_end_entry *p; - U_CHAR *q; - int j; - j = get_char() - '0' + stack_n - 1; - if( --special_n ){ - if (j >= stack_len ) { j = stack_len - 1; } - p = m_alloc(struct stack_end_entry,1); - p->next = stack[ j ].end; - stack[ j ].end = p; - q = p->send = m_alloc(char,special_n+1); - while( --special_n ) *q++ = get_char(); - *q = '\0'; -} } - - -} else if( in_ch == '!' ) { - -#line 7809 "./tex4ht-c.tex" - - struct group_path *p, *t; - U_CHAR *q, str[256]; - int n; -p = m_alloc(struct group_path,1); - -#line 7832 "./tex4ht-c.tex" - -n = 0; -while( --special_n ) { - str[n] = get_char(); - if( ( str[n] != 'e') && (str[n] != 's') ){ break; } - n++; -} -if(( - ( str[n] != '<') && (str[n] != '>') && - ( str[n] != '/') && (str[n] != '-') - ) || (n==0) ){ - str[n+1] = '\0'; - err_i_str(38,str); -} -p->action = str[n]; str[n] = '\0'; -p->path = m_alloc(char,n+1); -(IGNORED) strcpy((char *) p->path, (char *) str); - - - -#line 7851 "./tex4ht-c.tex" - -q = p->info = m_alloc(char,special_n+1); -while( --special_n ) *q++ = get_char(); -*q = '\0'; - - -n = stack_n - 1; -if( p->action == '>' ){ - p->next = stack[ n ].path_end; - stack[ n ].path_end = p; -} else { - p->next = (struct group_path *) 0; - if( stack[n].path_start == (struct group_path *) 0 ) { - stack[n].path_start = p; - } else { - t = stack[n].path_start; - while( t->next != (struct group_path *) 0 ) { t = t->next; } - t->next = p; -} } - - -} else { - if( !group_dvi ){ warn_i(42); } - (IGNORED) fseek(dvi_file, (long) --special_n, - -#line 2177 "./tex4ht-c.tex" - -1 -); - special_n = 0; -} - - -} else if( (group_dvi = !group_dvi) == TRUE ){ - long curr_pos; - int ch, sv_stack_n; - -#line 7114 "./tex4ht-c.tex" - -int cr_fnt; - - -#line 7474 "./tex4ht-c.tex" - -BOOL ch_token; -int id_hide; - - - -#line 7118 "./tex4ht-c.tex" - -cr_fnt = cur_fnt; - - -#line 7479 "./tex4ht-c.tex" - -sv_id = 0; -#line 7470 "./tex4ht-c.tex" - -ch_id = 0; - - -id_hide = 0; ch_token = TRUE; -while( del_stack != (struct del_stack_entry*) 0 ){ - struct del_stack_entry* p; - del_stack = (p = del_stack)->next; - free((void *) p ); -} - - stack_id = 0; - curr_pos = ftell(dvi_file); sv_stack_n = stack_n; - -#line 6989 "./tex4ht-c.tex" - -while( group_dvi ){ - -#line 7126 "./tex4ht-c.tex" - -if( (ch = get_char()) >= 128 ) { - switch( ch ){ - -#line 7142 "./tex4ht-c.tex" - -case 128: case 129: case 130: case 131: case 133: -case 134: case 135: case 136: { - ch = (int) get_unt( (ch-(ch>132)) % 4 +1); - -#line 7354 "./tex4ht-c.tex" - -ch_id++; -if(!back_id_off ){ - if( !id_hide ){ ch_token = TRUE; sv_id = ch_id; } - switch( math_class_of( ch, cr_fnt ) ){ - case -#line 7373 "./tex4ht-c.tex" - -4 - -: { del_stack = push_del( (char) ch, cr_fnt); - break; } - case -#line 7369 "./tex4ht-c.tex" - -5 - -: { - del_stack = pop_del( (char) ch, id_hide, cr_fnt); break; } - default:{ ; } -} } - - - break; -} - - - -#line 7080 "./tex4ht-c.tex" - -case -#line 17460 "./tex4ht-c.tex" - -246 -: (void) get_char(); -case -#line 17457 "./tex4ht-c.tex" - -245 -: (void) get_char(); -case -#line 17454 "./tex4ht-c.tex" - -244 -: (void) get_char(); -case -#line 17451 "./tex4ht-c.tex" - -243 -: { int i; - for( i=14; i; i-- ){ ch = get_char(); } - i = ch + get_char(); - (IGNORED) fseek(dvi_file, (long) i, -#line 2177 "./tex4ht-c.tex" - -1 -); - break; } - - - -#line 7151 "./tex4ht-c.tex" - -case -#line 17309 "./tex4ht-c.tex" - -132 -: -case -#line 17314 "./tex4ht-c.tex" - -137 -:{ - (IGNORED) fseek(dvi_file, 8L, -#line 2177 "./tex4ht-c.tex" - -1 -); - break; -} - - -#line 7159 "./tex4ht-c.tex" - -case -#line 17320 "./tex4ht-c.tex" - -139 -: { - (IGNORED) fseek(dvi_file, 44L, -#line 2177 "./tex4ht-c.tex" - -1 -); break; } - - -#line 7164 "./tex4ht-c.tex" - -case -#line 17332 "./tex4ht-c.tex" - -143 -: case -#line 17335 "./tex4ht-c.tex" - -144 -: -case -#line 17338 "./tex4ht-c.tex" - -145 -: case -#line 17341 "./tex4ht-c.tex" - -146 -: { - (IGNORED) (get_int( ch - -#line 17332 "./tex4ht-c.tex" - -143 - + 1 )); break; } -case -#line 17347 "./tex4ht-c.tex" - -148 -: -case -#line 17350 "./tex4ht-c.tex" - -149 -: -case -#line 17353 "./tex4ht-c.tex" - -150 -: -case -#line 17356 "./tex4ht-c.tex" - -151 -: { - (IGNORED) (get_int( ch - -#line 17347 "./tex4ht-c.tex" - -148 - + 1)); - break; } -case -#line 17362 "./tex4ht-c.tex" - -153 -: -case -#line 17365 "./tex4ht-c.tex" - -154 -: -case -#line 17368 "./tex4ht-c.tex" - -155 -: -case -#line 17371 "./tex4ht-c.tex" - -156 -: { - (IGNORED) (get_int( ch - -#line 17362 "./tex4ht-c.tex" - -153 - + 1)); - break; } -case -#line 17374 "./tex4ht-c.tex" - -157 -: case -#line 17377 "./tex4ht-c.tex" - -158 -: -case -#line 17380 "./tex4ht-c.tex" - -159 -: case -#line 17383 "./tex4ht-c.tex" - -160 -: { - (IGNORED) (get_int( ch - -#line 17374 "./tex4ht-c.tex" - -157 - + 1)); - break; } -case -#line 17389 "./tex4ht-c.tex" - -162 -: -case -#line 17392 "./tex4ht-c.tex" - -163 -: -case -#line 17395 "./tex4ht-c.tex" - -164 -: -case -#line 17398 "./tex4ht-c.tex" - -165 -: { - (IGNORED) (get_int( ch - -#line 17389 "./tex4ht-c.tex" - -162 - + 1)); - break; } -case -#line 17404 "./tex4ht-c.tex" - -167 -: -case -#line 17407 "./tex4ht-c.tex" - -168 -: -case -#line 17410 "./tex4ht-c.tex" - -169 -: -case -#line 17413 "./tex4ht-c.tex" - -170 -: { - (IGNORED) (get_int( ch - -#line 17404 "./tex4ht-c.tex" - -167 - + 1)); - break; } - - -#line 7200 "./tex4ht-c.tex" - -case -#line 17344 "./tex4ht-c.tex" - -147 -: -case -#line 17359 "./tex4ht-c.tex" - -152 -: -case -#line 17386 "./tex4ht-c.tex" - -161 -: -case -#line 17401 "./tex4ht-c.tex" - -166 -: - { break; } - - - -#line 6871 "./tex4ht-c.tex" - -case -#line 17326 "./tex4ht-c.tex" - -141 -: { - -#line 6891 "./tex4ht-c.tex" - -{ struct group_info *p, *last; - if( (last = p = stack[ stack_n ].begin) != (struct group_info *)0 ) - if( p->stack_id == -1 ){ - -#line 6901 "./tex4ht-c.tex" - -while( p ){ - if( p->stack_id != -1 ){ break; } - p->stack_id = stack_id; - last = p; - p = p->next; -} - - - -#line 6911 "./tex4ht-c.tex" - -while ( stack[ stack_n ].begin != last ){ - p = (stack[ stack_n ].begin) -> next; - (stack[ stack_n ].begin) -> next = last->next; - last->next = stack[ stack_n ].begin; - stack[ stack_n ].begin = p; -} - - - } -} - - - stack[stack_n].stack_id = stack_id++; - -#line 7339 "./tex4ht-c.tex" - -if( !back_id_off ) -{ struct del_stack_entry *p; - p = m_alloc(struct del_stack_entry,1); - p->next = del_stack; - p->id = p->fnt = -1; - del_stack = p; -} - - stack_n++; - if( stack_n > -#line 6684 "./tex4ht-c.tex" - -((int) stack_len + 2) - - ){ warn_i(40); } - break; -} -case -#line 17329 "./tex4ht-c.tex" - -142 -: { - stack_n--; -#line 7325 "./tex4ht-c.tex" - -if( !back_id_off ){ - if( !id_hide ){ ch_token = FALSE; - sv_id = stack[stack_n].stack_id; } - while( del_stack != (struct del_stack_entry*) 0 ){ - struct del_stack_entry* p; - int id; - del_stack = (p = del_stack)->next; - id = p->id; - free((void *) p ); - if( id == -1 ) break; -} } - - - stack[stack_n].stack_id = -1; - break; -} - - - -#line 7002 "./tex4ht-c.tex" - -case -#line 17441 "./tex4ht-c.tex" - -239 -: case -#line 17443 "./tex4ht-c.tex" - -240 -: -case -#line 17445 "./tex4ht-c.tex" - -241 -: case -#line 17447 "./tex4ht-c.tex" - -242 -: { long int i; - if( tex4ht_special( &ch, &i ) ){ - if( ch == '~' ){ - -#line 7029 "./tex4ht-c.tex" - -if( i==0 ){ - group_dvi = FALSE ; -}else{ - switch( get_char() ){ - case '<': { - if( i-- ){ U_CHAR ch; - if( (ch = get_char()) == '*' ) - { -#line 7554 "./tex4ht-c.tex" - - struct send_back_entry *p, *q, *t=0; -if( back_id_off ){ - while( i-- ){ (IGNORED) get_char(); } -} else { - p = m_alloc(struct send_back_entry,1); - p->send = get_str( (int)( i - 1 )); - if( ch_token ){ - -#line 7595 "./tex4ht-c.tex" - -p->id = sv_id; -if( sv_id > back_token->id ){ - p->next = back_token; back_token = p; -} else { - q = back_token; - while( sv_id <= q->id ){ t = q; q = q->next; } - p->next = t->next; t->next = p; -} - - - } else { - p->id = (sv_id<0? 0 : sv_id) + push_id; - if( back_group->id < p->id ) - { p->next = back_group; back_group = p; } - else - { q = back_group; - while( q->id >= p->id ) { t = q; q = q->next; } - p->next = t->next; t->next = p; - } - } -} - - } - else if( (ch == '[') && (i==1) ){ - i--; -#line 7493 "./tex4ht-c.tex" - -id_hide++; - - - } - else if( (ch == ']') && (i==1) ){ - i--; -#line 7498 "./tex4ht-c.tex" - -id_hide--; - - - } - else if( (ch == '-') && (i==1) ){ - i--; -#line 7502 "./tex4ht-c.tex" - -id_latex++; - - - } - else if( (ch == '+') && (i==1) ){ - i--; -#line 7507 "./tex4ht-c.tex" - -id_latex--; - - - } - else if( (ch == '(') && (i==1) ){ - i--; -#line 7513 "./tex4ht-c.tex" - -back_id_off++; - - - } - else if( (ch == ')') && (i==1) ){ - i--; -#line 7518 "./tex4ht-c.tex" - -back_id_off--; - - - } - else { -#line 6846 "./tex4ht-c.tex" - - struct group_info *p; - U_CHAR *q; - int j; -j = ch - '0' + stack_n - 1; -if (j >= stack_len ) { j = stack_len - 1; } -p = m_alloc(struct group_info,1); -p->next = stack[ j ].begin; stack[ j ].begin = p; -p->stack_id = stack[ j ].stack_id; -q = p->info = m_alloc(char,i+1); -while( --i ) *q++ = get_char(); -*q = '\0'; - - } - } - break; } - default: { (IGNORED) fseek(dvi_file, (long) --i, - -#line 2177 "./tex4ht-c.tex" - -1 -); break; } -} } - - - } else { - (IGNORED) fseek(dvi_file, (long) i, -#line 2177 "./tex4ht-c.tex" - -1 -); - } - }else{ -#line 7016 "./tex4ht-c.tex" - - U_CHAR *ch; -ch = special_hd + 4; -while( *ch ){ ch++; } -(IGNORED) fseek(dvi_file, (long) i, -#line 2177 "./tex4ht-c.tex" - -1 -); - - } - break; -} - - - -#line 7093 "./tex4ht-c.tex" - -case -#line 17429 "./tex4ht-c.tex" - -235 -: -case -#line 17432 "./tex4ht-c.tex" - -236 -: -case -#line 17435 "./tex4ht-c.tex" - -237 -: -case -#line 17438 "./tex4ht-c.tex" - -238 -: { - INTEGER n; - n = ch - -#line 17429 "./tex4ht-c.tex" - -235 - + 1; - cr_fnt = (int) ((n==4)? get_int(4) : get_unt((int) n)); - cr_fnt = search_font_tbl( cr_fnt ); - break; } -default: { - if( (ch < -#line 17417 "./tex4ht-c.tex" - -171 -) || (ch > -#line 17423 "./tex4ht-c.tex" - -234 -) ) { - if( ch == -#line 17323 "./tex4ht-c.tex" - -140 - ) { warn_i(46); } - else { warn_i_int(45,ch); } - } else { cr_fnt = ch - -#line 17417 "./tex4ht-c.tex" - -171 -; - cr_fnt = search_font_tbl( cr_fnt ); - } - break; -} - - - } -} else { -#line 7354 "./tex4ht-c.tex" - -ch_id++; -if(!back_id_off ){ - if( !id_hide ){ ch_token = TRUE; sv_id = ch_id; } - switch( math_class_of( ch, cr_fnt ) ){ - case -#line 7373 "./tex4ht-c.tex" - -4 - -: { del_stack = push_del( (char) ch, cr_fnt); - break; } - case -#line 7369 "./tex4ht-c.tex" - -5 - -: { - del_stack = pop_del( (char) ch, id_hide, cr_fnt); break; } - default:{ ; } -} } - - } - - -} - - - -#line 6954 "./tex4ht-c.tex" - -{ struct group_info *first, *second, *temp; - int i; -for(i = stack_len; i >= 0; i--){ - first = stack[i].begin; - if( first ) { - second = first->next; - while( second ){ - temp = second->next; - second->next = first; - first = second; - second = temp; - } - (stack[i].begin)->next = (struct group_info *) 0; - stack[i].begin = first; -} } } - - -#line 7610 "./tex4ht-c.tex" - -back_group = rev_list( back_group ); -back_token = rev_list( back_token ); -back_token = back_insert ( back_token, 0); - -#line 7470 "./tex4ht-c.tex" - -ch_id = 0; - - - - - (IGNORED) fseek(dvi_file, curr_pos, -#line 2174 "./tex4ht-c.tex" - -0 -); - group_dvi = TRUE; stack_n = sv_stack_n; stack_id = 0; -} else { -#line 6813 "./tex4ht-c.tex" - -{ int stack_n; - for( stack_n= -#line 6684 "./tex4ht-c.tex" - -((int) stack_len + 2) - -; - stack_n>0; stack_n--){ - group_dvi = TRUE; -#line 6792 "./tex4ht-c.tex" - -while( stack[stack_n-1].end ){ - -#line 6770 "./tex4ht-c.tex" - - struct stack_end_entry *q, *p, *t; -q = stack[ stack_n-1 ].end; -p = stack[ stack_n-1 ].end = (struct stack_end_entry *) 0; -while( q ){ - t = q->next; q->next = p; p = q; q = t; -} -while( p ){ - if( ! ignore_end_group ){ print_f( p->send ); } - free((void *) p->send ); - q = p; p = p->next; free((void *) q ); -} - - -} - - - group_dvi =FALSE; - -#line 6824 "./tex4ht-c.tex" - -while( stack[stack_n-1].begin ){ - struct group_info *p; - warn_i_str(44, stack[stack_n-1].begin->info); - p = stack[stack_n-1].begin; - stack[stack_n-1].begin = p->next; - free((void *) p ); -} -stack[stack_n-1].stack_id = -1; - - -} } - - } - - break; } - case '.': { -#line 1759 "./tex4ht-c.tex" - -if( no_root_file ){ - U_CHAR *name; - name = m_alloc(char, 256); - (IGNORED) strcpy((char *) name, (char *) no_root_file ); - free((void *) no_root_file); - no_root_file = name; - name += (size_t) strlen((char *) name); while( *(--name) != '.' ); name++; - while( special_n-- ){ - if( (no_root_file+253) == name ) name--; - *name++ = get_char(); - } - *name = '\0'; -} else { - U_CHAR str[256], *p; - p = str; while( special_n-- ){ *p++ = get_char(); } *p = '\0'; - warn_i_str(43,str); -} - - break; } - case '^': { -#line 12528 "./tex4ht-c.tex" - -switch( special_n ){ - case 0:{ if( math_class_on ){ - open_del = 256; pause_class = ignore_subclass_del = 0; - math_class_on = FALSE; -#line 12575 "./tex4ht-c.tex" - -group_dvi = sv_group_dvi; -trace_dvi_C = sv_trace_dvi_C; -in_trace_char = sv_in_trace_char; -span_on = sv_span_on; -in_span_ch = sv_in_span_ch; - - - } else { show_class = !show_class; } - break; - } - case 1:{ -#line 12566 "./tex4ht-c.tex" - -sv_group_dvi = group_dvi; -sv_trace_dvi_C = trace_dvi_C; -sv_in_trace_char = in_trace_char; -sv_span_on = span_on; -sv_in_span_ch = in_span_ch; - - - special_n--; - if( (math_class = scan_class(1)) == -#line 12719 "./tex4ht-c.tex" - -79 - - ) - { math_class = 0; } - else math_class_on = TRUE; - break; - } - case 2:{ -#line 12801 "./tex4ht-c.tex" - -special_n -= 2; math_class = scan_class(0); -stack[stack_n+1].ignore_subclass_del = - ( -#line 12726 "./tex4ht-c.tex" - -')' - - == get_char()); -stack[stack_n+1].active_class_del = TRUE; -stack[stack_n+1].temp_class_del = FALSE; -stack[stack_n+1].no_left_del = TRUE; -stack[stack_n+1].class_open = open_class[math_class]; -stack[stack_n+1].class_close = close_class[math_class]; - - - break; } - default:{ -#line 12657 "./tex4ht-c.tex" - -{ U_CHAR str[256], *p, ch, **q; - math_class = scan_class(2); ch = get_char(); - special_n -= 2; p = str; - while( special_n-- > 0 ){ - if( (*(p++) = get_char()) == ch ){ p--; break; } - } - *p = '\0'; - q = (math_class > -#line 12715 "./tex4ht-c.tex" - -78 - -)? &( -#line 12833 "./tex4ht-c.tex" - -stack[stack_n+1].temp_class_open - -) - : &(open_class[math_class]); - *q = (char *) r_alloc((void *) open_class[math_class], - 1 + (size_t) strlen((char *) str)); - (IGNORED) strcpy((char *) *q, (char *) str); - q = (math_class > -#line 12715 "./tex4ht-c.tex" - -78 - -) ? &( -#line 12829 "./tex4ht-c.tex" - -stack[stack_n+1].temp_class_close - -) - : &(close_class[math_class]); - p = *q = (char *) r_alloc((void *) *q, 1 + (size_t) special_n); - while( special_n-- > 0 ){ *(p++) = get_char(); } - *p = '\0'; - if( math_class > -#line 12715 "./tex4ht-c.tex" - -78 - -){ -#line 12820 "./tex4ht-c.tex" - -stack[stack_n+1].ignore_subclass_del = - (math_class == -#line 12734 "./tex4ht-c.tex" - -( -#line 12719 "./tex4ht-c.tex" - -79 - - + 1) - -); -stack[stack_n+1].temp_class_del = TRUE; -stack[stack_n+1].active_class_del = TRUE; - - } -} - - } -} - - break; } -} - - special_on = FALSE; - -#line 17073 "./tex4ht-c.tex" - -if( special_n > 0 ){ - warn_i_int( 26, sv); - while( special_n-- ) (IGNORED) putc( get_char(), stderr); -} - - - } else { -#line 3871 "./tex4ht-c.tex" - -while( special_n-- ) (void) get_char(); - - } - - break; } - - -#line 7219 "./tex4ht-c.tex" - -case -#line 17326 "./tex4ht-c.tex" - -141 -: { -#line 7227 "./tex4ht-c.tex" - - -#line 6414 "./tex4ht-c.tex" - -if( new_halign ){ - -#line 6381 "./tex4ht-c.tex" - -stack[stack_n].halign_on = new_halign; -if( stack[stack_n].halign_info ) -{ int j; - for( j=8; j--; ){ - if( stack[stack_n].halign[j] != halign[j] ){ - if( ! (--(stack[stack_n].halign[j]->refs) ) ){ - free((void *) stack[stack_n].halign[j]->str ); - free((void *) stack[stack_n].halign[j] ); - } - stack[stack_n].halign[j] = halign[j]; - (halign[j]->refs)++; - } - } -} else { int j; - stack[stack_n].halign_info = TRUE; - for( j=8; j--; ){ - stack[stack_n].halign[j] = halign[j]; - (halign[j]->refs)++; -} } -print_f( stack[stack_n].halign[0]->str ); -stack[stack_n].row_no = 0; -new_halign = FALSE; - - -} -if( stack[stack_n].halign_on ) -{ - print_f( stack[stack_n].halign[2]->str ); - if( stack[stack_n].halign_on > TRUE ){ - stack[stack_n].row_no++; - stack[stack_n].col_no = 0; - (IGNORED) fprintf(cur_o_file, "%d%s", - stack[stack_n].row_no, stack[stack_n].halign[6]->str ); -} } -if( stack_n ){ - if( stack[stack_n-1].halign_on ) - { - print_f( stack[stack_n-1].halign[4]->str ); - if( stack[stack_n-1].halign_on > TRUE ){ - stack[stack_n-1].col_no ++; - (IGNORED) fprintf(cur_o_file, "%d%s", - stack[stack_n-1].col_no, stack[stack_n-1].halign[7]->str ); - } -} } - - - -#line 6922 "./tex4ht-c.tex" - -{ struct group_info *p; - if( group_dvi && - ( (p = stack[stack_n].begin ) != (struct group_info *)0) - ){ - while( p ){ - if( p->stack_id != stack_id ) break; - print_f(p->info); - stack[stack_n].begin = p->next; - free((void *) p ); - p = stack[stack_n].begin; - } - } - stack_id++; -} - - -stack[stack_n].text_on = text_on; -push_stack(); -#line 7647 "./tex4ht-c.tex" - -if( group_dvi ) { - back_group = back_insert ( back_group, push_id); -} - - - -#line 7861 "./tex4ht-c.tex" - -{ - -#line 7881 "./tex4ht-c.tex" - -struct group_path *start_head, *start_tail, - *parent_start_head, *parent_start_tail, - *end_head, *end_tail, - *parent_end_head, *parent_end_tail, - *p, *q; -int place=0; -start_head = start_tail = parent_start_head = parent_start_tail - = end_head = end_tail = parent_end_head - = parent_end_tail = (struct group_path *) 0; - - - if( -#line 3739 "./tex4ht-c.tex" - -rule_ch_off - - ){ - -#line 3272 "./tex4ht-c.tex" - -ignore_spaces--; - - - -#line 3739 "./tex4ht-c.tex" - -rule_ch_off - - = FALSE; - } - if( stack_n > 1 ){ - p = stack[stack_n - 2].path_start; - if( p != (struct group_path *) 0 ){ - -#line 7902 "./tex4ht-c.tex" - -while( p != (struct group_path *) 0 ){ - -#line 8007 "./tex4ht-c.tex" - -if( *(p->path ) == 'e' ) { - (IGNORED) strcpy((char *) p->path, (char *) p->path+1); - if( *(p->path) == '\0' ) { - switch( p->action ){ - case '<': print_f( p->info ); - place = -#line 7978 "./tex4ht-c.tex" - -4 -; - break; - case '/': ignore_chs++; - place = -#line 7972 "./tex4ht-c.tex" - -2 -; break; - case '-': -#line 3739 "./tex4ht-c.tex" - -rule_ch_off - - = TRUE; - -#line 3268 "./tex4ht-c.tex" - -ignore_spaces++; - - - place = -#line 7978 "./tex4ht-c.tex" - -4 -; break; - } - } else { - place = -#line 7972 "./tex4ht-c.tex" - -2 -; - } -} else { - if( *(p->path ) == 's' ) { - (IGNORED) strcpy((char *) p->path, (char *) p->path+1); - } - place = -#line 7966 "./tex4ht-c.tex" - -0 -; -} - - - q = p; - p = p->next; - q->next = (struct group_path *) 0; - -#line 7922 "./tex4ht-c.tex" - -switch( place ){ - case -#line 7966 "./tex4ht-c.tex" - -0 -: - if( parent_start_head == (struct group_path *) 0 ){ - parent_start_head = parent_start_tail = q; - } else { - parent_start_tail = parent_start_tail->next = q; - } - break; - case -#line 7972 "./tex4ht-c.tex" - -2 -: - if( start_head == (struct group_path *) 0 ){ - start_head = start_tail = q; - } else { - start_tail = start_tail->next = q; - } - break; - case -#line 7978 "./tex4ht-c.tex" - -4 -: - -#line 7981 "./tex4ht-c.tex" - -free((void *) q->path ); -free((void *) q->info ); -free((void *) q ); - - - break; -} - - -} - - - } - p = stack[stack_n - 2].path_end; - if( p != (struct group_path *) 0 ){ - -#line 7912 "./tex4ht-c.tex" - -while( p != (struct group_path *) 0 ){ - -#line 8043 "./tex4ht-c.tex" - -if( *(p->path ) == 'e' ) { - (IGNORED) strcpy((char *) p->path, (char *) p->path+1); - place = -#line 7975 "./tex4ht-c.tex" - -3 -; -} else { - if( *(p->path ) == 's' ) { - (IGNORED) strcpy((char *) p->path, (char *) p->path+1); - } - place = -#line 7969 "./tex4ht-c.tex" - -1 -; -} - - - q = p; - p = p->next; - q->next = (struct group_path *) 0; - -#line 7944 "./tex4ht-c.tex" - -switch( place ){ - case -#line 7969 "./tex4ht-c.tex" - -1 -: - if( parent_end_head == (struct group_path *) 0 ){ - parent_end_head = parent_end_tail = q; - } else { - parent_end_tail = parent_end_tail->next = q; - } - break; - case -#line 7975 "./tex4ht-c.tex" - -3 -: - if( end_head == (struct group_path *) 0 ){ - end_head = end_tail = q; - } else { - end_tail = end_tail->next = q; - } - break; - case -#line 7978 "./tex4ht-c.tex" - -4 -: - -#line 7981 "./tex4ht-c.tex" - -free((void *) q->path ); -free((void *) q->info ); -free((void *) q ); - - - break; -} - - -} - - - } - -#line 7893 "./tex4ht-c.tex" - - stack[stack_n - 1].path_start = start_head; - stack[stack_n - 1].path_end = end_head; - stack[stack_n - 2].path_start = parent_start_head; - stack[stack_n - 2].path_end = parent_end_head; - - -} } - - - -#line 2867 "./tex4ht-c.tex" - -if( push_depth<256 ) { push_st[push_depth] = push_id++; } -if( trace_dvi_P && !ch_map_flag ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - if( *trace_dvi_del_P != '\0' ){ - (IGNORED) fprintf(cur_o_file, "%s%d %d", - trace_dvi_del_P, push_depth, - push_st[(push_depth<256)? push_depth:256]); - } - (IGNORED) fprintf(cur_o_file, "%s", end_trace_dvi_del_P); -} -push_depth++; - - - -#line 12842 "./tex4ht-c.tex" - -if( stack[stack_n].active_class_del ){ - if( show_class && !pause_class && !ignore_subclass_del ){ - -#line 12982 "./tex4ht-c.tex" - -(IGNORED) print_f( (stack[stack_n].temp_class_del)? - stack[stack_n].temp_class_open - : stack[stack_n].class_open); - - - } - ignore_subclass_del = ignore_subclass_del - + stack[stack_n].ignore_subclass_del; - stack[stack_n+1].no_left_del= FALSE; -} - - - - break; } -case -#line 17329 "./tex4ht-c.tex" - -142 -: { -#line 7272 "./tex4ht-c.tex" - - -#line 12854 "./tex4ht-c.tex" - -if( stack[stack_n].active_class_del ){ - ignore_subclass_del = ignore_subclass_del - - stack[stack_n].ignore_subclass_del; - if( show_class && !pause_class && !ignore_subclass_del ){ - -#line 12969 "./tex4ht-c.tex" - -(IGNORED) print_f( (stack[stack_n].temp_class_del)? - stack[stack_n].temp_class_close - : stack[stack_n].class_close); - - - } - stack[stack_n].active_class_del = FALSE; -} - - - -#line 8063 "./tex4ht-c.tex" - -{ - struct group_path *p, *q; - if( stack_n > 1 ){ - p = stack[stack_n - 1].path_start; - if( p != (struct group_path *) 0 ){ - -#line 8078 "./tex4ht-c.tex" - -while( p != (struct group_path *) 0 ){ - -#line 8104 "./tex4ht-c.tex" - -if( *(p->path) != '\0' ) { - -#line 8134 "./tex4ht-c.tex" - - char str[256]; -(IGNORED) strcpy(str, "...."); *(str+3) = p->action; -(IGNORED) strct(str,p->info); warn_i_str(38,str); - - -} else { - switch( p->action ){ - case '/': ignore_chs--; break; - default: { - -#line 8134 "./tex4ht-c.tex" - - char str[256]; -(IGNORED) strcpy(str, "...."); *(str+3) = p->action; -(IGNORED) strct(str,p->info); warn_i_str(38,str); - - - break; -} } } - - - q = p; - p = p->next; - -#line 7981 "./tex4ht-c.tex" - -free((void *) q->path ); -free((void *) q->info ); -free((void *) q ); - - -} - - - } - p = stack[stack_n - 1].path_end; - if( p != (struct group_path *) 0 ){ - -#line 8087 "./tex4ht-c.tex" - -while( p != (struct group_path *) 0 ){ - -#line 8120 "./tex4ht-c.tex" - -if( *(p->path) != '\0' ) { - -#line 8134 "./tex4ht-c.tex" - - char str[256]; -(IGNORED) strcpy(str, "...."); *(str+3) = p->action; -(IGNORED) strct(str,p->info); warn_i_str(38,str); - - -} else { - switch( p->action ){ - case '>': print_f( p->info ); break; - default: { - -#line 8134 "./tex4ht-c.tex" - - char str[256]; -(IGNORED) strcpy(str, "...."); *(str+3) = p->action; -(IGNORED) strct(str,p->info); warn_i_str(38,str); - - - break; -} } } - - - q = p; - p = p->next; - -#line 7981 "./tex4ht-c.tex" - -free((void *) q->path ); -free((void *) q->info ); -free((void *) q ); - - -} - - -} } } - - - -#line 6792 "./tex4ht-c.tex" - -while( stack[stack_n-1].end ){ - -#line 6770 "./tex4ht-c.tex" - - struct stack_end_entry *q, *p, *t; -q = stack[ stack_n-1 ].end; -p = stack[ stack_n-1 ].end = (struct stack_end_entry *) 0; -while( q ){ - t = q->next; q->next = p; p = q; q = t; -} -while( p ){ - if( ! ignore_end_group ){ print_f( p->send ); } - free((void *) p->send ); - q = p; p = p->next; free((void *) q ); -} - - -} - - - -#line 2883 "./tex4ht-c.tex" - -push_depth--; -if( trace_dvi_P && !ch_map_flag ){ - -#line 1715 "./tex4ht-c.tex" - -if( no_root_file ){ open_o_file(); } - - - if( *trace_dvi_del_p != '\0' ){ - (IGNORED) fprintf(cur_o_file, "%s%d %d", - trace_dvi_del_p, push_depth, - push_st[(push_depth<256)? push_depth:256]); - } - (IGNORED) fprintf(cur_o_file, "%s", end_trace_dvi_del_p); -} - - - -#line 6443 "./tex4ht-c.tex" - - -#line 6492 "./tex4ht-c.tex" - -if( stack[stack_n].halign_on ) -{ -#line 6498 "./tex4ht-c.tex" - -print_f( stack[stack_n].halign[1]->str ); -stack[stack_n].halign_on = FALSE; - - } - - - -#line 6505 "./tex4ht-c.tex" - -if( stack_n ){ - if( stack[stack_n-1].halign_on ) - { - print_f( stack[stack_n-1].halign[3]->str ); -} } - - - -#line 6514 "./tex4ht-c.tex" - -if( stack_n-1 ){ - if( stack[stack_n-2].halign_on ) - { - print_f( stack[stack_n-2].halign[5]->str ); -} } - - -if( stack[stack_n].halign_info ) -{ int j; - for( j=8; j--; ){ - if( ! (--(stack[stack_n].halign[j]->refs) ) ){ - free((void *) stack[stack_n].halign[j]->str ); - free((void *) stack[stack_n].halign[j] ); - } } - stack[stack_n].halign_info = FALSE; -} - - -pop_stack(); -if( ((x_val+0.6*word_sp) < stack[stack_n].x_val) ) put_char(' '); -text_on = stack[stack_n].text_on; - - break; } - - - } -} - - - } - -#line 5282 "./tex4ht-c.tex" - -if( ch_map_flag ){ - warn_i(27); init_ch_map(); } - - - (IGNORED) printf("]%c",unread_pages % 10 == 0? '\n' : ' '); - put_char('\n'); -} } - - -put_char('\n');put_char('\n'); - -#line 4456 "./tex4ht-c.tex" - -while( opened_files != (struct files_rec*) 0 ) -{ - (IGNORED) fclose( opened_files->file ); - opened_files = opened_files->next; -} - - -{ -#line 5778 "./tex4ht-c.tex" - -INTEGER bop_addr; - - -#line 5843 "./tex4ht-c.tex" - -int stack_depth=0; - - -#line 5900 "./tex4ht-c.tex" - -char cur_font[6]; -BOOL visible_cnt=FALSE; - - - -#line 5406 "./tex4ht-c.tex" - -job_name[job_name_n-3] = '\0'; - -#line 5448 "./tex4ht-c.tex" - -file_n = 14; -(IGNORED) fseek(dvi_file, 0L, -#line 2174 "./tex4ht-c.tex" - -0 -); -do{ ch = get_char(); - idv_char( ch ); - file_n++; -}while( ch == -#line 17317 "./tex4ht-c.tex" - -138 - ); - -#line 5462 "./tex4ht-c.tex" - -ch = get_char(); -if( id_version != -1 ){ ch = id_version; } -idv_char( ch ); - - -for( i=12; i ; i-- ){ idv_char( get_char() ); } -i = get_char(); -idv_char( (int) i ); while( i-- ) idv_copy(); - - -page_n = 0; - -#line 6098 "./tex4ht-c.tex" - -x_val = 0; y_val = 0; stack_n = 0; -idv_char( -#line 17320 "./tex4ht-c.tex" - -139 - ); -idv_int( page_n + 1 ); for( i=36; i--; ) idv_char( 0); -idv_int( -1 ); bop_addr = file_n; file_n += 45; -idv_char( -#line 17326 "./tex4ht-c.tex" - -141 -); file_n++; - - -while( dis_pages ){ -#line 5526 "./tex4ht-c.tex" - -if( (ch = get_char()) < 128 ) { visible_cnt = TRUE; cond_idv_char( ch );} -else switch( ch ){ -#line 5533 "./tex4ht-c.tex" - -case 128: case 129: case 130: case 131: case 133: -case 134: case 135: case 136: { - visible_cnt = TRUE; cond_string( ch, (ch - (ch>132)) % 4 +1 ); - break; -} - - -#line 5544 "./tex4ht-c.tex" - -case -#line 17320 "./tex4ht-c.tex" - -139 -: { - x_val = 0; y_val = 0; stack_n = 0; - (IGNORED) fseek(dvi_file, 44L, -#line 2177 "./tex4ht-c.tex" - -1 -); break; } -case -#line 17323 "./tex4ht-c.tex" - -140 -: { dis_pages--; } -case -#line 17317 "./tex4ht-c.tex" - -138 -: { break; } - - -#line 5553 "./tex4ht-c.tex" - -case -#line 17344 "./tex4ht-c.tex" - -147 -: { - cond_idv_char( ch ); x_val += dx_1; break; } -case -#line 17359 "./tex4ht-c.tex" - -152 -: { - cond_idv_char( ch ); x_val += dx_2; break; } -case -#line 17386 "./tex4ht-c.tex" - -161 -: { - cond_idv_char( ch ); y_val += dy_1; break; } -case -#line 17401 "./tex4ht-c.tex" - -166 -: { - cond_idv_char( ch ); y_val += dy_2; break; } - - -#line 5565 "./tex4ht-c.tex" - -case -#line 17332 "./tex4ht-c.tex" - -143 -: case -#line 17335 "./tex4ht-c.tex" - -144 -: -case -#line 17338 "./tex4ht-c.tex" - -145 -: case -#line 17341 "./tex4ht-c.tex" - -146 -: { - cond_idv_char( ch ); - x_val += cond_int( ch - -#line 17332 "./tex4ht-c.tex" - -143 - + 1 ); break; } -case -#line 17347 "./tex4ht-c.tex" - -148 -: -case -#line 17350 "./tex4ht-c.tex" - -149 -: -case -#line 17353 "./tex4ht-c.tex" - -150 -: -case -#line 17356 "./tex4ht-c.tex" - -151 -: { - cond_idv_char( ch ); - dx_1 = (INTEGER) cond_int( ch - -#line 17347 "./tex4ht-c.tex" - -148 - + 1); - x_val += dx_1; break; } -case -#line 17362 "./tex4ht-c.tex" - -153 -: -case -#line 17365 "./tex4ht-c.tex" - -154 -: -case -#line 17368 "./tex4ht-c.tex" - -155 -: -case -#line 17371 "./tex4ht-c.tex" - -156 -: { - cond_idv_char( ch ); - dx_2 = (INTEGER) cond_int( ch - -#line 17362 "./tex4ht-c.tex" - -153 - + 1); - x_val += dx_2; break; } - - -#line 5586 "./tex4ht-c.tex" - -case -#line 17374 "./tex4ht-c.tex" - -157 -: case -#line 17377 "./tex4ht-c.tex" - -158 -: -case -#line 17380 "./tex4ht-c.tex" - -159 -: case -#line 17383 "./tex4ht-c.tex" - -160 -: { - cond_idv_char( ch ); - y_val += cond_int( ch - -#line 17374 "./tex4ht-c.tex" - -157 - + 1); - break; } -case -#line 17389 "./tex4ht-c.tex" - -162 -: -case -#line 17392 "./tex4ht-c.tex" - -163 -: -case -#line 17395 "./tex4ht-c.tex" - -164 -: -case -#line 17398 "./tex4ht-c.tex" - -165 -: { - cond_idv_char( ch ); - dy_1 = (INTEGER) cond_int( ch - -#line 17389 "./tex4ht-c.tex" - -162 - + 1); - y_val += dy_1; break; } -case -#line 17404 "./tex4ht-c.tex" - -167 -: -case -#line 17407 "./tex4ht-c.tex" - -168 -: -case -#line 17410 "./tex4ht-c.tex" - -169 -: -case -#line 17413 "./tex4ht-c.tex" - -170 -: { - cond_idv_char( ch ); - dy_2 = (INTEGER) cond_int( ch - -#line 17404 "./tex4ht-c.tex" - -167 - + 1); - y_val += dy_2; break; } - - -#line 5613 "./tex4ht-c.tex" - -case -#line 17309 "./tex4ht-c.tex" - -132 -:{ - visible_cnt = TRUE; cond_string( ch,4 ); x_val += cond_int(4); - break; -} -case -#line 17314 "./tex4ht-c.tex" - -137 -:{ - visible_cnt = TRUE; cond_string( ch, 8 ); - break; -} - - -#line 5646 "./tex4ht-c.tex" - -case -#line 17441 "./tex4ht-c.tex" - -239 -: case -#line 17443 "./tex4ht-c.tex" - -240 -: -case -#line 17445 "./tex4ht-c.tex" - -241 -: case -#line 17447 "./tex4ht-c.tex" - -242 -: { long int i; - int special_nr; - special_nr = ch; - if( tex4ht_special( &ch, &i ) ){ - if( ch == '+' ){ - -#line 5701 "./tex4ht-c.tex" - -if( i==0 ){ if( dvi_flag ){ dvi_flag = 0; -#line 5833 "./tex4ht-c.tex" - -if( !visible_cnt ) { U_CHAR str[256]; - (IGNORED) sprintf(str, "--- empty picture --- %sidv[%d] ---\n", - job_name,page_n); - (IGNORED) printf("%s", str); (IGNORED) fprintf(log_file, "%s",str); } -while( stack_depth-- > 0 ){ - idv_char( -#line 17329 "./tex4ht-c.tex" - -142 -); file_n++; } - - } } -else{ - if( dvi_flag ){ -#line 5760 "./tex4ht-c.tex" - -cond_idv_char( special_nr ); -cond_idv_int( i, special_nr - -#line 17441 "./tex4ht-c.tex" - -239 - + 1 ); -while( i-- ) cond_idv_char( get_char() ); -visible_cnt = TRUE; - - } - else switch( get_char() ){ - case '+': { -#line 5740 "./tex4ht-c.tex" - -{ U_CHAR str[256], *ch; - ch = str; while( --i ) *(ch++) = get_char(); *ch = '\0'; - script(font_gif, job_name ,page_n+1, str); -} - - - dvi_flag = TRUE; dvi_page = TRUE; - -#line 5768 "./tex4ht-c.tex" - -visible_cnt = FALSE; -bop_addr = advance_idv_page( bop_addr, cur_font ); -stack_depth = 0; -set_loc( -#line 17332 "./tex4ht-c.tex" - -143 -, x_val ); -set_loc( -#line 17374 "./tex4ht-c.tex" - -157 -, y_val ); - - break; } - case '@': { -#line 5716 "./tex4ht-c.tex" - -while( --i ) (void) putc( get_char(), log_file ); -(IGNORED) putc( '\n', log_file ); - - break; } - default: { while( --i ) (void) get_char(); break; } -} } - - } - else while( i-- ) (void) get_char(); - }else if( dvi_flag ){ -#line 5679 "./tex4ht-c.tex" - -visible_cnt = TRUE; -#line 5684 "./tex4ht-c.tex" - -{ - U_CHAR *ch; - int j; - ch = special_hd; - (IGNORED) putc( (unsigned) -#line 17447 "./tex4ht-c.tex" - -242 -, idv_file ); file_n++; - for(j=4; j--; ){ (IGNORED) putc( *ch, idv_file ); file_n++; ch++; } - while( *ch ){ (IGNORED) putc( *ch, idv_file ); file_n++; ch++; } - file_n += (int) i; - while( i-- ) (IGNORED) putc( get_char(), idv_file ); -} - - - - - }else { -#line 5664 "./tex4ht-c.tex" - -if( dvi_page || !page_n ){ dvi_page = FALSE; -#line 5768 "./tex4ht-c.tex" - -visible_cnt = FALSE; -bop_addr = advance_idv_page( bop_addr, cur_font ); -stack_depth = 0; -set_loc( -#line 17332 "./tex4ht-c.tex" - -143 -, x_val ); -set_loc( -#line 17374 "./tex4ht-c.tex" - -157 -, y_val ); - - } -dvi_flag = TRUE; - -#line 5684 "./tex4ht-c.tex" - -{ - U_CHAR *ch; - int j; - ch = special_hd; - (IGNORED) putc( (unsigned) -#line 17447 "./tex4ht-c.tex" - -242 -, idv_file ); file_n++; - for(j=4; j--; ){ (IGNORED) putc( *ch, idv_file ); file_n++; ch++; } - while( *ch ){ (IGNORED) putc( *ch, idv_file ); file_n++; ch++; } - file_n += (int) i; - while( i-- ) (IGNORED) putc( get_char(), idv_file ); -} - - -dvi_flag = FALSE; - - } - break; -} - - -#line 5800 "./tex4ht-c.tex" - -case -#line 17326 "./tex4ht-c.tex" - -141 -: { - push_stack(); - stack_depth++; - cond_idv_char( ch ); - break; } -case -#line 17329 "./tex4ht-c.tex" - -142 -: { INTEGER cur_x, cur_y; - stack_depth--; - cur_x = (INTEGER) x_val; cur_y = (INTEGER) y_val; pop_stack(); - if( dvi_flag ){ - if( stack_depth<0 ){ warn_i_int( 24, page_n ); - -#line 5817 "./tex4ht-c.tex" - -cond_idv_char( -#line 17341 "./tex4ht-c.tex" - -146 - ); -idv_int( x_val - cur_x - dx_1 - dx_2 ); -cond_idv_char( -#line 17356 "./tex4ht-c.tex" - -151 - ); -idv_int( dx_1 ); -cond_idv_char( -#line 17371 "./tex4ht-c.tex" - -156 - ); -idv_int( dx_2 ); -cond_idv_char( -#line 17383 "./tex4ht-c.tex" - -160 - ); -idv_int( y_val - cur_y - dy_1 - dy_2 ); -cond_idv_char( -#line 17398 "./tex4ht-c.tex" - -165 - ); -idv_int( dy_1 ); -cond_idv_char( -#line 17413 "./tex4ht-c.tex" - -170 - ); -idv_int( dy_2 ); -cond_idv_char( -#line 17326 "./tex4ht-c.tex" - -141 - ); file_n += 24; - - } - cond_idv_char( ch ); - } - break; } - - -#line 5854 "./tex4ht-c.tex" - -case -#line 17460 "./tex4ht-c.tex" - -246 -: -case -#line 17457 "./tex4ht-c.tex" - -245 -: -case -#line 17454 "./tex4ht-c.tex" - -244 -: -case -#line 17451 "./tex4ht-c.tex" - -243 -: { idv_char( ch ); file_n++; - for( i=14; i; i-- ){ ch = get_char(); idv_char( ch ); file_n++; } - i = ch; i += ch = get_char(); idv_char( ch ); file_n++; - while( i-- ){ idv_copy(); } - break; } - - -#line 5873 "./tex4ht-c.tex" - -case -#line 17429 "./tex4ht-c.tex" - -235 -: -case -#line 17432 "./tex4ht-c.tex" - -236 -: -case -#line 17435 "./tex4ht-c.tex" - -237 -: -case -#line 17438 "./tex4ht-c.tex" - -238 -: { int i; - idv_char( ch ); file_n++; - cur_font[0] = ch - -#line 17429 "./tex4ht-c.tex" - -235 - + 2; - cur_font[1] = ch; - for( i=2; i <= cur_font[0]; i++ ){ - ch = get_char(); idv_char( ch ); - cur_font[i] = ch; file_n++; } - break; } - - -#line 5887 "./tex4ht-c.tex" - -default: { - if( (ch < -#line 17417 "./tex4ht-c.tex" - -171 -) || (ch > -#line 17423 "./tex4ht-c.tex" - -234 -) ){ - if( -#line 8971 "./tex4ht-c.tex" - -(version_id == -#line 2292 "./tex4ht-c.tex" - -10 - -) -&& -( - (ch == -#line 17484 "./tex4ht-c.tex" - -251 - -) - || - (ch == -#line 17490 "./tex4ht-c.tex" - -252 - -) - || - (ch == -#line 17496 "./tex4ht-c.tex" - -253 - -) - || - (ch == -#line 17501 "./tex4ht-c.tex" - -254 - -) -) - - ){ - -#line 8993 "./tex4ht-c.tex" - -switch( ch ){ - case -#line 17490 "./tex4ht-c.tex" - -252 - -: - -#line 9021 "./tex4ht-c.tex" - -{ int i, flags; - -(void) get_unt(4); -(void) get_unt(4); - - flags = (INTEGER) get_unt(2); - - - -if ((flags & -#line 8985 "./tex4ht-c.tex" - -0x0002 - -) || (flags & -#line 8989 "./tex4ht-c.tex" - -0x0001 - -)) { - -for ( -i = - (INTEGER) get_unt(1) -+ (INTEGER) get_unt(1) - + (INTEGER) get_unt(1) -; -i>0; -i-- -){ (void) get_unt(1); } - - - - - - if( flags & -#line 8955 "./tex4ht-c.tex" - -0x0200 - - ){ - (void) get_unt(4); - } - -if( flags & -#line 8959 "./tex4ht-c.tex" - -0x0800 - - ){ - int n = (INTEGER) get_unt(2); - for (i = 0; i < n; ++i) { - (void) get_unt(4); - } - for (i = 0; i < n; ++i) { - (void) get_int(4); -} } - -} - -} - - - break; - case -#line 17501 "./tex4ht-c.tex" - -254 - -: - -#line 9006 "./tex4ht-c.tex" - -{ - int i, glyphCount; - (void) get_unt(4); - glyphCount = (INTEGER) get_unt(2); - for( i = 0; i < glyphCount; ++i ){ - (void) get_int(4); - } - for (i = 0; i < glyphCount; ++i){ - (void) get_unt(2); - } -} - - - break; - default: - printf(" ===> ---------- xdv's idv ------------ <==== %d\n" , ch); -} - - - } else { err_i(23); } - } - else { idv_char( ch ); file_n++; - cur_font[0] = 1; cur_font[1] = ch; } - break; -} - - } - - } - -#line 5420 "./tex4ht-c.tex" - -if( errCode > 0 ){ - (IGNORED) fprintf(log_file, "tex4ht.c error: %d\n", errCode); -} - - - -#line 5913 "./tex4ht-c.tex" - -{ int ch, i, mag; - U_CHAR str[256]; - (IGNORED) fprintf(log_file, "%s", begin_char_gif); - dvi_flag = TRUE; - for( cur_fnt = font_tbl_size; cur_fnt--; ){ - -#line 8815 "./tex4ht-c.tex" - -(IGNORED) fprintf(log_file, lg_font_fmt, - font_tbl[cur_fnt].family_name, - font_tbl[cur_fnt].font_size, - (int)( font_tbl[cur_fnt].design_sz * 100 / 655360 / 10), - font_tbl[cur_fnt].mag); - - - for( i = font_tbl[cur_fnt].char_l - font_tbl[cur_fnt].char_f + 1; - i--; ) - if( get_bit( font_tbl[cur_fnt].gif_on, i) ){ - bop_addr = advance_idv_page( bop_addr, cur_font ); - set_loc( -#line 17332 "./tex4ht-c.tex" - -143 -, (long int) mid_page_x ); - set_loc( -#line 17374 "./tex4ht-c.tex" - -157 -, (long int) mid_page_y ); - -#line 5983 "./tex4ht-c.tex" - -{ INTEGER num; - num = font_tbl[cur_fnt].num; - if( num <= -#line 17426 "./tex4ht-c.tex" - -63 - ) - cond_idv_char( (int) (num + -#line 17417 "./tex4ht-c.tex" - -171 -) ); - else if( dvi_flag ){ - if( (num < 0) || (num > 16777215L) ) idv_int( -#line 17438 "./tex4ht-c.tex" - -238 -); - else if( num < 256 ) { idv_char( -#line 17429 "./tex4ht-c.tex" - -235 -); file_n++; } - else if( num < 65536L ) int_to_dvi((long int) -#line 17432 "./tex4ht-c.tex" - -236 -,2); - else int_to_dvi((long int) -#line 17435 "./tex4ht-c.tex" - -237 -,3); - cond_idv_char( (int) num ); -} } - - - -#line 5941 "./tex4ht-c.tex" - -if( (ch = i + font_tbl[cur_fnt].char_f) > 127 ) { - if( ch < 256 ) cond_idv_char(133); else warn_i(23); } -cond_idv_char( ch ); -mag = (int) ((double) font_tbl[cur_fnt].scale / - font_tbl[cur_fnt].design_sz * 10 ); - -#line 10901 "./tex4ht-c.tex" - -if( !dos_file_names ){ - if( mag == 10 ) (IGNORED) sprintf(str, "%s-%x%s", - font_tbl[cur_fnt].name, ch, gif); - else (IGNORED) sprintf(str, "%s-%x-%x%s", - font_tbl[cur_fnt].name, mag, ch, gif); -} - - -#line 10929 "./tex4ht-c.tex" - - -if( dos_file_names ){ - (IGNORED) strcpy((char *) str, (char *) font_tbl[cur_fnt].name); - dos_gif_file(str, mag, ch); - strct(str,gif); -} - - - -script(font_gif, job_name ,page_n, str); - - } - } - (IGNORED) printf("Execute script `%slg'\n", - job_name); - (IGNORED) fclose( log_file ); -} - - - -#line 5494 "./tex4ht-c.tex" - -idv_char( -#line 17329 "./tex4ht-c.tex" - -142 -); file_n += 2; -idv_char( -#line 17323 "./tex4ht-c.tex" - -140 - ); -(IGNORED) fseek(dvi_file, begin_postamble, -#line 2174 "./tex4ht-c.tex" - -0 -); -begin_postamble = file_n; -idv_char( -#line 17466 "./tex4ht-c.tex" - -248 - ); file_n += 5; -idv_int( bop_addr ); (IGNORED) fseek(dvi_file, 5L, -#line 2177 "./tex4ht-c.tex" - -1 -); -for( i = 20; i; i-- ) idv_copy(); - - -#line 5504 "./tex4ht-c.tex" - -i = (INTEGER) get_int(2) + 1; idv_char( (int) i >> 8 ); -idv_char( (int) i & 0xFF ); file_n += 2; -if( !page_n ) page_n++; idv_char( page_n >> 8 ); -idv_char( (int) page_n & 0xFF ); file_n += 2; -(IGNORED) fseek(dvi_file, 2L, -#line 2177 "./tex4ht-c.tex" - -1 -); - - -#line 5512 "./tex4ht-c.tex" - -eof_op_n -= 32; -while( --eof_op_n ) idv_copy(); -idv_int(begin_postamble); -(IGNORED) fseek(dvi_file, 4L, -#line 2177 "./tex4ht-c.tex" - -1 -); file_n += 4; - -#line 5462 "./tex4ht-c.tex" - -ch = get_char(); -if( id_version != -1 ){ ch = id_version; } -idv_char( ch ); - - -for( i = 8 - file_n % 4; i; i-- ) idv_char( -#line 17420 "./tex4ht-c.tex" - -223 - ); - - - - } - - - return 0; -} - - diff --git a/Build/source/texk/tex4htk/uxhcontext b/Build/source/texk/tex4htk/uxhcontext deleted file mode 100755 index 0bbfd358742..00000000000 --- a/Build/source/texk/tex4htk/uxhcontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/uxhlatex b/Build/source/texk/tex4htk/uxhlatex deleted file mode 100755 index c44d2ff15fa..00000000000 --- a/Build/source/texk/tex4htk/uxhlatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,uni-html4]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,uni-html4]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,uni-html4]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/uxhmex b/Build/source/texk/tex4htk/uxhmex deleted file mode 100755 index e507c81edaf..00000000000 --- a/Build/source/texk/tex4htk/uxhmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/uxhtex b/Build/source/texk/tex4htk/uxhtex deleted file mode 100755 index 9e32dc973b7..00000000000 --- a/Build/source/texk/tex4htk/uxhtex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/uxhtexi b/Build/source/texk/tex4htk/uxhtexi deleted file mode 100755 index 5c81e42ba13..00000000000 --- a/Build/source/texk/tex4htk/uxhtexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/uxhxelatex b/Build/source/texk/tex4htk/uxhxelatex deleted file mode 100755 index a4437501017..00000000000 --- a/Build/source/texk/tex4htk/uxhxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,uni-html4]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,uni-html4]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,uni-html4]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/uxhxetex b/Build/source/texk/tex4htk/uxhxetex deleted file mode 100755 index b71da80b70f..00000000000 --- a/Build/source/texk/tex4htk/uxhxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,uni-html4}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/wcontext b/Build/source/texk/tex4htk/wcontext deleted file mode 100755 index 139e38c4839..00000000000 --- a/Build/source/texk/tex4htk/wcontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -csymhtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/wlatex b/Build/source/texk/tex4htk/wlatex deleted file mode 100755 index 49391b0286c..00000000000 --- a/Build/source/texk/tex4htk/wlatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,word]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,word]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,word]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -csymhtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/wmex b/Build/source/texk/tex4htk/wmex deleted file mode 100755 index 68ad16f5d89..00000000000 --- a/Build/source/texk/tex4htk/wmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -csymhtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/wtex b/Build/source/texk/tex4htk/wtex deleted file mode 100755 index 1b66187b9b3..00000000000 --- a/Build/source/texk/tex4htk/wtex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -csymhtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/wtexi b/Build/source/texk/tex4htk/wtexi deleted file mode 100755 index 19d5a9f7679..00000000000 --- a/Build/source/texk/tex4htk/wtexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -csymhtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/wxelatex b/Build/source/texk/tex4htk/wxelatex deleted file mode 100755 index 28f30a4ddb2..00000000000 --- a/Build/source/texk/tex4htk/wxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,word]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,word]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,word]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -csymhtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/wxetex b/Build/source/texk/tex4htk/wxetex deleted file mode 100755 index d27b9bae366..00000000000 --- a/Build/source/texk/tex4htk/wxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,word}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -csymhtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhcontext b/Build/source/texk/tex4htk/xhcontext deleted file mode 100755 index 2939b4ec98e..00000000000 --- a/Build/source/texk/tex4htk/xhcontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhlatex.bat b/Build/source/texk/tex4htk/xhlatex.bat deleted file mode 100755 index 1de33544e67..00000000000 --- a/Build/source/texk/tex4htk/xhlatex.bat +++ /dev/null @@ -1,31 +0,0 @@ -Rem
-Rem
-Rem xhlatex.bat Version 1.1
-Rem Copyright (C) 2003--2009 Eitan M. Gurari
-Rem Copyright 2009 TeX Users Group
-Rem
-Rem This work may be distributed and/or modified under the
-Rem conditions of the LaTeX Project Public License, either
-Rem version 1.3 of this license or (at your option) any
-Rem later version. The latest version of this license is
-Rem in
-Rem http://www.latex-project.org/lppl.txt
-Rem and version 1.3 or later is part of all distributions
-Rem of LaTeX version 2003/12/01 or later.
-Rem
-Rem This work has the LPPL maintenance status "maintained".
-Rem
-Rem The Current Maintainer of this work
-Rem is the TeX4ht Project.
-Rem
-Rem tex4ht@tug.org
-Rem http://www.tug.org/tex4ht
-Rem
-Rem
-
-
- latex %5 \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode %2.a.b.c.\input %1
- latex %5 \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode %2.a.b.c.\input %1
- latex %5 \makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode %2.a.b.c.\input %1
- tex4ht %1 -i/tex4ht/ht-fonts/%3 -ewin32/tex4ht.env
- t4ht %1 %4 -ewin32/tex4ht.env -cvalidate
diff --git a/Build/source/texk/tex4htk/xhlatex.sh b/Build/source/texk/tex4htk/xhlatex.sh deleted file mode 100755 index 2889e48571f..00000000000 --- a/Build/source/texk/tex4htk/xhlatex.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhmcontext b/Build/source/texk/tex4htk/xhmcontext deleted file mode 100755 index 0bbfd358742..00000000000 --- a/Build/source/texk/tex4htk/xhmcontext +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - texexec --arg="ht-1=$2" --use=tex4ht --dvi --nobackend $5 $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhmex b/Build/source/texk/tex4htk/xhmex deleted file mode 100755 index d2c5bcdc628..00000000000 --- a/Build/source/texk/tex4htk/xhmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhmlatex b/Build/source/texk/tex4htk/xhmlatex deleted file mode 100755 index dcad3b785eb..00000000000 --- a/Build/source/texk/tex4htk/xhmlatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mathml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mathml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - latex $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mathml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhmmex b/Build/source/texk/tex4htk/xhmmex deleted file mode 100755 index 8040dad4177..00000000000 --- a/Build/source/texk/tex4htk/xhmmex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - mex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhmtex b/Build/source/texk/tex4htk/xhmtex deleted file mode 100755 index e319124551e..00000000000 --- a/Build/source/texk/tex4htk/xhmtex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhmtexi b/Build/source/texk/tex4htk/xhmtexi deleted file mode 100755 index b0e412f62ad..00000000000 --- a/Build/source/texk/tex4htk/xhmtexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/xhmxelatex b/Build/source/texk/tex4htk/xhmxelatex deleted file mode 100755 index 1167bcc0cbf..00000000000 --- a/Build/source/texk/tex4htk/xhmxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mathml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mathml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml,mathml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhmxetex b/Build/source/texk/tex4htk/xhmxetex deleted file mode 100755 index 3a6b465e83f..00000000000 --- a/Build/source/texk/tex4htk/xhmxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml,mathml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 -cunihtf - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhtex b/Build/source/texk/tex4htk/xhtex deleted file mode 100755 index 50a9cc8e2ce..00000000000 --- a/Build/source/texk/tex4htk/xhtex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhtexi b/Build/source/texk/tex4htk/xhtexi deleted file mode 100755 index e704cd665d8..00000000000 --- a/Build/source/texk/tex4htk/xhtexi +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\let\svrm=\rm\def\rm{\svrm\ifx\c\comment\def\rm{\let\rm=\svrm\catcode`\@=12\catcode`\\=0 \csname tex4ht\endcsname\catcode`\@=0\catcode`\\=13 }\expandafter\rm\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 -# texindex ? - - - diff --git a/Build/source/texk/tex4htk/xhxelatex b/Build/source/texk/tex4htk/xhxelatex deleted file mode 100755 index 016084e28dd..00000000000 --- a/Build/source/texk/tex4htk/xhxelatex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - xelatex -no-pdf $5 '\makeatletter\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\def\Link#1.a.b.c.{\g@addto@macro\@documentclasshook{\RequirePackage[#1,xhtml]{tex4ht}}\let\HCode\documentstyle\def\documentstyle{\let\documentstyle\HCode\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\def\HCode####1{\documentstyle[tex4ht,}\@ifnextchar[{\HCode}{\documentstyle[tex4ht]}}}\makeatother\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xhxetex b/Build/source/texk/tex4htk/xhxetex deleted file mode 100755 index 73e8e772c54..00000000000 --- a/Build/source/texk/tex4htk/xhxetex +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - xetex -no-pdf $5 '\def\Link#1.a.b.c.{\expandafter\def\csname tex4ht\endcsname{\expandafter\def\csname tex4ht\endcsname{#1,xhtml}\input tex4ht.sty }}\def\HCode{\futurelet\HCode\HChar}\def\HChar{\ifx"\HCode\def\HCode"##1"{\Link##1}\expandafter\HCode\else\expandafter\Link\fi}\HCode '$2'.a.b.c.\input ' $1 - tex4ht -.xdv -f/$1 -i~/tex4ht.dir/texmf/tex4ht/ht-fonts/$3 - t4ht -.xdv -f/$1 $4 -cvalidate ## -d~/WWW/temp/ -m644 - - - diff --git a/Build/source/texk/tex4htk/xv4ht.java b/Build/source/texk/tex4htk/xv4ht.java deleted file mode 100644 index 3b76bc06ff0..00000000000 --- a/Build/source/texk/tex4htk/xv4ht.java +++ /dev/null @@ -1,231 +0,0 @@ -/**********************************************************/ -/* xv4ht.java 2006-07-03-21:41 */ -/* Copyright (C) 2005--2006 Eitan M. Gurari */ -/* */ -/* This work may be distributed and/or modified under the */ -/* conditions of the LaTeX Project Public License, either */ -/* version 1.3 of this license or (at your option) any */ -/* later version. The latest version of this license is */ -/* in */ -/* http://www.latex-project.org/lppl.txt */ -/* and version 1.3 or later is part of all distributions */ -/* of LaTeX version 2003/12/01 or later. */ -/* */ -/* This work has the LPPL maintenance status "maintained".*/ -/* */ -/* This Current Maintainer of this work */ -/* is Eitan M. Gurari. */ -/* */ -/* If you modify this program your changing its signature */ -/* with a directive of the following form will be */ -/* appreciated. */ -/* #define PLATFORM "signature" */ -/* */ -/* gurari@cse.ohio-state.edu */ -/* http://www.cse.ohio-state.edu/~gurari */ -/**********************************************************/ - -import java.io.File; -import java.io.FileReader; -import java.io.IOException; -import java.util.Hashtable; -import javax.xml.parsers.ParserConfigurationException; -import javax.xml.parsers.SAXParser; -import javax.xml.parsers.SAXParserFactory; -import org.xml.sax.EntityResolver; -import org.xml.sax.InputSource; -import org.xml.sax.SAXException; -import org.xml.sax.SAXNotRecognizedException; -import org.xml.sax.SAXNotSupportedException; -import org.xml.sax.SAXParseException; -import org.xml.sax.XMLReader; -import org.xml.sax.ext.LexicalHandler; -import org.xml.sax.helpers.DefaultHandler; - -class Xv4htContentHandler extends DefaultHandler { - - String catalog; - boolean withinDTD = false; - Xv4htErrorHandler errHandler; - Xv4htLexicalHandler lexicalHandler; - - public Xv4htContentHandler(XMLReader xmlReader, String catalog){ - super(); - this.catalog = catalog; - lexicalHandler = new Xv4htLexicalHandler(); -try { - xmlReader.setProperty( - "http://xml.org/sax/properties/lexical-handler", - lexicalHandler - ); -} -catch (SAXNotRecognizedException e) { - System.err.println( - "err 1"); - return; -} -catch (SAXNotSupportedException e) { - System.err.println( - "err 2"); - return; -} - - errHandler = new Xv4htErrorHandler(); -xmlReader.setErrorHandler( errHandler ); - - xmlReader.setEntityResolver( new Xv4htEntityResolver() ); - - } - - public void startPrefixMapping(String prefix, String uri){ - } - - public void endPrefixMapping(String prefix) { - } - - public void ignorableWhitespace( - char[] ch, int start, int length) { - } - - public void notationDecl( - String name, String publicId, String systemId) { - } - public class Xv4htEntityResolver implements EntityResolver { - - private Hashtable entities = new Hashtable(); - - public Xv4htEntityResolver() { - try{ - FileReader myIn = new FileReader( catalog ); - while( true ){ - int c; - String publicID = ""; - String systemID = ""; - - while( (c = myIn.read()) != '\"' ){ - if( c == -1 ){ break; } - } - if( c == -1 ){ break; } - while( (c = myIn.read()) != '\"' ){ - publicID += (char) c; - if( c == -1 ){ break; } - } - if( c == -1 ){ break; } - - while( (c = myIn.read()) != '\"' ){ - if( c == -1 ){ break; } - } - if( c == -1 ){ break; } - while( (c = myIn.read()) != '\"' ){ - systemID += (char) c; - if( c == -1 ){ break; } - } - if( c == -1 ){ break; } - - entities.put(publicID, systemID); - } -} catch(java.io.IOException e){ } - - } - - public InputSource resolveEntity(String publicID, - String systemID) throws SAXException { - if( publicID== null ){ return null; } - if( entities.containsKey(publicID) ){ - String url = (String) entities.get(publicID); - InputSource local = new InputSource(url); - return local; - } - return null; - } - -} - - class Xv4htLexicalHandler implements LexicalHandler { - public void startDTD(String name, String publicId, String systemId) - throws SAXException { - withinDTD = true; - errHandler.errorOff(); - } - - public void endDTD() throws SAXException { - withinDTD = false; - errHandler.errorOn(); - } -public void comment (char[] text, int start, int length) - throws SAXException { -} - public void startEntity(String name) throws SAXException {} - public void endEntity(String name) throws SAXException {} - public void startCDATA() throws SAXException {} - public void endCDATA() throws SAXException {} -} - - -} - -class Xv4htErrorHandler extends DefaultHandler { - private boolean errOn = true; - - public void warning(SAXParseException e) { - showError( e, "Warning" ); - } - - public void error(SAXParseException e) { - showError( e, "Warning" ); - } - - public void fatalError(SAXParseException e) { - showError( e, "Warning" ); - } - - public void errorOff() { - errOn = false; - } - - public void errorOn() { - errOn = true; - } - - private void showError(SAXParseException e, String m){ - if( errOn ){ - int c = e.getColumnNumber(); - System.out.println( - m + ": " + e.getSystemId() + " " + e.getLineNumber() - + ((c==-1)? "" : ("," + c)) - + ": " + e.getMessage() - ); - } } -} - -public class xv4ht{ - static public void main (String[] args) - throws SAXException, - ParserConfigurationException, - IOException - { - SAXParserFactory factory = - SAXParserFactory.newInstance(); - factory.setValidating( true ); - factory.setNamespaceAware( true ); - SAXParser saxParser = factory.newSAXParser(); - XMLReader xmlReader = saxParser.getXMLReader(); - if( args.length != 2 ){ - System.out.print( - "--- A command line of the following form is required ---" - + "\n java [-cp <path>] xv4ht <filename> <catalog>" - + "\nreceived:\n java" - ); - for(int i=0; i<args.length; i++ ){ - System.out.print( " " + args[i] ); - } - System.out.println(); - System.exit( 1 ); -} - - xmlReader.setContentHandler( new Xv4htContentHandler(xmlReader, args[1]) - ); - xmlReader.parse ( new File(args[0]).toURL().toString() ); - } -} - |