wv-1.2.9/0000775000076400007640000000000011454157201007172 500000000000000wv-1.2.9/configure0000775000076400007640000150640511454157061011040 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.65 for wv 1.2.9. # # Report bugs to . # # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 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. 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 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" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : # 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. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 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 $0: wvware-devel@sourceforge.net about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_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 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=$?; test $as_status -eq 0 && as_status=1 if test "$3"; then as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 fi $as_echo "$as_me: error: $1" >&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; } # 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 -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' 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 if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # 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'" # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` ;; esac ECHO=${lt_ECHO-echo} if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "$0" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF $* _LT_EOF exit 0 fi # 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 if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL $0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL $0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "$0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" fi test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, 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='wv' PACKAGE_TARNAME='wv' PACKAGE_VERSION='1.2.9' PACKAGE_STRING='wv 1.2.9' PACKAGE_BUGREPORT='wvware-devel@sourceforge.net' PACKAGE_URL='' ac_unique_file="wvWare.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_header_list= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS OPT_LIBS OPT_CFLAGS LIBWMF_CONFIG DLLWRAP HAVE_LIBXML2 DEPS_PKGS DEPS_LIBS DEPS_CFLAGS PKG_CONFIG OTOOL64 OTOOL LIPO NMEDIT DSYMUTIL lt_ECHO RANLIB AR OBJDUMP NM ac_ct_DUMPBIN DUMPBIN LD FGREP EGREP GREP SED LIBTOOL LN_S CPP ANSI_CFLAGS am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC 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 LT_AGE LT_REVISION LT_CURRENT LT_RELEASE WV_VERSION WV_BINARY_AGE WV_INTERFACE_AGE WV_MICRO_VERSION WV_MINOR_VERSION WV_MAJOR_VERSION host_os host_vendor host_cpu host build_os build_vendor build_cpu build target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_gnu_ld enable_libtool_lock with_zlib with_png with_libwmf ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP PKG_CONFIG DEPS_CFLAGS DEPS_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=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 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 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 wv 1.2.9 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/wv] --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 wv 1.2.9:";; 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] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --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) Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-zlib=DIR use libz in DIR --with-png=DIR use png library in DIR --with-libwmf=DIR use libwmf(2) in DIR Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor PKG_CONFIG path to pkg-config utility DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config DEPS_LIBS linker flags for DEPS, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _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 wv configure 1.2.9 generated by GNU Autoconf 2.65 Copyright (C) 2009 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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_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; } >/dev/null && { 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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # 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 || $as_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; test "x$as_lineno_stack" = x && { as_lineno=; 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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; 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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_header_compile # 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; test "x$as_lineno_stack" = x && { as_lineno=; 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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; 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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; 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.$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;} ( cat <<\_ASBOX ## ------------------------------------------- ## ## Report this to wvware-devel@sourceforge.net ## ## ------------------------------------------- ## _ASBOX ) | 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 { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; 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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} } # ac_fn_c_check_header_mongrel # 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 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 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 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 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 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 #include 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 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 wv $as_me 1.2.9, which was generated by GNU Autoconf 2.65. 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 cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX 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 cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX 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 cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX 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 cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX 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 ac_site_file1=$CONFIG_SITE 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" 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 as_fn_append ac_header_list " stdlib.h" as_fn_append ac_header_list " unistd.h" as_fn_append ac_header_list " sys/param.h" # 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 # Making releases: # WV_MICRO_VERSION += 1; # WV_INTERFACE_AGE += 1; # WV_BINARY_AGE += 1; # if any functions have been added, set WV_INTERFACE_AGE to 0. # if backwards compatibility has been broken, # set WV_BINARY_AGE and WV_INTERFACE_AGE to 0. # WV_MAJOR_VERSION=1 WV_MINOR_VERSION=2 WV_MICRO_VERSION=9 WV_INTERFACE_AGE=5 WV_BINARY_AGE=5 WV_VERSION=$WV_MAJOR_VERSION.$WV_MINOR_VERSION.$WV_MICRO_VERSION ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do for ac_t in install-sh install.sh shtool; do if test -f "$ac_dir/$ac_t"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/$ac_t -c" break 2 fi done done if test -z "$ac_aux_dir"; then as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # 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 test "${ac_cv_build+set}" = set; 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 test "${ac_cv_host+set}" = set; 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 # libtool versioning LT_RELEASE=$WV_MAJOR_VERSION.$WV_MINOR_VERSION LT_CURRENT=`expr $WV_MICRO_VERSION - $WV_INTERFACE_AGE` LT_REVISION=$WV_INTERFACE_AGE LT_AGE=`expr $WV_BINARY_AGE - $WV_INTERFACE_AGE` # For automake. VERSION=$WV_VERSION PACKAGE=wv am__api_version='1.11' # 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 test "${ac_cv_path_install+set}" = set; 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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) 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 ( 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 rm -f conftest.file 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 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; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_STRIP+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_STRIP+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_path_mkdir+set}" = set; 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 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$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; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac 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 test "${ac_cv_prog_AWK+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; 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 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=$PACKAGE VERSION=$VERSION 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"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' # Specify a configuration file ac_config_headers="$ac_config_headers config.h" 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 test "${ac_cv_prog_CC+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_CC+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_CC+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_CC+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_CC+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_CC+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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_set_status 77 as_fn_error "C compiler cannot create executables See \`config.log' for more details." "$LINENO" 5; }; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if test "${ac_cv_objext+set}" = set; 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 test "${ac_cv_c_compiler_gnu+set}" = set; 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 test "${ac_cv_prog_cc_g+set}" = set; 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 test "${ac_cv_prog_cc_c89+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include /* 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 DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; 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'. 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 8's {/usr,}/bin/sh. touch 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 ;; 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 if test "x$GCC" = "xyes"; then ANSI_CFLAGS="-ansi" else ANSI_CFLAGS="" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f 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 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 test "${ac_cv_prog_AWK+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking 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 { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; 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 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.2.6b' macro_revision='1.3017' ltmain="$ac_aux_dir/ltmain.sh" { $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 test "${ac_cv_path_SED+set}" = set; 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" { test -f "$ac_path_SED" && $as_test_x "$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 test "${ac_cv_path_GREP+set}" = set; 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" { test -f "$ac_path_GREP" && $as_test_x "$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 test "${ac_cv_path_EGREP+set}" = set; 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" { test -f "$ac_path_EGREP" && $as_test_x "$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 test "${ac_cv_path_FGREP+set}" = set; 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" { test -f "$ac_path_FGREP" && $as_test_x "$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 "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi ac_prog=ld if test "$GCC" = yes; 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 "$with_gnu_ld" = yes; 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 test "${lt_cv_path_LD+set}" = set; 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 &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 test "${lt_cv_prog_gnu_ld+set}" = set; 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 &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 test "${lt_cv_path_NM+set}" = set; 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 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) 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 "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. if test -n "$ac_tool_prefix"; then for ac_prog in "dumpbin -symbols" "link -dump -symbols" 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 test "${ac_cv_prog_DUMPBIN+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 -symbols" "link -dump -symbols" 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 test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 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 test "${lt_cv_nm_interface+set}" = set; 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:4958: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 (eval echo "\"\$as_me:4961: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 (eval echo "\"\$as_me:4964: 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; } # 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 test "${lt_cv_sys_max_cmd_len+set}" = set; 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; ;; 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; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # 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 ;; 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"; 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"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 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"} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 $as_echo "$xsi_shell" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } lt_shell_append=no ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 $as_echo "$lt_shell_append" >&6; } 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 for $LD option to reload object files" >&5 $as_echo_n "checking for $LD option to reload object files... " >&6; } if test "${lt_cv_ld_reload_flag+set}" = set; 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 darwin*) if test "$GCC" = yes; 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 test "${ac_cv_prog_OBJDUMP+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${lt_cv_deplibs_check_method+set}" = set; 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 # which 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 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 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 ;; gnu*) 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]) 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 Linux ELF. linux* | k*bsd*-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*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; 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 ;; 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_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}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_AR+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AR="${ac_tool_prefix}ar" $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 fi if test -z "$ac_cv_prog_AR"; then ac_ct_AR=$AR # Extract the first word of "ar", so it can be a program name with args. set dummy ar; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_prog_ac_ct_AR+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_AR="ar" $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 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 else AR="$ac_cv_prog_AR" fi test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru 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 test "${ac_cv_prog_STRIP+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_STRIP+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_RANLIB+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi # 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 test "${lt_cv_sys_global_symbol_pipe+set}" = set; 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 "$host_cpu" = ia64; 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 # 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 -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$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 -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/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 # and D for any global 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};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print 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 # 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 #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. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$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_save_LIBS="$LIBS" lt_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_save_LIBS" CFLAGS="$lt_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 "$pipe_works" = yes; 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 # Check whether --enable-libtool-lock was given. if test "${enable_libtool_lock+set}" = set; then : enableval=$enable_libtool_lock; fi test "x$enable_libtool_lock" != xno && 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 which ABI we are using. 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 which ABI we are using. echo '#line 6159 "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 "$lt_cv_prog_gnu_ld" = yes; 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* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. 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*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|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" ;; ppc*-*linux*|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 test "${lt_cv_cc_needs_belf+set}" = set; 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 x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. 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*) LD="${LD-ld} -m elf64_sparc" ;; *) 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" 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 test "${ac_cv_prog_DSYMUTIL+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_NMEDIT+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_LIPO+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_LIPO+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_OTOOL+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_OTOOL64+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$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 test "${lt_cv_apple_cc_single_mod+set}" = set; 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 test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; 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 test "${lt_cv_ld_exported_symbols_list+set}" = set; 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; } 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 "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; 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" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac { $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 test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " eval as_val=\$$as_ac_Header if test "x$as_val" = 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" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DLFCN_H 1 _ACEOF fi done # Set options enable_dlopen=no enable_win32_dll=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; pic_mode="$withval" else pic_mode=default fi test -z "$pic_mode" && pic_mode=default # 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 # 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 test "${lt_cv_objdir+set}" = set; 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 "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # 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' # 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 for cc_temp in $compiler""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` # 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 test "${lt_cv_path_MAGIC_CMD+set}" = set; 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 test "${lt_cv_path_MAGIC_CMD+set}" = set; 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* if test -n "$compiler"; then lt_prog_compiler_no_builtin_flag= if test "$GCC" = yes; then lt_prog_compiler_no_builtin_flag=' -fno-builtin' { $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 test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; 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" # 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:7548: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7552: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; 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= { $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 test "$GCC" = yes; then lt_prog_compiler_wl='-Wl,' lt_prog_compiler_static='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' fi ;; 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' ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files lt_prog_compiler_pic='-fno-common' ;; 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 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 "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor lt_prog_compiler_static='-Bstatic' else lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; 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' ;; 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) 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' ;; pgcc* | pgf77* | pgf90* | pgf95*) # 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*) # IBM XL C 8.0/Fortran 10.1 on PPC lt_prog_compiler_wl='-Wl,' lt_prog_compiler_pic='-qpic' lt_prog_compiler_static='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 lt_prog_compiler_pic='-KPIC' lt_prog_compiler_static='-Bstatic' lt_prog_compiler_wl='-Wl,' ;; *Sun\ F*) # 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='' ;; 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*) 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 which 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}: result: $lt_prog_compiler_pic" >&5 $as_echo "$lt_prog_compiler_pic" >&6; } # # 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 test "${lt_cv_prog_compiler_pic_works+set}" = set; 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" # 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:7887: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 echo "$as_me:7891: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 x"$lt_cv_prog_compiler_pic_works" = xyes; 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 test "${lt_cv_prog_compiler_static_works+set}" = set; 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 "X$_lt_linker_boilerplate" | $Xsed -e '/^$/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 x"$lt_cv_prog_compiler_static_works" = xyes; 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 test "${lt_cv_prog_compiler_c_o+set}" = set; 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:7992: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:7996: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 test "${lt_cv_prog_compiler_c_o+set}" = set; 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:8047: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 echo "$as_me:8051: \$? = $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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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 "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; 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 "$hard_links" = no; 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_flag_spec_ld= 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 "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; 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 2>&1` in *\ [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 "$host_cpu" != ia64; then ld_shlibs=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. _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 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' 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/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 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 (1st line # is EXPORTS), use it as is; otherwise, prepend... archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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 ;; 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) tmp_diet=no if test "$host_os" = linux-dietlibc; 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 "$tmp_diet" = no then tmp_addflag= 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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # 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; $ECHO \"$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' ;; xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; 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; $ECHO \"$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 "x$supports_anon_versioning" = xyes; 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 xlf*) # 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= hardcode_libdir_flag_spec_ld='-rpath $libdir' archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; 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 $compiler_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 $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' 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 $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 ;; 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 can not *** 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 $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 if test "$ld_shlibs" = no; 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 "$GCC" = yes && 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 "$host_cpu" = ia64; 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 AIX nm, but means don't demangle with GNU 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")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | 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 # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; 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,' if test "$GCC" = yes; 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 "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi 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_use_runtimelinking" = yes; 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. 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 } }' 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 "$aix_libpath"; then 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 "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; 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 "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; 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. 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 } }' 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 "$aix_libpath"; then 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 "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; 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' # Exported symbols can be pulled into shared objects from archives whole_archive_flag_spec='$convenience' archive_cmds_need_lc=yes # This is similar to how AIX traditionally builds its shared libraries. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 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. 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 `$ECHO "X$deplibs" | $Xsed -e '\''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' fix_srcfile_path='`cygpath -w "$srcfile"`' enable_shared_with_static_runtimes=yes ;; darwin* | rhapsody*) archive_cmds_need_lc=no hardcode_direct=no hardcode_automatic=yes hardcode_shlibpath_var=unsupported whole_archive_flag_spec='' link_all_deplibs=yes allow_undefined_flag="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=echo 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 ;; freebsd1*) ld_shlibs=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 -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes hardcode_shlibpath_var=no ;; hpux9*) if test "$GCC" = yes; then archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $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 $output_objdir/$soname = $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 "$GCC" = yes -a "$with_gnu_ld" = no; then archive_cmds='$CC -shared -fPIC ${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 "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_flag_spec_ld='+b $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 "$GCC" = yes -a "$with_gnu_ld" = no; 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 -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) archive_cmds='$CC -shared -fPIC ${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' ;; *) archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; 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 "$GCC" = yes; then archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${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. 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) {} _ACEOF if ac_fn_c_try_link "$LINENO"; then : archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LDFLAGS="$save_LDFLAGS" else archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -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 ;; 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*) 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__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; 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 case $host_os in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' hardcode_libdir_flag_spec='-R$libdir' ;; *) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes allow_undefined_flag=unsupported archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; 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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${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" && $ECHO "X-set_version $verstring" | $Xsed` -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 "$GCC" = yes; then allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${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" && $ECHO "X-set_version $verstring" | $Xsed` -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 "X-set_version $verstring" | $Xsed` -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 "$GCC" = yes; then wlarc='${wl}' archive_cmds='$CC -shared ${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 ${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 "$GCC" = yes; 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 "x$host_vendor" = xsequent; 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 "$GCC" = yes; 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 can NOT 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 "$GCC" = yes; 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 x$host_vendor = xsni; 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 "$ld_shlibs" = no && 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 "$enable_shared" = yes && test "$GCC" = yes; 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; } $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 archive_cmds_need_lc=no else archive_cmds_need_lc=yes fi allow_undefined_flag=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 $as_echo "$archive_cmds_need_lc" >&6; } ;; 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 "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # 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 -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # 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` 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" else 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; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.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}' else # 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' fi 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=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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 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,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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 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 ;; freebsd1*) dynamic_linker=no ;; 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[123]*) 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} $libname${shared_ext}' 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 ;; gnu*) version_type=linux 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 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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' ;; interix[3-9]*) version_type=linux 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux 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 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 : 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 # 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 # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Append ld.so.conf contents 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;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $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 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*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[89] | openbsd2.[89].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 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=freebsd-elf 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 "$with_gnu_ld" = yes; 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 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 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 "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi { $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 "X$hardcode_automatic" = "Xyes" ; then # We can hardcode non-existent directories. if test "$hardcode_direct" != no && # 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 "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && test "$hardcode_minus_L" != no; 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 "$hardcode_action" = relink || test "$inherit_rpath" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi if test "x$enable_dlopen" != xyes; 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 test "${ac_cv_lib_dl_dlopen+set}" = set; 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" = x""yes; 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 ;; *) ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" if test "x$ac_cv_func_shl_load" = x""yes; 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 test "${ac_cv_lib_dld_shl_load+set}" = set; 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" = x""yes; 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" = x""yes; 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 test "${ac_cv_lib_dl_dlopen+set}" = set; 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" = x""yes; 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 test "${ac_cv_lib_svld_dlopen+set}" = set; 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" = x""yes; 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 test "${ac_cv_lib_dld_dld_link+set}" = set; 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" = x""yes; then : lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" fi fi fi fi fi fi ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && 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 test "${lt_cv_dlopen_self+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; 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 10417 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #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 void fnord() { int i=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; /* 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 "x$lt_cv_dlopen_self" = xyes; 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 test "${lt_cv_dlopen_self_static+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; 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 10513 "configure" #include "confdefs.h" #if HAVE_DLFCN_H #include #endif #include #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 void fnord() { int i=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; /* 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 which 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 "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[4-9]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no 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 "$enable_shared" = yes || 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: # 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 test "${ac_cv_path_PKG_CONFIG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # libgsf depends on glib and libxml2, so we should be fine libgsf_req='libgsf-1 >= 1.13.0' DEPS_PKGS="$libgsf_req" # required, pkg-config'd packages if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5 $as_echo_n "checking for DEPS... " >&6; } if test -n "$DEPS_CFLAGS"; then pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" \$DEPS_PKGS \""; } >&5 ($PKG_CONFIG --exists --print-errors " $DEPS_PKGS ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags " $DEPS_PKGS " 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$DEPS_LIBS"; then pkg_cv_DEPS_LIBS="$DEPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \" \$DEPS_PKGS \""; } >&5 ($PKG_CONFIG --exists --print-errors " $DEPS_PKGS ") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs " $DEPS_PKGS " 2>/dev/null` else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors " $DEPS_PKGS " 2>&1` else DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors " $DEPS_PKGS " 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$DEPS_PKG_ERRORS" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } as_fn_error "$DEPS_PKG_ERRORS" "$LINENO" 5 elif test $pkg_failed = untried; then as_fn_error "$DEPS_PKG_ERRORS" "$LINENO" 5 else DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS DEPS_LIBS=$pkg_cv_DEPS_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } : fi # optional deps OPT_CFLAGS= OPT_LIBS= # these conditionals are still used, albeit libxml2 seems to be unconditionally required $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h { $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 test "${ac_cv_header_stdc+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in fcntl.h io.h malloc.h sys/file.h sys/ioctl.h unistd.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" eval as_val=\$$as_ac_Header if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done case ${host_os} in *mingw*) link_win32_dll="yes" ;; *) link_win32_dll="no" ;; esac if test "$cross_compiling" = "yes"; then dllwrap="dllwrap" else dllwrap=${host}-"dllwrap" fi # Extract the first word of "$dllwrap", so it can be a program name with args. set dummy $dllwrap; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if test "${ac_cv_path_DLLWRAP+set}" = set; then : $as_echo_n "(cached) " >&6 else case $DLLWRAP in [\\/]* | ?:[\\/]*) ac_cv_path_DLLWRAP="$DLLWRAP" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_DLLWRAP="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi DLLWRAP=$ac_cv_path_DLLWRAP if test -n "$DLLWRAP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 $as_echo "$DLLWRAP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi { $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 test "${ac_cv_c_const+set}" = set; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset cs; /* 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. */ char *t; 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 saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; 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 _cppflags=$CPPFLAGS _ldflags=$LDFLAGS # Check whether --with-zlib was given. if test "${with_zlib+set}" = set; then : withval=$with_zlib; if test "x$withval" = "xyes"; then ZLIB_DIR="" elif test "x$withval" != "xno"; then ZLIB_DIR="$withval" CPPFLAGS="$CPPFLAGS -I$withval/include" LDFLAGS="$LDFLAGS -L$withval/lib" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No zlib? Are you sure? I think I'll look for it anyway..." >&5 $as_echo "$as_me: WARNING: No zlib? Are you sure? I think I'll look for it anyway..." >&2;} ZLIB_DIR="" fi else ZLIB_DIR="" fi ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" if test "x$ac_cv_header_zlib_h" = x""yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 $as_echo_n "checking for gzread in -lz... " >&6; } if test "${ac_cv_lib_z_gzread+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lz $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char gzread (); int main () { return gzread (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_z_gzread=yes else ac_cv_lib_z_gzread=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 $as_echo "$ac_cv_lib_z_gzread" >&6; } if test "x$ac_cv_lib_z_gzread" = x""yes; then : $as_echo "#define HAVE_ZLIB 1" >>confdefs.h HAVE_ZLIB=1 if test "x$ZLIB_DIR" != "x"; then ZLIB_CFLAGS="-I$ZLIB_DIR/include" ZLIB_LIBS="-L$ZLIB_DIR/lib -lz" else ZLIB_CFLAGS="" ZLIB_LIBS="-lz" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lgz" >&5 $as_echo_n "checking for gzread in -lgz... " >&6; } if test "${ac_cv_lib_gz_gzread+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lgz $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 gzread (); int main () { return gzread (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_gz_gzread=yes else ac_cv_lib_gz_gzread=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_gz_gzread" >&5 $as_echo "$ac_cv_lib_gz_gzread" >&6; } if test "x$ac_cv_lib_gz_gzread" = x""yes; then : $as_echo "#define HAVE_ZLIB 1" >>confdefs.h HAVE_ZLIB=1 if test "x$ZLIB_DIR" != "x"; then ZLIB_CFLAGS="-I$ZLIB_DIR/include" ZLIB_LIBS="-L$ZLIB_DIR/lib -lgz" else ZLIB_CFLAGS="" ZLIB_LIBS="-lgz" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * * * Unable to find zlib, which is kinda necessary. * * *" >&5 $as_echo "$as_me: WARNING: * * * Unable to find zlib, which is kinda necessary. * * *" >&2;} HAVE_ZLIB=0 ZLIB_CFLAGS="" ZLIB_LIBS="" fi fi fi OPT_CFLAGS="$OPT_CFLAGS $ZLIB_CFLAGS" OPT_LIBS="$OPT_LIBS $ZLIB_LIBS" CPPFLAGS=$_cppflags LDFLAGS=$_ldflags _cppflags=$CPPFLAGS _ldflags=$LDFLAGS CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS" # Check whether --with-png was given. if test "${with_png+set}" = set; then : withval=$with_png; if test "x$withval" = "xyes"; then PNG_DIR="" elif test "x$withval" != "xno"; then PNG_DIR=$withval CPPFLAGS="$CPPFLAGS -I$withval/include" LDFLAGS="$LDFLAGS -L$withval/lib" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No libpng? Are you sure? I think I'll look for it anyway..." >&5 $as_echo "$as_me: WARNING: No libpng? Are you sure? I think I'll look for it anyway..." >&2;} PNG_DIR="" fi else PNG_DIR="" fi ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default" if test "x$ac_cv_header_png_h" = x""yes; then : ac_fn_c_check_header_compile "$LINENO" "pngconf.h" "ac_cv_header_pngconf_h" "#if HAVE_ZLIB #include #endif " if test "x$ac_cv_header_pngconf_h" = x""yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_free in -lpng" >&5 $as_echo_n "checking for png_free in -lpng... " >&6; } if test "${ac_cv_lib_png_png_free+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpng $ZLIB_LIBS -lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char png_free (); int main () { return png_free (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_png_png_free=yes else ac_cv_lib_png_png_free=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_free" >&5 $as_echo "$ac_cv_lib_png_png_free" >&6; } if test "x$ac_cv_lib_png_png_free" = x""yes; then : $as_echo "#define HasPNG 1" >>confdefs.h HAVE_PNG=1 if test "x$PNG_DIR" != "x"; then PNG_CFLAGS="-I$PNG_DIR/include" PNG_LIBS="-L$PNG_DIR/lib -lpng" else PNG_CFLAGS="" PNG_LIBS="-lpng" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * * * Unable to find libpng, which is kinda necessary. * * *" >&5 $as_echo "$as_me: WARNING: * * * Unable to find libpng, which is kinda necessary. * * *" >&2;} HAVE_PNG=0 PNG_CFLAGS="" PNG_LIBS="" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * * * Missing \"pngconf.h\" header file * * *" >&5 $as_echo "$as_me: WARNING: * * * Missing \"pngconf.h\" header file * * *" >&2;} HAVE_PNG=0 PNG_CFLAGS="" PNG_LIBS="" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * * * Missing \"png.h\" header file * * *" >&5 $as_echo "$as_me: WARNING: * * * Missing \"png.h\" header file * * *" >&2;} HAVE_PNG=0 PNG_CFLAGS="" PNG_LIBS="" fi OPT_CFLAGS="$OPT_CFLAGS $PNG_CFLAGS" OPT_LIBS="$OPT_LIBS $PNG_LIBS" CPPFLAGS=$_cppflags LDFLAGS=$_ldflags _cppflags=$CPPFLAGS _ldflags=$LDFLAGS have_libwmf=no # Check whether --with-libwmf was given. if test "${with_libwmf+set}" = set; then : withval=$with_libwmf; if test "x$withval" != "xno" ; then if test "x$withval" != "xyes" ; then LIBWMF_DIR=$withval fi search_for_libwmf=yes else search_for_libwmf=no fi else search_for_libwmf=no fi if test $search_for_libwmf != no ; then if test -n "$LIBWMF_DIR" ; then # Extract the first word of "libwmf-config", so it can be a program name with args. set dummy libwmf-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 test "${ac_cv_path_LIBWMF_CONFIG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $LIBWMF_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_LIBWMF_CONFIG="$LIBWMF_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_dummy="$LIBWMF_DIR/bin:$PATH" for as_dir in $as_dummy do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_LIBWMF_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi LIBWMF_CONFIG=$ac_cv_path_LIBWMF_CONFIG if test -n "$LIBWMF_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBWMF_CONFIG" >&5 $as_echo "$LIBWMF_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi else # Extract the first word of "libwmf-config", so it can be a program name with args. set dummy libwmf-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 test "${ac_cv_path_LIBWMF_CONFIG+set}" = set; then : $as_echo_n "(cached) " >&6 else case $LIBWMF_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_LIBWMF_CONFIG="$LIBWMF_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_path_LIBWMF_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi LIBWMF_CONFIG=$ac_cv_path_LIBWMF_CONFIG if test -n "$LIBWMF_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBWMF_CONFIG" >&5 $as_echo "$LIBWMF_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -n "$LIBWMF_CONFIG" ; then libwmf_cflags=`$LIBWMF_CONFIG --cflags` libwmf_libs=`$LIBWMF_CONFIG --libs` else as_fn_error "* * * unable to find libwmf-config; unable to continue * * *" "$LINENO" 5 fi CPPFLAGS="$CPPFLAGS $libwmf_cflags" LDFLAGS="$LDFLAGS $libwmf_libs" ac_fn_c_check_header_mongrel "$LINENO" "libwmf/api.h" "ac_cv_header_libwmf_api_h" "$ac_includes_default" if test "x$ac_cv_header_libwmf_api_h" = x""yes; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_stream_create in -lwmf" >&5 $as_echo_n "checking for wmf_stream_create in -lwmf... " >&6; } if test "${ac_cv_lib_wmf_wmf_stream_create+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lwmf $libwmf_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 wmf_stream_create (); int main () { return wmf_stream_create (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_wmf_wmf_stream_create=yes else ac_cv_lib_wmf_wmf_stream_create=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_wmf_wmf_stream_create" >&5 $as_echo "$ac_cv_lib_wmf_wmf_stream_create" >&6; } if test "x$ac_cv_lib_wmf_wmf_stream_create" = x""yes; then : have_libwmf=yes else as_fn_error "* * * libwmf >= 0.2.1 required * * *" "$LINENO" 5 fi ac_fn_c_check_header_mongrel "$LINENO" "libwmf/foreign.h" "ac_cv_header_libwmf_foreign_h" "$ac_includes_default" if test "x$ac_cv_header_libwmf_foreign_h" = x""yes; then : $as_echo "#define HAVE_LIBWMF_FOREIGN_H 1" >>confdefs.h else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: * * * libwmf >= 0.2.2 recommended * * *" >&5 $as_echo "$as_me: WARNING: * * * libwmf >= 0.2.2 recommended * * *" >&2;} fi fi if test $have_libwmf != no; then $as_echo "#define HAVE_LIBWMF 1" >>confdefs.h WMF_CFLAGS="$libwmf_cflags" WMF_LIBS="$libwmf_libs" fi fi CPPFLAGS=$_cppflags LDFLAGS=$_ldflags OPT_CFLAGS="$OPT_CFLAGS $WMF_CFLAGS" OPT_LIBS="$OPT_LIBS $WMF_LIBS" 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 CPPFLAGS=$_cppflags LDFLAGS=$_ldflags # 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 char" >&5 $as_echo_n "checking size of char... " >&6; } if test "${ac_cv_sizeof_char+set}" = set; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : else if test "$ac_cv_type_char" = 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_set_status 77 as_fn_error "cannot compute sizeof (char) See \`config.log' for more details." "$LINENO" 5; }; } else ac_cv_sizeof_char=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 $as_echo "$ac_cv_sizeof_char" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_CHAR $ac_cv_sizeof_char _ACEOF # 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 short" >&5 $as_echo_n "checking size of short... " >&6; } if test "${ac_cv_sizeof_short+set}" = set; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : else if test "$ac_cv_type_short" = 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_set_status 77 as_fn_error "cannot compute sizeof (short) See \`config.log' for more details." "$LINENO" 5; }; } else ac_cv_sizeof_short=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 $as_echo "$ac_cv_sizeof_short" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_SHORT $ac_cv_sizeof_short _ACEOF # 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 test "${ac_cv_sizeof_int+set}" = set; 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_set_status 77 as_fn_error "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 # 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 long" >&5 $as_echo_n "checking size of long... " >&6; } if test "${ac_cv_sizeof_long+set}" = set; then : $as_echo_n "(cached) " >&6 else if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : else if test "$ac_cv_type_long" = 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_set_status 77 as_fn_error "cannot compute sizeof (long) See \`config.log' for more details." "$LINENO" 5; }; } else ac_cv_sizeof_long=0 fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 $as_echo "$ac_cv_sizeof_long" >&6; } cat >>confdefs.h <<_ACEOF #define SIZEOF_LONG $ac_cv_sizeof_long _ACEOF if test "$SIZEOF_CHAR" != "1" ; then if test "$SIZEOF_SHORT" != "2" ; then if test "$SIZEOF_INT" != "4" ; then $as_echo "#define MATCHED_TYPE 1" >>confdefs.h fi fi fi if test "$cross_compiling" != "yes" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } if test "${ac_cv_c_bigendian+set}" = set; then : $as_echo_n "(cached) " >&6 else ac_cv_c_bigendian=unknown # See if we're dealing with a universal compiler. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __APPLE_CC__ not a universal capable compiler #endif typedef int dummy; _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # Check for potential -arch flags. It is not universal unless # there are at least two -arch flags with different values. ac_arch= ac_prev= for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do if test -n "$ac_prev"; then case $ac_word in i?86 | x86_64 | ppc | ppc64) if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then ac_arch=$ac_word else ac_cv_c_bigendian=universal break fi ;; esac ac_prev= elif test "x$ac_word" = "x-arch"; then ac_prev=arch fi done fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_c_bigendian = unknown; then # See if sys/param.h defines the BYTE_ORDER macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ && LITTLE_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { #if BYTE_ORDER != BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=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 if test $ac_cv_c_bigendian = unknown; then # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) bogus endian macros #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : # It does; now see whether it defined to _BIG_ENDIAN or not. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _BIG_ENDIAN not big endian #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_bigendian=yes else ac_cv_c_bigendian=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 if test $ac_cv_c_bigendian = unknown; then # Compile a test program. if test "$cross_compiling" = yes; then : # Try to guess by grepping values from an object file. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; int use_ascii (int i) { return ascii_mm[i] + ascii_ii[i]; } short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; int use_ebcdic (int i) { return ebcdic_mm[i] + ebcdic_ii[i]; } extern int foo; int main () { return use_ascii (foo) == use_ebcdic (foo); ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then ac_cv_c_bigendian=yes fi if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then if test "$ac_cv_c_bigendian" = unknown; then ac_cv_c_bigendian=no else # finding both strings is unlikely to happen, but who knows? ac_cv_c_bigendian=unknown fi fi fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* Are we little or big endian? From Harbison&Steele. */ union { long int l; char c[sizeof (long int)]; } u; u.l = 1; return u.c[sizeof (long int) - 1] == 1; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_bigendian=no else ac_cv_c_bigendian=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 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 $as_echo "$ac_cv_c_bigendian" >&6; } case $ac_cv_c_bigendian in #( yes) $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h ;; #( no) ;; #( universal) $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h ;; #( *) as_fn_error "unknown endianness presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac if test "$ac_cv_c_bigendian" = "no" ; then $as_echo "#define XML_BYTE_ORDER 12" >>confdefs.h else if test "$ac_cv_c_bigendian" = "yes" ; then $as_echo "#define XML_BYTE_ORDER 21" >>confdefs.h fi fi else $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" if test "x$ac_cv_func_getopt_long" = x""yes; then : else case " $LIBOBJS " in *" getopt1.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;; esac case " $LIBOBJS " in *" getopt.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;; esac fi ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" if test "x$ac_cv_func_strcasecmp" = x""yes; then : else case " $LIBOBJS " in *" strcasecmp.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;; esac fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "strcasecmp" >/dev/null 2>&1; then : else $as_echo "#define DEFINE_STRCASECMP 1" >>confdefs.h fi rm -f conftest* for ac_func in memcpy do : ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" if test "x$ac_cv_func_memcpy" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_MEMCPY 1 _ACEOF fi done for ac_header in $ac_header_list 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 " eval as_val=\$$as_ac_Header if test "x$as_val" = x""yes; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in getpagesize do : ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" if test "x$ac_cv_func_getpagesize" = x""yes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETPAGESIZE 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 $as_echo_n "checking for working mmap... " >&6; } if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_mmap_fixed_mapped=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default /* malloc might have been renamed as rpl_malloc. */ #undef malloc /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: mmap private not fixed mmap private fixed at somewhere currently unmapped mmap private fixed at somewhere already mapped mmap shared not fixed mmap shared fixed at somewhere currently unmapped mmap shared fixed at somewhere already mapped For private mappings, we should verify that changes cannot be read() back from the file, nor mmap's back from the file at a different address. (There have been systems where private was not correctly implemented like the infamous i386 svr4.0, and systems where the VM page cache was not coherent with the file system buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get propagated back to all the places they're supposed to be. Grep wants private fixed already mapped. The main things grep needs to know about mmap are: * does it exist and is it safe to write into the mmap'd area * how to use it (BSD variants) */ #include #include #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H char *malloc (); #endif /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ #endif /* no HAVE_GETPAGESIZE */ int main () { char *data, *data2, *data3; const char *cdata2; int i, pagesize; int fd, fd2; pagesize = getpagesize (); /* First, make a file with some known garbage in it. */ data = (char *) malloc (pagesize); if (!data) return 1; for (i = 0; i < pagesize; ++i) *(data + i) = rand (); umask (0); fd = creat ("conftest.mmap", 0600); if (fd < 0) return 2; if (write (fd, data, pagesize) != pagesize) return 3; close (fd); /* Next, check that the tail of a page is zero-filled. File must have non-zero length, otherwise we risk SIGBUS for entire page. */ fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); if (fd2 < 0) return 4; cdata2 = ""; if (write (fd2, cdata2, 1) != 1) return 5; data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); if (data2 == MAP_FAILED) return 6; for (i = 0; i < pagesize; ++i) if (*(data2 + i)) return 7; close (fd2); if (munmap (data2, pagesize)) return 8; /* Next, try to mmap the file at a fixed address which already has something else allocated at it. If we can, also make sure that we see the same garbage. */ fd = open ("conftest.mmap", O_RDWR); if (fd < 0) return 9; if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) return 10; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) return 11; /* Finally, make sure that changes to the mapped area do not percolate back to the file as seen by read(). (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = (char *) malloc (pagesize); if (!data3) return 12; if (read (fd, data3, pagesize) != pagesize) return 13; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) return 14; close (fd); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_mmap_fixed_mapped=yes else ac_cv_func_mmap_fixed_mapped=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } if test $ac_cv_func_mmap_fixed_mapped = yes; then $as_echo "#define HAVE_MMAP 1" >>confdefs.h fi rm -f conftest.mmap conftest.txt ac_config_files="$ac_config_files wvAbw wvDVI wvPS wvPDF wvHtml wvDocBook wvLatex wvCleanLatex wvText wvWml wv-1.0.pc version.c GNUmakefile xml/GNUmakefile help/GNUmakefile help/man/GNUmakefile patterns/GNUmakefile wingdingfont/GNUmakefile" 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 test "x$cache_file" != "x/dev/null" && { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file 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= 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 if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : ${CONFIG_STATUS=./config.status} ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. 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 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=$?; test $as_status -eq 0 && as_status=1 if test "$3"; then as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 fi $as_echo "$as_me: error: $1" >&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 -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi else as_ln_s='cp -p' 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 if test -x / >/dev/null 2>&1; then as_test_x='test -x' else if ls -dL / >/dev/null 2>&1; then as_ls_L_option=L else as_ls_L_option= fi as_test_x=' eval sh -c '\'' if test -d "$1"; then test -d "$1/."; else case $1 in #( -*)set "./$1";; esac; case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( ???[sx]*):;;*)false;;esac;fi '\'' sh ' fi as_executable_p=$as_test_x # 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 wv $as_me 1.2.9, which was generated by GNU Autoconf 2.65. 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 ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ wv config.status 1.2.9 configured by $0, generated by GNU Autoconf 2.65, with options \\"\$ac_cs_config\\" Copyright (C) 2009 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=$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"` ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # 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 "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in SED \ GREP \ EGREP \ FGREP \ LD \ NM \ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ OBJDUMP \ deplibs_check_method \ file_magic_cmd \ AR \ AR_FLAGS \ STRIP \ RANLIB \ CC \ CFLAGS \ compiler \ lt_cv_sys_global_symbol_pipe \ lt_cv_sys_global_symbol_to_cdecl \ lt_cv_sys_global_symbol_to_c_name_address \ lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ SHELL \ ECHO \ lt_prog_compiler_no_builtin_flag \ lt_prog_compiler_wl \ lt_prog_compiler_pic \ lt_prog_compiler_static \ lt_cv_prog_compiler_c_o \ need_locks \ 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_flag_spec_ld \ hardcode_libdir_separator \ fix_srcfile_path \ exclude_expsyms \ include_expsyms \ file_list_spec \ variables_saved_for_relink \ libname_spec \ library_names_spec \ soname_spec \ finish_eval \ old_striplib \ striplib; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) 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 \ postinstall_cmds \ postuninstall_cmds \ finish_cmds \ sys_lib_search_path_spec \ sys_lib_dlsearch_path_spec; do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[\\\\\\\`\\"\\\$]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` ;; esac ac_aux_dir='$ac_aux_dir' xsi_shell='$xsi_shell' lt_shell_append='$lt_shell_append' # See if we are running on zsh, and set the options which 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' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; "wvAbw") CONFIG_FILES="$CONFIG_FILES wvAbw" ;; "wvDVI") CONFIG_FILES="$CONFIG_FILES wvDVI" ;; "wvPS") CONFIG_FILES="$CONFIG_FILES wvPS" ;; "wvPDF") CONFIG_FILES="$CONFIG_FILES wvPDF" ;; "wvHtml") CONFIG_FILES="$CONFIG_FILES wvHtml" ;; "wvDocBook") CONFIG_FILES="$CONFIG_FILES wvDocBook" ;; "wvLatex") CONFIG_FILES="$CONFIG_FILES wvLatex" ;; "wvCleanLatex") CONFIG_FILES="$CONFIG_FILES wvCleanLatex" ;; "wvText") CONFIG_FILES="$CONFIG_FILES wvText" ;; "wvWml") CONFIG_FILES="$CONFIG_FILES wvWml" ;; "wv-1.0.pc") CONFIG_FILES="$CONFIG_FILES wv-1.0.pc" ;; "version.c") CONFIG_FILES="$CONFIG_FILES version.c" ;; "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; "xml/GNUmakefile") CONFIG_FILES="$CONFIG_FILES xml/GNUmakefile" ;; "help/GNUmakefile") CONFIG_FILES="$CONFIG_FILES help/GNUmakefile" ;; "help/man/GNUmakefile") CONFIG_FILES="$CONFIG_FILES help/man/GNUmakefile" ;; "patterns/GNUmakefile") CONFIG_FILES="$CONFIG_FILES patterns/GNUmakefile" ;; "wingdingfont/GNUmakefile") CONFIG_FILES="$CONFIG_FILES wingdingfont/GNUmakefile" ;; *) 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= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$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 -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$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 >>"\$tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$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 < "$tmp/subs1.awk" > "$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 $(srcdir), # ${srcdir} and @srcdir@ 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[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// 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 >"$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_t=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_t"; then break elif $ac_last_try; then as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$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 "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 >"$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 "$tmp/subs.awk" >$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' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$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 "$tmp/stdin" case $ac_file in -) cat "$tmp/out" && rm -f "$tmp/out";; *) rm -f "$ac_file" && mv "$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 "$tmp/defines.awk"' "$ac_file_inputs" } >"$tmp/config.h" \ || as_fn_error "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$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 "$tmp/config.h" "$ac_file" \ || as_fn_error "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$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"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "libtool":C) # See if we are running on zsh, and set the options which 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 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $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. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # 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 # 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # The names of the tagged configurations supported by this script. available_tags="" # ### BEGIN LIBTOOL CONFIG # Which release of libtool.m4 was used? macro_version=$macro_version macro_revision=$macro_revision # 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 # 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 # How to create reloadable object files. reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # An object symbol dumper. OBJDUMP=$lt_OBJDUMP # 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 # The archiver. AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS # 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 # 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 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 of the directory that contains temporary libtool files. objdir=$objdir # Shell to use when invoking shell scripts. SHELL=$lt_SHELL # An echo program that does not interpret backslashes. ECHO=$lt_ECHO # 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 # 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 # 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 # Run-time system search path for libraries. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # 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 # 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 # How to pass a linker flag through the compiler. wl=$lt_lt_prog_compiler_wl # Additional compiler flags for building library objects. pic_flag=$lt_lt_prog_compiler_pic # 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 # If ld is used when linking, flag to hardcode \$libdir into a binary # during linking. This must work even if \$libdir does not exist. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld # 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 # Fix the shell variable \$srcfile for the compiler. fix_srcfile_path=$lt_fix_srcfile_path # 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 # 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 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 "X${COLLECT_NAMES+set}" != Xset; 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 '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $* )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[^=]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$@"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1+=\$2" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$1=\$$1\$2" } _LT_EOF ;; esac sed -n '/^# Generated shell functions inserted here/,$p' "$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 $? 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 wv-1.2.9/wvConfig.c0000664000076400007640000033633211247156606011062 00000000000000/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #include #include #include "wv.h" #include "wvinternal.h" #ifdef HAVE_LIBXML2 #include #include #define XML_Char xmlChar #else #ifdef HAVE_EXPAT #include #else #include "xmlparse.h" #endif #endif extern int (*wvConvertUnicodeToEntity) (U16 char16); #define HANDLE_B_PARA_ELE(a,b,c,d) \ if ( (((PAP*)(mydata->props))->b == d) && (c == 0) ) \ { \ text = (char *)wvMalloc(strlen(mydata->sd->elements[a].str[0])+1); \ strcpy(text,mydata->sd->elements[a].str[0]); \ str = mydata->retstring; \ wvExpand(mydata,text,strlen(text)); \ wvAppendStr(&str,mydata->retstring); \ wvFree(mydata->retstring); \ mydata->retstring = str; \ wvFree(text); \ mydata->currentlen = strlen(mydata->retstring); \ c=d; \ } #define HANDLE_B_CHAR_ELE(a,b,c,d) \ if ( (((CHP*)(mydata->props))->b == d) && (c == 0) ) \ { \ text = (char *)wvMalloc(strlen(mydata->sd->elements[a].str[0])+1); \ strcpy(text,mydata->sd->elements[a].str[0]); \ str = mydata->retstring; \ wvExpand(mydata,text,strlen(text)); \ wvAppendStr(&str,mydata->retstring); \ wvFree(mydata->retstring); \ mydata->retstring = str; \ wvFree(text); \ mydata->currentlen = strlen(mydata->retstring); \ c=d; \ } #define HANDLE_E_CHAR_ELE(a,b,c,d) \ /* \ if ( (!((CHP*)(mydata->props))->b) && (c != 0) ) \ */ \ if (c == d) \ { \ text = (char *)wvMalloc(strlen(mydata->sd->elements[a].str[1])+1); \ strcpy(text,mydata->sd->elements[a].str[1]); \ str = mydata->retstring; \ wvExpand(mydata,text,strlen(text)); \ wvAppendStr(&str,mydata->retstring); \ wvFree(mydata->retstring); \ mydata->retstring = str; \ wvFree(text); \ mydata->currentlen = strlen(mydata->retstring); \ c=0; \ } #define HANDLE_E_PARA_ELE(a,b,c,d) \ /* \ if ( (!((PAP*)(mydata->props))->b) && (c != 0) ) \ */ \ if (c == d) \ { \ text = (char *)wvMalloc(strlen(mydata->sd->elements[a].str[1])+1); \ strcpy(text,mydata->sd->elements[a].str[1]); \ str = mydata->retstring; \ wvExpand(mydata,text,strlen(text)); \ wvAppendStr(&str,mydata->retstring); \ wvFree(mydata->retstring); \ mydata->retstring = str; \ wvFree(text); \ mydata->currentlen = strlen(mydata->retstring); \ c=0; \ } void wvInitStateData (state_data * data) { int i; data->fp = NULL; data->path = NULL; data->currentele = NULL; data->current = NULL; data->currentlen = 0; for (i = 0; i < TokenTableSize; i++) { data->elements[i].nostr = 0; data->elements[i].str = NULL; } } void wvListStateData (state_data * data) { int i, j; for (i = 0; i < TokenTableSize; i++) { for (j = 0; j < data->elements[i].nostr; j++) { if (data->elements[i].str[j]) wvError ( ("listing->element %s\n", data->elements[i].str[j])); } } } void wvReleaseStateData (state_data * data) { int i, k; if (data->fp) fclose (data->fp); for (i = 0; i < TokenTableSize; i++) { for (k = 0; k < data->elements[i].nostr; k++) wvFree (data->elements[i].str[k]); wvFree (data->elements[i].str); } } static void exstartElement (void *userData, const char *name, const char **atts) { unsigned int token_type; expand_data *mydata = (expand_data *) userData; char *text, *str; static int bold, italic, strike, outline, smallcaps, caps, vanish, shadow, lowercase, emboss, imprint, dstrike, iss, kul, color, fontstr, proprmark, animation, deleted, added, FldRMark, ilfo, ilvl = -1, ulist, olist, fintable, fttp = 1, table, txt, lastcell; char buffer[64]; static LVL lvl; static U32 lastid = 0; static LFO *retlfo; U32 k; int i, j; /* PATCH */ PAP *pap; /* printf("exstart: %s \n",name);*/ /* tokenIndex = s_mapNameToToken ((const char *) name); token_type = s_Tokens[tokenIndex].m_type; */ token_type = wvMapNameToTokenType ((const char *) name); switch (token_type) { case TT_TITLE: if (mydata->retstring) { printf ("%s", mydata->retstring); wvFree (mydata->retstring); mydata->retstring = NULL; mydata->currentlen = 0; } wvPrintTitle (mydata->ps, mydata->anSttbfAssoc); break; case TT_CHARSET: wvTrace (("the charset is %d\n", mydata->charset)); wvAppendStr (&mydata->retstring, mydata->charset); mydata->currentlen = strlen (mydata->retstring); break; case TT_ROWSPAN: wvTrace (("This Para is here cell %d %d\n", mydata->whichrow, mydata->whichcell)); if (*mydata->vmerges) { wvTrace ( ("%d\n", (*mydata->vmerges)[mydata->whichrow][mydata-> whichcell])); sprintf (buffer, "%d", (*mydata->vmerges)[mydata->whichrow][mydata-> whichcell]); } else sprintf (buffer, "1"); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_no_rows: sprintf (buffer, "%d", *mydata->norows); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; break; case TT_no_cols: sprintf (buffer, "%d", *(mydata->nocellbounds) - 1); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_TABLERELWIDTH: { S16 width = ((PAP *) (mydata->props))->ptap. rgdxaCenter[((PAP *) (mydata->props))->ptap.itcMac] - ((PAP *) (mydata->props))->ptap.rgdxaCenter[0]; sprintf (buffer, "%.2f", wvRelativeWidth (width, mydata->asep)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); } break; case TT_CELLBGCOLOR: wvTrace ( ("%d %d %d %d\n", mydata->whichrow, mydata->whichcell, ((PAP *) (mydata->props))->ptap.itcMac, *(mydata->norows))); k = wvCellBgColor (mydata->whichrow, mydata->whichcell, ((PAP *) (mydata->props))->ptap.itcMac, *(mydata->norows), &(((PAP *) (mydata->props))->ptap.tlp)); wvTrace (("k is %d\n", k)); if (k == 0) k = 8; text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BLACK + ((k - 1) * 3)]. str[0]) + 1); strcpy (text, mydata->sd->elements[TT_BLACK + ((k - 1) * 3)].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_PARABGCOLOR: k = ((PAP *) (mydata->props))->shd.icoBack; if (k == 0) k = 8; text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BLACK + ((k - 1) * 3)]. str[0]) + 1); strcpy (text, mydata->sd->elements[TT_BLACK + ((k - 1) * 3)].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_PARAFGCOLOR: k = ((PAP *) (mydata->props))->shd.icoFore; if (k == 0) k = 1; text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BLACK + ((k - 1) * 3)]. str[0]) + 1); strcpy (text, mydata->sd->elements[TT_BLACK + ((k - 1) * 3)].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_CELLRELPAGEWIDTH: { S16 width = (((PAP *) (mydata->props))->ptap. rgdxaCenter[mydata->whichcell + 1] - ((PAP *) (mydata->props))->ptap.rgdxaCenter[mydata-> whichcell]); sprintf (buffer, "%.2f", wvRelativeWidth (width, mydata->asep)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); } break; case TT_CELLRELWIDTH: { float pc; long over; long under; over = (((PAP *) (mydata->props))->ptap. rgdxaCenter[mydata->whichcell + 1] - ((PAP *) (mydata->props))->ptap.rgdxaCenter[mydata-> whichcell]); over *= 100; under = (((PAP *) (mydata->props))->ptap. rgdxaCenter[((PAP *) (mydata->props))->ptap.itcMac] - ((PAP *) (mydata->props))->ptap.rgdxaCenter[0]); pc = (float) over / under; sprintf (buffer, "%.2f", pc); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); } break; case TT_COLSPAN: if (((PAP *) (mydata->props))->fInTable) { wvTrace ( ("this cell is %d, pos %d ends %d\n", mydata->whichcell, ((PAP *) (mydata->props))->ptap.rgdxaCenter[mydata-> whichcell], ((PAP *) (mydata->props))->ptap.rgdxaCenter[mydata-> whichcell + 1])); i = 0; while ( (i < *mydata->nocellbounds) && (0 == cellCompEQ (&((*mydata->cellbounds)[i]), &(((PAP *) (mydata->props))->ptap. rgdxaCenter[mydata->whichcell])))) i++; j = i; while ( (j < *mydata->nocellbounds) && (0 == cellCompEQ (&((*mydata->cellbounds)[j]), &(((PAP *) (mydata->props))->ptap. rgdxaCenter[mydata->whichcell + 1])))) { wvTrace ( ("j is %d %d %d\n", j, (*mydata->cellbounds)[j], ((PAP *) (mydata->props))->ptap. rgdxaCenter[mydata->whichcell + 1])); j++; } sprintf (buffer, "%d", j - i); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); } break; case TT_FILENAME: if (mydata->filename) { wvAppendStr (&mydata->retstring, mydata->filename); mydata->currentlen = strlen (mydata->retstring); } break; case TT_VERSION: wvTrace (("the version is %s\n", wv_version)); wvAppendStr (&mydata->retstring, wv_version); mydata->currentlen = strlen (mydata->retstring); break; case TT_COLORB: wvTrace (("str is %s\n", mydata->sd->elements[TT_COLOR].str[0])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_COLOR]. str[((CHP *) (mydata->props))->ico]) + 1); wvTrace (("the just is %d\n", ((CHP *) (mydata->props))->ico)); strcpy (text, mydata->sd->elements[TT_COLOR]. str[((CHP *) (mydata->props))->ico]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_PARAMARGIN: if (fintable) { /* if there are any table overrides check to make sure all are filled in, and if all are set to 0 */ if ( (mydata->sd->elements[TT_TABLEOVERRIDES].str) && (mydata->sd->elements[TT_TABLEOVERRIDES].str[0]) && (mydata->sd->elements[TT_TABLEOVERRIDES].str[1]) && (mydata->sd->elements[TT_TABLEOVERRIDES].str[2]) && (mydata->sd->elements[TT_TABLEOVERRIDES].str[3])) { if ( (atoi (mydata->sd->elements[TT_TABLEOVERRIDES].str[0]) == 0) && (atoi (mydata->sd->elements[TT_TABLEOVERRIDES].str[1]) == 0) && (atoi (mydata->sd->elements[TT_TABLEOVERRIDES].str[2]) == 0) && (atoi (mydata->sd->elements[TT_TABLEOVERRIDES].str[3]) == 0)) { wvTrace ( ("The table has overrides such that paramargin is to be ignored\n")); break; } } } if ( ((PAP *) (mydata->props))->dyaBefore || ((PAP *) (mydata->props))->dyaAfter || ((PAP *) (mydata->props))->dxaLeft || ((PAP *) (mydata->props))->dxaRight) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_PMARGIN].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_PMARGIN].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); } break; case TT_PARABORDER: if ( ((PAP *) (mydata->props))->brcBetween.brcType || ((PAP *) (mydata->props))->brcRight.brcType || ((PAP *) (mydata->props))->brcBottom.brcType || ((PAP *) (mydata->props))->brcLeft.brcType || ((PAP *) (mydata->props))->brcTop.brcType) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_PBORDER].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_PBORDER].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); } break; case TT_JUST: wvTrace (("just is %d\n", ((PAP *) (mydata->props))->jc)); wvTrace ( ("str is %s\n", mydata->sd->elements[TT_JUSTIFICATION].str[0])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_JUSTIFICATION].str[ ((PAP *) (mydata-> props))->jc]) + 1); wvTrace (("the just is %d\n", ((PAP *) (mydata->props))->jc)); strcpy (text, mydata->sd->elements[TT_JUSTIFICATION]. str[((PAP *) (mydata->props))->jc]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_BORDERTopSTYLE: if (isPAPConform (&mydata->lastpap, (PAP *) (mydata->props))) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BORDER].str[ ((PAP *) (mydata-> props))->brcBetween. brcType]) + 1); strcpy (text, mydata->sd->elements[TT_BORDER]. str[((PAP *) (mydata->props))->brcBetween.brcType]); } else { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BORDER].str[ ((PAP *) (mydata-> props))->brcTop. brcType]) + 1); strcpy (text, mydata->sd->elements[TT_BORDER]. str[((PAP *) (mydata->props))->brcTop.brcType]); } str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_BORDERLeftSTYLE: text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BORDER]. str[((PAP *) (mydata->props))->brcLeft.brcType]) + 1); strcpy (text, mydata->sd->elements[TT_BORDER]. str[((PAP *) (mydata->props))->brcLeft.brcType]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_BORDERRightSTYLE: text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BORDER]. str[((PAP *) (mydata->props))->brcRight.brcType]) + 1); strcpy (text, mydata->sd->elements[TT_BORDER]. str[((PAP *) (mydata->props))->brcRight.brcType]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_BORDERBottomSTYLE: if (isPAPConform (mydata->nextpap, (PAP *) (mydata->props))) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BORDER].str[ ((PAP *) (mydata-> props))->brcBetween. brcType]) + 1); strcpy (text, mydata->sd->elements[TT_BORDER]. str[((PAP *) (mydata->props))->brcBetween.brcType]); } else { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BORDER].str[ ((PAP *) (mydata-> props))->brcBottom. brcType]) + 1); strcpy (text, mydata->sd->elements[TT_BORDER]. str[((PAP *) (mydata->props))->brcBottom.brcType]); } str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_BORDERTopCOLOR: if (isPAPConform (&mydata->lastpap, (PAP *) (mydata->props))) { if (((PAP *) (mydata->props))->brcBetween.ico == 0) { /* temp fix this in a while */ ((PAP *) (mydata->props))->brcBetween.ico++; } text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata-> props))->brcBetween. ico - 1) * 3)].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata->props))-> brcBetween.ico - 1) * 3)].str[0]); } else { if (((PAP *) (mydata->props))->brcTop.ico == 0) { /* temp fix this in a while */ ((PAP *) (mydata->props))->brcTop.ico++; } text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata-> props))->brcTop. ico - 1) * 3)].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata->props))->brcTop. ico - 1) * 3)].str[0]); } str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_BORDERLeftCOLOR: if (((PAP *) (mydata->props))->brcLeft.ico == 0) { /* temp fix this in a while */ ((PAP *) (mydata->props))->brcLeft.ico++; } text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata->props))-> brcLeft.ico - 1) * 3)].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata->props))->brcLeft.ico - 1) * 3)].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_BORDERRightCOLOR: if (((PAP *) (mydata->props))->brcRight.ico == 0) { /* temp fix this in a while */ ((PAP *) (mydata->props))->brcRight.ico++; } text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata->props))-> brcRight.ico - 1) * 3)].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata->props))->brcRight.ico - 1) * 3)].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_BORDERBottomCOLOR: if (isPAPConform (mydata->nextpap, (PAP *) (mydata->props))) { if (((PAP *) (mydata->props))->brcBetween.ico == 0) { /* temp fix this in a while */ ((PAP *) (mydata->props))->brcBetween.ico++; } text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata-> props))->brcBetween. ico - 1) * 3)].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata->props))-> brcBetween.ico - 1) * 3)].str[0]); } else { if (((PAP *) (mydata->props))->brcBottom.ico == 0) { /* temp fix this in a while */ ((PAP *) (mydata->props))->brcBottom.ico++; } text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata-> props))->brcBottom. ico - 1) * 3)].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_BLACK + ((((PAP *) (mydata->props))-> brcBottom.ico - 1) * 3)].str[0]); } str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); break; case TT_START: wvTrace ( ("a: HANDLING INDEX %d, %d %d\n", (((PAP *) (mydata->props))->ilfo - 1) * 9 + ((PAP *) (mydata->props))->ilvl, ((PAP *) (mydata->props))->ilfo, ((PAP *) (mydata->props))->ilvl)); wvTrace ( ("b: HANDLING INDEX %d, %d %d no is %d\n", (ilfo - 1) * 9 + ilvl, ilfo, ilvl, (*mydata->liststartnos)[(ilfo - 1) * 9 + ilvl])); sprintf (buffer, "%d", (*mydata->liststartnos)[(ilfo - 1) * 9 + ilvl]); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_nfc: wvTrace (("nfc is %d\n", lvl.lvlf.nfc)); wvTrace (("nfc is %d\n", (*mydata->listnfcs)[(ilfo - 1) * 9 + ilvl])); if ((*mydata->listnfcs)[(ilfo - 1) * 9 + ilvl] < 5) { wvTrace ( ("str is %s\n", mydata->sd->elements[TT_numbering]. str[(*mydata->listnfcs)[(ilfo - 1) * 9 + ilvl]])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_numbering]. str[(*mydata->listnfcs)[(ilfo - 1) * 9 + ilvl]]) + 1); strcpy (text, mydata->sd->elements[TT_numbering]. str[(*mydata->listnfcs)[(ilfo - 1) * 9 + ilvl]]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); } #if 0 if (lvl.lvlf.nfc < 5) { wvTrace ( ("str is %s\n", mydata->sd->elements[TT_numbering].str[lvl.lvlf. nfc])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_numbering]. str[lvl.lvlf.nfc]) + 1); strcpy (text, mydata->sd->elements[TT_numbering].str[lvl.lvlf.nfc]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); } #endif break; case TT_ULISTE: if ((ilfo != 0) && (ilfo != ((PAP *) (mydata->props))->ilfo)) { if (ulist) { while (ilvl >= 0) { wvTrace ( ("str is %s\n", mydata->sd->elements[TT_ULIST].str[1])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_ULIST]. str[1]) + 1); strcpy (text, mydata->sd->elements[TT_ULIST].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); ilvl--; } ilfo = 0; ilvl = -1; wvReleaseLVL (&lvl); wvInitLVL (&lvl); ulist = 0; } } break; case TT_ULISTB: wvTrace (("ilfo is %d\n", ((PAP *) (mydata->props))->ilfo)); if (wvIsListEntry ((PAP *) (mydata->props), wvQuerySupported (mydata->fib, NULL))) { wvReleaseLVL (&lvl); wvInitLVL (&lvl); wvTrace ( ("getting ulist list entry %d %d\n", ((PAP *) (mydata->props))->ilfo, ((PAP *) (mydata->props))->ilvl)); if (wvGetListEntryInfo (wvQuerySupported (mydata->fib, NULL), mydata->finallvl, mydata->liststartnos, mydata->listnfcs, &lvl, &retlfo, (PAP *) (mydata->props), mydata->lfo, mydata->lfolvl, mydata->lvl, mydata->nolfo, mydata->lst, mydata->noofLST)) { wvError ( ("aborted list entry, more work needed obviously\n")); return; } else { U32 i; wvTrace ( ("start number is %d, type is %d\n", lvl.lvlf.iStartAt, lvl.lvlf.nfc)); if ((*mydata->liststartnos) [(((PAP *) (mydata->props))->ilfo - 1) * 9 + ((PAP *) (mydata->props))->ilvl] == 0xffffffffL) { (*mydata->liststartnos)[ (((PAP *) (mydata-> props))->ilfo - 1) * 9 + ((PAP *) (mydata-> props))->ilvl] = lvl.lvlf.iStartAt; (*mydata-> listnfcs)[(((PAP *) (mydata->props))->ilfo - 1) * 9 + ((PAP *) (mydata->props))->ilvl] = lvl.lvlf.nfc; wvTrace ( ("start number set to %d\n", (*mydata-> liststartnos)[( ((PAP *) (mydata->props))-> ilfo - 1) * 9 + ((PAP *) (mydata->props))->ilvl])); wvCopyLVL (& ((*mydata-> finallvl)[(((PAP *) (mydata->props))-> ilfo - 1) * 9 + ((PAP *) (mydata->props))-> ilvl]), &lvl); } for (i = 0; i < *(mydata->nolfo) * 9; i++) { if ((i % 9 > ((PAP *) (mydata->props))->ilvl) && ((*mydata->finallvl)[i].lvlf.fNoRestart == 0)) (*mydata->liststartnos)[i] = (*mydata->finallvl)[i].lvlf.iStartAt; } } ilfo = ((PAP *) (mydata->props))->ilfo; if (((PAP *) (mydata->props))->ilvl > ilvl) while (ilvl < ((PAP *) (mydata->props))->ilvl) { wvTrace ( ("str is %s\n", mydata->sd->elements[TT_ULIST].str[0])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_ULIST]. str[0]) + 1); strcpy (text, mydata->sd->elements[TT_ULIST].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); ilvl++; } else if (((PAP *) (mydata->props))->ilvl < ilvl) while (ilvl > ((PAP *) (mydata->props))->ilvl) { wvTrace ( ("str is %s\n", mydata->sd->elements[TT_ULIST].str[1])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_ULIST]. str[1]) + 1); strcpy (text, mydata->sd->elements[TT_ULIST].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); ilvl--; } ilvl = ((PAP *) (mydata->props))->ilvl; lastid = retlfo->lsid; ulist = 1; wvTrace ( ("start number still set to %d\n", (*mydata->liststartnos)[(ilfo - 1) * 9 + ilvl])); } break; case TT_OLISTE: wvTrace (("ilfo 1 is %d\n", ((PAP *) (mydata->props))->ilfo)); wvTrace (("ilfo 2 is %d\n", ilfo)); if (wvIsListEntry ((PAP *) (mydata->props), wvQuerySupported (mydata->fib, NULL))) { wvReleaseLVL (&lvl); wvInitLVL (&lvl); wvGetListEntryInfo (wvQuerySupported (mydata->fib, NULL), mydata->finallvl, mydata->liststartnos, mydata->listnfcs, &lvl, &retlfo, (PAP *) (mydata->props), mydata->lfo, mydata->lfolvl, mydata->lvl, mydata->nolfo, mydata->lst, mydata->noofLST); } if ((ilfo != 0) && (ilfo != ((PAP *) (mydata->props))->ilfo)) { if (olist) { while (ilvl >= 0) { wvTrace ( ("str is %s\n", mydata->sd->elements[TT_OLIST].str[1])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_OLIST]. str[1]) + 1); strcpy (text, mydata->sd->elements[TT_OLIST].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); ilvl--; } ilfo = 0; ilvl = -1; olist = 0; wvReleaseLVL (&lvl); wvInitLVL (&lvl); } } break; case TT_TEXTB: text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_TEXT].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_TEXT].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); txt = 1; break; case TT_TEXTE: if (txt) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_TEXT].str[1]) + 1); strcpy (text, mydata->sd->elements[TT_TEXT].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); txt = 0; } break; case TT_OLISTB: if (wvIsListEntry ((PAP *) (mydata->props), wvQuerySupported (mydata->fib, NULL))) { wvReleaseLVL (&lvl); wvInitLVL (&lvl); wvTrace ( ("getting olist list entry %d %d\n", ((PAP *) (mydata->props))->ilfo, ((PAP *) (mydata->props))->ilvl)); if (wvGetListEntryInfo (wvQuerySupported (mydata->fib, NULL), mydata->finallvl, mydata->liststartnos, mydata->listnfcs, &lvl, &retlfo, (PAP *) (mydata->props), mydata->lfo, mydata->lfolvl, mydata->lvl, mydata->nolfo, mydata->lst, mydata->noofLST)) { wvError ( ("aborted list entry, more work needed obviously\n")); return; } else { U8 i2; U8 tilvl = ((PAP *) (mydata->props))->ilvl; wvTrace ( ("start number is %d, type is %d\n", lvl.lvlf.iStartAt, lvl.lvlf.nfc)); wvTrace ( ("lfo is %d, ilvi is %d\n", ((PAP *) (mydata->props))->ilfo, ((PAP *) (mydata->props))->ilvl)); wvTrace ( ("Start No is %d\n", (*mydata->liststartnos)[ (((PAP *) (mydata->props))-> ilfo - 1) * 9 + ((PAP *) (mydata->props))-> ilvl])); for (i2 = 0; i2 < tilvl + 1; i2++) { LVL lvl2; LFO *retlfo2; ((PAP *) (mydata->props))->ilvl = i2; wvTrace ( ("Level %d united (%d %d %d)\n", i2, ((PAP *) (mydata->props))->ilfo, i2, (((PAP *) (mydata->props))->ilfo - 1) * 9 + i2)); wvInitLVL (&lvl2); wvGetListEntryInfo (wvQuerySupported (mydata->fib, NULL), mydata->finallvl, mydata->liststartnos, mydata->listnfcs, &lvl2, &retlfo2, (PAP *) (mydata->props), mydata->lfo, mydata->lfolvl, mydata->lvl, mydata->nolfo, mydata->lst, mydata->noofLST); /* begin temp special case */ if ((i2 < tilvl) && ((*mydata->liststartnos) [(((PAP *) (mydata->props))->ilfo - 1) * 9 + i2] == 0xffffffffL)) { wvTrace (("Force this Level to be inced\n")); (*mydata->liststartnos)[ (((PAP *) (mydata->props))-> ilfo - 1) * 9 + i2] = lvl2.lvlf.iStartAt + 1; } /* end temp special case */ (*mydata->listnfcs)[ (((PAP *) (mydata->props))->ilfo - 1) * 9 + i2] = lvl2.lvlf.nfc; wvTrace ( ("Level %d united,nfc set to %d\n", i2, lvl2.lvlf.nfc)); wvCopyLVL (& ((*mydata-> finallvl)[(((PAP *) (mydata->props))-> ilfo - 1) * 9 + i2]), &lvl2); wvTrace (("here\n")); wvReleaseLVL (&lvl2); } ((PAP *) (mydata->props))->ilvl = ((PAP *) (mydata->props))->ilvl; if ((*mydata->liststartnos) [(((PAP *) (mydata->props))->ilfo - 1) * 9 + ((PAP *) (mydata->props))->ilvl] == 0xffffffffL) { (*mydata->liststartnos)[ (((PAP *) (mydata-> props))->ilfo - 1) * 9 + ((PAP *) (mydata-> props))->ilvl] = lvl.lvlf.iStartAt; wvCopyLVL (& ((*mydata-> finallvl)[(((PAP *) (mydata->props))-> ilfo - 1) * 9 + ((PAP *) (mydata->props))-> ilvl]), &lvl); } for (i = 0; i < (int) *(mydata->nolfo) * 9; i++) { if ((i % 9 > ((PAP *) (mydata->props))->ilvl) && ((*mydata->finallvl)[i].lvlf.fNoRestart == 0)) (*mydata->liststartnos)[i] = (*mydata->finallvl)[i].lvlf.iStartAt; } if ((lvl.numbertext == NULL) || (lvl.numbertext[0] <= 1)) { return; } } ilfo = ((PAP *) (mydata->props))->ilfo; if ((((PAP *) (mydata->props))->ilvl == ilvl) && (retlfo->lsid != lastid)) { if (ulist) { wvTrace ( ("str is %s\n", mydata->sd->elements[TT_ULIST].str[1])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_ULIST]. str[1]) + 1); strcpy (text, mydata->sd->elements[TT_ULIST].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); } else if (olist) { wvTrace ( ("str is %s\n", mydata->sd->elements[TT_OLIST].str[1])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_OLIST]. str[1]) + 1); strcpy (text, mydata->sd->elements[TT_OLIST].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); } ilvl--; } if (((PAP *) (mydata->props))->ilvl > ilvl) while (ilvl < ((PAP *) (mydata->props))->ilvl) { ilvl++; wvTrace ( ("2: HANDLING INDEX %d\n", (((PAP *) (mydata->props))->ilfo - 1) * 9 + ((PAP *) (mydata->props))->ilvl)); wvTrace ( ("3: HANDLING INDEX %d nfc is %d\n", (ilfo - 1) * 9 + ilvl, (*mydata->listnfcs)[(ilfo - 1) * 9 + ilvl])); wvTrace ( ("str is %s\n", mydata->sd->elements[TT_OLIST].str[0])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_OLIST]. str[0]) + 1); strcpy (text, mydata->sd->elements[TT_OLIST].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); } else if (((PAP *) (mydata->props))->ilvl < ilvl) while (ilvl > ((PAP *) (mydata->props))->ilvl) { ilvl--; wvTrace ( ("str is %s\n", mydata->sd->elements[TT_OLIST].str[1])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_OLIST]. str[1]) + 1); strcpy (text, mydata->sd->elements[TT_OLIST].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); } ilvl = ((PAP *) (mydata->props))->ilvl; lastid = retlfo->lsid; olist = 1; wvTrace ( ("start number still set to %d\n", (*mydata->liststartnos)[(ilfo - 1) * 9 + ilvl])); } break; case TT_ENTRYB: fflush (stdout); wvTrace (("ilvl is %d %d\n", ((PAP *) (mydata->props))->ilvl, ilvl)); if (ilfo) { wvTrace ( ("str is %s\n", mydata->sd->elements[TT_ENTRY].str[0])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_ENTRY].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_ENTRY].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); } break; case TT_ENTRYE: wvTrace (("ilvl is %d %d\n", ((PAP *) (mydata->props))->ilvl, ilvl)); if (ilfo) { wvTrace ( ("str is %s\n", mydata->sd->elements[TT_ENTRY].str[1])); text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_ENTRY].str[1]) + 1); strcpy (text, mydata->sd->elements[TT_ENTRY].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); wvTrace (("no in list is %d\n", 9 * (*(mydata->nolfo)))); (*mydata->liststartnos)[(ilfo - 1) * 9 + ilvl]++; } break; case TT_BOLDB: HANDLE_B_CHAR_ELE (TT_BOLD, fBold, bold, 1) break; case TT_DispFldRMarkB: HANDLE_B_CHAR_ELE (TT_DispFldRMark, fDispFldRMark, FldRMark, 1) break; case TT_RMarkDelB: HANDLE_B_CHAR_ELE (TT_RMarkDel, fRMarkDel, deleted, 1) break; case TT_OUTLINEB: HANDLE_B_CHAR_ELE (TT_OUTLINE, fOutline, outline, 1) break; case TT_STRIKEB: HANDLE_B_CHAR_ELE (TT_STRIKE, fStrike, strike, 1) break; case TT_ITALICB: HANDLE_B_CHAR_ELE (TT_ITALIC, fItalic, italic, 1) break; case TT_RMarkDelE: HANDLE_E_CHAR_ELE (TT_RMarkDel, fRMarkDel, deleted, 1) break; case TT_DispFldRMarkE: HANDLE_E_CHAR_ELE (TT_DispFldRMark, fDispFldRMark, FldRMark, 1) break; case TT_OUTLINEE: HANDLE_E_CHAR_ELE (TT_OUTLINE, fOutline, outline, 1) break; case TT_STRIKEE: HANDLE_E_CHAR_ELE (TT_STRIKE, fStrike, strike, 1) break; case TT_ITALICE: HANDLE_E_CHAR_ELE (TT_ITALIC, fItalic, italic, 1) break; case TT_BOLDE: HANDLE_E_CHAR_ELE (TT_BOLD, fBold, bold, 1) break; case TT_SMALLCAPSB: HANDLE_B_CHAR_ELE (TT_SMALLCAPS, fSmallCaps, smallcaps, 1) break; case TT_SMALLCAPSE: HANDLE_E_CHAR_ELE (TT_SMALLCAPS, fSmallCaps, smallcaps, 1) break; case TT_CAPSB: HANDLE_B_CHAR_ELE (TT_CAPS, fCaps, caps, 1) break; case TT_CAPSE: HANDLE_E_CHAR_ELE (TT_CAPS, fCaps, caps, 1) break; case TT_VANISHB: HANDLE_B_CHAR_ELE (TT_VANISH, fVanish, vanish, 1) break; case TT_VANISHE: HANDLE_E_CHAR_ELE (TT_VANISH, fVanish, vanish, 1) break; case TT_RMarkB: HANDLE_B_CHAR_ELE (TT_RMark, fRMark, added, 1) break; case TT_RMarkE: HANDLE_E_CHAR_ELE (TT_RMark, fRMark, added, 1) break; case TT_SHADOWB: HANDLE_B_CHAR_ELE (TT_SHADOW, fShadow, shadow, 1) break; case TT_SHADOWE: HANDLE_E_CHAR_ELE (TT_SHADOW, fShadow, shadow, 1) break; case TT_LOWERCASEB: HANDLE_B_CHAR_ELE (TT_LOWERCASE, fLowerCase, lowercase, 1) break; case TT_LOWERCASEE: HANDLE_E_CHAR_ELE (TT_LOWERCASE, fLowerCase, lowercase, 1) break; case TT_EMBOSSB: HANDLE_B_CHAR_ELE (TT_EMBOSS, fEmboss, emboss, 1) break; case TT_EMBOSSE: HANDLE_E_CHAR_ELE (TT_EMBOSS, fEmboss, emboss, 1) break; case TT_IMPRINTB: HANDLE_B_CHAR_ELE (TT_IMPRINT, fImprint, imprint, 1) break; case TT_IMPRINTE: HANDLE_E_CHAR_ELE (TT_IMPRINT, fImprint, imprint, 1) break; case TT_DSTRIKEB: HANDLE_B_CHAR_ELE (TT_DSTRIKE, fDStrike, dstrike, 1) break; case TT_DSTRIKEE: HANDLE_E_CHAR_ELE (TT_DSTRIKE, fDStrike, dstrike, 1) break; case TT_SUPERB: case TT_SUBB: HANDLE_B_CHAR_ELE (token_type - 1, iss, iss, (U32) (token_type - TT_SUPERB) / 3 + 1) break; case TT_SUPERE: case TT_SUBE: HANDLE_E_CHAR_ELE (token_type - 2, iss, iss, (token_type - TT_SUPERE) / 3 + 1) break; case TT_SINGLEUB: case TT_WORDUB: case TT_DOUBLEUB: case TT_DOTTEDUB: case TT_HIDDENUB: case TT_THICKUB: case TT_DASHUB: case TT_DOTUB: case TT_DOTDASHUB: case TT_DOTDOTDASHUB: case TT_WAVEUB: HANDLE_B_CHAR_ELE (token_type - 1, kul, kul, (U32) (token_type - TT_SINGLEUB) / 3 + 1) break; case TT_BLACKB: case TT_BLUEB: case TT_CYANB: case TT_GREENB: case TT_MAGENTAB: case TT_REDB: case TT_YELLOWB: case TT_WHITEB: case TT_DKBLUEB: case TT_DKCYANB: case TT_DKGREENB: case TT_DKMAGENTAB: case TT_DKREDB: case TT_DKYELLOWB: case TT_DKGRAYB: case TT_LTGRAYB: HANDLE_B_CHAR_ELE (token_type - 1, ico, color, (U32) (token_type - TT_BLACKB) / 3 + 1) break; case TT_SINGLEUE: case TT_WORDUE: case TT_DOUBLEUE: case TT_DOTTEDUE: case TT_HIDDENUE: case TT_THICKUE: case TT_DASHUE: case TT_DOTUE: case TT_DOTDASHUE: case TT_DOTDOTDASHUE: case TT_WAVEUE: HANDLE_E_CHAR_ELE (token_type - 2, kul, kul, (token_type - TT_SINGLEUE) / 3 + 1) break; case TT_BLACKE: case TT_BLUEE: case TT_CYANE: case TT_GREENE: case TT_MAGENTAE: case TT_REDE: case TT_YELLOWE: case TT_WHITEE: case TT_DKBLUEE: case TT_DKCYANE: case TT_DKGREENE: case TT_DKMAGENTAE: case TT_DKREDE: case TT_DKYELLOWE: case TT_DKGRAYE: case TT_LTGRAYE: HANDLE_E_CHAR_ELE (token_type - 2, ico, color, (token_type - TT_BLACKE) / 3 + 1) break; case TT_LasVegasB: case TT_BackgroundBlinkB: case TT_SparkleTextB: case TT_MarchingAntsB: case TT_MarchingRedAntsB: case TT_ShimmerB: HANDLE_B_CHAR_ELE (token_type - 1, sfxtText, animation, (token_type - TT_LasVegasB) / 3 + 1) break; case TT_LasVegasE: case TT_BackgroundBlinkE: case TT_SparkleTextE: case TT_MarchingAntsE: case TT_MarchingRedAntsE: case TT_ShimmerE: HANDLE_E_CHAR_ELE (token_type - 2, sfxtText, animation, (token_type - TT_LasVegasE) / 3 + 1) break; case TT_FONTSTRB: wvTrace (("flag is %d\n", ((CHP *) (mydata->props))->ico)); wvTrace (("str is %s\n", mydata->sd->elements[TT_FONTSTR].str[0])); if ((((CHP *) (mydata->props))->ico) && (fontstr == 0)) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_FONTSTR].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_FONTSTR].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); fontstr = 1; } break; case TT_FONTSTRE: wvTrace (("str is %s\n", mydata->sd->elements[TT_FONTSTR].str[0])); if (fontstr) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_FONTSTR].str[1]) + 1); strcpy (text, mydata->sd->elements[TT_FONTSTR].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); fontstr = 0; } break; case TT_ANIMATIONB: wvTrace (("flag is %d\n", ((CHP *) (mydata->props))->sfxtText)); wvTrace (("str is %s\n", mydata->sd->elements[TT_ANIMATION].str[0])); if ((((CHP *) (mydata->props))->sfxtText) && (animation == 0)) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_ANIMATION].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_ANIMATION].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); animation = 1; } break; case TT_ANIMATIONE: wvTrace (("str is %s\n", mydata->sd->elements[TT_ANIMATION].str[0])); if (animation) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_ANIMATION].str[1]) + 1); strcpy (text, mydata->sd->elements[TT_ANIMATION].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); animation = 0; } break; case TT_IBSTANNO: sprintf (buffer, "%d", ((ATRD *) (mydata->props))->ibst); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_xstUsrInitl: str = wvWideStrToMB (((ATRD *) (mydata->props))->xstUsrInitl + 1); sprintf (buffer, "%s", str); wvFree (str); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_mmParaBefore: if (fintable) { if ((mydata->sd->elements[TT_TABLEOVERRIDES].str) && (mydata->sd->elements[TT_TABLEOVERRIDES].str[0])) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_TABLEOVERRIDES]. str[0]) + 1); strcpy (text, mydata->sd->elements[TT_TABLEOVERRIDES].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); sprintf (buffer, "%.2fmm", (double) wvTwipsToMM ( (S16) atoi (mydata->retstring))); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; } } sprintf (buffer, "%.2fmm", (double) wvTwipsToMM ( (S16) ((PAP *) (mydata->props))->dyaBefore)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_mmParaAfter: if (fintable) { if ((mydata->sd->elements[TT_TABLEOVERRIDES].str) && (mydata->sd->elements[TT_TABLEOVERRIDES].str[2])) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_TABLEOVERRIDES]. str[2]) + 1); strcpy (text, mydata->sd->elements[TT_TABLEOVERRIDES].str[2]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); sprintf (buffer, "%.2fmm", (double) wvTwipsToMM ( (S16) atoi (mydata->retstring))); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; } } sprintf (buffer, "%.2fmm", (double) wvTwipsToMM ( (S16) ((PAP *) (mydata->props))->dyaAfter)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_mmParaLeft: if (fintable) { if ((mydata->sd->elements[TT_TABLEOVERRIDES].str) && (mydata->sd->elements[TT_TABLEOVERRIDES].str[3])) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_TABLEOVERRIDES]. str[3]) + 1); strcpy (text, mydata->sd->elements[TT_TABLEOVERRIDES].str[3]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); sprintf (buffer, "%.2fmm", (double) wvTwipsToMM ( (S16) atoi (mydata->retstring))); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; } } sprintf (buffer, "%.2fmm", (double) wvTwipsToMM ( (S16) ((PAP *) (mydata->props))->dxaLeft)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; /* >> PATCH ----------------------- */ case TT_stylename: pap=(PAP *)(mydata->props); #if 0 wvAppendStr (&mydata->retstring, pap->stylename); #else wvAppendStr(&mydata->retstring, wvConvertStylename(pap->stylename, mydata->charset)); #endif mydata->currentlen = strlen (mydata->retstring); break; /* -------------------------<< */ case TT_mmParaRight: /* printf("name: %s \n",mydata->stsh->std[0].xstzName);*/ /*pap=(PAP *)(mydata->props); printf("name: %s \n",(char *)(pap->stylename));*/ if (fintable) { if ((mydata->sd->elements[TT_TABLEOVERRIDES].str) && (mydata->sd->elements[TT_TABLEOVERRIDES].str[1])) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_TABLEOVERRIDES]. str[1]) + 1); strcpy (text, mydata->sd->elements[TT_TABLEOVERRIDES].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); sprintf (buffer, "%.2fmm", (double) wvTwipsToMM ( (S16) atoi (mydata->retstring))); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; } } sprintf (buffer, "%.2fmm", (double) wvTwipsToMM ( (S16) ((PAP *) (mydata->props))->dxaRight)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_mmParaLeft1: if (fintable) { if ((mydata->sd->elements[TT_TABLEOVERRIDES].str) && (mydata->sd->elements[TT_TABLEOVERRIDES].str[4])) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_TABLEOVERRIDES]. str[4]) + 1); strcpy (text, mydata->sd->elements[TT_TABLEOVERRIDES].str[4]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); sprintf (buffer, "%.2fmm", (double) wvTwipsToMM ( (S16) atoi (mydata->retstring))); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; } } sprintf (buffer, "%.2fmm", (double) wvTwipsToMM ( (S16) ((PAP *) (mydata->props))->dxaLeft1)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_mmPadTop: if (isPAPConform (&mydata->lastpap, (PAP *) (mydata->props))) sprintf (buffer, "%.2fmm", (double) wvPointsToMM ( (S16) ((PAP *) (mydata->props))-> brcBetween.dptSpace)); else sprintf (buffer, "%.2fmm", (double) wvPointsToMM ( (S16) ((PAP *) (mydata->props))-> brcTop.dptSpace)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_mmPadRight: sprintf (buffer, "%.2fmm", (double) wvPointsToMM ( (S16) ((PAP *) (mydata->props))->brcRight. dptSpace)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_mmPadBottom: if (isPAPConform (mydata->nextpap, (PAP *) (mydata->props))) sprintf (buffer, "%.2fmm", (double) wvPointsToMM ( (S16) ((PAP *) (mydata->props))-> brcBetween.dptSpace)); else sprintf (buffer, "%.2fmm", (double) wvPointsToMM ( (S16) ((PAP *) (mydata->props))-> brcBottom.dptSpace)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_mmPadLeft: sprintf (buffer, "%.2fmm", (double) wvPointsToMM ( (S16) ((PAP *) (mydata->props))->brcLeft. dptSpace)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_mmLineHeight: if (wvTwipsToMM (((PAP *) (mydata->props))->lspd.dyaLine)) sprintf (buffer, "%fmm", fabs (wvTwipsToMM (((PAP *) (mydata->props))->lspd.dyaLine))); else sprintf (buffer, "normal"); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_pixPicWidth: { FSPA *fspa = (FSPA *) (mydata->props); sprintf (buffer, "%d", (int) (wvTwipsToHPixels ( (S16) ( fspa->xaRight - fspa->xaLeft ) ) + (float) 0.5)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); } break; case TT_pixPicHeight: { FSPA *fspa = (FSPA *) (mydata->props); sprintf (buffer, "%d", (int) (wvTwipsToVPixels ( (S16) ( fspa->yaBottom - fspa->yaTop ) ) + (float) 0.5)); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); } break; case TT_htmlNextLineGuess: { FSPA *fspa = (FSPA *) (mydata->props); if (fspa->wr == 1) sprintf (buffer, "
"); else sprintf (buffer, "\n"); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); } break; case TT_htmlAlignGuess: { FSPA *fspa = (FSPA *) (mydata->props); switch (fspa->wr) { default: case 1: case 3: buffer[0] = '\0'; break; case 0: case 5: sprintf (buffer, "align=\"left\""); break; case 2: case 4: if (fspa->wrk == 1) sprintf (buffer, "align=\"right\""); else sprintf (buffer, "align=\"left\""); break; } wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); } break; case TT_ibstRMark: sprintf (buffer, "%d", ((CHP *) (mydata->props))->ibstRMark); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_ibstRMarkDel: sprintf (buffer, "%d", ((CHP *) (mydata->props))->ibstRMarkDel); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_ibstDispFldRMark: sprintf (buffer, "%d", ((CHP *) (mydata->props))->ibstDispFldRMark); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_dttmRMark: wvAppendStr (&mydata->retstring, wvDTTMtoUnix (&(((CHP *) (mydata->props))->dttmRMark))); mydata->currentlen = strlen (mydata->retstring); break; case TT_dttmRMarkDel: wvAppendStr (&mydata->retstring, wvDTTMtoUnix (& (((CHP *) (mydata->props))->dttmRMarkDel))); mydata->currentlen = strlen (mydata->retstring); break; case TT_dttmDispFldRMark: wvAppendStr (&mydata->retstring, wvDTTMtoUnix (& (((CHP *) (mydata->props))-> dttmDispFldRMark))); mydata->currentlen = strlen (mydata->retstring); break; case TT_xstDispFldRMark: text = wvWideStrToMB (((CHP *) (mydata->props))->xstDispFldRMark); wvAppendStr (&mydata->retstring, text); mydata->currentlen = strlen (mydata->retstring); break; case TT_PropRMarkB: HANDLE_B_CHAR_ELE (TT_PropRMark, fPropRMark, proprmark, 1) break; case TT_PropRMarkE: HANDLE_E_CHAR_ELE (TT_PropRMark, fPropRMark, proprmark, 1) break; case TT_ibstPropRMark: wvTrace (("flag is %d\n", ((CHP *) (mydata->props))->ibstPropRMark)); sprintf (buffer, "%d", ((CHP *) (mydata->props))->ibstPropRMark); wvAppendStr (&mydata->retstring, buffer); mydata->currentlen = strlen (mydata->retstring); break; case TT_dttmPropRMark: wvAppendStr (&mydata->retstring, wvDTTMtoUnix (& (((CHP *) (mydata->props))->dttmPropRMark))); mydata->currentlen = strlen (mydata->retstring); break; case TT_TABLEB: if ((((PAP *) (mydata->props))->fInTable) && (table == 0)) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_TABLE].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_TABLE].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); table = 1; } break; case TT_ROWB: if ((((PAP *) (mydata->props))->fInTable) && (((PAP *) (mydata->props))->fTtp == 0) && (fttp == 1)) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_ROW].str[0]) + 1); strcpy (text, mydata->sd->elements[TT_ROW].str[0]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); fttp = 0; } break; case TT_CELLB: if ((fintable != 1) && (((PAP *) (mydata->props))->fInTable == 1)) { wvTrace (("the current cell is %d\n", mydata->whichcell)); wvTrace ( ("the end boundary is %d\n", ((PAP *) (mydata->props))->ptap.rgdxaCenter[mydata-> whichcell + 1])); wvTrace ( ("the table look for this cell is %d\n", ((PAP *) (mydata->props))->ptap.tlp.itl)); if (((PAP *) (mydata->props))->ptap.tlp.itl) { wvTrace ( ("table look is %d\n", ((PAP *) (mydata->props))->ptap.tlp.itl)); } HANDLE_B_PARA_ELE (TT_CELL, fInTable, fintable, 1)} break; case TT_CELLE: if (*(mydata->endcell)) { if (fintable == 1) { mydata->whichcell++; wvTrace (("inc whichcell to %d\n", mydata->whichcell)); } HANDLE_E_PARA_ELE (TT_CELL, fInTable, fintable, 1) * (mydata->endcell) = 0; } break; case TT_LASTCELLB: if ((fintable != 1) && (((PAP *) (mydata->props))->fInTable == 1) && (mydata->whichcell == ((PAP *) (mydata->props))->ptap.itcMac - 1)) { wvTrace (("the current cell is %d\n", mydata->whichcell)); wvTrace ( ("the end boundary is %d\n", ((PAP *) (mydata->props))->ptap.rgdxaCenter[mydata-> whichcell + 1])); wvTrace ( ("the table look for this cell is %d\n", ((PAP *) (mydata->props))->ptap.tlp.itl)); if (((PAP *) (mydata->props))->ptap.tlp.itl) { wvTrace ( ("table look is %d\n", ((PAP *) (mydata->props))->ptap.tlp.itl)); } HANDLE_B_PARA_ELE (TT_LASTCELL, fInTable, fintable, 1) lastcell = 1; } break; case TT_LASTCELLE: if ((*(mydata->endcell)) && (lastcell)) { if (fintable == 1) { mydata->whichcell++; wvTrace (("inc whichcell to %d\n", mydata->whichcell)); } HANDLE_E_PARA_ELE (TT_LASTCELL, fInTable, fintable, 1) * (mydata->endcell) = 0; lastcell = 0; } break; case TT_ROWE: if ((((PAP *) (mydata->props))->fTtp == 1) && (fttp == 0)) { mydata->whichrow++; text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_ROW].str[1]) + 1); strcpy (text, mydata->sd->elements[TT_ROW].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); mydata->whichcell = 0; fttp = 1; } break; case TT_TABLEE: if ((((PAP *) (mydata->props))->fInTable == 0) && (table == 1)) { text = (char *) wvMalloc (strlen (mydata->sd->elements[TT_TABLE].str[1]) + 1); strcpy (text, mydata->sd->elements[TT_TABLE].str[1]); str = mydata->retstring; wvExpand (mydata, text, strlen (text)); wvAppendStr (&str, mydata->retstring); wvFree (mydata->retstring); mydata->retstring = str; wvFree (text); mydata->currentlen = strlen (mydata->retstring); table = 0; mydata->whichrow = 0; *(mydata->intable) = 0; } break; } } static void wvstartElement (void *userData, const XML_Char *name, const XML_Char **atts) { unsigned int nAtts = 0; const XML_Char **p; unsigned int token_type, i; state_data *mydata = (state_data *) userData; if (atts) { p = atts; while (*p) ++p; nAtts = (p - atts) >> 1; } /* tokenIndex = s_mapNameToToken ((const char *) name); token_type = s_Tokens[tokenIndex].m_type; */ token_type = wvMapNameToTokenType ((const char *) name); /* printf("start: %s \n",name);*/ wvTrace (("element %s started\n", name)); switch (token_type) { case TT_DOCUMENT: case TT_PARA: case TT_COMMENT: case TT_SECTION: case TT_BOLD: case TT_ITALIC: case TT_STRIKE: case TT_RMarkDel: case TT_OUTLINE: case TT_SMALLCAPS: case TT_CAPS: case TT_VANISH: case TT_RMark: case TT_SHADOW: case TT_LOWERCASE: case TT_EMBOSS: case TT_IMPRINT: case TT_DSTRIKE: case TT_SUPER: case TT_SUB: case TT_SINGLEU: case TT_WORDU: case TT_DOUBLEU: case TT_DOTTEDU: case TT_HIDDENU: case TT_THICKU: case TT_DASHU: case TT_DOTU: case TT_DOTDASHU: case TT_DOTDOTDASHU: case TT_WAVEU: case TT_BLACK: case TT_BLUE: case TT_CYAN: case TT_GREEN: case TT_MAGENTA: case TT_RED: case TT_YELLOW: case TT_WHITE: case TT_DKBLUE: case TT_DKCYAN: case TT_DKGREEN: case TT_DKMAGENTA: case TT_DKRED: case TT_DKYELLOW: case TT_DKGRAY: case TT_LTGRAY: case TT_FONTSTR: case TT_ANIMATION: case TT_PropRMark: case TT_LasVegas: case TT_BackgroundBlink: case TT_SparkleText: case TT_MarchingAnts: case TT_MarchingRedAnts: case TT_Shimmer: case TT_DispFldRMark: case TT_OLIST: case TT_TEXT: case TT_ULIST: case TT_ENTRY: case TT_TABLE: case TT_ROW: case TT_CELL: case TT_LASTCELL: mydata->elements[token_type].str = (char **) wvMalloc (sizeof (char *) * 2); mydata->elements[token_type].nostr = 2; for (i = 0; i < 2; i++) mydata->elements[token_type].str[i] = NULL; mydata->currentele = &(mydata->elements[token_type]); break; case TT_PICTURE: case TT_CHARENTITY: case TT_PMARGIN: case TT_PBORDER: mydata->elements[token_type].str = (char **) wvMalloc (sizeof (char *) * 1); mydata->elements[token_type].nostr = 1; mydata->elements[token_type].str[0] = NULL; mydata->currentele = &(mydata->elements[token_type]); break; case TT_CHAR: mydata->elements[token_type].str = (char **) wvMalloc (sizeof (char *) * 2); mydata->elements[token_type].nostr = 2; for (i = 0; i < 2; i++) mydata->elements[token_type].str[i] = NULL; mydata->currentele = &(mydata->elements[token_type]); break; break; case TT_JUSTIFICATION: case TT_numbering: mydata->elements[token_type].str = (char **) wvMalloc (sizeof (char *) * 5); mydata->elements[token_type].nostr = 5; for (i = 0; i < 5; i++) mydata->elements[token_type].str[i] = NULL; mydata->currentele = &(mydata->elements[token_type]); break; case TT_TABLEOVERRIDES: mydata->elements[token_type].str = (char **) wvMalloc (sizeof (char *) * 6); mydata->elements[token_type].nostr = 6; for (i = 0; i < 6; i++) mydata->elements[token_type].str[i] = NULL; mydata->currentele = &(mydata->elements[token_type]); break; case TT_COLOR: mydata->elements[token_type].str = (char **) wvMalloc (sizeof (char *) * 16); mydata->elements[token_type].nostr = 16; for (i = 0; i < 16; i++) mydata->elements[token_type].str[i] = NULL; mydata->currentele = &(mydata->elements[token_type]); break; case TT_BORDER: mydata->elements[token_type].str = (char **) wvMalloc (sizeof (char *) * 27); mydata->elements[token_type].nostr = 27; for (i = 0; i < 27; i++) mydata->elements[token_type].str[i] = NULL; mydata->currentele = &(mydata->elements[token_type]); break; case TT_STYLE: wvTrace (("style element, no atts is %d\n", nAtts)); for (i = 0; i < nAtts; i++) { wvTrace (("%s is %s\n", atts[i * 2], atts[(i * 2) + 1])); } break; case TT_BEGIN: case TT_LEFT: case TT_Arabic: case TT_NONED: case TT_ParaBefore: mydata->current = &(mydata->currentele->str[0]); wvAppendStr (mydata->current, ""); mydata->currentlen = strlen (*(mydata->current)); break; case TT_END: case TT_CENTER: case TT_UpperRoman: case TT_SINGLED: case TT_ParaRight: mydata->current = &(mydata->currentele->str[1]); wvAppendStr (mydata->current, ""); mydata->currentlen = strlen (*(mydata->current)); break; case TT_RIGHT: case TT_LowerRoman: case TT_THICKD: case TT_ParaAfter: mydata->current = &(mydata->currentele->str[2]); wvAppendStr (mydata->current, ""); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BLOCK: case TT_UpperCaseN: case TT_DOUBLED: case TT_ParaLeft: mydata->current = &(mydata->currentele->str[3]); wvAppendStr (mydata->current, ""); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ASIAN: case TT_LowerCaseN: case TT_NUMBER4D: case TT_ParaLeft1: mydata->current = &(mydata->currentele->str[4]); wvAppendStr (mydata->current, ""); mydata->currentlen = strlen (*(mydata->current)); break; case TT_VertMergedCells: mydata->current = &(mydata->currentele->str[5]); wvAppendStr (mydata->current, ""); mydata->currentlen = strlen (*(mydata->current)); break; case TT_HAIRLINED: case TT_DOTD: case TT_DASHLARGEGAPD: case TT_DOTDASHD: case TT_DOTDOTDASHD: case TT_TRIPLED: case TT_thin_thicksmallgapD: case TT_thick_thinsmallgapD: case TT_thin_thick_thinsmallgapD: case TT_thin_thickmediumgapD: case TT_thick_thinmediumgapD: case TT_thin_thick_thinmediumgapD: case TT_thin_thicklargegapD: case TT_thick_thinlargegapD: case TT_thin_thick_thinlargegapD: case TT_WAVED: case TT_DOUBLEWAVED: case TT_DASHSMALLGAPD: case TT_DASHDOTSTROKEDD: case TT_EMBOSS3DD: case TT_ENGRAVE3DD: case TT_DEFAULTD: mydata->current = &(mydata->currentele->str[5 + (token_type - TT_HAIRLINED)]); wvAppendStr (mydata->current, ""); mydata->currentlen = strlen (*(mydata->current)); break; case TT_TITLE: wvAppendStr (mydata->current, ""); mydata->currentlen = strlen (*(mydata->current)); break; case TT_CHARSET: wvAppendStr (mydata->current, "<charset/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_COLSPAN: wvAppendStr (mydata->current, "<colspan/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_CELLRELWIDTH: wvAppendStr (mydata->current, "<cellrelwidth/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_CELLRELPAGEWIDTH: wvAppendStr (mydata->current, "<cellrelpagewidth/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_TABLERELWIDTH: wvAppendStr (mydata->current, "<tablerelwidth/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_no_rows: wvAppendStr (mydata->current, "<no_rows/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_no_cols: wvAppendStr (mydata->current, "<no_cols/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_CELLBGCOLOR: wvAppendStr (mydata->current, "<cellbgcolor/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_PARABGCOLOR: wvAppendStr (mydata->current, "<parabgcolor/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_PARAFGCOLOR: wvAppendStr (mydata->current, "<parafgcolor/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ROWSPAN: wvAppendStr (mydata->current, "<rowspan/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_FILENAME: wvAppendStr (mydata->current, "<filename/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_VERSION: wvAppendStr (mydata->current, "<version/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_STRIKEB: wvAppendStr (mydata->current, "<strike.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_OUTLINEB: wvAppendStr (mydata->current, "<outline.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_RMarkDelB: wvAppendStr (mydata->current, "<rmarkdel.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DispFldRMarkB: wvAppendStr (mydata->current, "<DispFldRMark.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ITALICB: wvAppendStr (mydata->current, "<italic.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ITALICE: wvAppendStr (mydata->current, "<italic.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_OUTLINEE: wvAppendStr (mydata->current, "<outline.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_STRIKEE: wvAppendStr (mydata->current, "<strike.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_RMarkDelE: wvAppendStr (mydata->current, "<rmarkdel.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DispFldRMarkE: wvAppendStr (mydata->current, "<DispFldRMark.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BOLDB: wvAppendStr (mydata->current, "<bold.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BOLDE: wvAppendStr (mydata->current, "<bold.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SMALLCAPSB: wvAppendStr (mydata->current, "<smallcaps.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SMALLCAPSE: wvAppendStr (mydata->current, "<smallcaps.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_CAPSB: wvAppendStr (mydata->current, "<caps.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_CAPSE: wvAppendStr (mydata->current, "<caps.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_VANISHB: wvAppendStr (mydata->current, "<vanish.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_VANISHE: wvAppendStr (mydata->current, "<vanish.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_RMarkB: wvAppendStr (mydata->current, "<rmark.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_RMarkE: wvAppendStr (mydata->current, "<rmark.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SHADOWB: wvAppendStr (mydata->current, "<shadow.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SHADOWE: wvAppendStr (mydata->current, "<shadow.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_LOWERCASEB: wvAppendStr (mydata->current, "<lowercase.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_LOWERCASEE: wvAppendStr (mydata->current, "<lowercase.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_EMBOSSB: wvAppendStr (mydata->current, "<emboss.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_EMBOSSE: wvAppendStr (mydata->current, "<emboss.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_IMPRINTB: wvAppendStr (mydata->current, "<imprint.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_IMPRINTE: wvAppendStr (mydata->current, "<imprint.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DSTRIKEB: wvAppendStr (mydata->current, "<dstrike.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DSTRIKEE: wvAppendStr (mydata->current, "<dstrike.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SUPERB: wvAppendStr (mydata->current, "<super.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SUPERE: wvAppendStr (mydata->current, "<super.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SUBB: wvAppendStr (mydata->current, "<sub.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SUBE: wvAppendStr (mydata->current, "<sub.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_JUST: wvAppendStr (mydata->current, "<just/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_PARAMARGIN: wvAppendStr (mydata->current, "<paramargin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_PARABORDER: wvAppendStr (mydata->current, "<paraborder/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BORDERTopSTYLE: wvAppendStr (mydata->current, "<bordertopstyle/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BORDERTopCOLOR: wvAppendStr (mydata->current, "<bordertopcolor/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BORDERLeftSTYLE: wvAppendStr (mydata->current, "<borderleftstyle/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BORDERLeftCOLOR: wvAppendStr (mydata->current, "<borderleftcolor/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BORDERRightSTYLE: wvAppendStr (mydata->current, "<borderrightstyle/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BORDERRightCOLOR: wvAppendStr (mydata->current, "<borderrightcolor/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BORDERBottomSTYLE: wvAppendStr (mydata->current, "<borderbottomstyle/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BORDERBottomCOLOR: wvAppendStr (mydata->current, "<borderbottomcolor/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_nfc: wvAppendStr (mydata->current, "<nfc/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_START: wvAppendStr (mydata->current, "<start/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_COLORB: wvAppendStr (mydata->current, "<color.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SINGLEUB: wvAppendStr (mydata->current, "<singleu.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_WORDUB: wvAppendStr (mydata->current, "<wordu.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DOUBLEUB: wvAppendStr (mydata->current, "<doubleu.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DOTTEDUB: wvAppendStr (mydata->current, "<dottedu.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_HIDDENUB: wvAppendStr (mydata->current, "<hiddenu.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_THICKUB: wvAppendStr (mydata->current, "<thicku.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DASHUB: wvAppendStr (mydata->current, "<dashu.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DOTUB: wvAppendStr (mydata->current, "<dotu.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DOTDASHUB: wvAppendStr (mydata->current, "<dotdashu.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DOTDOTDASHUB: wvAppendStr (mydata->current, "<dotdotdashu.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_WAVEUB: wvAppendStr (mydata->current, "<waveu.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SINGLEUE: wvAppendStr (mydata->current, "<singleu.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_WORDUE: wvAppendStr (mydata->current, "<wordu.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DOUBLEUE: wvAppendStr (mydata->current, "<doubleu.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DOTTEDUE: wvAppendStr (mydata->current, "<dottedu.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_HIDDENUE: wvAppendStr (mydata->current, "<hiddenu.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_THICKUE: wvAppendStr (mydata->current, "<thicku.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DASHUE: wvAppendStr (mydata->current, "<dashu.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DOTUE: wvAppendStr (mydata->current, "<dotu.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DOTDASHUE: wvAppendStr (mydata->current, "<dotdashu.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DOTDOTDASHUE: wvAppendStr (mydata->current, "<dotdotdashu.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_WAVEUE: wvAppendStr (mydata->current, "<waveu.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BLACKB: wvAppendStr (mydata->current, "<black.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BLUEB: wvAppendStr (mydata->current, "<blue.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_CYANB: wvAppendStr (mydata->current, "<cyan.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_GREENB: wvAppendStr (mydata->current, "<green.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_MAGENTAB: wvAppendStr (mydata->current, "<magenta.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_REDB: wvAppendStr (mydata->current, "<red.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_YELLOWB: wvAppendStr (mydata->current, "<yellow.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_WHITEB: wvAppendStr (mydata->current, "<white.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKBLUEB: wvAppendStr (mydata->current, "<dkblue.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKCYANB: wvAppendStr (mydata->current, "<dkcyan.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKGREENB: wvAppendStr (mydata->current, "<dkgreen.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKMAGENTAB: wvAppendStr (mydata->current, "<dkmagenta.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKREDB: wvAppendStr (mydata->current, "<dkred.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKYELLOWB: wvAppendStr (mydata->current, "<dkyellow.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKGRAYB: wvAppendStr (mydata->current, "<dkgray.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_LTGRAYB: wvAppendStr (mydata->current, "<ltgray.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BLACKE: wvAppendStr (mydata->current, "<black.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BLUEE: wvAppendStr (mydata->current, "<blue.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_CYANE: wvAppendStr (mydata->current, "<cyan.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_GREENE: wvAppendStr (mydata->current, "<green.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_MAGENTAE: wvAppendStr (mydata->current, "<magenta.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_REDE: wvAppendStr (mydata->current, "<red.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_YELLOWE: wvAppendStr (mydata->current, "<yellow.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_WHITEE: wvAppendStr (mydata->current, "<white.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKBLUEE: wvAppendStr (mydata->current, "<dkblue.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKCYANE: wvAppendStr (mydata->current, "<dkcyan.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKGREENE: wvAppendStr (mydata->current, "<dkgreen.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKMAGENTAE: wvAppendStr (mydata->current, "<dkmagenta.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKREDE: wvAppendStr (mydata->current, "<dkred.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKYELLOWE: wvAppendStr (mydata->current, "<dkyellow.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_DKGRAYE: wvAppendStr (mydata->current, "<dkgray.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_LTGRAYE: wvAppendStr (mydata->current, "<ltgray.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_FONTSTRB: wvAppendStr (mydata->current, "<fontstr.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_FONTSTRE: wvAppendStr (mydata->current, "<fontstr.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ANIMATIONB: wvAppendStr (mydata->current, "<animation.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ANIMATIONE: wvAppendStr (mydata->current, "<animation.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_IBSTANNO: wvAppendStr (mydata->current, "<ibstanno/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_xstUsrInitl: wvAppendStr (mydata->current, "<xstUsrInitl/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_mmParaBefore: wvAppendStr (mydata->current, "<mmParaBefore/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_mmParaAfter: wvAppendStr (mydata->current, "<mmParaAfter/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_mmParaLeft: wvAppendStr (mydata->current, "<mmParaLeft/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_mmParaRight: wvAppendStr (mydata->current, "<mmParaRight/>"); mydata->currentlen = strlen (*(mydata->current)); break; /* >>----------- PATCH */ case TT_stylename: wvAppendStr (mydata->current, "<stylename/>"); mydata->currentlen = strlen (*(mydata->current)); break; /* --------------<< */ case TT_mmParaLeft1: wvAppendStr (mydata->current, "<mmParaLeft1/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_mmPadTop: wvAppendStr (mydata->current, "<mmPadTop/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_mmPadRight: wvAppendStr (mydata->current, "<mmPadRight/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_mmPadBottom: wvAppendStr (mydata->current, "<mmPadBottom/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_mmPadLeft: wvAppendStr (mydata->current, "<mmPadLeft/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_mmLineHeight: wvAppendStr (mydata->current, "<mmLineHeight/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_pixPicWidth: wvAppendStr (mydata->current, "<pixPicWidth/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_pixPicHeight: wvAppendStr (mydata->current, "<pixPicHeight/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_htmlAlignGuess: wvAppendStr (mydata->current, "<htmlAlignGuess/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_htmlNextLineGuess: wvAppendStr (mydata->current, "<htmlNextLineGuess/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ibstRMark: wvAppendStr (mydata->current, "<ibstrmark/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ibstRMarkDel: wvAppendStr (mydata->current, "<ibstrmarkdel/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ibstDispFldRMark: wvAppendStr (mydata->current, "<ibstdispfldrmark/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_dttmRMark: wvAppendStr (mydata->current, "<dttmrmark/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_dttmRMarkDel: wvAppendStr (mydata->current, "<dttmrmarkdel/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_dttmDispFldRMark: wvAppendStr (mydata->current, "<dttmdispfldrmark/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_xstDispFldRMark: wvAppendStr (mydata->current, "<xstDispFldRMark/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_PropRMarkB: wvAppendStr (mydata->current, "<proprmark.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_PropRMarkE: wvAppendStr (mydata->current, "<proprmark.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ibstPropRMark: wvAppendStr (mydata->current, "<ibstPropRMark/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_dttmPropRMark: wvAppendStr (mydata->current, "<dttmPropRMark/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_LasVegasB: wvAppendStr (mydata->current, "<lasvegas.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BackgroundBlinkB: wvAppendStr (mydata->current, "<backgroundblink.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SparkleTextB: wvAppendStr (mydata->current, "<sparkletext.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_MarchingAntsB: wvAppendStr (mydata->current, "<marchingants.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_MarchingRedAntsB: wvAppendStr (mydata->current, "<marchingredants.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ShimmerB: wvAppendStr (mydata->current, "<shimmer.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_LasVegasE: wvAppendStr (mydata->current, "<lasvegas.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_BackgroundBlinkE: wvAppendStr (mydata->current, "<backgroundblink.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_SparkleTextE: wvAppendStr (mydata->current, "<sparkletext.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_MarchingAntsE: wvAppendStr (mydata->current, "<marchingants.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_MarchingRedAntsE: wvAppendStr (mydata->current, "<marchingredants.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ShimmerE: wvAppendStr (mydata->current, "<shimmer.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_TEXTB: wvAppendStr (mydata->current, "<text.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; break; case TT_TEXTE: wvAppendStr (mydata->current, "<text.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_OLISTB: wvAppendStr (mydata->current, "<olist.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; break; case TT_OLISTE: wvAppendStr (mydata->current, "<olist.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ULISTB: wvAppendStr (mydata->current, "<ulist.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; break; case TT_ULISTE: wvAppendStr (mydata->current, "<ulist.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ENTRYB: wvAppendStr (mydata->current, "<entry.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; break; case TT_ENTRYE: wvAppendStr (mydata->current, "<entry.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_TABLEB: wvAppendStr (mydata->current, "<table.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; break; case TT_TABLEE: wvAppendStr (mydata->current, "<table.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_ROWB: wvAppendStr (mydata->current, "<row.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; break; case TT_ROWE: wvAppendStr (mydata->current, "<row.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_CELLB: wvAppendStr (mydata->current, "<cell.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; break; case TT_CELLE: wvAppendStr (mydata->current, "<cell.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; case TT_LASTCELLB: wvAppendStr (mydata->current, "<lastcell.begin/>"); mydata->currentlen = strlen (*(mydata->current)); break; break; case TT_LASTCELLE: wvAppendStr (mydata->current, "<lastcell.end/>"); mydata->currentlen = strlen (*(mydata->current)); break; } } static void wvendElement (void *userData, const XML_Char *name) { state_data *mydata = (state_data *) userData; unsigned int token_type; /* tokenIndex = s_mapNameToToken ((const char *) name); token_type = s_Tokens[tokenIndex].m_type; */ token_type = wvMapNameToTokenType ((const char *) name); switch (token_type) { case TT_BEGIN: case TT_END: case TT_ParaBefore: case TT_ParaRight: case TT_ParaAfter: case TT_ParaLeft: case TT_ParaLeft1: case TT_VertMergedCells: case TT_LEFT: case TT_RIGHT: case TT_CENTER: case TT_BLOCK: case TT_ASIAN: case TT_Arabic: case TT_UpperRoman: case TT_LowerRoman: case TT_UpperCaseN: case TT_LowerCaseN: case TT_NONED: case TT_SINGLED: case TT_THICKD: case TT_DOUBLED: case TT_NUMBER4D: case TT_HAIRLINED: case TT_DOTD: case TT_DASHLARGEGAPD: case TT_DOTDASHD: case TT_DOTDOTDASHD: case TT_TRIPLED: case TT_thin_thicksmallgapD: case TT_thick_thinsmallgapD: case TT_thin_thick_thinsmallgapD: case TT_thin_thickmediumgapD: case TT_thick_thinmediumgapD: case TT_thin_thick_thinmediumgapD: case TT_thin_thicklargegapD: case TT_thick_thinlargegapD: case TT_thin_thick_thinlargegapD: case TT_WAVED: case TT_DOUBLEWAVED: case TT_DASHSMALLGAPD: case TT_DASHDOTSTROKEDD: case TT_EMBOSS3DD: case TT_ENGRAVE3DD: case TT_DEFAULTD: wvAppendStr (mydata->current, "</begin>"); wvTrace (("When we finish the str is %s\n", *(mydata->current))); mydata->currentlen = 0; mydata->current = NULL; break; case TT_TITLE: case TT_CHARSET: case TT_COLSPAN: case TT_CELLRELWIDTH: case TT_CELLRELPAGEWIDTH: case TT_ROWSPAN: case TT_CELLBGCOLOR: case TT_PARABGCOLOR: case TT_PARAFGCOLOR: case TT_TABLERELWIDTH: case TT_no_cols: case TT_no_rows: case TT_VERSION: case TT_FILENAME: case TT_JUST: case TT_PARAMARGIN: case TT_PARABORDER: case TT_BORDERTopSTYLE: case TT_BORDERTopCOLOR: case TT_BORDERLeftSTYLE: case TT_BORDERLeftCOLOR: case TT_BORDERRightSTYLE: case TT_BORDERRightCOLOR: case TT_BORDERBottomSTYLE: case TT_BORDERBottomCOLOR: case TT_nfc: case TT_START: case TT_BOLDB: case TT_BOLDE: case TT_ITALICB: case TT_ITALICE: case TT_STRIKEB: case TT_STRIKEE: case TT_RMarkDelB: case TT_RMarkDelE: case TT_OUTLINEB: case TT_OUTLINEE: case TT_SMALLCAPSB: case TT_SMALLCAPSE: case TT_CAPSB: case TT_CAPSE: case TT_VANISHB: case TT_VANISHE: case TT_RMarkB: case TT_RMarkE: case TT_SHADOWB: case TT_SHADOWE: case TT_LOWERCASEB: case TT_LOWERCASEE: case TT_EMBOSSB: case TT_EMBOSSE: case TT_IMPRINTB: case TT_IMPRINTE: case TT_DSTRIKEB: case TT_DSTRIKEE: case TT_SUPERB: case TT_SUPERE: case TT_SUBB: case TT_SUBE: case TT_SINGLEUB: case TT_WORDUB: case TT_DOUBLEUB: case TT_DOTTEDUB: case TT_HIDDENUB: case TT_THICKUB: case TT_DASHUB: case TT_DOTUB: case TT_DOTDASHUB: case TT_DOTDOTDASHUB: case TT_WAVEUB: case TT_SINGLEUE: case TT_WORDUE: case TT_DOUBLEUE: case TT_DOTTEDUE: case TT_HIDDENUE: case TT_THICKUE: case TT_DASHUE: case TT_DOTUE: case TT_DOTDASHUE: case TT_DOTDOTDASHUE: case TT_WAVEUE: case TT_BLACKB: case TT_BLUEB: case TT_CYANB: case TT_GREENB: case TT_MAGENTAB: case TT_REDB: case TT_YELLOWB: case TT_WHITEB: case TT_DKBLUEB: case TT_DKCYANB: case TT_DKGREENB: case TT_DKMAGENTAB: case TT_DKREDB: case TT_DKYELLOWB: case TT_DKGRAYB: case TT_LTGRAYB: case TT_BLACKE: case TT_BLUEE: case TT_CYANE: case TT_GREENE: case TT_MAGENTAE: case TT_REDE: case TT_YELLOWE: case TT_WHITEE: case TT_DKBLUEE: case TT_DKCYANE: case TT_DKGREENE: case TT_DKMAGENTAE: case TT_DKREDE: case TT_DKYELLOWE: case TT_DKGRAYE: case TT_LTGRAYE: case TT_FONTSTRB: case TT_FONTSTRE: case TT_COLORB: case TT_COLORE: case TT_IBSTANNO: case TT_xstUsrInitl: case TT_mmParaBefore: case TT_mmParaAfter: case TT_mmParaLeft: case TT_mmParaRight: /* >>----------- PATCH */ case TT_stylename: /* ------------------ << */ case TT_mmParaLeft1: case TT_mmPadTop: case TT_mmPadRight: case TT_mmPadBottom: case TT_mmPadLeft: case TT_mmLineHeight: case TT_pixPicWidth: case TT_pixPicHeight: case TT_htmlAlignGuess: case TT_htmlNextLineGuess: case TT_ibstRMark: case TT_ibstRMarkDel: case TT_ibstDispFldRMark: case TT_dttmRMark: case TT_dttmRMarkDel: case TT_dttmDispFldRMark: case TT_xstDispFldRMark: case TT_PropRMarkB: case TT_PropRMarkE: case TT_ibstPropRMark: case TT_dttmPropRMark: case TT_LasVegasB: case TT_BackgroundBlinkB: case TT_SparkleTextB: case TT_MarchingAntsB: case TT_MarchingRedAntsB: case TT_ShimmerB: case TT_LasVegasE: case TT_BackgroundBlinkE: case TT_SparkleTextE: case TT_MarchingAntsE: case TT_MarchingRedAntsE: case TT_ShimmerE: case TT_ANIMATIONB: case TT_ANIMATIONE: case TT_DispFldRMarkB: case TT_DispFldRMarkE: case TT_TEXTB: case TT_TEXTE: case TT_OLISTB: case TT_OLISTE: case TT_ULISTB: case TT_ULISTE: case TT_ENTRYB: case TT_ENTRYE: case TT_TABLEB: case TT_TABLEE: case TT_ROWB: case TT_ROWE: case TT_CELLB: case TT_CELLE: case TT_LASTCELLB: case TT_LASTCELLE: case TT_STYLE: break; default: mydata->currentlen = 0; mydata->current = NULL; break; } wvTrace (("ele ended\n")); } static void exendElement (void *userData, const char *name) { /* expand_data *mydata = (expand_data *)userData; */ unsigned int token_type; /* tokenIndex = s_mapNameToToken ((const char *) name); token_type = s_Tokens[tokenIndex].m_type; */ token_type = wvMapNameToTokenType ((const char *) name); switch (token_type) { case TT_TITLE: case TT_CHARSET: case TT_COLSPAN: case TT_ROWSPAN: case TT_CELLBGCOLOR: case TT_PARABGCOLOR: case TT_PARAFGCOLOR: case TT_TABLERELWIDTH: case TT_no_rows: case TT_no_cols: case TT_CELLRELWIDTH: case TT_CELLRELPAGEWIDTH: case TT_VERSION: case TT_FILENAME: break; default: break; } wvTrace (("ele ended\n")); } static void charData (void *userData, const XML_Char * s, int len) { int i; state_data *mydata = (state_data *) userData; if ((len > 0) && (mydata->current != NULL)) *(mydata->current) = (char *) realloc (*(mydata->current), len + mydata->currentlen + 1); else return; (*(mydata->current))[mydata->currentlen] = 0; for (i = 0; i < len; i++) { switch (s[i]) { case '&': mydata->currentlen += strlen ("&") - 1; *(mydata->current) = (char *) realloc (*(mydata->current), len + mydata->currentlen + 1); wvStrcat (*mydata->current, "&"); break; case '<': mydata->currentlen += strlen ("<") - 1; *(mydata->current) = (char *) realloc (*(mydata->current), len + mydata->currentlen + 1); wvStrcat (*mydata->current, "<"); break; case '>': mydata->currentlen += strlen (">") - 1; *(mydata->current) = (char *) realloc (*(mydata->current), len + mydata->currentlen + 1); wvStrcat (*mydata->current, ">"); break; case '"': mydata->currentlen += strlen (""") - 1; *(mydata->current) = (char *) realloc (*(mydata->current), len + mydata->currentlen + 1); wvStrcat (*mydata->current, """); break; default: (*(mydata->current))[i + mydata->currentlen] = s[i]; (*(mydata->current))[i + mydata->currentlen + 1] = 0; break; } } if (mydata->current != NULL) { (*(mydata->current))[len + mydata->currentlen] = '\0'; mydata->currentlen += len; } } static void excharData (void *userData, const XML_Char * s, int len) { int i; expand_data *mydata = (expand_data *) userData; if (len > 0) mydata->retstring = (char *) realloc (mydata->retstring, len + mydata->currentlen + 1); else return; for (i = 0; i < len; i++) { if (mydata->retstring != NULL) mydata->retstring[i + mydata->currentlen] = s[i]; } if (mydata->retstring != NULL) { mydata->retstring[i + mydata->currentlen] = '\0'; mydata->currentlen += len; } } #ifdef HAVE_LIBXML2 static void free_libxml2_parser (xmlParserCtxtPtr ctxt) { xmlDocPtr xmlDoc; ctxt->sax = NULL; xmlDoc = ctxt->myDoc; xmlFreeParserCtxt (ctxt); if (xmlDoc) xmlFreeDoc(xmlDoc); } static xmlEntityPtr _getEntity (void * user_data, const xmlChar * name) { return xmlGetPredefinedEntity (name); } int wvParseConfig (state_data * myhandle) { int ret = 0; xmlSAXHandler hdl; /* flagrant copying from AbiWord */ xmlParserCtxtPtr ctxt; memset(&hdl, 0, sizeof(hdl)); hdl.getEntity = _getEntity; hdl.startElement = wvstartElement; hdl.endElement = wvendElement; hdl.characters = charData; if (myhandle->fp) { fclose (myhandle->fp); myhandle->fp = NULL; } if (myhandle->path == NULL) { wvError (("No path has been set? Since I'm using libxml2 at the moment, I need a path.\n")); exit (-1); } ctxt = xmlCreateFileParserCtxt (myhandle->path); if (ctxt == NULL) { /* by this point we haven't allocated anything so we can just return right here */ return 1; } ctxt->sax = &hdl; ctxt->userData = (void *) myhandle; xmlParseDocument (ctxt); if (!ctxt->wellFormed) ret = 1; free_libxml2_parser (ctxt); return ret; } #else int wvParseConfig (state_data * myhandle) { char buf[BUFSIZ]; XML_Parser parser = XML_ParserCreate (NULL); int done; size_t len; XML_SetUserData (parser, myhandle); XML_SetElementHandler (parser, wvstartElement, wvendElement); XML_SetCharacterDataHandler (parser, charData); if (myhandle->fp == NULL) { wvError ( ("how can this happen, i bet you added TT_ lines to wv.h and didn't recompile wvHtml.o etc\n")); exit (-1); } do { wvTrace (("loop in\n")); len = fread (buf, 1, sizeof (buf), myhandle->fp); wvTrace (("loop out\n")); done = len < sizeof (buf); if (!XML_Parse (parser, buf, len, done)) { wvError (("%s at line %d\n", XML_ErrorString (XML_GetErrorCode (parser)), XML_GetCurrentLineNumber (parser))); return (1); } } while (!done); XML_ParserFree (parser); #ifdef DEBUG wvListStateData (myhandle); #endif return 0; } #endif void wvInitExpandData (expand_data * data) { data->retstring = NULL; data->currentlen = 0; } #ifdef HAVE_LIBXML2 int wvExpand (expand_data * myhandle, char *buf, int len) { int ret = 0; xmlSAXHandler hdl; xmlParserCtxtPtr ctxt; memset(&hdl, 0, sizeof(hdl)); hdl.getEntity = _getEntity; hdl.startElement = exstartElement; hdl.endElement = exendElement; hdl.characters = excharData; ctxt = xmlCreateMemoryParserCtxt ((const char *) buf, len); if (ctxt == NULL) { /* by this point we haven't allocated anything so we can just return right here */ return 1; } ctxt->sax = &hdl; ctxt->userData = (void *) myhandle; wvInitExpandData (myhandle); xmlParseDocument (ctxt); if (!ctxt->wellFormed) ret = 1; free_libxml2_parser (ctxt); return ret; } #else int wvExpand (expand_data * myhandle, char *buf, int len) { XML_Parser parser = XML_ParserCreate (NULL); wvTrace (("expanding string %s\n", buf)); XML_SetUserData (parser, myhandle); XML_SetElementHandler (parser, exstartElement, exendElement); XML_SetCharacterDataHandler (parser, excharData); wvInitExpandData (myhandle); if (!XML_Parse (parser, buf, len, 1)) { wvError (("%s at line %d\n", XML_ErrorString (XML_GetErrorCode (parser)), XML_GetCurrentLineNumber (parser))); return 1; } XML_ParserFree (parser); return 0; } #endif void wvSetEntityConverter (expand_data * data) { if ((data->sd) && (data->sd->elements[TT_CHARENTITY].str) && (data->sd->elements[TT_CHARENTITY].str[0])) { wvExpand (data, data->sd->elements[TT_CHARENTITY].str[0], strlen (data->sd->elements[TT_CHARENTITY].str[0])); if (data->retstring) { if (!(strcasecmp (data->retstring, "HTML"))) wvConvertUnicodeToEntity = wvConvertUnicodeToHtml; else if (!(strcasecmp (data->retstring, "LaTeX"))) wvConvertUnicodeToEntity = wvConvertUnicodeToLaTeX; else if (!(strcasecmp (data->retstring, "XML"))) wvConvertUnicodeToEntity = wvConvertUnicodeToXml; wvTrace ( ("Using %s entity conversion in conjunction with ordinary charset conversion\n", data->retstring)); wvFree (data->retstring); } } } void wvBeginDocument (expand_data * data) { if ((data->sd) && (data->sd->elements[TT_DOCUMENT].str) && (data->sd->elements[TT_DOCUMENT].str[0] != NULL)) { wvTrace (("doc begin is %s", data->sd->elements[TT_DOCUMENT].str[0])); wvExpand (data, data->sd->elements[TT_DOCUMENT].str[0], strlen (data->sd->elements[TT_DOCUMENT].str[0])); if (data->retstring) { wvTrace (("doc begin is now %s", data->retstring)); printf ("%s", data->retstring); wvFree (data->retstring); } } } void wvEndDocument (expand_data * data) { PAP apap; /* just for html mode, as this is designed for, I always have an empty para end just to close off any open lists */ wvInitPAP (&apap); data->props = (void *) &apap; wvEndPara (data); if ((data->sd) && (data->sd->elements[TT_DOCUMENT].str) && (data->sd->elements[TT_DOCUMENT].str[1] != NULL)) { wvExpand (data, data->sd->elements[TT_DOCUMENT].str[1], strlen (data->sd->elements[TT_DOCUMENT].str[1])); if (data->retstring) { wvTrace (("doc end is now %s", data->retstring)); printf ("%s", data->retstring); wvFree (data->retstring); } } } void wvBeginSection (expand_data * data) { if (data != NULL) data->asep = (SEP *) data->props; if ((data != NULL) && (data->sd != NULL) && (data->sd->elements[TT_SECTION].str != NULL) && (data->sd->elements[TT_SECTION].str[0] != NULL)) { wvExpand (data, data->sd->elements[TT_SECTION].str[0], strlen (data->sd->elements[TT_SECTION].str[0])); if (data->retstring) { wvTrace (("para begin is now %s", data->retstring)); printf ("%s", data->retstring); wvFree (data->retstring); } } } void wvEndSection (expand_data * data) { if ((data != NULL) && (data->sd != NULL) && (data->sd->elements[TT_SECTION].str != NULL) && (data->sd->elements[TT_SECTION].str[1] != NULL)) { wvExpand (data, data->sd->elements[TT_SECTION].str[1], strlen (data->sd->elements[TT_SECTION].str[1])); if (data->retstring) { wvTrace (("para end is now %s", data->retstring)); printf ("%s", data->retstring); wvFree (data->retstring); } } } void wvBeginComment (expand_data * data) { if (data != NULL) { wvTrace (("comment beginning\n")); if ((data->sd != NULL) && (data->sd->elements[TT_COMMENT].str) && (data->sd->elements[TT_COMMENT].str[0] != NULL)) { wvExpand (data, data->sd->elements[TT_COMMENT].str[0], strlen (data->sd->elements[TT_COMMENT].str[0])); if (data->retstring) { printf ("%s", data->retstring); wvFree (data->retstring); } } } } void wvEndComment (expand_data * data) { if ((data->sd != NULL) && (data->sd->elements[TT_COMMENT].str) && (data->sd->elements[TT_COMMENT].str[1] != NULL)) { wvTrace (("comment ending\n")); wvExpand (data, data->sd->elements[TT_COMMENT].str[1], strlen (data->sd->elements[TT_COMMENT].str[1])); if (data->retstring) { wvTrace (("comment end is now %s", data->retstring)); printf ("%s", data->retstring); wvFree (data->retstring); } } } void wvBeginPara (expand_data * data) { if (wvIsEmptyPara ((PAP *) data->props, data, 1)) return; if (data != NULL) { wvTrace ( ("para of style %d beginning\n", ((PAP *) (data->props))->istd)); if ((data->sd != NULL) && (data->sd->elements[TT_PARA].str) && (data->sd->elements[TT_PARA].str[0] != NULL)) { wvExpand (data, data->sd->elements[TT_PARA].str[0], strlen (data->sd->elements[TT_PARA].str[0])); if (data->retstring) { printf ("%s", data->retstring); wvFree (data->retstring); } } } wvTrace ( ("This Para is out cell %d %d \n", data->whichrow, data->whichcell)); } void wvEndPara (expand_data * data) { if ((data->sd != NULL) && (data->sd->elements[TT_PARA].str) && (data->sd->elements[TT_PARA].str[1] != NULL)) { wvExpand (data, data->sd->elements[TT_PARA].str[1], strlen (data->sd->elements[TT_PARA].str[1])); if (data->retstring) { wvTrace (("para end is now %s", data->retstring)); printf ("%s", data->retstring); wvFree (data->retstring); } } } int wvIsEmptyPara (PAP * apap, expand_data * data, int inc) { /* if we are a end of table para then i consist of nothing that is of any use for beginning of a para */ if (apap == NULL) return (0); if (apap->fTtp == 1) return (1); /* if i consist of a vertically merged cell that is not the top one, then also i am of no use */ if (apap->fInTable == 1) { #if 0 wvTrace ( ("This Para is in cell %d %d\n", data->whichrow, data->whichcell)); if (*data->vmerges) { /* only ignore a vertically merged cell if the setting in the config file have been set that way */ if (data && data->sd && data->sd->elements[TT_TABLEOVERRIDES].str && data->sd->elements[TT_TABLEOVERRIDES].str[5]) { if ((*data->vmerges)[data->whichrow][data->whichcell] == 0) { wvTrace (("Skipping the next paragraph\n")); if (inc) data->whichcell++; return (1); } } } #else return 0; #endif } return (0); } void wvBeginCharProp (expand_data * data, PAP * apap) { CHP *achp; if (wvIsEmptyPara (apap, data, 0)) return; achp = (CHP *) data->props; wvTrace (("beginning character run\n")); if (achp->ico) { wvTrace (("color is %d\n", achp->ico)); } if ((data != NULL) && (data->sd != NULL) && (data->sd->elements[TT_CHAR].str) && (data->sd->elements[TT_CHAR].str[0] != NULL)) { wvExpand (data, data->sd->elements[TT_CHAR].str[0], strlen (data->sd->elements[TT_CHAR].str[0])); if (data->retstring) { wvTrace (("char begin is now %s", data->retstring)); printf ("%s", data->retstring); wvFree (data->retstring); } } } void wvEndCharProp (expand_data * data) { wvTrace (("ending character run\n")); if ((data->sd != NULL) && (data->sd->elements[TT_CHAR].str) && (data->sd->elements[TT_CHAR].str[1] != NULL)) { wvExpand (data, data->sd->elements[TT_CHAR].str[1], strlen (data->sd->elements[TT_CHAR].str[1])); if (data->retstring) { wvTrace (("char end is now %s", data->retstring)); printf ("%s", data->retstring); wvFree (data->retstring); } } } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/bte.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000007406�11247156606�010047� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" void wvGetBTE (BTE * bte, wvStream * fd) { U32 temp32 = read_32ubit (fd); #ifdef PURIFY wvInitBTE (bte); #endif bte->pn = temp32 & 0x003fffffL; bte->unused = (temp32 & 0xffc00000L) >> 22; } void wvInitBTE (BTE * bte) { bte->pn = 0; bte->unused = 0; } void wvListBTE_PLCF (BTE ** bte, U32 ** pos, U32 * nobte) { U32 i = 0; for (i = 0; i < *nobte; i++) wvError ( ("range %x %x is pn %d\n", (*pos)[i], (*pos)[i + 1], (*bte)[i].pn)); } int wvGetBTE_PLCF6 (BTE ** bte, U32 ** pos, U32 * nobte, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *bte = NULL; *pos = NULL; *nobte = 0; } else { wvTrace (("offset is %x, len is %d\n", offset, len)); *nobte = (len - 4) / (cb6BTE + 4); wvTrace (("no of bte is %d at %x\n", *nobte, offset)); *pos = (U32 *) wvMalloc ((*nobte + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nobte + 1) * sizeof (U32))); return (1); } *bte = (BTE *) wvMalloc (*nobte * sizeof (BTE)); if (*bte == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nobte * sizeof (BTE))); wvFree (pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i <= *nobte; i++) { (*pos)[i] = read_32ubit (fd); wvTrace (("pos is %x\n", (*pos)[i])); } for (i = 0; i < *nobte; i++) { wvInitBTE (&((*bte)[i])); (*bte)[i].pn = read_16ubit (fd); } } return (0); } int wvGetBTE_PLCF (BTE ** bte, U32 ** pos, U32 * nobte, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *bte = NULL; *pos = NULL; *nobte = 0; } else { *nobte = (len - 4) / (cbBTE + 4); wvTrace (("no of bte is %d at %x\n", *nobte, offset)); *pos = (U32 *) wvMalloc ((*nobte + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nobte + 1) * sizeof (U32))); return (1); } *bte = (BTE *) wvMalloc (*nobte * sizeof (BTE)); if (*bte == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nobte * sizeof (BTE))); wvFree (*pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i <= *nobte; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *nobte; i++) wvGetBTE (&((*bte)[i]), fd); } return (0); } void wvCopyBTE (BTE * dest, BTE * src) { memcpy (dest, src, sizeof (BTE)); } int wvGetBTE_FromFC (BTE * bte, U32 currentfc, BTE * list, U32 * fcs, int nobte) { int i = 0; while (i < nobte) { if ((currentfc >= wvNormFC (fcs[i], NULL)) && (currentfc < wvNormFC (fcs[i + 1], NULL))) { wvTrace (("valid\n")); wvCopyBTE (bte, &list[i]); return (0); } i++; } wvCopyBTE (bte, &list[i - 1]); return (0); /* return(1); */ } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/configure.ac�������������������������������������������������������������������������������0000664�0000764�0000764�00000023406�11454156776�011425� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������dnl Process this file with autoconf to produce a configure script. AC_INIT([wv],[1.2.9],[wvware-devel@sourceforge.net]) dnl This next section is courtesy gtk+ dnl # Making releases: # WV_MICRO_VERSION += 1; # WV_INTERFACE_AGE += 1; # WV_BINARY_AGE += 1; # if any functions have been added, set WV_INTERFACE_AGE to 0. # if backwards compatibility has been broken, # set WV_BINARY_AGE and WV_INTERFACE_AGE to 0. # WV_MAJOR_VERSION=1 WV_MINOR_VERSION=2 WV_MICRO_VERSION=9 WV_INTERFACE_AGE=5 WV_BINARY_AGE=5 WV_VERSION=$WV_MAJOR_VERSION.$WV_MINOR_VERSION.$WV_MICRO_VERSION AC_CANONICAL_HOST AC_CONFIG_SRCDIR([wvWare.c]) AC_SUBST(WV_MAJOR_VERSION) AC_SUBST(WV_MINOR_VERSION) AC_SUBST(WV_MICRO_VERSION) AC_SUBST(WV_INTERFACE_AGE) AC_SUBST(WV_BINARY_AGE) AC_SUBST(WV_VERSION) # libtool versioning LT_RELEASE=$WV_MAJOR_VERSION.$WV_MINOR_VERSION LT_CURRENT=`expr $WV_MICRO_VERSION - $WV_INTERFACE_AGE` LT_REVISION=$WV_INTERFACE_AGE LT_AGE=`expr $WV_BINARY_AGE - $WV_INTERFACE_AGE` AC_SUBST(LT_RELEASE) AC_SUBST(LT_CURRENT) AC_SUBST(LT_REVISION) AC_SUBST(LT_AGE) # For automake. VERSION=$WV_VERSION PACKAGE=wv dnl Initialize automake stuff AM_INIT_AUTOMAKE($PACKAGE, $VERSION) # Specify a configuration file AM_CONFIG_HEADER(config.h) AH_TOP([ #ifndef HAVE_WV_CONFIG_H #define HAVE_WV_CONFIG_H ]) dnl Checks for programs. AC_PROG_CC if test "x$GCC" = "xyes"; then ANSI_CFLAGS="-ansi" else ANSI_CFLAGS="" fi AC_SUBST(ANSI_CFLAGS) AC_PROG_CPP AC_PROG_AWK AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_LIBTOOL AC_PATH_PROG(PKG_CONFIG, pkg-config, no) # libgsf depends on glib and libxml2, so we should be fine libgsf_req='libgsf-1 >= 1.13.0' DEPS_PKGS="$libgsf_req" # required, pkg-config'd packages PKG_CHECK_MODULES(DEPS, [ $DEPS_PKGS ],,[AC_MSG_ERROR([$DEPS_PKG_ERRORS])]) AC_SUBST(DEPS_PKGS) AC_SUBST(DEPS_CFLAGS) AC_SUBST(DEPS_LIBS) # optional deps OPT_CFLAGS= OPT_LIBS= # these conditionals are still used, albeit libxml2 seems to be unconditionally required AC_DEFINE(HAVE_LIBXML2,1,[Define if you have libxml2]) AC_SUBST(HAVE_LIBXML2) dnl Checks for headers. AC_HEADER_STDC dnl AC_HEADER_SYS_WAIT dnl AC_TYPE_SIGNAL dnl AC_FUNC_WAIT3 AC_CHECK_HEADERS(fcntl.h io.h malloc.h sys/file.h sys/ioctl.h unistd.h) case ${host_os} in *mingw*) link_win32_dll="yes" ;; *) link_win32_dll="no" ;; esac if test "$cross_compiling" = "yes"; then dllwrap="dllwrap" else dllwrap=${host}-"dllwrap" fi AC_PATH_PROG(DLLWRAP, $dllwrap) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl zlib support dnl ======================================================= _cppflags=$CPPFLAGS _ldflags=$LDFLAGS AC_ARG_WITH(zlib,[ --with-zlib=DIR use libz in DIR],[ if test "x$withval" = "xyes"; then ZLIB_DIR="" elif test "x$withval" != "xno"; then ZLIB_DIR="$withval" CPPFLAGS="$CPPFLAGS -I$withval/include" LDFLAGS="$LDFLAGS -L$withval/lib" else AC_MSG_WARN([No zlib? Are you sure? I think I'll look for it anyway...]) ZLIB_DIR="" fi ],[ ZLIB_DIR="" ]) AC_CHECK_HEADER(zlib.h,[ AC_CHECK_LIB(z,gzread,[ AC_DEFINE(HAVE_ZLIB,1,[Define if you want zlib to uncompress wmf files]) HAVE_ZLIB=1 if test "x$ZLIB_DIR" != "x"; then ZLIB_CFLAGS="-I$ZLIB_DIR/include" ZLIB_LIBS="-L$ZLIB_DIR/lib -lz" else ZLIB_CFLAGS="" ZLIB_LIBS="-lz" fi ],[ AC_CHECK_LIB(gz,gzread,[ AC_DEFINE(HAVE_ZLIB,1,[Define if you want zlib to uncompress wmf files]) HAVE_ZLIB=1 if test "x$ZLIB_DIR" != "x"; then ZLIB_CFLAGS="-I$ZLIB_DIR/include" ZLIB_LIBS="-L$ZLIB_DIR/lib -lgz" else ZLIB_CFLAGS="" ZLIB_LIBS="-lgz" fi ],[ dnl Shouldn't this be an error? AC_MSG_WARN([* * * Unable to find zlib, which is kinda necessary. * * *]) HAVE_ZLIB=0 ZLIB_CFLAGS="" ZLIB_LIBS="" ]) ]) ]) OPT_CFLAGS="$OPT_CFLAGS $ZLIB_CFLAGS" OPT_LIBS="$OPT_LIBS $ZLIB_LIBS" CPPFLAGS=$_cppflags LDFLAGS=$_ldflags dnl system png support dnl ======================================================== _cppflags=$CPPFLAGS _ldflags=$LDFLAGS dnl libpng requires zlib CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS" AC_ARG_WITH(png,[ --with-png=DIR use png library in DIR],[ if test "x$withval" = "xyes"; then PNG_DIR="" elif test "x$withval" != "xno"; then PNG_DIR=$withval CPPFLAGS="$CPPFLAGS -I$withval/include" LDFLAGS="$LDFLAGS -L$withval/lib" else AC_MSG_WARN([No libpng? Are you sure? I think I'll look for it anyway...]) PNG_DIR="" fi ],[ PNG_DIR="" ]) AC_CHECK_HEADER(png.h,[ AC_CHECK_HEADER(pngconf.h,[ AC_CHECK_LIB(png, png_free,[ AC_DEFINE(HasPNG,1,[define if you have libpng]) HAVE_PNG=1 if test "x$PNG_DIR" != "x"; then PNG_CFLAGS="-I$PNG_DIR/include" PNG_LIBS="-L$PNG_DIR/lib -lpng" else PNG_CFLAGS="" PNG_LIBS="-lpng" fi ],[ dnl Shouldn't this be an error? AC_MSG_WARN([* * * Unable to find libpng, which is kinda necessary. * * *]) HAVE_PNG=0 PNG_CFLAGS="" PNG_LIBS="" ],$ZLIB_LIBS -lm) ],[ dnl Shouldn't this be an error? AC_MSG_WARN([* * * Missing "pngconf.h" header file * * *]) HAVE_PNG=0 PNG_CFLAGS="" PNG_LIBS="" ],[#if HAVE_ZLIB #include <zlib.h> #endif ]) ],[ dnl Shouldn't this be an error? AC_MSG_WARN([* * * Missing "png.h" header file * * *]) HAVE_PNG=0 PNG_CFLAGS="" PNG_LIBS="" ]) OPT_CFLAGS="$OPT_CFLAGS $PNG_CFLAGS" OPT_LIBS="$OPT_LIBS $PNG_LIBS" CPPFLAGS=$_cppflags LDFLAGS=$_ldflags dnl system libwmf support dnl ======================================================== dnl Check for libwmf-0.2.1 or higher _cppflags=$CPPFLAGS _ldflags=$LDFLAGS have_libwmf=no AC_ARG_WITH(libwmf,[ --with-libwmf=DIR use libwmf(2) in DIR],[ if [ test "x$withval" != "xno" ]; then if [ test "x$withval" != "xyes" ]; then LIBWMF_DIR=$withval fi search_for_libwmf=yes else search_for_libwmf=no fi ],[ search_for_libwmf=no ]) if [ test $search_for_libwmf != no ]; then if [ test -n "$LIBWMF_DIR" ]; then AC_PATH_PROG(LIBWMF_CONFIG,libwmf-config, ,[$LIBWMF_DIR/bin:$PATH]) else AC_PATH_PROG(LIBWMF_CONFIG,libwmf-config) fi if [ test -n "$LIBWMF_CONFIG" ]; then libwmf_cflags=`$LIBWMF_CONFIG --cflags` libwmf_libs=`$LIBWMF_CONFIG --libs` else AC_MSG_ERROR(* * * unable to find libwmf-config; unable to continue * * *) fi CPPFLAGS="$CPPFLAGS $libwmf_cflags" LDFLAGS="$LDFLAGS $libwmf_libs" AC_CHECK_HEADER(libwmf/api.h,[ AC_CHECK_LIB(wmf,wmf_stream_create,have_libwmf=yes,[ AC_MSG_ERROR(* * * libwmf >= 0.2.1 required * * *) ],$libwmf_libs) AC_CHECK_HEADER(libwmf/foreign.h,[ AC_DEFINE(HAVE_LIBWMF_FOREIGN_H,1,[Define if libwmf(2) has support for reading 'foreign' image formats]) ],[ AC_MSG_WARN(* * * libwmf >= 0.2.2 recommended * * *) ]) ]) if [ test $have_libwmf != no]; then AC_DEFINE(HAVE_LIBWMF,1,[Define if you have libwmf(2) and want it to convert wmf to png files]) WMF_CFLAGS="$libwmf_cflags" WMF_LIBS="$libwmf_libs" fi fi CPPFLAGS=$_cppflags LDFLAGS=$_ldflags OPT_CFLAGS="$OPT_CFLAGS $WMF_CFLAGS" OPT_LIBS="$OPT_LIBS $WMF_LIBS" AC_SUBST(OPT_CFLAGS) AC_SUBST(OPT_LIBS) AC_LANG_C CPPFLAGS=$_cppflags LDFLAGS=$_ldflags dnl ======================================================== dnl begin of possible optimization tests dnl read notes/optimization AC_CHECK_SIZEOF(char,1) AC_CHECK_SIZEOF(short,2) AC_CHECK_SIZEOF(int,4) AC_CHECK_SIZEOF(long,4) if [test "$SIZEOF_CHAR" != "1" ]; then if [test "$SIZEOF_SHORT" != "2" ]; then if [test "$SIZEOF_INT" != "4" ]; then AC_DEFINE(MATCHED_TYPE,1,[Define if sizeof({char,short,int}) != {1,2,4}]) fi fi fi if [ test "$cross_compiling" != "yes" ]; then AC_C_BIGENDIAN dnl here we will know the endianness if [ test "$ac_cv_c_bigendian" = "no" ]; then AC_DEFINE(XML_BYTE_ORDER,12,[Define as 12 for little-endian, 21 for big-endian]) else if [ test "$ac_cv_c_bigendian" = "yes" ]; then AC_DEFINE(XML_BYTE_ORDER,21,[Define as 12 for little-endian, 21 for big-endian]) fi fi else dnl here we will not know the endianness, so we will dnl go with the mechanism that works everywhere AC_DEFINE(WORDS_BIGENDIAN,1,[Define if byte order is big-endian]) fi dnl given matched types and little endian we can read types larger dnl than a byte with fread and avoid byteswapping dnl at some later stage we will have a test to see if the compiler can dnl get rid of holes, for the moment we will assume only that we can dnl do it if we have __GNUC__ defined dnl end of possible optimization tests dnl check for getopt dnl AC_CHECK_FUNC(getopt_long,,[ AC_LIBOBJ(getopt1) AC_LIBOBJ(getopt) ]) dnl check for strcasecmp dnl AC_CHECK_FUNC(strcasecmp,,[ AC_LIBOBJ(strcasecmp) ]) AC_EGREP_HEADER(strcasecmp,string.h,,[ AC_DEFINE(DEFINE_STRCASECMP,1,[Define this if strcasecmp must be defined]) ]) dnl check for memcpy, if not there we'll use bcopy dnl AC_CHECK_FUNCS(memcpy) dnl check for mmap dnl AC_FUNC_MMAP AH_BOTTOM([ #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif #if defined(HAVE_ERRNO_H) #include <errno.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <limits.h> #include <stdarg.h> #if defined(__GNUC__) && !defined(WORDS_BIGENDIAN) && defined(MATCHED_TYPE) #define NO_HOLES #endif #ifndef HAVE_MEMCPY #define memcpy(d, s, n) bcopy ((s), (d), (n)) #endif /* not HAVE_MEMCPY */ /* redefs of things that are either in glibc or we have to include them ourselves */ #if defined(WIN32) && !defined(__MWERKS__) && !defined(__WINE__) #define strcasecmp(s1,s2) stricmp(s1,s2) #else #if !defined(__GLIBC__) || (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 2) #ifdef DEFINE_STRCASECMP int strcasecmp (const char *s1, const char *s2); #endif #endif #endif #endif /* ! HAVE_WV_CONFIG_H */ ]) AC_CONFIG_FILES([ wvAbw wvDVI wvPS wvPDF wvHtml wvDocBook wvLatex wvCleanLatex wvText wvWml wv-1.0.pc version.c GNUmakefile xml/GNUmakefile help/GNUmakefile help/man/GNUmakefile patterns/GNUmakefile wingdingfont/GNUmakefile ]) AC_OUTPUT ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/md5.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000026044�11247156607�007762� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ /* ********************************************************************** ** md5.c ** ** RSA Data Security, Inc. MD5 Message Digest Algorithm ** ** Created: 2/17/90 RLR ** ** Revised: 1/91 SRD,AJ,BSK,JT Reference C Version ** ********************************************************************** */ /* ********************************************************************** ** Copyright (C) 1990, RSA Data Security, Inc. All rights reserved. ** ** ** ** License to copy and use this software is granted provided that ** ** it is identified as the "RSA Data Security, Inc. MD5 Message ** ** Digest Algorithm" in all material mentioning or referencing this ** ** software or this function. ** ** ** ** License is also granted to make and use derivative works ** ** provided that such works are identified as "derived from the RSA ** ** Data Security, Inc. MD5 Message Digest Algorithm" in all ** ** material mentioning or referencing the derived work. ** ** ** ** RSA Data Security, Inc. makes no representations concerning ** ** either the merchantability of this software or the suitability ** ** of this software for any particular purpose. It is provided "as ** ** is" without express or implied warranty of any kind. ** ** ** ** These notices must be retained in any copies of any part of this ** ** documentation and/or software. ** ********************************************************************** */ /* -- include the following line if the md5.h header file is separate -- */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "md5.h" /* forward declaration */ static void Transform (); static unsigned char PADDING[64] = { 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; /* F, G and H are basic MD5 functions: selection, majority, parity */ #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) #define G(x, y, z) (((x) & (z)) | ((y) & (~z))) #define H(x, y, z) ((x) ^ (y) ^ (z)) #define I(x, y, z) ((y) ^ ((x) | (~z))) /* ROTATE_LEFT rotates x left n bits */ #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) /* FF, GG, HH, and II transformations for rounds 1, 2, 3, and 4 */ /* Rotation is separate from addition to prevent recomputation */ #define FF(a, b, c, d, x, s, ac) \ {(a) += F ((b), (c), (d)) + (x) + (UINT4)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } #define GG(a, b, c, d, x, s, ac) \ {(a) += G ((b), (c), (d)) + (x) + (UINT4)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } #define HH(a, b, c, d, x, s, ac) \ {(a) += H ((b), (c), (d)) + (x) + (UINT4)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } #define II(a, b, c, d, x, s, ac) \ {(a) += I ((b), (c), (d)) + (x) + (UINT4)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } void wvMD5Init (mdContext) wvMD5_CTX *mdContext; { mdContext->i[0] = mdContext->i[1] = (UINT4) 0; /* Load magic initialization constants. */ mdContext->buf[0] = (UINT4) 0x67452301; mdContext->buf[1] = (UINT4) 0xefcdab89; mdContext->buf[2] = (UINT4) 0x98badcfe; mdContext->buf[3] = (UINT4) 0x10325476; } void wvMD5Update (mdContext, inBuf, inLen) wvMD5_CTX *mdContext; unsigned char *inBuf; unsigned int inLen; { UINT4 in[16]; int mdi; unsigned int i, ii; /* compute number of bytes mod 64 */ mdi = (int) ((mdContext->i[0] >> 3) & 0x3F); /* update number of bits */ if ((mdContext->i[0] + ((UINT4) inLen << 3)) < mdContext->i[0]) mdContext->i[1]++; mdContext->i[0] += ((UINT4) inLen << 3); mdContext->i[1] += ((UINT4) inLen >> 29); while (inLen--) { /* add new character to buffer, increment mdi */ mdContext->in[mdi++] = *inBuf++; /* transform if necessary */ if (mdi == 0x40) { for (i = 0, ii = 0; i < 16; i++, ii += 4) in[i] = (((UINT4) mdContext->in[ii + 3]) << 24) | (((UINT4) mdContext->in[ii + 2]) << 16) | (((UINT4) mdContext->in[ii + 1]) << 8) | ((UINT4) mdContext->in[ii]); Transform (mdContext->buf, in); mdi = 0; } } } void wvMD5Final (mdContext) wvMD5_CTX *mdContext; { UINT4 in[16]; int mdi; unsigned int i, ii; unsigned int padLen; /* save number of bits */ in[14] = mdContext->i[0]; in[15] = mdContext->i[1]; /* compute number of bytes mod 64 */ mdi = (int) ((mdContext->i[0] >> 3) & 0x3F); /* pad out to 56 mod 64 */ padLen = (mdi < 56) ? (56 - mdi) : (120 - mdi); wvMD5Update (mdContext, PADDING, padLen); /* append length in bits and transform */ for (i = 0, ii = 0; i < 14; i++, ii += 4) in[i] = (((UINT4) mdContext->in[ii + 3]) << 24) | (((UINT4) mdContext->in[ii + 2]) << 16) | (((UINT4) mdContext->in[ii + 1]) << 8) | ((UINT4) mdContext->in[ii]); Transform (mdContext->buf, in); /* store buffer in digest */ for (i = 0, ii = 0; i < 4; i++, ii += 4) { mdContext->digest[ii] = (unsigned char) (mdContext->buf[i] & 0xFF); mdContext->digest[ii + 1] = (unsigned char) ((mdContext->buf[i] >> 8) & 0xFF); mdContext->digest[ii + 2] = (unsigned char) ((mdContext->buf[i] >> 16) & 0xFF); mdContext->digest[ii + 3] = (unsigned char) ((mdContext->buf[i] >> 24) & 0xFF); } } /* Basic MD5 step. Transform buf based on in. */ static void Transform (buf, in) UINT4 *buf; UINT4 *in; { UINT4 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; /* Round 1 */ #define S11 7 #define S12 12 #define S13 17 #define S14 22 FF (a, b, c, d, in[0], S11, 3614090360UL); /* 1 */ FF (d, a, b, c, in[1], S12, 3905402710UL); /* 2 */ FF (c, d, a, b, in[2], S13, 606105819UL); /* 3 */ FF (b, c, d, a, in[3], S14, 3250441966UL); /* 4 */ FF (a, b, c, d, in[4], S11, 4118548399UL); /* 5 */ FF (d, a, b, c, in[5], S12, 1200080426UL); /* 6 */ FF (c, d, a, b, in[6], S13, 2821735955UL); /* 7 */ FF (b, c, d, a, in[7], S14, 4249261313UL); /* 8 */ FF (a, b, c, d, in[8], S11, 1770035416UL); /* 9 */ FF (d, a, b, c, in[9], S12, 2336552879UL); /* 10 */ FF (c, d, a, b, in[10], S13, 4294925233UL); /* 11 */ FF (b, c, d, a, in[11], S14, 2304563134UL); /* 12 */ FF (a, b, c, d, in[12], S11, 1804603682UL); /* 13 */ FF (d, a, b, c, in[13], S12, 4254626195UL); /* 14 */ FF (c, d, a, b, in[14], S13, 2792965006UL); /* 15 */ FF (b, c, d, a, in[15], S14, 1236535329UL); /* 16 */ /* Round 2 */ #define S21 5 #define S22 9 #define S23 14 #define S24 20 GG (a, b, c, d, in[1], S21, 4129170786UL); /* 17 */ GG (d, a, b, c, in[6], S22, 3225465664UL); /* 18 */ GG (c, d, a, b, in[11], S23, 643717713UL); /* 19 */ GG (b, c, d, a, in[0], S24, 3921069994UL); /* 20 */ GG (a, b, c, d, in[5], S21, 3593408605UL); /* 21 */ GG (d, a, b, c, in[10], S22, 38016083UL); /* 22 */ GG (c, d, a, b, in[15], S23, 3634488961UL); /* 23 */ GG (b, c, d, a, in[4], S24, 3889429448UL); /* 24 */ GG (a, b, c, d, in[9], S21, 568446438UL); /* 25 */ GG (d, a, b, c, in[14], S22, 3275163606UL); /* 26 */ GG (c, d, a, b, in[3], S23, 4107603335UL); /* 27 */ GG (b, c, d, a, in[8], S24, 1163531501UL); /* 28 */ GG (a, b, c, d, in[13], S21, 2850285829UL); /* 29 */ GG (d, a, b, c, in[2], S22, 4243563512UL); /* 30 */ GG (c, d, a, b, in[7], S23, 1735328473UL); /* 31 */ GG (b, c, d, a, in[12], S24, 2368359562UL); /* 32 */ /* Round 3 */ #define S31 4 #define S32 11 #define S33 16 #define S34 23 HH (a, b, c, d, in[5], S31, 4294588738UL); /* 33 */ HH (d, a, b, c, in[8], S32, 2272392833UL); /* 34 */ HH (c, d, a, b, in[11], S33, 1839030562UL); /* 35 */ HH (b, c, d, a, in[14], S34, 4259657740UL); /* 36 */ HH (a, b, c, d, in[1], S31, 2763975236UL); /* 37 */ HH (d, a, b, c, in[4], S32, 1272893353UL); /* 38 */ HH (c, d, a, b, in[7], S33, 4139469664UL); /* 39 */ HH (b, c, d, a, in[10], S34, 3200236656UL); /* 40 */ HH (a, b, c, d, in[13], S31, 681279174UL); /* 41 */ HH (d, a, b, c, in[0], S32, 3936430074UL); /* 42 */ HH (c, d, a, b, in[3], S33, 3572445317UL); /* 43 */ HH (b, c, d, a, in[6], S34, 76029189UL); /* 44 */ HH (a, b, c, d, in[9], S31, 3654602809UL); /* 45 */ HH (d, a, b, c, in[12], S32, 3873151461UL); /* 46 */ HH (c, d, a, b, in[15], S33, 530742520UL); /* 47 */ HH (b, c, d, a, in[2], S34, 3299628645UL); /* 48 */ /* Round 4 */ #define S41 6 #define S42 10 #define S43 15 #define S44 21 II (a, b, c, d, in[0], S41, 4096336452UL); /* 49 */ II (d, a, b, c, in[7], S42, 1126891415UL); /* 50 */ II (c, d, a, b, in[14], S43, 2878612391UL); /* 51 */ II (b, c, d, a, in[5], S44, 4237533241UL); /* 52 */ II (a, b, c, d, in[12], S41, 1700485571UL); /* 53 */ II (d, a, b, c, in[3], S42, 2399980690UL); /* 54 */ II (c, d, a, b, in[10], S43, 4293915773UL); /* 55 */ II (b, c, d, a, in[1], S44, 2240044497UL); /* 56 */ II (a, b, c, d, in[8], S41, 1873313359UL); /* 57 */ II (d, a, b, c, in[15], S42, 4264355552UL); /* 58 */ II (c, d, a, b, in[6], S43, 2734768916UL); /* 59 */ II (b, c, d, a, in[13], S44, 1309151649UL); /* 60 */ II (a, b, c, d, in[4], S41, 4149444226UL); /* 61 */ II (d, a, b, c, in[11], S42, 3174756917UL); /* 62 */ II (c, d, a, b, in[2], S43, 718787259UL); /* 63 */ II (b, c, d, a, in[9], S44, 3951481745UL); /* 64 */ buf[0] += a; buf[1] += b; buf[2] += c; buf[3] += d; } /* ********************************************************************** ** End of md5.c ** ******************************* (cut) ******************************** */ ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvAbw.in�����������������������������������������������������������������������������������0000664�0000764�0000764�00000005640�11247156607�010546� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh wv_script_name="$0" prefix=@prefix@ exec_prefix= datadir= t_dir=. wv_opts= i_file= o_file= print_help=no while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg ;; --exec-prefix=*) exec_prefix=$optarg ;; --datadir=*) datadir=$optarg ;; --targetdir=*) t_dir=$optarg ;; --charset=* | --password=*) wv_opts="$wv_opts $1" ;; -v | --version) echo @VERSION@ exit 0 ;; -\? | -h | --help) cat << EOF Usage: $wv_script_name [OPTIONS] <input-file> <output-file> Options: --prefix=<DIR> Set prefix (default is @prefix@) --exec-prefix=<DIR> Set exec_prefix (default is @exec_prefix@) --datadir=<DIR> Set datadir (default is @datadir@) --targetdir=<DIR> Target directory (target is <DIR>/<output-file>) --charset=<charset> Specify an iconv charset encoding --password=<password> Specify password for encrypted -v, --version Print version info and exit Authors: Dom Lachowicz (dominicl@seas.upenn.edu) Caolan McNamara (original author) Visit http://www.wvware.com/ EOF exit 0 ;; -?*) echo "Option '$1' not recognized." exit 1 ;; *) if test "x$i_file" = "x"; then i_file=$1 elif test "x$o_file" = "x"; then o_file=$1 else echo "Option '$1' not recognized." exit 1 fi ;; esac shift done if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as input" exit 1 fi if test -r "$i_file"; then okay=yes else echo "error: '$i_file' unreadable" exit 1 fi if test "x$o_file" = "x"; then echo "Usage: $1 [OPTIONS] <input-file> <output-file>" exit 1 fi name=`basename "$o_file"` if test "x$o_file" != "x$name"; then echo "* * * Better to use '--targetdir' for writing in another directory * * *" exit 1 fi name=`echo $name | sed 's/\.[^\.]*$//'` if test "x$exec_prefix" = "x"; then exec_prefix=@exec_prefix@ fi wv_exec="$exec_prefix/bin/wvWare" if test -x "$wv_exec"; then okay=yes else wv_version=`wvWare -v 2>&1 | cut -f 2 -d " "` if test "x$wv_version" = "x@VERSION@"; then wv_exec="wvWare" else echo "error: no executable at '$wv_exec' or in path" exit 1 fi fi if test "x$datadir" = "x"; then datadir=@datadir@ fi xmlcfg="$datadir/wv/wvAbw.xml" if test -r "$xmlcfg"; then okay=yes else echo "error: '$xmlcfg' unreadable" exit 1 fi if test -d "$t_dir"; then if test -w "$t_dir"; then okay=yes else echo "error: '$t_dir' is not writable" exit 1 fi else echo "error: '$t_dir' is not a directory" exit 1 fi if test "x$o_file" = "x-"; then "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" else "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" > "$t_dir"/"$o_file" fi ������������������������������������������������������������������������������������������������wv-1.2.9/mtextra.c����������������������������������������������������������������������������������0000664�0000764�0000764�00000025625�11247156607�010765� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" /* * This is the unicode translation table for "MT Extra", which is * part of Math Type, and for some reason shipped with Word 6. * * http://support.microsoft.com/support/kb/articles/Q106/3/41.asp * * The unicode translation table is here: * * http://www.mathtype.com/support/tech/encodings/mtextra.htm * * Copyright 2001, Sean Young <sean@msxnet.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ U16 wvConvertMTExtraToUnicode (U16 char16) { if (char16 < ' ') return char16; switch (char16) { case 0x20: return 0x0020; /* Space */ case 0x23: return 0x0300; /* Grave embellishment */ case 0x24: return 0x0302; /* Hat embellishment */ case 0x25: return 0x0303; /* Tilde embellishment */ case 0x26: return 0x0307; /* Dot above embellishment */ case 0x28: return 0x2323; /* Smile */ case 0x29: return 0x2322; /* Frown */ case 0x31: return 0xEC00; /* Down-pointing curly bracket left */ case 0x32: return 0xEC01; /* Down-pointing curly bracket mid */ case 0x33: return 0xEC02; /* Down-pointing curly bracket right */ case 0x34: return 0xEC03; /* Horizontal curly bracket extender */ case 0x35: return 0xEC0B; /* Horizontal square bracket extender */ case 0x36: return 0xEC04; /* Up-pointing curly bracket left */ case 0x37: return 0xEC05; /* Up-pointing curly bracket mid */ case 0x38: return 0xEC06; /* Up-pointing curly bracket right */ case 0x3A: return 0x223C; /* Tilde operator */ case 0x3B: return 0x2243; /* Asymptotically equal to */ case 0x3C: return 0x22B2; /* Normal subgroup of */ case 0x3D: return 0x226A; /* Much less-than */ case 0x3E: return 0x22B3; /* Contains as normal subgroup */ case 0x3F: return 0x226B; /* Much greater-than */ case 0x40: return 0x225C; /* Delta equal to */ case 0x41: return 0x2259; /* Estimates */ case 0x42: return 0x2250; /* Approaches the limit */ case 0x43: return 0x2210; /* N-ary coproduct */ case 0x44: return 0x019B; /* Latin small letter lambda with stroke */ case 0x45: return 0xEC0E; /* Under square bracket left */ case 0x46: return 0xEC0F; /* Under square bracket right */ case 0x47: return 0xEC10; /* Over square bracket left */ case 0x48: return 0xEC11; /* Over square bracket right */ case 0x49: return 0x2229; /* Intersection */ case 0x4A: return 0x2127; /* Inverted ohm sign */ case 0x4B: return 0x2026; /* Horizontal ellipsis */ case 0x4C: return 0x22EF; /* Math-axis ellipsis */ case 0x4D: return 0x22EE; /* Vertical ellipsis */ case 0x4E: return 0x22F0; /* Up right diagonal ellipsis */ case 0x4F: return 0x22F1; /* Down right diagonal ellipsis */ case 0x50: return 0x2225; /* Parallel to */ case 0x51: return 0x2235; /* Because or since */ case 0x52: return 0x2221; /* Measured angle */ case 0x53: return 0x2222; /* Spherical angle */ case 0x55: return 0x222A; /* Union */ case 0x56: return 0x25B3; /* White up-pointing triangle */ case 0x57: return 0x25A1; /* White square */ case 0x58: return 0x25AD; /* White rectangle */ case 0x59: return 0x25B1; /* White parallelogram */ case 0x5A: return 0x2197; /* North east arrow */ case 0x5B: return 0x2199; /* South west arrow */ case 0x5C: return 0xEB05; /* Double arrow northeast southwest */ case 0x5D: return 0x2198; /* South east arrow */ case 0x5E: return 0x2196; /* North west arrow */ case 0x5F: return 0xEB06; /* Double arrow northwest southeast */ case 0x60: return 0x2035; /* Reversed prime */ case 0x61: return 0x21A6; /* Rightwards arrow from bar */ case 0x62: return 0x2195; /* Up down arrow */ case 0x63: return 0x21D5; /* Up down double arrow */ case 0x64: return 0x25CB; /* White circle */ case 0x65: return 0x2299; /* Circled dot operator */ case 0x66: return 0x227B; /* Succeeds */ case 0x67: return 0xE98F; /* Medium dot operator (free radical) */ case 0x68: return 0x210F; /* Planck constant over two pi */ case 0x69: return 0xEE00; /* Anticlockwise contour integral loop */ case 0x6A: return 0xEE01; /* Clockwise contour integral loop */ case 0x6C: return 0x2113; /* Script small l */ case 0x6D: return 0x2213; /* Minus-plus sign */ case 0x6E: return 0xFFFD; /* Unknown or missing character */ case 0x6F: return 0x2218; /* Composition */ case 0x70: return 0x227A; /* Precedes */ case 0x71: return 0xEB1A; /* Left harpoon (barb down) */ case 0x72: return 0x20D7; /* Right arrow embellishment */ case 0x73: return 0x20D6; /* Left arrow embellishment */ case 0x74: return 0x20E1; /* Left right arrow embellishment */ case 0x75: return 0xEB00; /* Arrow embellishment extender */ case 0x76: return 0x20D1; /* Right harpoon embellishment (barb up) */ case 0x77: return 0x20D0; /* Left harpoon embellishment (barb up) */ case 0x78: return 0xEB19; /* Right harpoon (barb down) */ case 0x7B: return 0xFE38; /* Under curly bracket */ case 0x7C: return 0xEC0C; /* Under square bracket */ case 0x7D: return 0xFE37; /* Over curly bracket */ case 0x7E: return 0xEC0D; /* Over square bracket */ case 0x80: return 0x21C4; /* Rightwards arrow over leftwards arrow */ case 0x81: return 0xEB01; /* Arrow rightwards over small arrow leftwards */ case 0x82: return 0xEB02; /* Small arrow rightwards over arrow leftwards */ case 0x83: return 0x21CC; /* Right harpoon over left harpoon */ case 0x84: return 0xEB03; /* Harpoon right over small harpoon left */ case 0x85: return 0xEB04; /* Small harpoon right over harpoon left */ case 0x86: return 0x21C0; /* Right harpoon (barb up) */ case 0x87: return 0x21BD; /* Left harpoon (barb down) */ case 0x88: return 0xF8E7; /* Horizontal arrow extender */ case 0xA1: return 0x211D; /* Blackboard-bold capital R */ case 0xA2: return 0x2124; /* Blackboard-bold capital Z */ case 0xA3: return 0x2102; /* Blackboard-bold capital C */ case 0xA4: return 0x211A; /* Blackboard-bold capital Q */ case 0xA5: return 0x2115; /* Blackboard-bold capital N */ case 0xA7: return 0x301A; /* Left white square bracket */ case 0xA8: return 0x301B; /* Right white square bracket */ case 0xA9: return 0xEC22; /* Left white square bracket top */ case 0xAA: return 0xEC23; /* Left white square bracket extender */ case 0xAB: return 0xEC24; /* Left white square bracket bottom */ case 0xAC: return 0xEC25; /* Right white square bracket top */ case 0xAD: return 0xEC26; /* Right white square bracket extender */ case 0xAE: return 0xEC27; /* Right white square bracket bottom */ case 0xB0: return 0xEE04; /* Tilde embellishment (two space) */ case 0xB1: return 0xEE05; /* Tilde embellishment (three space) */ case 0xB2: return 0xEE06; /* Tilde embellishment (four space) */ case 0xB5: return 0xEE07; /* Hat embellishment (two space) */ case 0xB6: return 0xEE08; /* Hat embellishment (three space) */ case 0xB7: return 0xEE09; /* Hat embellishment (four space) */ case 0xBA: return 0xEE0A; /* Arc embellishment (two space) */ case 0xBB: return 0xEE0B; /* Arc embellishment (three space) */ case 0xBC: return 0xEE0C; /* Arc embellishment (four space) */ case 0xC0: return 0xEE0D; /* Joint status embellishment */ case 0xC1: return 0xEE0E; /* Joint status embellishment (left) */ case 0xC2: return 0xEE0F; /* Joint status embellishment (right) */ case 0xC3: return 0xEE10; /* Joint status embellishment (extender) */ case 0xD1: return 0xEE11; /* Integral loop */ case 0xD2: return 0xEE12; /* Integral loop (double) */ case 0xD3: return 0xEE13; /* Integral loop (triple) */ case 0xD5: return 0xEE15; /* Expanding integral loop (double) */ case 0xD6: return 0xEE16; /* Expanding integral loop (triple) */ case 0xE7: return 0xF8FF; /* Apple logo */ case 0xE8: return 0x0160; /* Latin capital letter S with caron */ case 0xE9: return 0x00DD; /* Latin capital letter Y with acute */ case 0xEA: return 0x00DE; /* Latin capital letter Thorn */ case 0xEB: return 0x00D0; /* Latin capital letter Eth */ case 0xEC: return 0x0161; /* Latin small letter s with caron */ case 0xED: return 0x00FD; /* Latin small letter y with acute */ case 0xEE: return 0x00FE; /* Latin small letter thorn */ case 0xEF: return 0x00F0; /* Latin small letter eth */ case 0xF0: return 0xFB01; /* Latin small ligature fi */ case 0xF1: return 0xFB02; /* Latin small ligature fl */ case 0xF2: return 0x0131; /* Latin small letter dotless i */ case 0xF3: return 0x00B9; /* Superscript one */ case 0xF4: return 0x00B2; /* Superscript two */ case 0xF5: return 0x00B3; /* Superscript three */ case 0xF6: return 0x00BD; /* Vulgar fraction one half */ case 0xF7: return 0x00BC; /* Vulgar fraction one quarter */ case 0xF8: return 0x00BE; /* Vulgar fraction three quarters */ case 0xF9: return 0x2044; /* Fraction slash */ case 0xFA: return 0x00A6; /* Broken bar */ case 0xFB: return 0x02DD; /* Double acute accent */ case 0xFC: return 0x02D8; /* Breve */ case 0xFD: return 0x02C7; /* Caron */ case 0xFE: return 0x02DA; /* Ring above */ case 0xFF: return 0x02DB; /* Ogonek */ default: return (0xffff); } } �����������������������������������������������������������������������������������������������������������wv-1.2.9/rc4.c��������������������������������������������������������������������������������������0000775�0000764�0000764�00000004110�11247156607�007756� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "rc4.h" static void swap_byte (unsigned char *a, unsigned char *b) { unsigned char swapByte; swapByte = *a; *a = *b; *b = swapByte; } void prepare_key (unsigned char *key_data_ptr, int key_data_len, rc4_key * key) { unsigned char index1; unsigned char index2; unsigned char *state; unsigned int counter; state = &key->state[0]; for (counter = 0; counter < 256; counter++) state[counter] = counter; key->x = 0; key->y = 0; index1 = 0; index2 = 0; for (counter = 0; counter < 256; counter++) { index2 = (key_data_ptr[index1] + state[counter] + index2) % 256; swap_byte (&state[counter], &state[index2]); index1 = (index1 + 1) % key_data_len; } } void rc4 (unsigned char *buffer_ptr, int buffer_len, rc4_key * key) { unsigned char x; unsigned char y; unsigned char *state; unsigned char xorIndex; unsigned int counter; x = key->x; y = key->y; state = &key->state[0]; for (counter = 0; counter < buffer_len; counter++) { x = (x + 1) % 256; y = (state[x] + y) % 256; swap_byte (&state[x], &state[y]); xorIndex = (state[x] + state[y]) % 256; buffer_ptr[counter] ^= state[xorIndex]; } key->x = x; key->y = y; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/fdoa.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000004337�11247156607�010207� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetFDOA (FDOA * item, wvStream * fd) { item->fc = (S32) read_32ubit (fd); item->ctxbx = (S16) read_16ubit (fd); } int wvGetFDOA_PLCF (FDOA ** fdoa, U32 ** pos, U32 * nofdoa, U32 offset, U32 len, wvStream * fd) { U32 i; if ((len == 0) || (offset == 0)) { *fdoa = NULL; *pos = NULL; *nofdoa = 0; } else { *nofdoa = (len - 4) / (cbFDOA + 4); *pos = (U32 *) wvMalloc ((*nofdoa + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nofdoa + 1) * sizeof (U32))); return (1); } *fdoa = (FDOA *) wvMalloc ((*nofdoa + 1) * sizeof (FDOA)); if (*fdoa == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nofdoa * sizeof (FDOA))); wvFree (pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i <= *nofdoa; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *nofdoa; i++) wvGetFDOA (&((*fdoa)[i]), fd); } return (0); } FDOA * wvGetFDOAFromCP (U32 currentcp, FDOA * fdoa, U32 * pos, U32 nofdoa) { U32 i; wvTrace (("nofdoa is %d\n", nofdoa)); for (i = 0; i < nofdoa; i++) { wvTrace (("compare %x %x\n", currentcp, pos[i])); if (pos[i] == currentcp) return (&(fdoa[i])); } wvError (("found no fdoa, panic\n")); return (NULL); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/decode_simple.c����������������������������������������������������������������������������0000664�0000764�0000764�00000062513�11247156607�012072� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" #include "wvinternal.h" /* how this works, we seek to the beginning of the text, we loop for a count of charaters that is stored in the fib. the piecetable divides the text up into various sections, we keep track of our location vs the next entry in that table, when we reach that location, we seek to the position that the table tells us to go. there are special cases for coming to the end of a section, and for the beginning and ends of pages. for the purposes of headers and footers etc. */ void wvDecodeSimple (wvParseStruct * ps, subdocument whichdoc) { PAPX_FKP para_fkp; CHPX_FKP char_fkp; PAP apap; CHP achp; U32 piececount = 0, i, j = 0, spiece; U32 beginfc, endfc; U32 stream_size; U32 begincp, endcp; int ichartype; U8 chartype; U16 eachchar; U32 para_fcFirst, para_fcLim = 0xffffffff; U32 dummy, nextpara_fcLim = 0xffffffff; U32 char_fcFirst, char_fcLim = 0xffffffff; U32 section_fcFirst, section_fcLim = 0xffffffff; U32 comment_cpFirst = 0xffffffffL, comment_cpLim = 0xffffffffL; BTE *btePapx, *bteChpx; U32 *posPapx, *posChpx; U32 para_intervals, char_intervals, section_intervals, atrd_intervals; int para_pendingclose = 0, char_pendingclose = 0, section_pendingclose = 0, comment_pendingclose = 0; int para_dirty = 0, char_dirty = 0, section_dirty = 0; SED *sed; SEP sep; U32 *posSedx; ATRD *atrd, *catrd = NULL; U32 *posAtrd; STTBF grpXstAtnOwners, SttbfAtnbkmk; BKF *bkf; U32 *posBKF; U32 bkf_intervals; BKL *bkl; U32 *posBKL; U32 bkl_intervals; FTXBXS *ftxbx; U32 *txbxTxt; U32 txbxTxt_intervals; BKD *bkd; U32 *posBKD; U32 bkd_intervals; wvVersion ver; external_wvReleasePAPX_FKP (); external_wvReleaseCHPX_FKP (); ver = wvQuerySupported (&ps->fib, NULL); /* despite what some parts of the spec might have you believe you still need to get the piecetable from even simple files, some simple files can have 8bit chars in one part, and 16bit chars in another, so you have to watch out for that */ wvGetCLX (ver, &ps->clx, ps->fib.fcClx, (U32) ps->fib.lcbClx, (U8) ps->fib.fExtChar, ps->tablefd); /* for word 6 and just in case */ if (ps->clx.nopcd == 0) wvBuildCLXForSimple6 (&ps->clx, &ps->fib); para_fcFirst = char_fcFirst = section_fcFirst = wvGetBeginFC (ps, whichdoc); /*we will need the stylesheet to do anything useful with layout and look */ wvGetSTSH (&ps->stsh, ps->fib.fcStshf, ps->fib.lcbStshf, ps->tablefd); /*dop */ wvGetDOP (ver, &ps->dop, ps->fib.fcDop, ps->fib.lcbDop, ps->tablefd); wvTrace (("tabstops are every %d twips\n", ps->dop.dxaTab)); /*textbox information */ wvGetFTXBXS_PLCF (&ftxbx, &txbxTxt, &txbxTxt_intervals, ps->fib.fcPlcftxbxTxt, ps->fib.lcbPlcftxbxTxt, ps->tablefd); wvGetBKD_PLCF (&bkd, &posBKD, &bkd_intervals, ps->fib.fcPlcftxbxBkd, ps->fib.lcbPlcftxbxBkd, ps->tablefd); /* this mountain of informatio is just to get comments organized */ wvGetATRD_PLCF (&atrd, &posAtrd, &atrd_intervals, ps->fib.fcPlcfandRef, ps->fib.lcbPlcfandRef, ps->tablefd); wvGetGrpXst (&grpXstAtnOwners, ps->fib.fcGrpXstAtnOwners, ps->fib.lcbGrpXstAtnOwners, ps->tablefd); wvTrace ( ("offset is %x, len is %d\n", ps->fib.fcSttbfAtnbkmk, ps->fib.lcbSttbfAtnbkmk)); wvGetSTTBF (&SttbfAtnbkmk, ps->fib.fcSttbfAtnbkmk, ps->fib.lcbSttbfAtnbkmk, ps->tablefd); wvGetBKF_PLCF (&bkf, &posBKF, &bkf_intervals, ps->fib.fcPlcfAtnbkf, ps->fib.lcbPlcfAtnbkf, ps->tablefd); wvGetBKL_PLCF (&bkl, &posBKL, &bkl_intervals, ps->fib.fcPlcfAtnbkl, ps->fib.lcbPlcfAtnbkl,ps->fib.fcPlcfAtnbkf, ps->fib.lcbPlcfAtnbkf, ps->tablefd); /* get font list */ if ((ver == WORD6) || (ver == WORD7)) wvGetFFN_STTBF6 (&ps->fonts, ps->fib.fcSttbfffn, ps->fib.lcbSttbfffn, ps->tablefd); else wvGetFFN_STTBF (&ps->fonts, ps->fib.fcSttbfffn, ps->fib.lcbSttbfffn, ps->tablefd); /*we will need the table of names to answer questions like the name of the doc */ if ((ver == WORD6) || (ver == WORD7)) { wvGetSTTBF6 (&ps->anSttbfAssoc, ps->fib.fcSttbfAssoc, ps->fib.lcbSttbfAssoc, ps->tablefd); wvGetSTTBF6 (&ps->Sttbfbkmk, ps->fib.fcSttbfbkmk, ps->fib.lcbSttbfbkmk, ps->tablefd); } else /*word 97 */ { wvGetSTTBF (&ps->anSttbfAssoc, ps->fib.fcSttbfAssoc, ps->fib.lcbSttbfAssoc, ps->tablefd); wvGetSTTBF (&ps->Sttbfbkmk, ps->fib.fcSttbfbkmk, ps->fib.lcbSttbfbkmk, ps->tablefd); } /*Extract all the list information that we will need to handle lists later on */ wvGetLST (&ps->lst, &ps->noofLST, ps->fib.fcPlcfLst, ps->fib.lcbPlcfLst, ps->tablefd); wvGetLFO_records (&ps->lfo, &ps->lfolvl, &ps->lvl, &ps->nolfo, &ps->nooflvl, ps->fib.fcPlfLfo, ps->fib.lcbPlfLfo, ps->tablefd); /* init the starting list number table */ if (ps->nolfo) { ps->liststartnos = (U32 *) wvMalloc (9 * ps->nolfo * sizeof (U32)); ps->listnfcs = (U8 *) wvMalloc (9 * ps->nolfo); ps->finallvl = (LVL *) wvMalloc (9 * ps->nolfo * sizeof (LVL)); for (i = 0; i < 9 * ps->nolfo; i++) { ps->liststartnos[i] = 0xffffffffL; ps->listnfcs[i] = 0xff; wvInitLVL (&(ps->finallvl[i])); } } else { ps->liststartnos = NULL; ps->listnfcs = NULL; ps->finallvl = NULL; } /*Extract Graphic Information */ wvGetFSPA_PLCF (&ps->fspa, &ps->fspapos, &ps->nooffspa, ps->fib.fcPlcspaMom, ps->fib.lcbPlcspaMom, ps->tablefd); wvGetFDOA_PLCF (&ps->fdoa, &ps->fdoapos, &ps->nooffdoa, ps->fib.fcPlcdoaMom, ps->fib.lcbPlcdoaMom, ps->tablefd); /* we will need the paragraph and character bounds table to make decisions as to where a para/char run begins and ends */ if ((ver == WORD6) || (ver == WORD7)) { wvGetBTE_PLCF6 (&btePapx, &posPapx, ¶_intervals, ps->fib.fcPlcfbtePapx, ps->fib.lcbPlcfbtePapx, ps->tablefd); wvGetBTE_PLCF6 (&bteChpx, &posChpx, &char_intervals, ps->fib.fcPlcfbteChpx, ps->fib.lcbPlcfbteChpx, ps->tablefd); } else /* word 97 */ { wvGetBTE_PLCF (&btePapx, &posPapx, ¶_intervals, ps->fib.fcPlcfbtePapx, ps->fib.lcbPlcfbtePapx, ps->tablefd); wvGetBTE_PLCF (&bteChpx, &posChpx, &char_intervals, ps->fib.fcPlcfbteChpx, ps->fib.lcbPlcfbteChpx, ps->tablefd); } wvGetSED_PLCF (&sed, &posSedx, §ion_intervals, ps->fib.fcPlcfsed, ps->fib.lcbPlcfsed, ps->tablefd); wvTrace (("section_intervals is %d\n", section_intervals)); /* The text of the file starts at fib.fcMin, but we will use the piecetable records rather than this basic seek. fseek(ps->mainfd,ps->fib.fcMin,SEEK_SET); */ /* If !fib.fComplex, the document text stream is represented by the text beginning at fib.fcMin up to (but not including) fib.fcMac. */ if ((ver == WORD2) && !ps->fib.fComplex) { wvHandleDocument (ps, DOCBEGIN); wvStream_goto (ps->mainfd, ps->fib.fcMin); for (i = ps->fib.fcMin; i < ps->fib.fcMac; i++) { eachchar = wvGetChar (ps->mainfd, 1); (*(ps->charhandler)) (ps, eachchar, 1, ps->fib.lid); /* (*(ps->scharhandler))(ps,eachchar,&achp; no go */ /* wvOutputTextChar(eachchar, 1, ps, &achp); no go */ /* Formatting still lacking. This is just a start. */ } wvHandleDocument (ps, DOCEND); wvReleaseSTTBF (&ps->anSttbfAssoc); wvReleaseSTTBF (&ps->Sttbfbkmk); wvFree (posChpx); wvFree (bteChpx); wvFree (btePapx); wvReleaseCLX (&ps->clx); wvReleaseSTSH (&ps->stsh); return; } #ifdef DEBUG if (ps->fib.fcMac != wvGetEndFCPiece (ps->clx.nopcd - 1, &ps->clx)) wvTrace ( ("fcMac is not the same as the piecetable %x %x!\n", ps->fib.fcMac, wvGetEndFCPiece (ps->clx.nopcd - 1, &ps->clx))); #endif wvInitPAPX_FKP (¶_fkp); wvInitCHPX_FKP (&char_fkp); if(wvHandleDocument (ps, DOCBEGIN)) goto finish_processing; /*get stream size for bounds checking*/ stream_size = wvStream_size(ps->mainfd); /*for each piece */ for (piececount = 0; piececount < ps->clx.nopcd; piececount++) { ichartype = wvGetPieceBoundsFC (&beginfc, &endfc, &ps->clx, piececount); if(ichartype==-1) break; chartype = (U8) ichartype; /*lvm007@aha.ru fix antiloop: check stream size */ if(beginfc>stream_size || endfc>stream_size){ wvError ( ("Piece Bounds out of range!, its a disaster\n")); continue; } wvStream_goto (ps->mainfd, beginfc); wvTrace (("SEEK %x\n", beginfc)); /*lvm007@aha.ru fix antiloop fix*/ if(wvGetPieceBoundsCP (&begincp, &endcp, &ps->clx, piececount)==-1) break; /* text that is not in the same piece is not guaranteed to have the same properties as the rest of the exception run, so force a stop and restart of these properties. */ char_fcLim = beginfc; wvTrace (("%d %d %d\n", begincp, endcp, ps->fib.ccpText)); for (i = begincp, j = beginfc; (i < endcp /*&& i<ps->fib.ccpText */ ); i++, j += wvIncFC (chartype)) { /* character properties */ if (j == char_fcLim) { wvHandleElement (ps, CHARPROPEND, (void *) &achp, char_dirty); char_pendingclose = 0; } /* comment ending location */ if (i == comment_cpLim) { wvHandleElement (ps, COMMENTEND, (void *) catrd, 0); comment_pendingclose = 0; } /* paragraph properties */ if (j == para_fcLim) { wvHandleElement (ps, PARAEND, (void *) &apap, para_dirty); para_pendingclose = 0; } if (j == section_fcLim) { wvHandleElement (ps, SECTIONEND, (void *) &sep, section_dirty); section_pendingclose = 0; } if ((section_fcLim == 0xffffffff) || (section_fcLim == j)) { wvTrace (("j i is %x %d\n", j, i)); section_dirty = wvGetSimpleSectionBounds (ver, ps, &sep, §ion_fcFirst, §ion_fcLim, i, &ps->clx, sed, &spiece, posSedx, section_intervals, &ps->stsh, ps->mainfd); wvTrace ( ("section begins at %x ends %x\n", section_fcFirst, section_fcLim)); } if (j == section_fcFirst) { wvHandleElement (ps, SECTIONBEGIN, (void *) &sep, section_dirty); section_pendingclose = 1; } if ((para_fcLim == 0xffffffff) || (para_fcLim == j)) { wvReleasePAPX_FKP (¶_fkp); wvGetSimpleParaBounds (ver, ¶_fkp, ¶_fcFirst, ¶_fcLim, wvConvertCPToFC (i, &ps->clx), btePapx, posPapx, para_intervals, ps->mainfd); wvTrace ( ("Para from %x to %x, j is %x\n", para_fcFirst, para_fcLim, j)); if (0 == para_pendingclose) { /* if there's no paragraph open, but there should be then I believe that the fcFirst search has failed me, so I set it to now. I need to investigate this further. I believe it occurs when a the last piece ended simultaneously with the last paragraph, and that the algorithm for finding the beginning of a para breaks under that condition. I need more examples to be sure, but it happens is very large complex files so its hard to find */ if (j != para_fcFirst) { wvWarning ( ("There is no paragraph due to open but one should be, plugging the gap.\n")); para_fcFirst = j; } } } if (j == para_fcFirst) { para_dirty = wvAssembleSimplePAP (ver, &apap, para_fcLim, ¶_fkp, ps); /* test section */ wvReleasePAPX_FKP (¶_fkp); wvGetSimpleParaBounds (ver, ¶_fkp, &dummy, &nextpara_fcLim, para_fcLim, btePapx, posPapx, para_intervals, ps->mainfd); wvAssembleSimplePAP (ver, &ps->nextpap, nextpara_fcLim, ¶_fkp, ps); /* end test section */ if ((apap.fInTable) && (!apap.fTtp)) { wvGetFullTableInit (ps, para_intervals, btePapx, posPapx); wvGetRowTap (ps, &apap, para_intervals, btePapx, posPapx); } else if (apap.fInTable == 0) ps->intable = 0; wvHandleElement (ps, PARABEGIN, (void *) &apap, para_dirty); char_fcLim = j; para_pendingclose = 1; } if ((comment_cpLim == 0xffffffffL) || (comment_cpLim == i)) { wvTrace ( ("searching for the next comment begin cp is %d\n", i)); catrd = wvGetCommentBounds (&comment_cpFirst, &comment_cpLim, i, atrd, posAtrd, atrd_intervals, &SttbfAtnbkmk, bkf, posBKF, bkf_intervals, bkl, posBKL, bkl_intervals); wvTrace ( ("begin and end are %d %d\n", comment_cpFirst, comment_cpLim)); } if (i == comment_cpFirst) { wvHandleElement (ps, COMMENTBEGIN, (void *) catrd, 0); comment_pendingclose = 1; } if ((char_fcLim == 0xffffffff) || (char_fcLim == j)) { wvTrace (("j i is %x %d\n", j, i)); wvReleaseCHPX_FKP (&char_fkp); wvGetSimpleCharBounds (ver, &char_fkp, &char_fcFirst, &char_fcLim, i, &ps->clx, bteChpx, posChpx, char_intervals, ps->mainfd); wvTrace ( ("char begins at %x ends %x, j is %x\n", char_fcFirst, char_fcLim, j)); if (0 == char_pendingclose) { /* if there's no character run open, but there should be then I believe that the fcFirst search has failed me, so I set it to now. I need to investigate this further. */ if (j != char_fcFirst) { wvWarning ( ("There is no character run due to open but one should be, plugging the gap.\n")); char_fcFirst = j; } } else{ /* lvm007@aha.ru fix: if currentfc>fcFirst but CHARPROP's changed look examples/charprops.doc*/ if(char_fcFirst< j) char_fcFirst = j; } } if (j == char_fcFirst) { wvTrace (("assembling CHP...\n")); /* a CHP's base style is in the para style */ /* achp.istd = apap.istd; */ char_dirty = wvAssembleSimpleCHP (ver, &achp, &apap, char_fcLim, &char_fkp, &ps->stsh); wvTrace (("CHP assembled.\n")); wvTrace (("font is %d\n", achp.ftcAscii)); wvTrace (("char spec is %d\n", achp.ftcSym)); wvHandleElement (ps, CHARPROPBEGIN, (void *) &achp, char_dirty); wvTrace (("char lid is %x\n", achp.lidDefault)); char_pendingclose = 1; } eachchar = wvGetChar (ps->mainfd, chartype); if ((eachchar == 0x07) && (!achp.fSpec)) ps->endcell = 1; ps->currentcp = i; wvTrace (("char pos is %x %x\n", j, eachchar)); wvOutputTextChar (eachchar, chartype, ps, &achp); } if (j == para_fcLim) { wvHandleElement (ps, PARAEND, (void *) &apap, para_dirty); para_pendingclose = 0; para_fcLim = 0xffffffffL; } if (i == comment_cpLim) { wvHandleElement (ps, COMMENTEND, (void *) catrd, 0); comment_pendingclose = 0; comment_cpLim = 0xffffffffL; } if (j == char_fcLim) { wvHandleElement (ps, CHARPROPEND, (void *) &achp, char_dirty); char_pendingclose = 0; char_fcLim = 0xffffffffL; } } finish_processing: if (char_pendingclose) { wvInitCHP (&achp); wvHandleElement (ps, CHARPROPEND, (void *) &achp, char_dirty); } if (comment_pendingclose) wvHandleElement (ps, COMMENTEND, (void *) catrd, 0); if (para_pendingclose) { wvInitPAP (&apap); wvHandleElement (ps, PARAEND, (void *) &apap, para_dirty); } if (section_pendingclose) wvHandleElement (ps, SECTIONEND, (void *) &sep, section_dirty); wvFree (ps->fspa); wvFree (ps->fspapos); wvFree (ps->fdoa); wvFree (ps->fdoapos); wvFree (posBKL); wvFree (bkl); wvFree (posBKF); wvFree (bkf); wvFree (posAtrd); wvFree (atrd); internal_wvReleasePAPX_FKP (¶_fkp); internal_wvReleaseCHPX_FKP (&char_fkp); wvHandleDocument (ps, DOCEND); wvFree (posSedx); wvFree (sed); wvFree(bkd); wvFree(posBKD); wvFree(ftxbx); wvFree(txbxTxt); #if defined(WIN32) wvReleasePAPX_FKP (¶_fkp); wvReleaseCHPX_FKP (&char_fkp); external_wvReleasePAPX_FKP (); external_wvReleaseCHPX_FKP(); #endif wvFree (ps->liststartnos); wvFree (ps->listnfcs); for (i = 0; i < 9 * ps->nolfo; i++) wvReleaseLVL (&(ps->finallvl[i])); wvFree (ps->finallvl); wvReleaseLST (&ps->lst, ps->noofLST); wvReleaseLFO_records (&ps->lfo, &ps->lfolvl, &ps->lvl, ps->nooflvl); wvReleaseSTTBF (&ps->anSttbfAssoc); wvReleaseSTTBF (&ps->Sttbfbkmk); wvFree (btePapx); wvFree (posPapx); wvFree (bteChpx); wvFree (posChpx); wvFree (bkd); wvFree (posBKD); wvFree (txbxTxt); wvFree (ftxbx); #if 0 /* so what, this is meaningless C. */ if (ps->fib.fcMac != ftell (ps->mainfd)) wvError (("fcMac did not match end of input !\n")); #endif wvReleaseCLX (&ps->clx); wvReleaseFFN_STTBF (&ps->fonts); wvReleaseSTSH (&ps->stsh); wvReleaseSTTBF (&SttbfAtnbkmk); wvReleaseSTTBF (&grpXstAtnOwners); if (ps->vmerges) { for (i = 0; i < ps->norows; i++) wvFree (ps->vmerges[i]); wvFree (ps->vmerges); } wvFree (ps->cellbounds); wvOLEFree(ps); tokenTreeFreeAll (); } /* When a document is recorded in non-complex format, the bounds of the paragraph that contains a particular character can be found by 1) calculating the FC coordinate of the character, 2) searching the bin table to find an FKP page that describes that FC, 3) fetching that FKP, and 4) then searching the FKP to find the interval in the rgfc that encloses the character. 5) The bounds of the interval are the fcFirst and fcLim of the containing paragraph. Every character greater than or equal to fcFirst and less than fcLim is part of the containing paragraph. */ int wvGetSimpleParaBounds (wvVersion ver, PAPX_FKP * fkp, U32 * fcFirst, U32 * fcLim, U32 currentfc, BTE * bte, U32 * pos, int nobte, wvStream * fd) { BTE entry; long currentpos; /* currentfc = wvConvertCPToFC(currentcp,clx); */ wvTrace (("currentfc is %x\n", currentfc)); if (currentfc == 0xffffffffL) { wvError (("Para Bounds not found !\n")); return (1); } if (0 != wvGetBTE_FromFC (&entry, currentfc, bte, pos, nobte)) { wvError (("BTE not found !\n")); return (1); } currentpos = wvStream_tell (fd); /*The pagenumber of the FKP is entry.pn */ wvTrace (("pn is %d\n", entry.pn)); wvGetPAPX_FKP (ver, fkp, entry.pn, fd); wvTrace (("last entry is %x\n", fkp->rgfc[fkp->crun])); while (fkp->rgfc[fkp->crun] <= currentfc) { if ((fkp->rgfc[fkp->crun] == currentfc) && (currentfc == pos[nobte])) break; /* Bad things man... */ wvError (("Alert, insane repeat \"insane\" paragraph structure," "making wild stab in the dark to attempt to continue\n")); wvReleasePAPX_FKP (fkp); entry.pn++; wvGetPAPX_FKP (ver, fkp, entry.pn, fd); } wvStream_goto (fd, currentpos); return (wvGetIntervalBounds (fcFirst, fcLim, currentfc, fkp->rgfc, fkp->crun + 1)); } int wvGetSimpleCharBounds (wvVersion ver, CHPX_FKP * fkp, U32 * fcFirst, U32 * fcLim, U32 currentcp, CLX * clx, BTE * bte, U32 * pos, int nobte, wvStream * fd) { U32 currentfc; BTE entry; long currentpos; currentfc = wvConvertCPToFC (currentcp, clx); if (currentfc == 0xffffffffL) { wvError (("Char Bounds not found !\n")); return (1); } wvTrace (("char fc is %x\n", currentfc)); if (0 != wvGetBTE_FromFC (&entry, currentfc, bte, pos, nobte)) { wvError (("BTE not found !\n")); return (1); } currentpos = wvStream_tell (fd); /*The pagenumber of the FKP is entry.pn */ wvTrace (("pn is %d\n", entry.pn)); wvGetCHPX_FKP (ver, fkp, entry.pn, fd); while (fkp->rgfc[fkp->crun] <= currentfc) { if ((fkp->rgfc[fkp->crun] == currentfc) && (currentfc == pos[nobte])) break; /* Bad things man... */ wvError (("Alert, insane repeat \"insane\" character run structure," "making wild stab in the dark to attempt to continue\n")); wvReleaseCHPX_FKP (fkp); entry.pn++; wvGetCHPX_FKP (ver, fkp, entry.pn, fd); } wvStream_goto (fd, currentpos); return (wvGetIntervalBounds (fcFirst, fcLim, currentfc, fkp->rgfc, fkp->crun + 1)); } int wvGetIntervalBounds (U32 * fcFirst, U32 * fcLim, U32 currentfc, U32 * rgfc, U32 nopos) { U32 i = 0; while (i < nopos - 1) { wvTrace ( ("searching...%x %x %x\n", currentfc, wvNormFC (rgfc[i], NULL), wvNormFC (rgfc[i + 1], NULL))); /* if ( (wvNormFC(rgfc[i],NULL) >= currentfc) && (currentfc <= wvNormFC(rgfc[i+1],NULL)) ) */ if ((currentfc >= wvNormFC (rgfc[i], NULL)) && (currentfc < wvNormFC (rgfc[i + 1], NULL))) { *fcFirst = wvNormFC (rgfc[i], NULL); *fcLim = wvNormFC (rgfc[i + 1], NULL); return (0); } i++; } *fcFirst = wvNormFC (rgfc[nopos - 2], NULL); *fcLim = wvNormFC (rgfc[nopos - 1], NULL); wvTrace (("I'd rather not see this happen at all :-)\n")); return (0); } /* it is necessary to use the CP of the character to search the plcfsed for the index i of the largest CP that is less than or equal to the character's CP. plcfsed.rgcp[i] is the CP of the first character of the section and plcfsed.rgcp[i+1] is the CP of the character following the section mark that terminates the section (call it cpLim). Then retrieve plcfsed.rgsed[i]. The FC in this SED gives the location where the SEPX for the section is stored. Then create a local SEP with default section properties. If the sed.fc != 0xFFFFFFFF, then the sprms within the SEPX that is stored at offset sed.fc must be applied to the local SEP. The process thus far has created a SEP that describes what the section properties of the section at the last full save. */ int wvGetSimpleSectionBounds (wvVersion ver, wvParseStruct * ps, SEP * sep, U32 * fcFirst, U32 * fcLim, U32 cp, CLX * clx, SED * sed, U32 * spiece, U32 * posSedx, U32 section_intervals, STSH * stsh, wvStream * fd) { U32 i = 0; int ret = 0; SEPX sepx; long pos = wvStream_tell (fd); U32 cpTest = 0, j, dummy; if (section_intervals == 0) { wvGetPieceBoundsFC (fcFirst, &dummy, &ps->clx, 0); wvGetPieceBoundsFC (&dummy, fcLim, &ps->clx, ps->clx.nopcd); return (0); } j = section_intervals - 1; if (cp == 0) j = 0; while (i < section_intervals) { wvTrace (("searching for sep %d %d\n", posSedx[i], cp)); if ((posSedx[i] <= cp) && (posSedx[i] > cpTest)) { cpTest = posSedx[i]; j = i; *spiece = wvGetPieceFromCP (cpTest, clx); } i++; } wvTrace (("found at %d %d\n", posSedx[j], posSedx[j + 1])); *fcFirst = wvConvertCPToFC (posSedx[j], clx); *fcLim = wvConvertCPToFC (posSedx[j + 1], clx); wvTrace (("found at %x %x\n", *fcFirst, *fcLim)); wvInitSEP (sep); if (sed[j].fcSepx != 0xffffffffL) { wvStream_goto (fd, wvNormFC (sed[j].fcSepx, NULL)); wvGetSEPX (ver, &sepx, fd); if (ver == WORD8) ret = wvAddSEPXFromBucket (sep, &sepx, stsh); else ret = wvAddSEPXFromBucket6 (sep, &sepx, stsh); wvReleaseSEPX (&sepx); } wvStream_goto (fd, pos); return (ret); } U32 wvGetBeginFC (wvParseStruct * ps, subdocument whichdoc) { U32 para_fcFirst = 0x400; switch (whichdoc) { case Dmain: default: para_fcFirst = wvConvertCPToFC (0, &ps->clx); break; case Dfootnote: para_fcFirst = wvConvertCPToFC (ps->fib.ccpText, &ps->clx); break; case Dheader: para_fcFirst = wvConvertCPToFC (ps->fib.ccpText + ps->fib.ccpFtn, &ps->clx); break; case Dannotation: para_fcFirst = wvConvertCPToFC (ps->fib.ccpText + ps->fib.ccpFtn + ps->fib.ccpHdr, &ps->clx); break; case Dendnote: para_fcFirst = wvConvertCPToFC (ps->fib.ccpText + ps->fib.ccpFtn + ps->fib.ccpHdr + ps->fib.ccpAtn, &ps->clx); break; case Dtextbox: para_fcFirst = wvConvertCPToFC (ps->fib.ccpText + ps->fib.ccpFtn + ps->fib.ccpHdr + ps->fib.ccpAtn + ps->fib.ccpEdn, &ps->clx); break; case Dheader_textbox: para_fcFirst = wvConvertCPToFC (ps->fib.ccpText + ps->fib.ccpFtn + ps->fib.ccpHdr + ps->fib.ccpAtn + ps->fib.ccpEdn + ps->fib.ccpTxbx, &ps->clx); break; } return (para_fcFirst); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/font.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000003731�11247156607�010241� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetFONTSIGNATURE (FONTSIGNATURE * fs, wvStream * fd) { int i; for (i = 0; i < 4; i++) fs->fsUsb[i] = read_32ubit (fd); for (i = 0; i < 2; i++) fs->fsCsb[i] = read_32ubit (fd); } void wvInitFONTSIGNATURE (FONTSIGNATURE * fs) { int i; for (i = 0; i < 4; i++) fs->fsUsb[i] = 0; for (i = 0; i < 2; i++) fs->fsCsb[i] = 0; } void wvGetPANOSE (PANOSE * item, wvStream * fd) { item->bFamilyType = read_8ubit (fd); item->bSerifStyle = read_8ubit (fd); item->bWeight = read_8ubit (fd); item->bProportion = read_8ubit (fd); item->bContrast = read_8ubit (fd); item->bStrokeVariation = read_8ubit (fd); item->bArmStyle = read_8ubit (fd); item->bLetterform = read_8ubit (fd); item->bMidline = read_8ubit (fd); item->bXHeight = read_8ubit (fd); } void wvInitPANOSE (PANOSE * item) { item->bFamilyType = 0; item->bSerifStyle = 0; item->bWeight = 0; item->bProportion = 0; item->bContrast = 0; item->bStrokeVariation = 0; item->bArmStyle = 0; item->bLetterform = 0; item->bMidline = 0; item->bXHeight = 0; } ���������������������������������������wv-1.2.9/lst.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000012543�11247156607�010076� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" /* Word writes out the rglst as the plcflst by writing out, first, a short integer containing the number of LST structures to be written. It then enumerates through the rglst, writing out each LSTF structure. It then enumerates through the rglst again, deciding, for each LST, whether it has one level (LSTF.fSimpleList) or nine levels (!LSTF.fSimpleList). It then writes the appropriate number of LVL structures */ int wvGetLST (LST ** lst, U16 * noofLST, U32 offset, U32 len, wvStream * fd) { U16 i, j; *lst = NULL; *noofLST = 0; if (len == 0) return (0); wvStream_goto (fd, offset); wvTrace (("offset is %x, len is %d\n", offset, len)); *noofLST = read_16ubit (fd); wvTrace (("noofLST is %d\n", *noofLST)); if (*noofLST == 0) return (0); *lst = (LST *) wvMalloc (*noofLST * sizeof (LST)); if (*lst == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *noofLST * sizeof (LST))); return (1); } for (i = 0; i < *noofLST; i++) { wvGetLSTF (&((*lst)[i].lstf), fd); if ((*lst)[i].lstf.fSimpleList) { (*lst)[i].lvl = (LVL *) wvMalloc (sizeof (LVL)); (*lst)[i].current_no = (U32 *) wvMalloc (sizeof (U32)); } else { (*lst)[i].lvl = (LVL *) wvMalloc (9 * sizeof (LVL)); (*lst)[i].current_no = (U32 *) wvMalloc (9 * sizeof (U32)); } } for (i = 0; i < *noofLST; i++) { wvTrace (("getting lvl, the id is %x\n", (*lst)[i].lstf.lsid)); if ((*lst)[i].lstf.fSimpleList) { wvTrace (("simple 1\n")); wvGetLVL (&((*lst)[i].lvl[0]), fd); (*lst)[i].current_no[0] = (*lst)[i].lvl[0].lvlf.iStartAt; } else { wvTrace (("complex 9\n")); for (j = 0; j < 9; j++) { wvGetLVL (&((*lst)[i].lvl[j]), fd); (*lst)[i].current_no[j] = (*lst)[i].lvl[j].lvlf.iStartAt; } } } return (0); } void wvGetLSTF (LSTF * item, wvStream * fd) { int i; U8 temp8; #ifdef PURIFY wvInitLSTF (item); #endif item->lsid = read_32ubit (fd); wvTrace (("lsid is %x\n", item->lsid)); item->tplc = read_32ubit (fd); for (i = 0; i < 9; i++) item->rgistd[i] = read_16ubit (fd); temp8 = read_8ubit (fd); item->fSimpleList = temp8 & 0x01; item->fRestartHdn = (temp8 & 0x02) >> 1; item->reserved1 = (temp8 & 0xFC) >> 2; item->reserved2 = read_8ubit (fd); } void wvInitLSTF (LSTF * item) { int i; item->lsid = 0; item->tplc = 0; for (i = 0; i < 9; i++) item->rgistd[i] = 0; item->fSimpleList = 0; item->fRestartHdn = 0; item->reserved1 = 0; item->reserved2 = 0; } int wvGetLSTF_PLCF (LSTF ** lstf, U32 ** pos, U32 * nolstf, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *lstf = NULL; *pos = NULL; *nolstf = 0; } else { *nolstf = (len - 4) / (cbLSTF + 4); *pos = (U32 *) wvMalloc ((*nolstf + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nolstf + 1) * sizeof (U32))); return (1); } *lstf = (LSTF *) wvMalloc (*nolstf * sizeof (LSTF)); if (*lstf == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nolstf * sizeof (LSTF))); wvFree (pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i <= *nolstf; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *nolstf; i++) wvGetLSTF (&((*lstf)[i]), fd); } return (0); } void wvReleaseLST (LST ** lst, U16 noofLST) { int i, j; if ((lst == NULL) || (*lst == NULL)) return; for (i = 0; i < noofLST; i++) { if ((*lst)[i].lstf.fSimpleList) wvReleaseLVL (&((*lst)[i].lvl[0])); else for (j = 0; j < 9; j++) wvReleaseLVL (&((*lst)[i].lvl[j])); wvFree ((*lst)[i].current_no); wvFree ((*lst)[i].lvl); } wvFree (*lst); } /* Using the LFO's List ID, search the rglst for the LST with that List ID. */ LST * wvSearchLST (U32 id, LST * lst, U16 noofLST) { int i; for (i = 0; i < noofLST; i++) { if (lst[i].lstf.lsid == id) { wvTrace (("found id %x\n", id)); return (&(lst[i])); } } wvWarning ("Couldn't find list id %x\n", id); return (NULL); } int wvInitLST (LST * lst) { U16 j; wvInitLSTF (&lst->lstf); lst->lvl = (LVL *) wvMalloc (9 * sizeof (LVL)); lst->current_no = (U32 *) wvMalloc (9 * sizeof (U32)); for (j = 0; j < 9; j++) { wvInitLVL (&(lst->lvl[j])); lst->current_no[j] = lst->lvl[j].lvlf.iStartAt; } return (0); } �������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/GNUmakefile.am�����������������������������������������������������������������������������0000664�0000764�0000764�00000004502�11265375410�011565� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������DIST_SUBDIRS = xml help wingdingfont patterns SUBDIRS = xml help wingdingfont patterns . DEFS = @DEFS@ -DVERSION=\"@VERSION@\" -DXMLCONFIG=\"$(pkgdatadir)/wvConfig.xml\" -DHTMLCONFIG=\"$(pkgdatadir)/wvHtml.xml\" -DWVDATADIR=\"$(datadir)/wv\" INCLUDES = -I. -I$(top_builddir) -I$(srcdir) CFLAGS = @CFLAGS@ @ANSI_CFLAGS@ CPPFLAGS = @CPPFLAGS@ @DEPS_CFLAGS@ @OPT_CFLAGS@ WVLIBS = @DEPS_LIBS@ @OPT_LIBS@ -lm wvhdrdir = $(includedir)/wv wvhdr_HEADERS = wv.h bin_SCRIPTS = wvCleanLatex wvHtml wvDocBook wvAbw wvMime wvPS wvDVI wvLatex wvPDF wvText wvWml bin_PROGRAMS = wvWare wvRTF wvConvert wvVersion wvSummary lib_LTLIBRARIES = libwv.la GETOPT = @LIBOBJS@ wvSummary_LDADD = libwv.la $(WVLIBS) $(GETOPT) wvWare_LDADD = libwv.la $(WVLIBS) $(GETOPT) wvRTF_LDADD = libwv.la $(WVLIBS) $(GETOPT) wvConvert_LDADD = libwv.la $(WVLIBS) $(GETOPT) wvVersion_LDADD = libwv.la $(WVLIBS) $(GETOPT) libwv_la_LIBADD = $(WVLIBS) libwv_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-dynamic -no-undefined libwv_la_SOURCES = \ winmmap.c \ list.c \ stylesheet.c \ sprm.c \ blip.c \ utf.c \ field.c \ decompresswmf.c \ dop.c \ roman.c \ fib.c \ frd.c \ atrd.c \ sed.c \ font.c \ ffn.c \ fld.c \ bkf.c \ dttm.c \ generic.c \ error.c \ unicode.c \ sttbf.c \ xst.c \ fspa.c \ fdoa.c \ lst.c \ lvl.c \ lfo.c \ filetime.c \ chp.c \ brc.c \ anld.c \ shd.c \ dcs.c \ numrm.c \ asumyi.c \ version.c \ lspd.c \ phe.c \ tlp.c \ tc.c \ tap.c \ pap.c \ bintree.c \ decode_simple.c \ pcd.c \ prm.c \ clx.c \ bte.c \ bx.c \ fkp.c \ text.c \ decode_complex.c \ wvTextEngine.c \ wvHtmlEngine.c \ wvConfig.c \ wvparse.c \ reasons.c \ sep.c \ anlv.c \ olst.c \ asumy.c \ bkd.c \ bkl.c \ dogrid.c \ doptypography.c \ pgd.c \ rs.c \ rr.c \ tbd.c \ ftxbxs.c \ wkb.c \ picf.c \ crc32.c \ md5.c \ rc4.c \ decrypt97.c \ decrypt95.c \ twips.c \ table.c \ symbol.c \ mtextra.c \ fopt.c \ fbse.c \ escher.c \ basename.c \ isbidi.c \ plcf.c \ support.c \ laolareplace.c OTHERHEADERS = \ bintree.h \ crc32.h \ getopt.h \ hdr.h \ md5.h \ plan9.h \ rc4.h \ roman.h \ utf.h \ winmmap.h \ wvinternal.h OTHERSCRIPTS = wvMime pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = wv-1.0.pc EXTRA_DIST = wv-1.0.pc.in autogen.sh $(OTHERHEADERS) $(OTHERSCRIPTS) ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/mkinstalldirs������������������������������������������������������������������������������0000775�0000764�0000764�00000001136�11247156607�011732� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman <friedman@prep.ai.mit.edu> # Created: 1993-05-16 # Public domain errstatus=0 for file do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d in ${1+"$@"} ; do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" 1>&2 mkdir "$pathcomp" || errstatus=$? fi pathcomp="$pathcomp/" done done exit $errstatus # mkinstalldirs ends here ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/strcasecmp.c�������������������������������������������������������������������������������0000664�0000764�0000764�00000002310�11247156607�011427� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #if !defined(__GLIBC__) || (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 2) #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <sys/types.h> #include <ctype.h> #include <string.h> int strcasecmp (const char *s1, const char *s2) { int i; if (strlen (s1) != strlen (s1)) return (1); for (i = 0; i < strlen (s1); i++) if (toupper (s1[i]) != toupper (s2[i])) return (1); return (0); } #endif ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/GNUmakefile.in�����������������������������������������������������������������������������0000664�0000764�0000764�00000133411�11454157061�011600� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# GNUmakefile.in generated by automake 1.11.1 from GNUmakefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 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@ 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 = wvWare$(EXEEXT) wvRTF$(EXEEXT) wvConvert$(EXEEXT) \ wvVersion$(EXEEXT) wvSummary$(EXEEXT) subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/GNUmakefile.am \ $(srcdir)/GNUmakefile.in $(srcdir)/config.h.in \ $(srcdir)/version.c.in $(srcdir)/wv-1.0.pc.in \ $(srcdir)/wvAbw.in $(srcdir)/wvCleanLatex.in \ $(srcdir)/wvDVI.in $(srcdir)/wvDocBook.in $(srcdir)/wvHtml.in \ $(srcdir)/wvLatex.in $(srcdir)/wvPDF.in $(srcdir)/wvPS.in \ $(srcdir)/wvText.in $(srcdir)/wvWml.in $(top_srcdir)/configure \ $(wvhdr_HEADERS) COPYING INSTALL NEWS config.guess config.sub \ depcomp getopt.c getopt1.c install-sh ltmain.sh missing \ mkinstalldirs strcasecmp.c ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = wvAbw wvDVI wvPS wvPDF wvHtml wvDocBook wvLatex \ wvCleanLatex wvText wvWml wv-1.0.pc version.c CONFIG_CLEAN_VPATH_FILES = 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__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \ "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)" \ "$(DESTDIR)$(wvhdrdir)" LTLIBRARIES = $(lib_LTLIBRARIES) am__DEPENDENCIES_1 = libwv_la_DEPENDENCIES = $(am__DEPENDENCIES_1) am_libwv_la_OBJECTS = winmmap.lo list.lo stylesheet.lo sprm.lo blip.lo \ utf.lo field.lo decompresswmf.lo dop.lo roman.lo fib.lo frd.lo \ atrd.lo sed.lo font.lo ffn.lo fld.lo bkf.lo dttm.lo generic.lo \ error.lo unicode.lo sttbf.lo xst.lo fspa.lo fdoa.lo lst.lo \ lvl.lo lfo.lo filetime.lo chp.lo brc.lo anld.lo shd.lo dcs.lo \ numrm.lo asumyi.lo version.lo lspd.lo phe.lo tlp.lo tc.lo \ tap.lo pap.lo bintree.lo decode_simple.lo pcd.lo prm.lo clx.lo \ bte.lo bx.lo fkp.lo text.lo decode_complex.lo wvTextEngine.lo \ wvHtmlEngine.lo wvConfig.lo wvparse.lo reasons.lo sep.lo \ anlv.lo olst.lo asumy.lo bkd.lo bkl.lo dogrid.lo \ doptypography.lo pgd.lo rs.lo rr.lo tbd.lo ftxbxs.lo wkb.lo \ picf.lo crc32.lo md5.lo rc4.lo decrypt97.lo decrypt95.lo \ twips.lo table.lo symbol.lo mtextra.lo fopt.lo fbse.lo \ escher.lo basename.lo isbidi.lo plcf.lo support.lo \ laolareplace.lo libwv_la_OBJECTS = $(am_libwv_la_OBJECTS) libwv_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(libwv_la_LDFLAGS) \ $(LDFLAGS) -o $@ PROGRAMS = $(bin_PROGRAMS) wvConvert_SOURCES = wvConvert.c wvConvert_OBJECTS = wvConvert.$(OBJEXT) wvConvert_DEPENDENCIES = libwv.la $(am__DEPENDENCIES_1) $(GETOPT) wvRTF_SOURCES = wvRTF.c wvRTF_OBJECTS = wvRTF.$(OBJEXT) wvRTF_DEPENDENCIES = libwv.la $(am__DEPENDENCIES_1) $(GETOPT) wvSummary_SOURCES = wvSummary.c wvSummary_OBJECTS = wvSummary.$(OBJEXT) wvSummary_DEPENDENCIES = libwv.la $(am__DEPENDENCIES_1) $(GETOPT) wvVersion_SOURCES = wvVersion.c wvVersion_OBJECTS = wvVersion.$(OBJEXT) wvVersion_DEPENDENCIES = libwv.la $(am__DEPENDENCIES_1) $(GETOPT) wvWare_SOURCES = wvWare.c wvWare_OBJECTS = wvWare.$(OBJEXT) wvWare_DEPENDENCIES = libwv.la $(am__DEPENDENCIES_1) $(GETOPT) SCRIPTS = $(bin_SCRIPTS) DEFAULT_INCLUDES = -I.@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ $(LDFLAGS) -o $@ SOURCES = $(libwv_la_SOURCES) wvConvert.c wvRTF.c wvSummary.c \ wvVersion.c wvWare.c DIST_SOURCES = $(libwv_la_SOURCES) wvConvert.c wvRTF.c wvSummary.c \ wvVersion.c wvWare.c RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive DATA = $(pkgconfig_DATA) HEADERS = $(wvhdr_HEADERS) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d "$(distdir)" \ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr "$(distdir)"; }; } am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ANSI_CFLAGS = @ANSI_CFLAGS@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ @ANSI_CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ @DEPS_CFLAGS@ @OPT_CFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ -DVERSION=\"@VERSION@\" -DXMLCONFIG=\"$(pkgdatadir)/wvConfig.xml\" -DHTMLCONFIG=\"$(pkgdatadir)/wvHtml.xml\" -DWVDATADIR=\"$(datadir)/wv\" DEPDIR = @DEPDIR@ DEPS_CFLAGS = @DEPS_CFLAGS@ DEPS_LIBS = @DEPS_LIBS@ DEPS_PKGS = @DEPS_PKGS@ DLLWRAP = @DLLWRAP@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ HAVE_LIBXML2 = @HAVE_LIBXML2@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBWMF_CONFIG = @LIBWMF_CONFIG@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPT_CFLAGS = @OPT_CFLAGS@ OPT_LIBS = @OPT_LIBS@ 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@ WV_BINARY_AGE = @WV_BINARY_AGE@ WV_INTERFACE_AGE = @WV_INTERFACE_AGE@ WV_MAJOR_VERSION = @WV_MAJOR_VERSION@ WV_MICRO_VERSION = @WV_MICRO_VERSION@ WV_MINOR_VERSION = @WV_MINOR_VERSION@ WV_VERSION = @WV_VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_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@ lt_ECHO = @lt_ECHO@ 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@ DIST_SUBDIRS = xml help wingdingfont patterns SUBDIRS = xml help wingdingfont patterns . INCLUDES = -I. -I$(top_builddir) -I$(srcdir) WVLIBS = @DEPS_LIBS@ @OPT_LIBS@ -lm wvhdrdir = $(includedir)/wv wvhdr_HEADERS = wv.h bin_SCRIPTS = wvCleanLatex wvHtml wvDocBook wvAbw wvMime wvPS wvDVI wvLatex wvPDF wvText wvWml lib_LTLIBRARIES = libwv.la GETOPT = @LIBOBJS@ wvSummary_LDADD = libwv.la $(WVLIBS) $(GETOPT) wvWare_LDADD = libwv.la $(WVLIBS) $(GETOPT) wvRTF_LDADD = libwv.la $(WVLIBS) $(GETOPT) wvConvert_LDADD = libwv.la $(WVLIBS) $(GETOPT) wvVersion_LDADD = libwv.la $(WVLIBS) $(GETOPT) libwv_la_LIBADD = $(WVLIBS) libwv_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) -release $(LT_RELEASE) -export-dynamic -no-undefined libwv_la_SOURCES = \ winmmap.c \ list.c \ stylesheet.c \ sprm.c \ blip.c \ utf.c \ field.c \ decompresswmf.c \ dop.c \ roman.c \ fib.c \ frd.c \ atrd.c \ sed.c \ font.c \ ffn.c \ fld.c \ bkf.c \ dttm.c \ generic.c \ error.c \ unicode.c \ sttbf.c \ xst.c \ fspa.c \ fdoa.c \ lst.c \ lvl.c \ lfo.c \ filetime.c \ chp.c \ brc.c \ anld.c \ shd.c \ dcs.c \ numrm.c \ asumyi.c \ version.c \ lspd.c \ phe.c \ tlp.c \ tc.c \ tap.c \ pap.c \ bintree.c \ decode_simple.c \ pcd.c \ prm.c \ clx.c \ bte.c \ bx.c \ fkp.c \ text.c \ decode_complex.c \ wvTextEngine.c \ wvHtmlEngine.c \ wvConfig.c \ wvparse.c \ reasons.c \ sep.c \ anlv.c \ olst.c \ asumy.c \ bkd.c \ bkl.c \ dogrid.c \ doptypography.c \ pgd.c \ rs.c \ rr.c \ tbd.c \ ftxbxs.c \ wkb.c \ picf.c \ crc32.c \ md5.c \ rc4.c \ decrypt97.c \ decrypt95.c \ twips.c \ table.c \ symbol.c \ mtextra.c \ fopt.c \ fbse.c \ escher.c \ basename.c \ isbidi.c \ plcf.c \ support.c \ laolareplace.c OTHERHEADERS = \ bintree.h \ crc32.h \ getopt.h \ hdr.h \ md5.h \ plan9.h \ rc4.h \ roman.h \ utf.h \ winmmap.h \ wvinternal.h OTHERSCRIPTS = wvMime pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = wv-1.0.pc EXTRA_DIST = wv-1.0.pc.in autogen.sh $(OTHERHEADERS) $(OTHERSCRIPTS) all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: .SUFFIXES: .c .lo .o .obj am--refresh: @: $(srcdir)/GNUmakefile.in: $(srcdir)/GNUmakefile.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 GNUmakefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign GNUmakefile .PRECIOUS: GNUmakefile GNUmakefile: $(srcdir)/GNUmakefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 wvAbw: $(top_builddir)/config.status $(srcdir)/wvAbw.in cd $(top_builddir) && $(SHELL) ./config.status $@ wvDVI: $(top_builddir)/config.status $(srcdir)/wvDVI.in cd $(top_builddir) && $(SHELL) ./config.status $@ wvPS: $(top_builddir)/config.status $(srcdir)/wvPS.in cd $(top_builddir) && $(SHELL) ./config.status $@ wvPDF: $(top_builddir)/config.status $(srcdir)/wvPDF.in cd $(top_builddir) && $(SHELL) ./config.status $@ wvHtml: $(top_builddir)/config.status $(srcdir)/wvHtml.in cd $(top_builddir) && $(SHELL) ./config.status $@ wvDocBook: $(top_builddir)/config.status $(srcdir)/wvDocBook.in cd $(top_builddir) && $(SHELL) ./config.status $@ wvLatex: $(top_builddir)/config.status $(srcdir)/wvLatex.in cd $(top_builddir) && $(SHELL) ./config.status $@ wvCleanLatex: $(top_builddir)/config.status $(srcdir)/wvCleanLatex.in cd $(top_builddir) && $(SHELL) ./config.status $@ wvText: $(top_builddir)/config.status $(srcdir)/wvText.in cd $(top_builddir) && $(SHELL) ./config.status $@ wvWml: $(top_builddir)/config.status $(srcdir)/wvWml.in cd $(top_builddir) && $(SHELL) ./config.status $@ wv-1.0.pc: $(top_builddir)/config.status $(srcdir)/wv-1.0.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ version.c: $(top_builddir)/config.status $(srcdir)/version.c.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ list2=; for p in $$list; do \ if test -f $$p; then \ list2="$$list2 $$p"; \ else :; fi; \ done; \ test -z "$$list2" || { \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ } uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ for p in $$list; do \ $(am__strip_dir) \ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done libwv.la: $(libwv_la_OBJECTS) $(libwv_la_DEPENDENCIES) $(libwv_la_LINK) -rpath $(libdir) $(libwv_la_OBJECTS) $(libwv_la_LIBADD) $(LIBS) install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ 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 wvConvert$(EXEEXT): $(wvConvert_OBJECTS) $(wvConvert_DEPENDENCIES) @rm -f wvConvert$(EXEEXT) $(LINK) $(wvConvert_OBJECTS) $(wvConvert_LDADD) $(LIBS) wvRTF$(EXEEXT): $(wvRTF_OBJECTS) $(wvRTF_DEPENDENCIES) @rm -f wvRTF$(EXEEXT) $(LINK) $(wvRTF_OBJECTS) $(wvRTF_LDADD) $(LIBS) wvSummary$(EXEEXT): $(wvSummary_OBJECTS) $(wvSummary_DEPENDENCIES) @rm -f wvSummary$(EXEEXT) $(LINK) $(wvSummary_OBJECTS) $(wvSummary_LDADD) $(LIBS) wvVersion$(EXEEXT): $(wvVersion_OBJECTS) $(wvVersion_DEPENDENCIES) @rm -f wvVersion$(EXEEXT) $(LINK) $(wvVersion_OBJECTS) $(wvVersion_LDADD) $(LIBS) wvWare$(EXEEXT): $(wvWare_OBJECTS) $(wvWare_DEPENDENCIES) @rm -f wvWare$(EXEEXT) $(LINK) $(wvWare_OBJECTS) $(wvWare_LDADD) $(LIBS) install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \ 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-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 's,.*/,,;$(transform)'`; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getopt.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/getopt1.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/strcasecmp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/anld.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/anlv.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asumy.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asumyi.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atrd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/basename.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bintree.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bkd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bkf.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bkl.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/blip.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/brc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bte.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bx.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/chp.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clx.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/crc32.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dcs.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decode_complex.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decode_simple.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decompresswmf.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decrypt95.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decrypt97.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dogrid.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dop.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/doptypography.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dttm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/escher.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fbse.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fdoa.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ffn.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fib.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/field.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filetime.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fkp.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fld.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/font.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fopt.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fspa.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ftxbxs.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/generic.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isbidi.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/laolareplace.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lfo.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lspd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lst.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lvl.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/md5.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mtextra.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/numrm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/olst.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pap.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pcd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pgd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/phe.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/picf.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plcf.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rc4.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/reasons.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/roman.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rr.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rs.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sed.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sep.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sprm.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sttbf.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stylesheet.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/support.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symbol.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/table.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tap.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tbd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tc.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/text.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tlp.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/twips.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unicode.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utf.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/winmmap.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wkb.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wvConfig.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wvConvert.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wvHtmlEngine.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wvRTF.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wvSummary.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wvTextEngine.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wvVersion.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wvWare.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wvparse.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xst.Plo@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs distclean-libtool: -rm -f libtool config.lt install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files install-wvhdrHEADERS: $(wvhdr_HEADERS) @$(NORMAL_INSTALL) test -z "$(wvhdrdir)" || $(MKDIR_P) "$(DESTDIR)$(wvhdrdir)" @list='$(wvhdr_HEADERS)'; test -n "$(wvhdrdir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(wvhdrdir)'"; \ $(INSTALL_HEADER) $$files "$(DESTDIR)$(wvhdrdir)" || exit $$?; \ done uninstall-wvhdrHEADERS: @$(NORMAL_UNINSTALL) @list='$(wvhdr_HEADERS)'; test -n "$(wvhdrdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(wvhdrdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(wvhdrdir)" && rm -f $$files # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__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: @$(am__cd) '$(distuninstallcheck_dir)' \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: GNUmakefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(DATA) \ $(HEADERS) config.h install-binPROGRAMS: install-libLTLIBRARIES installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(wvhdrdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \ clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(DEPDIR) ./$(DEPDIR) -rm -f GNUmakefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-hdr distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-pkgconfigDATA install-wvhdrHEADERS install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-binPROGRAMS install-binSCRIPTS \ install-libLTLIBRARIES install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -rf $(DEPDIR) ./$(DEPDIR) -rm -f GNUmakefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-compile mostlyclean-generic \ mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \ uninstall-libLTLIBRARIES uninstall-pkgconfigDATA \ uninstall-wvhdrHEADERS .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-binPROGRAMS \ clean-generic clean-libLTLIBRARIES clean-libtool ctags \ ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-lzma \ dist-shar dist-tarZ dist-xz dist-zip 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-binSCRIPTS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-libLTLIBRARIES \ install-man install-pdf install-pdf-am install-pkgconfigDATA \ install-ps install-ps-am install-strip install-wvhdrHEADERS \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-binPROGRAMS uninstall-binSCRIPTS \ uninstall-libLTLIBRARIES uninstall-pkgconfigDATA \ uninstall-wvhdrHEADERS # 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: �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/utf.h��������������������������������������������������������������������������������������0000664�0000764�0000764�00000000471�11247156606�010073� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* the our_* routines are implementations for the corresponding library routines. for a while, i tried to actually name them wctomb etc but stopped that after i found a system which made wchar_t an unsigned char. */ int our_wctomb (char *s, U16 wc); int our_mbtowc (U16 * p, char *s, unsigned n); �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wv-1.0.pc.in�������������������������������������������������������������������������������0000664�0000764�0000764�00000000420�11247156606�010777� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������prefix=@prefix@ exec_prefix=${prefix} libdir=@libdir@ includedir=${prefix}/include Name: wvWare Description: Word Document Filter library and utilities Version: @VERSION@ Requires: @DEPS_PKGS@ Libs: -L${libdir} -lwv @OPT_LIBS@ -lm Cflags: -I${includedir}/wv @OPT_CFLAGS@ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/phe.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000006744�11247156607�010056� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetPHE6 (PHE * dest, U8 * page, U16 * pos) { U8 temp8; #ifdef PURIFY wvInitPHE (dest, 0); #endif temp8 = bread_8ubit (&(page[*pos]), pos); dest->var1.fSpare = temp8 & 0x01; dest->var1.fUnk = (temp8 & 0x02) >> 1; dest->var1.fDiffLines = (temp8 & 0x04) >> 2; dest->var1.reserved1 = (temp8 & 0xf8) >> 3; dest->var1.clMac = bread_8ubit (&(page[*pos]), pos); dest->var1.dxaCol = (S16) bread_16ubit (&(page[*pos]), pos); dest->var1.dymHeight = (S32) bread_16ubit (&(page[*pos]), pos); } void wvGetPHE (PHE * dest, int which, U8 * page, U16 * pos) { U8 temp8; U32 temp32; #ifdef PURIFY wvInitPHE (dest, which); #endif if (which) { temp32 = bread_32ubit (&(page[*pos]), pos); dest->var2.fSpare = temp32 & 0x0001; dest->var2.fUnk = (temp32 & 0x0002) >> 1; dest->var2.dcpTtpNext = (temp32 & 0xfffffffc) >> 2; dest->var2.dxaCol = (S32) bread_32ubit (&(page[*pos]), pos); dest->var2.dymHeight = (S32) bread_32ubit (&(page[*pos]), pos); } else { temp8 = bread_8ubit (&(page[*pos]), pos); dest->var1.fSpare = temp8 & 0x01; dest->var1.fUnk = (temp8 & 0x02) >> 1; dest->var1.fDiffLines = (temp8 & 0x04) >> 2; dest->var1.reserved1 = (temp8 & 0xf8) >> 3; dest->var1.clMac = bread_8ubit (&(page[*pos]), pos); dest->var1.reserved2 = bread_16ubit (&(page[*pos]), pos); dest->var1.dxaCol = (S32) bread_32ubit (&(page[*pos]), pos); dest->var1.dymHeight = (S32) bread_32ubit (&(page[*pos]), pos); } } void wvCopyPHE (PHE * dest, PHE * src, int which) { if (which) { dest->var2.fSpare = src->var2.fSpare; dest->var2.fUnk = src->var2.fUnk; dest->var2.dcpTtpNext = src->var2.dcpTtpNext; dest->var2.dxaCol = src->var2.dxaCol; dest->var2.dymHeight = src->var2.dymHeight; } else { dest->var1.fSpare = src->var1.fSpare; dest->var1.fUnk = src->var1.fUnk; dest->var1.fDiffLines = src->var1.fDiffLines; dest->var1.reserved1 = src->var1.reserved1; dest->var1.clMac = src->var1.clMac; dest->var1.reserved2 = src->var1.reserved2; dest->var1.dxaCol = src->var1.dxaCol; dest->var1.dymHeight = src->var1.dymHeight; } } void wvInitPHE (PHE * item, int which) { if (which) { item->var2.fSpare = 0; item->var2.fUnk = 0; item->var2.dcpTtpNext = 0; item->var2.dxaCol = 0; item->var2.dymHeight = 0; } else { item->var1.fSpare = 0; item->var1.fUnk = 0; item->var1.fDiffLines = 0; item->var1.reserved1 = 0; item->var1.clMac = 0; item->var1.reserved2 = 0; item->var1.dxaCol = 0; item->var1.dymHeight = 0; } } ����������������������������wv-1.2.9/lfo.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000013140�11247156607�010046� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" /* Word writes out the pllfo first by writing out a PL of LFO structures. It then enumerates through each LFO to figure out how many LFOLVLs each one has (LFO.clfolvl), and writes out, in order, each LFOLVL structure followed by its corresponding LVL structure (if LFOLVL.fFormatting is set). */ static int multiplication_will_overflow(U32 a, U32 b) { if((a > 0) && (b > 0) && (G_MAXUINT / a) >= b) { return 0; } return 1; } int wvGetLFO_records (LFO ** lfo, LFOLVL ** lfolvl, LVL ** lvl, U32 * nolfo, U32 * nooflvl, U32 offset, U32 len, wvStream * fd) { U32 i; U32 end; *nooflvl = 0; wvTrace (("lfo begins at %x len %d\n", offset, len)); wvStream_offset_from_end (fd, 0); end = wvStream_tell (fd); wvGetLFO_PLF (lfo, nolfo, offset, len, fd); for (i = 0; i < *nolfo; i++) *nooflvl += (*lfo)[i].clfolvl; wvTrace (("pos %x %d\n", wvStream_tell (fd), *nooflvl)); wvTrace (("nolfo is %d nooflvl is %d\n", *nolfo, *nooflvl)); if ((*nooflvl == 0) || multiplication_will_overflow(sizeof (LFOLVL), *nooflvl) || multiplication_will_overflow(sizeof (LVL), *nooflvl)) { *lfolvl = NULL; *lvl = NULL; return (0); } *lfolvl = (LFOLVL *) wvMalloc (sizeof (LFOLVL) * *nooflvl); *lvl = (LVL *) wvMalloc (sizeof (LVL) * *nooflvl); i = 0; while (i < *nooflvl) { wvInitLVL (&((*lvl)[i])); wvTrace (("%d pos now %x %d\n", i, wvStream_tell (fd), *nooflvl)); if (wvStream_tell (fd) == end) { wvWarning ("LFOLVL off the end of the file, continuing anyway\n"); i++; continue; } wvGetLFOLVL (&((*lfolvl)[i]), fd); #if 0 if (wvInvalidLFOLVL (&((*lfolvl)[i]))) continue; #endif if ((*lfolvl)[i].fFormatting) { wvTrace (("formatting set\n")); wvGetLVL (&((*lvl)[i]), fd); } i++; } return (0); } int wvGetLFO_PLF (LFO ** lfo, U32 * nolfo, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *lfo = NULL; *nolfo = 0; } else { wvStream_goto (fd, offset); *nolfo = read_32ubit (fd); wvTrace (("%d\n", *nolfo)); /* check for integer overflow */ if (multiplication_will_overflow(*nolfo, sizeof(LFO))) { wvError (("Malicious document!\n")); *nolfo = 0; return (1); } else { *lfo = (LFO *) wvMalloc (*nolfo * sizeof(LFO)); if (*lfo == NULL) { wvError (("NO MEM 1, failed to alloc %d bytes\n", *nolfo * sizeof (LFO))); return (1); } for (i = 0; i < *nolfo; i++) wvGetLFO (&((*lfo)[i]), fd); } } return (0); } void wvGetLFO (LFO * item, wvStream * fd) { int i; item->lsid = read_32ubit (fd); item->reserved1 = read_32ubit (fd); item->reserved2 = read_32ubit (fd); item->clfolvl = read_8ubit (fd); for (i = 0; i < 3; i++) item->reserved3[i] = read_8ubit (fd); } void wvInitLFO (LFO * item) { int i; item->lsid = 0; item->reserved1 = 0; item->reserved2 = 0; item->clfolvl = 0; for (i = 0; i < 3; i++) item->reserved3[i] = 0; } void wvGetLFOLVL (LFOLVL * item, wvStream * fd) { U8 temp8; #ifdef PURIFY wvInitLFOLVL (item); #endif item->iStartAt = read_32ubit (fd); while (wvInvalidLFOLVL (item)) { wvTrace (("pos %x\n", wvStream_tell (fd))); item->iStartAt = read_32ubit (fd); } temp8 = read_8ubit (fd); item->ilvl = temp8 & 0x0F; item->fStartAt = (temp8 & 0x10) >> 4; item->fFormatting = (temp8 & 0x20) >> 5; item->reserved1 = (temp8 & 0xC0) >> 6; item->reserved2 = read_8ubit (fd); item->reserved3 = read_8ubit (fd); item->reserved4 = read_8ubit (fd); } void wvInitLFOLVL (LFOLVL * item) { item->iStartAt = 0; item->ilvl = 0; item->fStartAt = 0; item->fFormatting = 0; item->reserved1 = 0; item->reserved2 = 0; item->reserved3 = 0; item->reserved4 = 0; } int wvInvalidLFOLVL (LFOLVL * item) { if (item->iStartAt != 0xffffffff) return (0); #if 0 /* a bloody russian doc, from Sergey V. Udaltsov <svu@pop.convey.ru> caused the removal of this section */ if (item->ilvl != 0xf) return (0); if (item->fStartAt != 1) return (0); if (item->fFormatting != 1) return (0); if (item->reserved1 != 0x3) return (0); if (item->reserved2 != 0xff) return (0); if (item->reserved3 != 0xff) return (0); if (item->reserved4 != 0xff) return (0); #endif wvWarning (("invalid list entry, trucking along happily anyway\n")); return (1); } int wvReleaseLFO_records (LFO ** lfo, LFOLVL ** lfolvl, LVL ** lvl, U32 nooflvl) { U32 i; wvTrace (("releasing %d lvl records\n", nooflvl)); wvFree (*lfo); wvFree (*lfolvl); for (i = 0; i < nooflvl; i++) wvReleaseLVL (&((*lvl)[i])); wvFree (*lvl); return (0); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/NEWS���������������������������������������������������������������������������������������0000664�0000764�0000764�00000002631�11454157047�007623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������1.2.9 - Restore binary compatibility again, 1.2.8 broke it (Fridrich Strba) 1.2.8 - Fix bug 10025: Segfault trying to parse certain word documents (Jean Brefort) - Fix bug 12746: Tables not imported from MS Word documents (Martin Sevior) - Fix Bug 11433 wvWare hangs on this seemingly blank word doc (Martin Sevior) - Buildfix: Remove unused LINK_WIN32_DLL check (Fridrich Strba) - Buildfix: link with -no-undefined (Fridrich Strba) 1.2.7 - Bug 12353: Regression: newlines not imported anymore (Robert Wilhelm) - Cross building improvements (Fridrich Strba) - Fix build issue: 'libtool: link: `-::-' is not valid version information' (Jon Kare Hellan) - Bug 12353: configure.ac in 1.2.6 release says 1.2.5 1.2.6 Important: - Restore the soversion major to the value of 1.2.4 because ABI didn't change. Fixes: - Bug 11547: unportable test construct. (Thomas Klausner) - Fix typos in wvWare's help message. - Fix a few mis-matched wvMalloc/malloc/wvFree/free combinations. Use glib to allocate and free all of our memory. - Bug 9355: a NULL pointer was causing a crash. - Bug 9705: Default font alignment in paragraph was incorrect. - Bug 10125: Crash in the PAP handling. (Hubert Figuiere) - Fix a memory leak in wvRTF. (Hubert Figuiere) - Bug 12034: Fix a huge performance issue while loading images. (Robert Wilhelm) - Fix invalid writes in wvConfig.c (Hubert Figuiere) 1.2.5 �������������������������������������������������������������������������������������������������������wv-1.2.9/error.c������������������������������������������������������������������������������������0000664�0000764�0000764�00000003667�11247156607�010434� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <stdarg.h> #include "wv.h" #ifdef DEBUG #define wvwarn NULL /* stderr */ #define wvtrace NULL /* stderr */ #define wverror NULL /* stderr */ #else #define wvwarn NULL #define wvtrace NULL #define wverror NULL #endif void wvInitError (void) { wvError (("EXTREME WARNING: using deprecated API\n")); } char * wvFmtMsg (char *fmt, ...) { static char mybuf[1024]; #if 0 mybuf[0] = 0; #endif va_list argp; va_start (argp, fmt); vsprintf (mybuf, fmt, argp); va_end (argp); return mybuf; } void wvRealError (char *file, int line, char *msg) { if (wverror == NULL) return; fprintf (wverror, "Diagnostic: (%s:%d) %s ", file, line, msg); fflush (wverror); } void wvWarning (char *fmt, ...) { va_list argp; if (wvwarn == NULL) return; fprintf (wvwarn, "Trace: "); va_start (argp, fmt); vfprintf (wvwarn, fmt, argp); va_end (argp); fflush (wvwarn); } void wvRealTrace (char *file, int line, char *msg) { if (wvtrace == NULL) return; fprintf (wvtrace, "Trace: (%s:%d) %s ", file, line, msg); fflush (wvtrace); } �������������������������������������������������������������������������wv-1.2.9/tlp.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000004440�11247156606�010067� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" #include "wvinternal.h" void wvGetTLP_internal (TLP * dest, wvStream * infd, U8 * pointer) { U16 temp16; dest->itl = dread_16ubit (infd, &pointer); temp16 = dread_16ubit (infd, &pointer); dest->fBorders = temp16 & 0x0001; dest->fShading = (temp16 & 0x0002) >> 1; dest->fFont = (temp16 & 0x0004) >> 2; dest->fColor = (temp16 & 0x0008) >> 3; dest->fBestFit = (temp16 & 0x0010) >> 4; dest->fHdrRows = (temp16 & 0x0020) >> 5; dest->fLastRow = (temp16 & 0x0040) >> 6; dest->fHdrCols = (temp16 & 0x0080) >> 7; dest->fLastCol = (temp16 & 0x0100) >> 8; } void wvGetTLP (TLP * item, wvStream * infd) { wvGetTLP_internal (item, infd, NULL); } void wvGetTLPFromBucket (TLP * item, U8 * pointer) { wvGetTLP_internal (item, NULL, pointer); } void wvCopyTLP (TLP * dest, TLP * src) { dest->itl = src->itl; dest->fBorders = src->fBorders; dest->fShading = src->fShading; dest->fFont = src->fFont; dest->fColor = src->fColor; dest->fBestFit = src->fBestFit; dest->fHdrRows = src->fHdrRows; dest->fLastRow = src->fLastRow; dest->fHdrCols = src->fHdrCols; dest->fLastCol = src->fLastCol; } void wvInitTLP (TLP * item) { item->itl = 0; item->fBorders = 0; item->fShading = 0; item->fFont = 0; item->fColor = 0; item->fBestFit = 0; item->fHdrRows = 0; item->fLastRow = 0; item->fHdrCols = 0; item->fLastCol = 0; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/fld.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000016477�11247156606�010052� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" /* flt value live/dead field type 1 unknown keyword 2 live possible bookmark (syntax matches bookmark name) 3 live bookmark reference 4 dead index entry 5 live footnote reference 6 live Set command (for Print Merge) 7 live If command (for Print Merge) 8 live create index 9 dead table of contents entry 10 live Style reference 11 dead document reference 12 live sequence mark 13 live create table-of-contents 14 live quote Info variable 15 live quote Title variable 16 live quote Subject variable 17 live quote Author variable 18 live quote Keywords variable 19 live quote Comments variable 20 live quote Last Revised By variable 21 live quote Creation Date variable 22 live quote Revision Date variable 23 live quote Print Date variable 24 live quote Revision Number variable 25 live quote Edit Time variable 26 live quote Number of Pages variable 27 live quote Number of Words variable 28 live quote Number of Characters variable 29 live quote File Name variable 30 live quote Document Template Name variable 31 live quote Current Date variable 32 live quote Current Time variable 33 live quote Current Page variable 34 live evaluate expression 35 live insert literal text 36 live Include command (Print Merge) 37 live page reference 38 live Ask command (Print Merge) 39 live Fill-in command to display prompt (Print Merge) 40 live Data command (Print Merge) 41 live Next command (Print Merge) 42 live NextIf command (Print Merge) 43 live SkipIf (Print Merge) 44 live inserts number of current Print Merge record 45 live DDE reference 46 live DDE automatic reference 47 live Inserts Glossary Entry 48 live sends characters to printer without translation 49 live Formula definition 50 live Goto Button 51 live Macro Button 52 live insert auto numbering field in outline format 53 live insert auto numbering field in legal format 54 live insert auto numbering field in Arabic number format 55 live reads a TIFF file 56 live Link 57 live Symbol 58 live Embedded Object 59 live Merge fields 60 live User Name 61 live User Initial 62 live User Address 63 live Bar code 64 live Document variable 65 live Section 66 live Section pages 67 live Include Picture 68 live Include Text 69 live File Size 70 live Form Text Box 71 live Form Check Box 72 live Note Reference 73 live Create Table of Authorities 74 dead Mark Table of Authorities Entry 75 live Merge record sequence number 76 either Macro 77 dead Private 78 live Insert Database 79 live Autotext 80 live Compare two values 81 live Plug-in module private 82 live Subscriber 83 live Form List Box 84 live Advance 85 live Document property 86 live 87 live OCX 88 live Hyperlink 89 live AutoTextList 90 live List element 91 live HTML control Since dead fields have no entry in the plcffld, the string in the field code must be used to determine the field type. All versions of Word '97 use English field code strings, except French, German, and Spanish versions of Word. The strings for all languages for all possible dead fields are listed below. flt English French German Spanish field type value string string string string 4 XE EX XE E index entry 9 TC TE INHALT TC table of contents entry 11 RD RD RD RD document reference 74 TA TA TA TA Mark Table of Authorities Entry 76 Macro 77 PRIVATE PRIVE PRIVATE PRIVATESPA Private */ void wvGetFLD (FLD * item, wvStream * fd) { U8 temp8; U8 ch; temp8 = read_8ubit (fd); ch = temp8 & 0x1f; if (ch == 19) { item->var1.ch = temp8 & 0x1f; item->var1.reserved = (temp8 & 0xe0) >> 5; item->var1.flt = read_8ubit (fd); } else { item->var2.ch = temp8 & 0x1f; item->var2.reserved = (temp8 & 0xe0) >> 5; temp8 = read_8ubit (fd); item->var2.fDiffer = temp8 & 0x01; item->var2.fZombieEmbed = (temp8 & 0x02) >> 1; item->var2.fResultDirty = (temp8 & 0x04) >> 2; item->var2.fResultEdited = (temp8 & 0x08) >> 3; item->var2.fLocked = (temp8 & 0x10) >> 4; item->var2.fPrivateResult = (temp8 & 0x20) >> 5; item->var2.fNested = (temp8 & 0x40) >> 6; item->var2.fHasSep = (temp8 & 0x80) >> 7; } } int wvGetFLD_PLCF (FLD ** fld, U32 ** pos, U32 * nofld, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *fld = NULL; *pos = NULL; *nofld = 0; } else { *nofld = (len - 4) / 6; *pos = (U32 *) wvMalloc ((*nofld + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nofld + 1) * sizeof (U32))); return (1); } *fld = (FLD *) wvMalloc (*nofld * sizeof (FLD)); if (*fld == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nofld * sizeof (FLD))); wvFree (pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i <= *nofld; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *nofld; i++) wvGetFLD (&((*fld)[i]), fd); } return (0); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/support.c����������������������������������������������������������������������������������0000664�0000764�0000764�00000032316�11247156606�011007� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ /* Released under GPL, written by Caolan.McNamara@ul.ie. Copyright (C) 1998,1999 Caolan McNamara Real Life: Caolan McNamara * Doing: MSc in HCI Work: Caolan.McNamara@ul.ie * Phone: +353-86-8790257 URL: http://skynet.csn.ul.ie/~caolan * Sig: an oblique strategy How would you have done it? */ /* this code is often all over the shop, being more of an organic entity that a carefully planed piece of code, so no laughing there at the back! and send me patches by all means, but think carefully before sending me a patch that doesnt fix a bug or add a feature but instead just changes the style of coding, i.e no more thousand line patches that fix my indentation. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <time.h> #include <math.h> #include <glib.h> #include <gsf/gsf-input.h> #include "wv.h" #include "wvinternal.h" #if defined(WORDS_BIGENDIAN) || !defined(MATCHED_TYPE) /* Basic bit swapping functions from Glib */ #define TO_LE_16(val) ((U16) ( \ (((U16) (val) & (U16) 0x00ffU) << 8) | \ (((U16) (val) & (U16) 0xff00U) >> 8))) #define TO_LE_32(val) ((U32) ( \ (((U32) (val) & (U32) 0x000000ffU) << 24) | \ (((U32) (val) & (U32) 0x0000ff00U) << 8) | \ (((U32) (val) & (U32) 0x00ff0000U) >> 8) | \ (((U32) (val) & (U32) 0xff000000U) >> 24))) #define TO_LE_8(val) (val) #else /* noop macros for little-endian machines */ #define TO_LE_32(i) (i) #define TO_LE_16(i) (i) #define TO_LE_8(i) (i) #endif #ifdef HAVE_WMF # include "gdwmfapi.h" /* extern listentry *ourlist; extern int list; */ #endif static wvStream_list *streams = NULL; static U32 wvStream_close_stream(wvStream * in); void wvOLEFree (wvParseStruct * ps) { if(wvQuerySupported (&ps->fib, NULL) != WORD2 && !ps->fib.fEncrypted) { wvStream_list *tempList = streams; while (tempList != NULL) { wvStream_close(tempList->stream); tempList = tempList->next; } while (streams != NULL) { tempList = streams->next; wvFree (streams); streams = tempList; } } if (ps->ole_file != NULL) { g_object_unref (G_OBJECT(ps->ole_file)); ps->ole_file = NULL; } if (ps->input != NULL) { g_object_unref (G_OBJECT(ps->input)); ps->input = NULL; } } wvStream * wvStream_TMP_create (size_t size) { wvStream * stm = NULL; char * buf; buf = wvMalloc(size); if (buf) wvStream_memory_create (&stm, buf, size); return stm; } void wvStream_FILE_create (wvStream ** in, FILE * inner) { wvInternalStream str; str.file_stream = inner; wvStream_create (in, FILE_STREAM, str); } void wvStream_gsf_create (wvStream ** in, GsfInput * inner) { wvInternalStream str; str.gsf_stream = inner; wvStream_create (in, GSF_STREAM, str); } void wvStream_memory_create (wvStream ** in, char *buf, size_t size) { wvInternalStream str; MemoryStream *inner = (MemoryStream *)wvMalloc(sizeof(MemoryStream)); inner->mem = buf; inner->size = size; inner->current = 0; str.memory_stream = inner; wvStream_create (in, MEMORY_STREAM, str); } void wvStream_create (wvStream ** in, wvStreamKind kind, wvInternalStream inner) { wvStream_list *listEntry; *in = (wvStream *) wvMalloc (sizeof (wvStream)); (*in)->kind = kind; (*in)->stream = inner; listEntry = wvMalloc (sizeof (wvStream_list)); listEntry->stream = (*in); listEntry->next = streams; streams = listEntry; } static size_t memorystream_read(MemoryStream *stream, void *buf, size_t count) { size_t ret; if ( stream->current + count <= stream->size) { memcpy(buf, stream->mem + stream->current, count); stream->current += count; ret = count; } else { ret = stream->size - stream->current; memcpy(buf, stream->mem + stream->current, ret); memset( (void *) ((size_t)buf + ret), 0, count - ret); stream->current = stream->size; wvTrace(("read out of bounds\n")); } return ret; } U32 read_32ubit (wvStream * in) { U32 ret; U16 temp1, temp2; temp1 = read_16ubit (in); temp2 = read_16ubit (in); ret = temp2; ret = ret << 16; ret += temp1; return (ret); } U16 read_16ubit (wvStream * in) { U16 ret; U8 temp1, temp2; temp1 = read_8ubit (in); temp2 = read_8ubit (in); ret = temp2; ret = ret << 8; ret += temp1; return (ret); } U8 read_8ubit (wvStream * in) { if (in->kind == GSF_STREAM) { U8 ret = 0; gsf_input_read (GSF_INPUT (in->stream.gsf_stream), 1, &ret); return (ret); } else if (in->kind == FILE_STREAM) { return (getc (in->stream.file_stream)); } else { U8 ret = 0; memorystream_read(in->stream.memory_stream, &ret, 1); return ret; } } U32 wvStream_read (void *ptr, size_t size, size_t nmemb, wvStream * in) { if (in->kind == GSF_STREAM) { gsf_input_read (GSF_INPUT (in->stream.gsf_stream), size*nmemb, ptr); return size*nmemb; } else if (in->kind == FILE_STREAM) { return (fread (ptr, size, nmemb, in->stream.file_stream)); } else { return memorystream_read(in->stream.memory_stream, ptr, size * nmemb); } } void wvStream_rewind (wvStream * in) { if (in->kind == GSF_STREAM) { gsf_input_seek (GSF_INPUT (in->stream.gsf_stream), 0, G_SEEK_SET); } else if (in->kind == FILE_STREAM) { rewind (in->stream.file_stream); } else { in->stream.memory_stream->current = 0; } } U32 wvStream_goto (wvStream * in, long position) { if (in->kind == GSF_STREAM) { gsf_input_seek (GSF_INPUT (in->stream.gsf_stream), position, G_SEEK_SET); return (U32)gsf_input_tell(GSF_INPUT (in->stream.gsf_stream)); } else if (in->kind == FILE_STREAM) { return ((U32) fseek (in->stream.file_stream, position, SEEK_SET)); } else { in->stream.memory_stream->current = position; return in->stream.memory_stream->current; } } U32 wvStream_offset (wvStream * in, long offset) { if (in->kind == GSF_STREAM) { gsf_input_seek (GSF_INPUT (in->stream.gsf_stream), offset, G_SEEK_CUR); return (U32)gsf_input_tell(GSF_INPUT (in->stream.gsf_stream)); } else if (in->kind == FILE_STREAM) { return ((U32) fseek (in->stream.file_stream, offset, SEEK_CUR)); } else { in->stream.memory_stream->current += offset; return in->stream.memory_stream->current; } } U32 wvStream_offset_from_end (wvStream * in, long offset) { if (in->kind == GSF_STREAM) { gsf_input_seek (GSF_INPUT (in->stream.gsf_stream), offset, G_SEEK_END); return (U32)gsf_input_tell(GSF_INPUT (in->stream.gsf_stream)); } else if(in->kind == FILE_STREAM) { return ((U32) fseek (in->stream.file_stream, offset, SEEK_END)); } else { in->stream.memory_stream->current = in->stream.memory_stream->size + offset; return in->stream.memory_stream->current; } } U32 wvStream_tell (wvStream * in) { if (in->kind == GSF_STREAM) { return (U32)gsf_input_tell(GSF_INPUT (in->stream.gsf_stream)); } else if(in->kind == FILE_STREAM) { return ((U32) ftell (in->stream.file_stream)); } else { return (in->stream.memory_stream->current); } } U32 wvStream_size (wvStream * in) { U32 size; long offset = wvStream_tell(in); wvStream_offset_from_end(in,0); size = wvStream_tell(in); wvStream_goto(in,offset); return size; } U32 wvStream_close(wvStream * in) { wvStream_list *s; U32 ret; ret = wvStream_close_stream (in); for ( s = streams;s != NULL; s=s->next) { if (s->stream == in) { s->stream = 0; } } return ret; } static U32 wvStream_close_stream (wvStream * in) { if ( !in ) return 0; if (in->kind == GSF_STREAM) { g_object_unref (G_OBJECT(in->stream.gsf_stream)); in->stream.gsf_stream = NULL; wvFree (in); return 0; } else if (in->kind == FILE_STREAM) { U32 ret; ret = (U32) fclose (in->stream.file_stream); wvFree (in); return (ret); } else if (in->kind == MEMORY_STREAM) { wvFree (in->stream.memory_stream->mem); wvFree (in->stream.memory_stream); wvFree (in); return 0; } else abort(); } /* wvStream-kind-independent functions below */ U32 sread_32ubit (const U8 * in) { U16 temp1, temp2; U32 ret; temp1 = sread_16ubit (in); temp2 = sread_16ubit (in + 2); ret = temp2; ret = ret << 16; ret += temp1; return (ret); } U32 bread_32ubit (U8 * in, U16 * pos) { U16 temp1, temp2; U32 ret; temp1 = sread_16ubit (in); temp2 = sread_16ubit (in + 2); ret = temp2; ret = ret << 16; ret += temp1; (*pos) += 4; return (ret); } U32 dread_32ubit (wvStream * in, U8 ** list) { U8 *temp; U32 ret; if (in != NULL) return (read_32ubit (in)); else { temp = *list; (*list) += 4; ret = sread_32ubit (temp); return (ret); } } U16 sread_16ubit (const U8 * in) { U8 temp1, temp2; U16 ret; temp1 = *in; temp2 = *(in + 1); ret = temp2; ret = ret << 8; ret += temp1; return (ret); } U16 bread_16ubit (U8 * in, U16 * pos) { U8 temp1, temp2; U16 ret; if (in == 0) /* this really ought to be called more sanely */ { (*pos) = 0xffff; return 0; } temp1 = *in; temp2 = *(in + 1); ret = temp2; ret = ret << 8; ret += temp1; (*pos) += 2; return (ret); } U16 dread_16ubit (wvStream * in, U8 ** list) { U8 *temp; U16 ret; if (in != NULL) return (read_16ubit (in)); else { temp = *list; (*list) += 2; ret = sread_16ubit (temp); return (ret); } } U8 sread_8ubit (const U8 * in) { return (*in); } U8 bread_8ubit (U8 * in, U16 * pos) { (*pos)++; return (*in); } U8 dread_8ubit (wvStream * in, U8 ** list) { U8 *temp; if (in != NULL) return (read_8ubit (in)); else { temp = *list; (*list)++; return (sread_8ubit (temp)); } } int write_32ubit (wvStream * in, U32 out) { guint32 cpy = (guint32) TO_LE_32 (out); int nwr = 0; if (in->kind == GSF_STREAM) { #if 0 nwr = (int) in->stream.gsf_stream->write (in->stream.gsf_stream, (guint8 *) & cpy, 32); #endif } else if (in->kind == FILE_STREAM) { nwr = (int) fwrite (&cpy, sizeof (guint32), 1, in->stream.file_stream); } else{ nwr = 4; *((U32 *) (in->stream.memory_stream->mem + in->stream.memory_stream->current)) = cpy; in->stream.memory_stream->current +=4; } return nwr; } int write_16ubit (wvStream * in, U16 out) { guint16 cpy = (guint16) TO_LE_16 (out); int nwr = 0; if (in->kind == GSF_STREAM) { #if 0 nwr = (int) in->stream.gsf_stream->write (in->stream.gsf_stream, (guint8 *) & cpy, 16); #endif } else if (in->kind == FILE_STREAM) { nwr = (int) fwrite (&cpy, sizeof (guint16), 1, in->stream.file_stream); } else{ nwr = 2; *((U16 *) (in->stream.memory_stream->mem + in->stream.memory_stream->current))= cpy; in->stream.memory_stream->current+=2; } return nwr; } int write_8ubit (wvStream * in, U8 out) { guint8 cpy = (guint8) TO_LE_8 (out); int nwr = 0; wvTrace (("About to write 16-bit value")); if (in->kind == GSF_STREAM) { #if 0 nwr = (int) in->stream.gsf_stream->write (in->stream.gsf_stream, (guint8 *) & cpy, 8); #endif } else if (in->kind == FILE_STREAM) { nwr = (int) fwrite (&cpy, sizeof (guint8), 1, in->stream.file_stream); } else{ nwr = 1; *((U8 *)(in->stream.memory_stream->mem + in->stream.memory_stream->current)) = cpy; in->stream.memory_stream->current++; } return nwr; } int wvStream_write (void *ptr, size_t size, size_t nmemb, wvStream * in) { int nwr = 0; if (in->kind == GSF_STREAM) { #if 0 nwr = (int) in->stream.gsf_stream->write (in->stream.gsf_stream, ptr, size * nmemb); #endif } else if (in->kind == FILE_STREAM) { nwr = (int) fwrite (ptr, size, nmemb, in->stream.file_stream); } else{ nwr = size * nmemb; memcpy(in->stream.memory_stream->mem + in->stream.memory_stream->current,ptr, size * nmemb); in->stream.memory_stream->current+=size* nmemb; } return nwr; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/tc.c���������������������������������������������������������������������������������������0000664�0000764�0000764�00000010206�11247156607�007674� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" #include "wvinternal.h" int wvGetTC_internal (wvVersion ver, TC * tc, wvStream * infd, U8 * pointer) { U16 temp16; BRC10 brc10; wvTrace (("TC ver %d\n", ver)); #ifdef PURIFY wvInitTC (tc); #endif temp16 = dread_16ubit (infd, &pointer); wvTrace (("temp16 is %x\n", temp16)); if (ver == WORD8) { tc->fFirstMerged = temp16 & 0x0001; tc->fMerged = (temp16 & 0x0002) >> 1; tc->fVertical = (temp16 & 0x0004) >> 2; tc->fBackward = (temp16 & 0x0008) >> 3; tc->fRotateFont = (temp16 & 0x0010) >> 4; tc->fVertMerge = (temp16 & 0x0020) >> 5; tc->fVertRestart = (temp16 & 0x0040) >> 6; tc->vertAlign = (temp16 & 0x0180) >> 7; tc->fUnused = (temp16 & 0xFE00) >> 9; tc->wUnused = dread_16ubit (infd, &pointer); wvGetBRC_internal (&tc->brcTop, infd, pointer); pointer += cbBRC; wvGetBRC_internal (&tc->brcLeft, infd, pointer); pointer += cbBRC; wvGetBRC_internal (&tc->brcBottom, infd, pointer); pointer += cbBRC; wvGetBRC_internal (&tc->brcRight, infd, pointer); pointer += cbBRC; } else { wvInitTC (tc); tc->fFirstMerged = temp16 & 0x0001; tc->fMerged = (temp16 & 0x0002) >> 1; /* This + word 6 205 in sprm.c I thought would make sense together, until I get another example I have disabled the two of them */ tc->fVertical = (temp16 & 0x0004) >> 2; tc->fBackward = (temp16 & 0x0008) >> 3; tc->fRotateFont = (temp16 & 0x0010) >> 4; tc->fVertMerge = (temp16 & 0x0020) >> 5; tc->fVertRestart = (temp16 & 0x0040) >> 6; tc->vertAlign = (temp16 & 0x0180) >> 7; tc->fUnused = (temp16 & 0xFE00) >> 9; wvGetBRC10_internal (&brc10, infd, pointer); wvConvertBRC10ToBRC (&tc->brcTop, &brc10); pointer += cb6BRC; wvGetBRC10_internal (&brc10, infd, pointer); wvConvertBRC10ToBRC (&tc->brcLeft, &brc10); pointer += cb6BRC; wvGetBRC10_internal (&brc10, infd, pointer); wvConvertBRC10ToBRC (&tc->brcBottom, &brc10); pointer += cb6BRC; wvGetBRC10_internal (&brc10, infd, pointer); wvConvertBRC10ToBRC (&tc->brcRight, &brc10); pointer += cb6BRC; return (cb6TC); } return (cbTC); } int wvGetTCFromBucket (wvVersion ver, TC * abrc, U8 * pointer) { return (wvGetTC_internal (ver, abrc, NULL, pointer)); } void wvCopyTC (TC * dest, TC * src) { dest->fFirstMerged = src->fFirstMerged; dest->fMerged = src->fMerged; dest->fVertical = src->fVertical; dest->fBackward = src->fBackward; dest->fRotateFont = src->fRotateFont; dest->fVertMerge = src->fVertMerge; dest->fVertRestart = src->fVertRestart; dest->vertAlign = src->vertAlign; dest->fUnused = src->fUnused; dest->wUnused = src->wUnused; wvCopyBRC (&src->brcTop, &dest->brcTop); wvCopyBRC (&src->brcLeft, &dest->brcLeft); wvCopyBRC (&src->brcBottom, &dest->brcBottom); wvCopyBRC (&src->brcRight, &dest->brcRight); } void wvInitTC (TC * item) { item->fFirstMerged = 0; item->fMerged = 0; item->fVertical = 0; item->fBackward = 0; item->fRotateFont = 0; item->fVertMerge = 0; item->fVertRestart = 0; item->vertAlign = 0; item->fUnused = 0; item->wUnused = 0; wvInitBRC (&item->brcTop); wvInitBRC (&item->brcLeft); wvInitBRC (&item->brcBottom); wvInitBRC (&item->brcRight); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/md5.h��������������������������������������������������������������������������������������0000664�0000764�0000764�00000005740�11247156607�007767� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* ********************************************************************** ** md5.h -- Header file for implementation of MD5 ** ** RSA Data Security, Inc. MD5 Message Digest Algorithm ** ** Created: 2/17/90 RLR ** ** Revised: 12/27/90 SRD,AJ,BSK,JT Reference C version ** ** Revised (for MD5): RLR 4/27/91 ** ** -- G modified to have y&~z instead of y&z ** ** -- FF, GG, HH modified to add in last register done ** ** -- Access pattern: round 2 works mod 5, round 3 works mod 3 ** ** -- distinct additive constant for each step ** ** -- round 4 added, working mod 7 ** ********************************************************************** */ /* ********************************************************************** ** Copyright (C) 1990, RSA Data Security, Inc. All rights reserved. ** ** ** ** License to copy and use this software is granted provided that ** ** it is identified as the "RSA Data Security, Inc. MD5 Message ** ** Digest Algorithm" in all material mentioning or referencing this ** ** software or this function. ** ** ** ** License is also granted to make and use derivative works ** ** provided that such works are identified as "derived from the RSA ** ** Data Security, Inc. MD5 Message Digest Algorithm" in all ** ** material mentioning or referencing the derived work. ** ** ** ** RSA Data Security, Inc. makes no representations concerning ** ** either the merchantability of this software or the suitability ** ** of this software for any particular purpose. It is provided "as ** ** is" without express or implied warranty of any kind. ** ** ** ** These notices must be retained in any copies of any part of this ** ** documentation and/or software. ** ********************************************************************** */ /* typedef a 32 bit type */ typedef unsigned long int UINT4; /* Data structure for MD5 (Message Digest) computation */ typedef struct { UINT4 i[2]; /* number of _bits_ handled mod 2^64 */ UINT4 buf[4]; /* scratch buffer */ unsigned char in[64]; /* input buffer */ unsigned char digest[16]; /* actual digest after MD5Final call */ } wvMD5_CTX; void wvMD5Init (); void wvMD5Update (); void wvMD5Final (); /* ********************************************************************** ** End of md5.h ** ******************************* (cut) ******************************** */ ��������������������������������wv-1.2.9/utf.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000012066�11247156606�010071� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef PLAN9 #include <u.h> #include <libc.h> #include <bio.h> #else #ifndef _WIN32 #include <sys/types.h> #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> /* already done in wv.h #include "config.h" */ #include "plan9.h" #endif #include "hdr.h" #include "wv.h" #include "utf.h" enum { Char1 = Runeself, Rune1 = Runeself, Char21 = 0xA1, Rune21 = 0x0100, Char22 = 0xF6, Rune22 = 0x4016, Char3 = 0xFC, Rune3 = 0x10000, /* really 0x38E2E */ Esc = 0xBE, Bad = Runeerror }; #ifdef PLAN9 int errno; #endif enum { T1 = 0x00, Tx = 0x80, T2 = 0xC0, T3 = 0xE0, T4 = 0xF0, T5 = 0xF8, T6 = 0xFC, Bit1 = 7, Bitx = 6, Bit2 = 5, Bit3 = 4, Bit4 = 3, Bit5 = 2, Bit6 = 2, Mask1 = (1 << Bit1) - 1, Maskx = (1 << Bitx) - 1, Mask2 = (1 << Bit2) - 1, Mask3 = (1 << Bit3) - 1, Mask4 = (1 << Bit4) - 1, Mask5 = (1 << Bit5) - 1, Mask6 = (1 << Bit6) - 1, Wchar1 = (1UL << Bit1) - 1, Wchar2 = (1UL << (Bit2 + Bitx)) - 1, Wchar3 = (1UL << (Bit3 + 2 * Bitx)) - 1, Wchar4 = (1UL << (Bit4 + 3 * Bitx)) - 1, Wchar5 = (1UL << (Bit5 + 4 * Bitx)) - 1 #ifndef EILSEQ , /* we hate ansi c's comma rules */ EILSEQ = 123 #endif /* PLAN9 */ }; int our_wctomb (char *s, U16 wc) { if (s == 0) return 0; /* no shift states */ if (wc & ~Wchar2) { if (wc & ~Wchar4) { if (wc & ~Wchar5) { /* 6 bytes */ s[0] = T6 | ((wc >> 5 * Bitx) & Mask6); s[1] = Tx | ((wc >> 4 * Bitx) & Maskx); s[2] = Tx | ((wc >> 3 * Bitx) & Maskx); s[3] = Tx | ((wc >> 2 * Bitx) & Maskx); s[4] = Tx | ((wc >> 1 * Bitx) & Maskx); s[5] = Tx | (wc & Maskx); return 6; } /* 5 bytes */ s[0] = T5 | (wc >> 4 * Bitx); s[1] = Tx | ((wc >> 3 * Bitx) & Maskx); s[2] = Tx | ((wc >> 2 * Bitx) & Maskx); s[3] = Tx | ((wc >> 1 * Bitx) & Maskx); s[4] = Tx | (wc & Maskx); return 5; } if (wc & ~Wchar3) { /* 4 bytes */ s[0] = T4 | (wc >> 3 * Bitx); s[1] = Tx | ((wc >> 2 * Bitx) & Maskx); s[2] = Tx | ((wc >> 1 * Bitx) & Maskx); s[3] = Tx | (wc & Maskx); return 4; } /* 3 bytes */ s[0] = T3 | (wc >> 2 * Bitx); s[1] = Tx | ((wc >> 1 * Bitx) & Maskx); s[2] = Tx | (wc & Maskx); return 3; } if (wc & ~Wchar1) { /* 2 bytes */ s[0] = T2 | (wc >> 1 * Bitx); s[1] = Tx | (wc & Maskx); return 2; } /* 1 byte */ s[0] = T1 | wc; return 1; } int our_mbtowc (U16 * p, char *s, unsigned n) { U8 *us; int c0, c1, c2, c3, c4, c5; U16 wc; if (s == 0) return 0; /* no shift states */ if (n < 1) goto badlen; us = (U8 *) s; c0 = us[0]; if (c0 >= T3) { if (n < 3) goto badlen; c1 = us[1] ^ Tx; c2 = us[2] ^ Tx; if ((c1 | c2) & T2) goto bad; if (c0 >= T5) { if (n < 5) goto badlen; c3 = us[3] ^ Tx; c4 = us[4] ^ Tx; if ((c3 | c4) & T2) goto bad; if (c0 >= T6) { /* 6 bytes */ if (n < 6) goto badlen; c5 = us[5] ^ Tx; if (c5 & T2) goto bad; wc = ((((((((((c0 & Mask6) << Bitx) | c1) << Bitx) | c2) << Bitx) | c3) << Bitx) | c4) << Bitx) | c5; if (wc <= Wchar5) goto bad; *p = wc; return 6; } /* 5 bytes */ wc = ((((((((c0 & Mask5) << Bitx) | c1) << Bitx) | c2) << Bitx) | c3) << Bitx) | c4; if (wc <= Wchar4) goto bad; *p = wc; return 5; } if (c0 >= T4) { /* 4 bytes */ if (n < 4) goto badlen; c3 = us[3] ^ Tx; if (c3 & T2) goto bad; wc = ((((((c0 & Mask4) << Bitx) | c1) << Bitx) | c2) << Bitx) | c3; if (wc <= Wchar3) goto bad; *p = wc; return 4; } /* 3 bytes */ wc = ((((c0 & Mask3) << Bitx) | c1) << Bitx) | c2; if (wc <= Wchar2) goto bad; *p = wc; return 3; } if (c0 >= T2) { /* 2 bytes */ if (n < 2) goto badlen; c1 = us[1] ^ Tx; if (c1 & T2) goto bad; wc = ((c0 & Mask2) << Bitx) | c1; if (wc <= Wchar1) goto bad; *p = wc; return 2; } /* 1 byte */ if (c0 >= Tx) goto bad; *p = c0; return 1; bad: errno = EILSEQ; return -1; badlen: return -2; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/reasons.c����������������������������������������������������������������������������������0000664�0000764�0000764�00000002470�11247156607�010744� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" static const ReasonTable reasons[] = { {"Nothing wrong", 0}, {"This is an unsupported (as of yet) pre word 6 doc, sorry", 1}, {"This is an unsupported (as of yet) word 6 doc", 2}, {"This is an unsupported (as of yet) word 7 doc", 3}, {"This is an unsupported (as of yet) encrypted document", 4}, {"This is not a word document", 5} }; const char * wvReason (int reason) { return (reasons[reason].m_name); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/getopt1.c����������������������������������������������������������������������������������0000664�0000764�0000764�00000012444�11247156607�010657� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ /* getopt_long and getopt_long_only entry points for GNU getopt. Copyright (C) 1987,88,89,90,91,92,93,94,96,97 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include "getopt.h" #if !defined (__STDC__) || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ #ifndef const #define const #endif #endif /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #define GETOPT_INTERFACE_VERSION 2 #if !defined (_LIBC) && defined (__GLIBC__) && __GLIBC__ >= 2 #include <gnu-versions.h> #if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION #define ELIDE_CODE #endif #endif #ifndef ELIDE_CODE /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ #include <stdlib.h> #endif #ifndef NULL #define NULL 0 #endif int getopt_long (argc, argv, options, long_options, opt_index) int argc; char *const *argv; const char *options; const struct option *long_options; int *opt_index; { return _getopt_internal (argc, argv, options, long_options, opt_index, 0); } /* Like getopt_long, but '-' as well as '--' can indicate a long option. If an option that starts with '-' (not '--') doesn't match a long option, but does match a short option, it is parsed as a short option instead. */ int getopt_long_only (argc, argv, options, long_options, opt_index) int argc; char *const *argv; const char *options; const struct option *long_options; int *opt_index; { return _getopt_internal (argc, argv, options, long_options, opt_index, 1); } #endif /* Not ELIDE_CODE. */ #ifdef TEST #include <stdio.h> int main (argc, argv) int argc; char **argv; { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; int option_index = 0; static struct option long_options[] = { {"add", 1, 0, 0}, {"append", 0, 0, 0}, {"delete", 1, 0, 0}, {"verbose", 0, 0, 0}, {"create", 0, 0, 0}, {"file", 1, 0, 0}, {0, 0, 0, 0} }; c = getopt_long (argc, argv, "abc:d:0123456789", long_options, &option_index); if (c == -1) break; switch (c) { case 0: printf ("option %s", long_options[option_index].name); if (optarg) printf (" with arg %s", optarg); printf ("\n"); break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case 'd': printf ("option d with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/dcs.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000003000�11247156607�010031� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" void wvGetDCS_internal (DCS * item, wvStream * fd, U8 * pointer) { U16 temp16; temp16 = dread_16ubit (fd, &pointer); item->fdct = temp16 & 0x0007; item->count = (temp16 & 0x00F8) >> 3; item->reserved = (temp16 & 0xff00) >> 8; } void wvGetDCS (DCS * item, wvStream * fd) { wvGetDCS_internal (item, fd, NULL); } void wvGetDCSFromBucket (DCS * item, U8 * pointer) { wvGetDCS_internal (item, NULL, pointer); } void wvCopyDCS (DCS * dest, DCS * src) { memcpy (dest, src, sizeof (DCS)); } void wvInitDCS (DCS * item) { item->fdct = 0; item->count = 0; item->reserved = 0; } wv-1.2.9/version.c.in�������������������������������������������������������������������������������0000664�0000764�0000764�00000000645�11247156607�011366� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Released under GPL, written by Caolan.McNamara@ul.ie. Copyright (C) 1998,1999 Caolan McNamara Real Life: Caolan McNamara * Doing: MSc in HCI Work: Caolan.McNamara@ul.ie * Phone: +353-86-8790257 URL: http://skynet.csn.ul.ie/~caolan * Sig: an oblique strategy How would you have done it? */ #ifdef HAVE_CONFIG_H #include "config.h" #endif const char* wv_version = "wvWare version @VERSION@"; �������������������������������������������������������������������������������������������wv-1.2.9/config.h.in��������������������������������������������������������������������������������0000664�0000764�0000764�00000010363�11454157074�011150� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* config.h.in. Generated from configure.ac by autoheader. */ #ifndef HAVE_WV_CONFIG_H #define HAVE_WV_CONFIG_H /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD /* Define this if strcasecmp must be defined */ #undef DEFINE_STRCASECMP /* Define to 1 if you have the <dlfcn.h> header file. */ #undef HAVE_DLFCN_H /* Define to 1 if you have the <fcntl.h> header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE /* Define to 1 if you have the <inttypes.h> header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the <io.h> header file. */ #undef HAVE_IO_H /* Define if you have libwmf(2) and want it to convert wmf to png files */ #undef HAVE_LIBWMF /* Define if libwmf(2) has support for reading 'foreign' image formats */ #undef HAVE_LIBWMF_FOREIGN_H /* Define if you have libxml2 */ #undef HAVE_LIBXML2 /* Define to 1 if you have the <malloc.h> header file. */ #undef HAVE_MALLOC_H /* 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 a working `mmap' system call. */ #undef HAVE_MMAP /* 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 <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 <sys/file.h> header file. */ #undef HAVE_SYS_FILE_H /* Define to 1 if you have the <sys/ioctl.h> header file. */ #undef HAVE_SYS_IOCTL_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 if you want zlib to uncompress wmf files */ #undef HAVE_ZLIB /* define if you have libpng */ #undef HasPNG /* Define to the sub-directory in which libtool stores uninstalled libraries. */ #undef LT_OBJDIR /* Define if sizeof({char,short,int}) != {1,2,4} */ #undef MATCHED_TYPE /* 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 `char', as computed by sizeof. */ #undef SIZEOF_CHAR /* The size of `int', as computed by sizeof. */ #undef SIZEOF_INT /* The size of `long', as computed by sizeof. */ #undef SIZEOF_LONG /* The size of `short', as computed by sizeof. */ #undef SIZEOF_SHORT /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define if byte order is big-endian */ #undef WORDS_BIGENDIAN /* Define as 12 for little-endian, 21 for big-endian */ #undef XML_BYTE_ORDER /* Define to empty if `const' does not conform to ANSI C. */ #undef const #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif #if defined(HAVE_ERRNO_H) #include <errno.h> #endif #include <sys/types.h> #include <sys/stat.h> #include <limits.h> #include <stdarg.h> #if defined(__GNUC__) && !defined(WORDS_BIGENDIAN) && defined(MATCHED_TYPE) #define NO_HOLES #endif #ifndef HAVE_MEMCPY #define memcpy(d, s, n) bcopy ((s), (d), (n)) #endif /* not HAVE_MEMCPY */ /* redefs of things that are either in glibc or we have to include them ourselves */ #if defined(WIN32) && !defined(__MWERKS__) && !defined(__WINE__) #define strcasecmp(s1,s2) stricmp(s1,s2) #else #if !defined(__GLIBC__) || (__GLIBC__ < 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 2) #ifdef DEFINE_STRCASECMP int strcasecmp (const char *s1, const char *s2); #endif #endif #endif #endif /* ! HAVE_WV_CONFIG_H */ �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/decode_complex.c���������������������������������������������������������������������������0000664�0000764�0000764�00000100213�11247156606�012235� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" /* To find the beginning of the paragraph containing a character in a complex document, it's first necessary to 1) search for the piece containing the character in the piece table. 2) Then calculate the FC in the file that stores the character from the piece table information. 3) Using the FC, search the FCs FKP for the largest FC less than the character's FC, call it fcTest. 4) If the character at fcTest-1 is contained in the current piece, then the character corresponding to that FC in the piece is the first character of the paragraph. 5) If that FC is before or marks the beginning of the piece, scan a piece at a time towards the beginning of the piece table until a piece is found that contains a paragraph mark. (This can be done by using the end of the piece FC, finding the largest FC in its FKP that is less than or equal to the end of piece FC, and checking to see if the character in front of the FKP FC (which must mark a paragraph end) is within the piece.) 6) When such an FKP FC is found, the FC marks the first byte of paragraph text. */ /* To find the end of a paragraph for a character in a complex format file, again 1) it is necessary to know the piece that contains the character and the FC assigned to the character. 2) Using the FC of the character, first search the FKP that describes the character to find the smallest FC in the rgfc that is larger than the character FC. 3) If the FC found in the FKP is less than or equal to the limit FC of the piece, the end of the paragraph that contains the character is at the FKP FC minus 1. 4) If the FKP FC that was found was greater than the FC of the end of the piece, scan piece by piece toward the end of the document until a piece is found that contains a paragraph end mark. 5) It's possible to check if a piece contains a paragraph mark by using the FC of the beginning of the piece to search in the FKPs for the smallest FC in the FKP rgfc that is greater than the FC of the beginning of the piece. If the FC found is less than or equal to the limit FC of the piece, then the character that ends the paragraph is the character immediately before the FKP FC. */ int wvGetComplexParaBounds (wvVersion ver, PAPX_FKP * fkp, U32 * fcFirst, U32 * fcLim, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, wvStream * fd) { /* U32 currentfc; */ BTE entry; long currentpos; if (currentfc == 0xffffffffL) { wvError ( ("Para Bounds not found !, this is ok if this is the last para, otherwise its a disaster\n")); return (-1); } if (0 != wvGetBTE_FromFC (&entry, currentfc, bte, pos, nobte)) { wvError (("BTE not found !\n")); return (-1); } currentpos = wvStream_tell (fd); /*The pagenumber of the FKP is entry.pn */ wvTrace (("the entry.pn is %d\n", entry.pn)); wvGetPAPX_FKP (ver, fkp, entry.pn, fd); wvGetComplexParafcFirst (ver, fcFirst, currentfc, clx, bte, pos, nobte, piece, fkp, fd); wvReleasePAPX_FKP (fkp); wvTrace (("BREAK\n")); wvGetPAPX_FKP (ver, fkp, entry.pn, fd); piece = wvGetComplexParafcLim (ver, fcLim, currentfc, clx, bte, pos, nobte, piece, fkp, fd); wvStream_goto (fd, currentpos); return (piece); } int wvGetComplexParafcLim (wvVersion ver, U32 * fcLim, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, PAPX_FKP * fkp, wvStream * fd) { U32 fcTest, beginfc; BTE entry; *fcLim = 0xffffffffL; wvTrace (("here is fcLim, currentfc is %x\n", currentfc)); fcTest = wvSearchNextSmallestFCPAPX_FKP (fkp, currentfc); wvTrace ( ("fcTest is %x, end is %x\n", fcTest, wvGetEndFCPiece (piece, clx))); if (fcTest <= wvGetEndFCPiece (piece, clx)) { *fcLim = fcTest; } else { /*get end fc of previous piece */ piece++; while (piece < clx->nopcd) { wvTrace (("piece is %d\n", piece)); beginfc = wvNormFC (clx->pcd[piece].fc, NULL); if (0 != wvGetBTE_FromFC (&entry, beginfc, bte, pos, nobte)) { wvError (("BTE not found !\n")); return (-1); } wvReleasePAPX_FKP (fkp); wvGetPAPX_FKP (ver, fkp, entry.pn, fd); fcTest = wvSearchNextSmallestFCPAPX_FKP (fkp, beginfc); wvTrace ( ("fcTest(t) is %x, end is %x\n", fcTest, wvGetEndFCPiece (piece, clx))); if (fcTest <= wvGetEndFCPiece (piece, clx)) { *fcLim = fcTest; break; } piece++; } } wvTrace (("fcLim is %x\n", *fcLim)); if (piece == clx->nopcd) { wvTrace (("failed to find a solution to end of paragraph\n")); *fcLim = fcTest; return (clx->nopcd - 1); /* test using this */ } return (piece); } int wvGetComplexParafcFirst (wvVersion ver, U32 * fcFirst, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, PAPX_FKP * fkp, wvStream * fd) { U32 fcTest, endfc; BTE entry; fcTest = wvSearchNextLargestFCPAPX_FKP (fkp, currentfc); wvTrace (("fcTest (s) is %x\n", fcTest)); if (wvQuerySamePiece (fcTest - 1, clx, piece)) { wvTrace (("same piece\n")); *fcFirst = fcTest - 1; } else { /* get end fc of previous piece ??, or use the end of the current piece */ piece--; while (piece != 0xffffffffL) { wvTrace (("piece is %d\n", piece)); endfc = wvGetEndFCPiece (piece, clx); wvTrace (("endfc is %x\n", endfc)); if (0 != wvGetBTE_FromFC (&entry, endfc, bte, pos, nobte)) { wvError (("BTE not found !\n")); return (-1); } wvReleasePAPX_FKP (fkp); wvGetPAPX_FKP (ver, fkp, entry.pn, fd); fcTest = wvSearchNextLargestFCPAPX_FKP (fkp, endfc); wvTrace (("fcTest(ft) is %x\n", fcTest)); if (wvQuerySamePiece (fcTest - 1, clx, piece)) { *fcFirst = fcTest - 1; break; } piece--; } } if (piece == 0xffffffffL) { wvTrace ( ("failed to find a solution to the beginning of the paragraph\n")); *fcFirst = currentfc; } wvTrace (("fcFirst is finally %x\n", *fcFirst)); return (0); } /* char properties version of the above -JB */ /* only difference is that we're using CHPX FKP pages, * and specifically just the Get and Release functions are * different between the two. We might be able to * abstract the necessary functions to avoid duplicating them... */ int wvGetComplexCharBounds (wvVersion ver, CHPX_FKP * fkp, U32 * fcFirst, U32 * fcLim, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, wvStream * fd) { BTE entry; long currentpos; wvTrace (("current fc is %x\n", currentfc)); if (currentfc == 0xffffffffL) { wvTrace ( ("Char Bounds not found !, this is ok if this is the last char, otherwise its a disaster\n")); return (-1); } if (0 != wvGetBTE_FromFC (&entry, currentfc, bte, pos, nobte)) { wvError (("BTE not found !\n")); return (-1); } currentpos = wvStream_tell (fd); /*The pagenumber of the FKP is entry.pn */ wvGetCHPX_FKP (ver, fkp, entry.pn, fd); wvGetComplexCharfcFirst (ver, fcFirst, currentfc, clx, bte, pos, nobte, piece, fkp, fd); wvTrace (("BEFORE PIECE is %d\n", piece)); wvReleaseCHPX_FKP (fkp); wvGetCHPX_FKP (ver, fkp, entry.pn, fd); piece = wvGetComplexCharfcLim (ver, fcLim, currentfc, clx, bte, pos, nobte, piece, fkp, fd); wvTrace (("AFTER PIECE is %d\n", piece)); wvStream_goto (fd, currentpos); return (piece); } int wvGetComplexCharfcLim (wvVersion ver, U32 * fcLim, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, CHPX_FKP * fkp, wvStream * fd) { U32 fcTest; /* BTE entry; */ *fcLim = 0xffffffffL; /* this only works with the initial rgfc array, which is the * same for both CHPX and PAPX FKPs */ fcTest = wvSearchNextSmallestFCPAPX_FKP ((PAPX_FKP *) fkp, currentfc); wvTrace (("fcTest is %x\n", fcTest)); /* this single line replaces all the rest, is it conceivable that i overengineered, careful rereading of the spec makes no mention of repeating the para process to find the boundaries of the exception text runs */ *fcLim = fcTest; wvTrace (("fcLim is %x\n", *fcLim)); if (piece == clx->nopcd) return (clx->nopcd - 1); /* test using this */ return (piece); } int wvGetComplexCharfcFirst (wvVersion ver, U32 * fcFirst, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, CHPX_FKP * fkp, wvStream * fd) { U32 fcTest /*,endfc */ ; /*BTE entry; */ /* this only works with the initial rgfc array, which is the */ fcTest = wvSearchNextLargestFCCHPX_FKP (fkp, currentfc); wvTrace (("fcTest (s) is %x\n", fcTest)); /* this single line replaces all the rest, is it conceivable that i overengineered, careful rereading of the spec makes no mention of repeating the para process to find the boundaries of the exception text runs */ *fcFirst = fcTest; return (0); } /* how this works, we seek to the beginning of the text, we loop for a count of charaters that is stored in the fib. the piecetable divides the text up into various sections, we keep track of our location vs the next entry in that table, when we reach that location, we seek to the position that the table tells us to go. there are special cases for coming to the end of a section, and for the beginning and ends of pages. for the purposes of headers and footers etc. */ void wvDecodeComplex (wvParseStruct * ps) { U32 piececount = 0, i, j, spiece = 0; U32 beginfc, endfc; U32 stream_size; U32 begincp, endcp; int ichartype; U8 chartype; U16 eachchar; U32 para_fcFirst, para_fcLim = 0xffffffffL; U32 dummy, nextpara_fcLim = 0xffffffffL; U32 char_fcFirst, char_fcLim = 0xffffffffL; U32 section_fcFirst, section_fcLim = 0xffffffffL; U32 comment_cpFirst = 0xffffffffL, comment_cpLim = 0xffffffffL; BTE *btePapx = NULL, *bteChpx = NULL; U32 *posPapx = NULL, *posChpx = NULL; U32 para_intervals, char_intervals, section_intervals, atrd_intervals; int cpiece = 0, npiece = 0; PAPX_FKP para_fkp; PAP apap; CHPX_FKP char_fkp; CHP achp; int para_pendingclose = 0, comment_pendingclose = 0, char_pendingclose = 0, section_pendingclose = 0; int para_dirty = 0, char_dirty = 0, section_dirty = 0; SED *sed; SEP sep; U32 *posSedx; ATRD *atrd, *catrd = NULL; U32 *posAtrd; STTBF grpXstAtnOwners, SttbfAtnbkmk; BKF *bkf; U32 *posBKF; U32 bkf_intervals; BKL *bkl; U32 *posBKL; U32 bkl_intervals; wvVersion ver = wvQuerySupported (&ps->fib, NULL); external_wvReleasePAPX_FKP (); external_wvReleaseCHPX_FKP (); /*dop */ wvGetDOP (ver, &ps->dop, ps->fib.fcDop, ps->fib.lcbDop, ps->tablefd); #if 0 /* this is the versioning name information, the first 22 bytes of each sttbf entry are unknown, the rest is a ordinary unicode string, is the time and date and saved by encoded into the first 22 bytes. */ STTBF versioning; if (ver == 0) { U16 *str; wvError (("into the versions\n")); wvGetSTTBF (&versioning, ps->fib.fcSttbfUssr, ps->fib.lcbSttbfUssr, ps->tablefd); str = UssrStrBegin (&versioning, 0); wvError (("versioning text is %s\n", wvWideStrToMB (str))); } #endif wvGetATRD_PLCF (&atrd, &posAtrd, &atrd_intervals, ps->fib.fcPlcfandRef, ps->fib.lcbPlcfandRef, ps->tablefd); wvGetGrpXst (&grpXstAtnOwners, ps->fib.fcGrpXstAtnOwners, ps->fib.lcbGrpXstAtnOwners, ps->tablefd); wvTrace ( ("offset is %x, len is %d\n", ps->fib.fcSttbfAtnbkmk, ps->fib.lcbSttbfAtnbkmk)); wvGetSTTBF (&SttbfAtnbkmk, ps->fib.fcSttbfAtnbkmk, ps->fib.lcbSttbfAtnbkmk, ps->tablefd); wvGetBKF_PLCF (&bkf, &posBKF, &bkf_intervals, ps->fib.fcPlcfAtnbkf, ps->fib.lcbPlcfAtnbkf, ps->tablefd); wvGetBKL_PLCF (&bkl, &posBKL, &bkl_intervals, ps->fib.fcPlcfAtnbkl, ps->fib.lcbPlcfAtnbkl, ps->fib.fcPlcfAtnbkf, ps->fib.lcbPlcfAtnbkf, ps->tablefd); /*we will need the stylesheet to do anything useful with layout and look */ wvGetSTSH (&ps->stsh, ps->fib.fcStshf, ps->fib.lcbStshf, ps->tablefd); /* get font list */ if ((ver == WORD6) || (ver == WORD7)) wvGetFFN_STTBF6 (&ps->fonts, ps->fib.fcSttbfffn, ps->fib.lcbSttbfffn, ps->tablefd); else wvGetFFN_STTBF (&ps->fonts, ps->fib.fcSttbfffn, ps->fib.lcbSttbfffn, ps->tablefd); /*we will need the table of names to answer questions like the name of the doc */ if ((ver == WORD6) || (ver == WORD7)) { wvGetSTTBF6 (&ps->anSttbfAssoc, ps->fib.fcSttbfAssoc, ps->fib.lcbSttbfAssoc, ps->tablefd); wvGetSTTBF6 (&ps->Sttbfbkmk, ps->fib.fcSttbfbkmk, ps->fib.lcbSttbfbkmk, ps->tablefd); } else { wvGetSTTBF (&ps->anSttbfAssoc, ps->fib.fcSttbfAssoc, ps->fib.lcbSttbfAssoc, ps->tablefd); wvGetSTTBF (&ps->Sttbfbkmk, ps->fib.fcSttbfbkmk, ps->fib.lcbSttbfbkmk, ps->tablefd); } /*Extract all the list information that we will need to handle lists later on */ wvGetLST (&ps->lst, &ps->noofLST, ps->fib.fcPlcfLst, ps->fib.lcbPlcfLst, ps->tablefd); wvGetLFO_records (&ps->lfo, &ps->lfolvl, &ps->lvl, &ps->nolfo, &ps->nooflvl, ps->fib.fcPlfLfo, ps->fib.lcbPlfLfo, ps->tablefd); /* init the starting list number table */ if (ps->nolfo) { ps->liststartnos = (U32 *) wvMalloc (9 * ps->nolfo * sizeof (U32)); ps->listnfcs = (U8 *) wvMalloc (9 * ps->nolfo); ps->finallvl = (LVL *) wvMalloc (9 * ps->nolfo * sizeof (LVL)); for (i = 0; i < 9 * ps->nolfo; i++) { ps->liststartnos[i] = 0xffffffffL; ps->listnfcs[i] = 0xff; wvInitLVL (&(ps->finallvl[i])); } } else { ps->liststartnos = NULL; ps->listnfcs = NULL; ps->finallvl = NULL; } /*Extract Graphic Information */ wvGetFSPA_PLCF (&ps->fspa, &ps->fspapos, &ps->nooffspa, ps->fib.fcPlcspaMom, ps->fib.lcbPlcspaMom, ps->tablefd); wvGetFDOA_PLCF (&ps->fdoa, &ps->fdoapos, &ps->nooffdoa, ps->fib.fcPlcdoaMom, ps->fib.lcbPlcdoaMom, ps->tablefd); wvGetCLX (ver, &ps->clx, (U32) ps->fib.fcClx, ps->fib.lcbClx, (U8) ps->fib.fExtChar, ps->tablefd); para_fcFirst = char_fcFirst = section_fcFirst = wvConvertCPToFC (0, &ps->clx); #ifdef DEBUG if ((ps->fib.ccpFtn) || (ps->fib.ccpHdr)) wvTrace (("Special ending\n")); #endif /* we will need the paragraph and character bounds table to make decisions as to where a table begins and ends */ if ((ver == WORD6) || (ver == WORD7)) { wvGetBTE_PLCF6 (&btePapx, &posPapx, ¶_intervals, ps->fib.fcPlcfbtePapx, ps->fib.lcbPlcfbtePapx, ps->tablefd); wvGetBTE_PLCF6 (&bteChpx, &posChpx, &char_intervals, ps->fib.fcPlcfbteChpx, ps->fib.lcbPlcfbteChpx, ps->tablefd); } else { wvGetBTE_PLCF (&btePapx, &posPapx, ¶_intervals, ps->fib.fcPlcfbtePapx, ps->fib.lcbPlcfbtePapx, ps->tablefd); wvGetBTE_PLCF (&bteChpx, &posChpx, &char_intervals, ps->fib.fcPlcfbteChpx, ps->fib.lcbPlcfbteChpx, ps->tablefd); } wvGetSED_PLCF (&sed, &posSedx, §ion_intervals, ps->fib.fcPlcfsed, ps->fib.lcbPlcfsed, ps->tablefd); wvTrace (("section_intervals is %d\n", section_intervals)); wvInitPAPX_FKP (¶_fkp); wvInitCHPX_FKP (&char_fkp); if(wvHandleDocument (ps, DOCBEGIN)) goto finish_processing; /*get stream size for bounds checking*/ stream_size = wvStream_size(ps->mainfd); /*for each piece */ for (piececount = 0; piececount < ps->clx.nopcd; piececount++) { ichartype = wvGetPieceBoundsFC (&beginfc, &endfc, &ps->clx, piececount); if(ichartype==-1) break; chartype = (U8) ichartype; /*lvm007@aha.ru fix antiloop: check stream size */ if(beginfc>stream_size || endfc>stream_size){ wvError ( ("Piece Bounds out of range!, its a disaster\n")); continue; } wvStream_goto (ps->mainfd, beginfc); /*lvm007@aha.ru fix antiloop fix*/ if(wvGetPieceBoundsCP (&begincp, &endcp, &ps->clx, piececount)==-1) break; wvTrace ( ("piece begins at %x and ends just before %x. the char end is %x\n", beginfc, endfc, char_fcLim)); /* text that is not in the same piece is not guaranteed to have the same properties as the rest of the exception run, so force a stop and restart of these properties. */ char_fcLim = beginfc; for (i = begincp, j = beginfc; (i < endcp /*&& i<ps->fib.ccpText */ ); i++, j += wvIncFC (chartype)) { ps->currentcp = i; /* character properties */ if (j == char_fcLim) { wvHandleElement (ps, CHARPROPEND, (void *) &achp, char_dirty); char_pendingclose = 0; } /* comment ending location */ if (i == comment_cpLim) { wvHandleElement (ps, COMMENTEND, (void *) catrd, 0); comment_pendingclose = 0; } /* paragraph properties */ if (j == para_fcLim) { wvHandleElement (ps, PARAEND, (void *) &apap, para_dirty); para_pendingclose = 0; } /* section properties */ if (j == section_fcLim) { wvHandleElement (ps, SECTIONEND, (void *) &sep, section_dirty); section_pendingclose = 0; } if ((section_fcLim == 0xffffffff) || (section_fcLim == j)) { section_dirty = wvGetSimpleSectionBounds (ver, ps, &sep, §ion_fcFirst, §ion_fcLim, i, &ps->clx, sed, &spiece, posSedx, section_intervals, &ps->stsh, ps->mainfd); section_dirty = (wvGetComplexSEP (ver, &sep, spiece, &ps->stsh, &ps->clx) ? 1 : section_dirty); } if (j == section_fcFirst) { wvHandleElement (ps, SECTIONBEGIN, (void *) &sep, section_dirty); section_pendingclose = 1; } if ((para_fcLim == 0xffffffffL) || (para_fcLim == j)) { wvReleasePAPX_FKP (¶_fkp); wvTrace ( ("cp and fc are %x(%d) %x\n", i, i, wvConvertCPToFC (i, &ps->clx))); cpiece = wvGetComplexParaBounds (ver, ¶_fkp, ¶_fcFirst, ¶_fcLim, wvConvertCPToFC (i, &ps->clx), &ps->clx, btePapx, posPapx, para_intervals, piececount, ps->mainfd); wvTrace ( ("para begin and end is %x %x\n", para_fcFirst, para_fcLim)); if (0 == para_pendingclose) { /* if there's no paragraph open, but there should be then I believe that the fcFirst search has failed me, so I set it to now. I need to investigate this further. I believe it occurs when a the last piece ended simultaneously with the last paragraph, and that the algorithm for finding the beginning of a para breaks under that condition. I need more examples to be sure, but it happens is very large complex files so its hard to find */ if (j != para_fcFirst) { wvWarning ( ("There is no paragraph due to open but one should be, plugging the gap.\n")); para_fcFirst = j; } } } if (j == para_fcFirst) { para_dirty = wvAssembleSimplePAP (ver, &apap, para_fcLim, ¶_fkp, ps); para_dirty = (wvAssembleComplexPAP (ver, &apap, cpiece, ps) ? 1 : para_dirty); #ifdef SPRMTEST { int p; wvTrace (("Assembled Complex\n")); for (p = 0; p < apap.itbdMac; p++) wvError ( ("Tab stop positions are %f inches (%d)\n", ((float) (apap.rgdxaTab[p])) / 1440, apap.rgdxaTab[p])); } #endif /* test section */ wvReleasePAPX_FKP (¶_fkp); wvTrace ( ("cp and fc are %x(%d) %x\n", i, i, wvConvertCPToFC (i, &ps->clx))); npiece = wvGetComplexParaBounds (ver, ¶_fkp, &dummy, &nextpara_fcLim, para_fcLim, &ps->clx, btePapx, posPapx, para_intervals, piececount, ps->mainfd); wvTrace ( ("para begin and end is %x %x\n", para_fcFirst, para_fcLim)); if (npiece > -1) { wvAssembleSimplePAP (ver, &ps->nextpap, nextpara_fcLim, ¶_fkp, ps); wvAssembleComplexPAP (ver, &ps->nextpap, npiece,ps); } else wvInitPAP (&ps->nextpap); /* end test section */ if ((apap.fInTable) && (!apap.fTtp)) { wvGetComplexFullTableInit (ps, para_intervals, btePapx, posPapx, piececount); wvGetComplexRowTap (ps, &apap, para_intervals, btePapx, posPapx, piececount); } else if (apap.fInTable == 0) ps->intable = 0; wvHandleElement (ps, PARABEGIN, (void *) &apap, para_dirty); char_fcLim = j; para_pendingclose = 1; } if ((comment_cpLim == 0xffffffffL) || (comment_cpLim == i)) { wvTrace ( ("searching for the next comment begin cp is %d\n", i)); catrd = wvGetCommentBounds (&comment_cpFirst, &comment_cpLim, i, atrd, posAtrd, atrd_intervals, &SttbfAtnbkmk, bkf, posBKF, bkf_intervals, bkl, posBKL, bkl_intervals); wvTrace ( ("begin and end are %d %d\n", comment_cpFirst, comment_cpLim)); } if (i == comment_cpFirst) { wvHandleElement (ps, COMMENTBEGIN, (void *) catrd, 0); comment_pendingclose = 1; } if ((char_fcLim == 0xffffffffL) || (char_fcLim == j)) { wvReleaseCHPX_FKP (&char_fkp); /*try this without using the piece of the end char for anything */ wvGetComplexCharBounds (ver, &char_fkp, &char_fcFirst, &char_fcLim, wvConvertCPToFC (i, &ps->clx), &ps->clx, bteChpx, posChpx, char_intervals, piececount, ps->mainfd); wvTrace ( ("Bounds from %x to %x\n", char_fcFirst, char_fcLim)); if (char_fcLim == char_fcFirst) wvError ( ("I believe that this is an error, and you might see incorrect character properties\n")); if (0 == char_pendingclose) { /* if there's no character run open, but there should be then I believe that the fcFirst search has failed me, so I set it to now. I need to investigate this further. */ if (j != char_fcFirst) { wvTrace ( ("There is no character run due to open but one should be, plugging the gap.\n")); char_fcFirst = j; } } else{ /* lvm007@aha.ru fix: if currentfc>fcFirst but CHARPROP's changed look examples/charprops.doc for decode_simple*/ if(char_fcFirst< j) char_fcFirst = j; } } if (j == char_fcFirst) { /* a CHP's base style is in the para style */ /*achp.istd = apap.istd;*/ wvTrace (("getting chp\n")); char_dirty = wvAssembleSimpleCHP (ver, &achp, &apap, char_fcLim, &char_fkp, &ps->stsh); wvTrace (("getting complex chp\n")); char_dirty = (wvAssembleComplexCHP (ver, &achp, cpiece, &ps->stsh, &ps->clx) ? 1 : char_dirty); wvHandleElement (ps, CHARPROPBEGIN, (void *) &achp, char_dirty); char_pendingclose = 1; } eachchar = wvGetChar (ps->mainfd, chartype); /* previously, in place of ps there was a NULL, * but it was crashing Abiword. Was it NULL for a * reason? -JB */ /* nah, it was a oversight from when i didn't actually use ps in this function C. */ if ((eachchar == 0x07) && (!achp.fSpec)) ps->endcell = 1; wvTrace (("char pos is %x %x\n", j, eachchar)); wvOutputTextChar (eachchar, chartype, ps, &achp); } if (j == para_fcLim) { wvHandleElement (ps, PARAEND, (void *) &apap, para_dirty); para_pendingclose = 0; para_fcLim = 0xffffffffL; } if (i == comment_cpLim) { wvHandleElement (ps, COMMENTEND, (void *) catrd, 0); comment_pendingclose = 0; comment_cpLim = 0xffffffffL; } if (j == char_fcLim) { wvHandleElement (ps, CHARPROPEND, (void *) &achp, char_dirty); char_pendingclose = 0; char_fcLim = 0xffffffffL; } #if 0 /* I might have to rethink this closing tag enforcer for complex mode, have to think the flow out a bit more, this section one is plain wrong, im leaving it here so i won't forget and be tempted to put it back in :-) if (j == section_fcLim) { wvHandleElement(ps, SECTIONEND, (void*)&sep,section_dirty); section_pendingclose=0; } */ #endif } finish_processing: if (char_pendingclose) { wvInitCHP (&achp); wvHandleElement (ps, CHARPROPEND, (void *) &achp, char_dirty); } if (comment_pendingclose) wvHandleElement (ps, COMMENTEND, (void *) catrd, 0); if (para_pendingclose) { wvInitPAP (&apap); wvHandleElement (ps, PARAEND, (void *) &apap, para_dirty); } if (section_pendingclose) wvHandleElement (ps, SECTIONEND, (void *) &sep, section_dirty); wvFree (ps->fspa); wvFree (ps->fspapos); wvFree (ps->fdoa); wvFree (ps->fdoapos); wvFree (posBKL); wvFree (bkl); wvFree (posBKF); wvFree (bkf); wvFree (posAtrd); wvFree (atrd); wvReleasePAPX_FKP (¶_fkp); wvReleaseCHPX_FKP (&char_fkp); wvHandleDocument (ps, DOCEND); wvFree (posSedx); wvFree (sed); wvFree (ps->liststartnos); wvFree (ps->listnfcs); for (i = 0; i < 9 * ps->nolfo; i++) wvReleaseLVL (&(ps->finallvl[i])); wvFree (ps->finallvl); wvReleaseLST (&ps->lst, ps->noofLST); wvReleaseLFO_records (&ps->lfo, &ps->lfolvl, &ps->lvl, ps->nooflvl); wvReleaseSTTBF (&ps->anSttbfAssoc); wvFree (btePapx); wvFree (posPapx); wvFree (bteChpx); wvFree (posChpx); wvReleaseCLX (&ps->clx); wvReleaseFFN_STTBF (&ps->fonts); wvReleaseSTSH (&ps->stsh); wvReleaseSTTBF (&SttbfAtnbkmk); wvReleaseSTTBF (&grpXstAtnOwners); if (ps->vmerges) { for (i = 0; i < ps->norows; i++) wvFree (ps->vmerges[i]); wvFree (ps->vmerges); } wvFree (ps->cellbounds); wvOLEFree(ps); tokenTreeFreeAll (); } /* The process thus far has created a SEP that describes what the section properties of the section at the last full save. 1) Now apply any section sprms that were linked to the piece that contains the section's section mark. 2) If pcd.prm.fComplex is 0, pcd.prm contains 1 sprm which should be applied to the local SEP if it is a section sprm. 3) If pcd.prm.fComplex is 1, pcd.prm.igrpprl is the index of a grpprl in the CLX. If that grpprl contains any section sprms, they should be applied to the local SEP */ int wvGetComplexSEP (wvVersion ver, SEP * sep, U32 cpiece, STSH * stsh, CLX * clx) { int ret = 0; U16 sprm, pos = 0, i = 0; U8 *pointer; U16 index; U8 val; Sprm RetSprm; if (clx->pcd[cpiece].prm.fComplex == 0) { val = clx->pcd[cpiece].prm.para.var1.val; pointer = &val; #ifdef SPRMTEST wvError (("singleton\n", clx->pcd[cpiece].prm.para.var1.isprm)); #endif RetSprm = wvApplySprmFromBucket (ver, (U16) wvGetrgsprmPrm ( (U16) clx->pcd[cpiece].prm. para.var1.isprm), NULL, NULL, sep, stsh, pointer, &pos, NULL); if (RetSprm.sgc == sgcSep) ret = 1; } else { index = clx->pcd[cpiece].prm.para.var2.igrpprl; #ifdef SPRMTEST fprintf (stderr, "\n"); while (i < clx->cbGrpprl[index]) { fprintf (stderr, "%x (%d)\n", *(clx->grpprl[index] + i), *(clx->grpprl[index] + i)); i++; } fprintf (stderr, "\n"); i = 0; #endif while (i < clx->cbGrpprl[index]) { if (ver == WORD8) sprm = bread_16ubit (clx->grpprl[index] + i, &i); else { sprm = bread_8ubit (clx->grpprl[index] + i, &i); sprm = (U8) wvGetrgsprmWord6 ( (U8) sprm); } pointer = clx->grpprl[index] + i; RetSprm = wvApplySprmFromBucket (ver, sprm, NULL, NULL, sep, stsh, pointer, &i, NULL); if (RetSprm.sgc == sgcSep) ret = 1; } } return (ret); } /* The process thus far has created a PAP that describes what the paragraph properties of the paragraph were at the last full save. 1) Now it's necessary to apply any paragraph sprms that were linked to the piece that contains the paragraph's paragraph mark. 2) If pcd.prm.fComplex is 0, pcd.prm contains 1 sprm which should only be applied to the local PAP if it is a paragraph sprm. 3) If pcd.prm.fComplex is 1, pcd.prm.igrpprl is the index of a grpprl in the CLX. If that grpprl contains any paragraph sprms, they should be applied to the local PAP. */ int wvAssembleComplexPAP (wvVersion ver, PAP * apap, U32 cpiece, wvParseStruct *ps) { int ret = 0; U16 sprm, pos = 0, i = 0; U8 sprm8; U8 *pointer; U16 index; U8 val; Sprm RetSprm; if (ps->clx.pcd[cpiece].prm.fComplex == 0) { val = ps->clx.pcd[cpiece].prm.para.var1.val; pointer = &val; #ifdef SPRMTEST wvError (("singleton\n", ps->clx.pcd[cpiece].prm.para.var1.isprm)); #endif RetSprm = wvApplySprmFromBucket (ver, (U16) wvGetrgsprmPrm ( (U16) ps->clx.pcd[cpiece].prm. para.var1.isprm), apap, NULL, NULL, &ps->stsh, pointer, &pos, ps->data); if (RetSprm.sgc == sgcPara) ret = 1; } else { index = ps->clx.pcd[cpiece].prm.para.var2.igrpprl; #ifdef SPRMTEST wvError (("HERE-->\n")); fprintf (stderr, "\n"); for (i = 0; i < ps->clx.cbGrpprl[index]; i++) fprintf (stderr, "%x ", *(ps->clx.grpprl[index] + i)); fprintf (stderr, "\n"); i = 0; #endif while (i < ps->clx.cbGrpprl[index]) { if (ver == WORD8) sprm = bread_16ubit (ps->clx.grpprl[index] + i, &i); else { sprm8 = bread_8ubit (ps->clx.grpprl[index] + i, &i); sprm = (U16) wvGetrgsprmWord6 (sprm8); wvTrace (("sprm is %x\n", sprm)); } pointer = ps->clx.grpprl[index] + i; RetSprm = wvApplySprmFromBucket (ver, sprm, apap, NULL, NULL, &ps->stsh, pointer, &i, ps->data); if (RetSprm.sgc == sgcPara) ret = 1; } } return (ret); } /* CHP version of the above. follows the same rules -JB */ int wvAssembleComplexCHP (wvVersion ver, CHP * achp, U32 cpiece, STSH * stsh, CLX * clx) { int ret = 0; U16 sprm, pos = 0, i = 0; U8 sprm8; U8 *pointer; U16 index; U8 val; Sprm RetSprm; if (clx->pcd[cpiece].prm.fComplex == 0) { val = clx->pcd[cpiece].prm.para.var1.val; pointer = &val; #ifdef SPRMTEST wvError (("singleton %d\n", clx->pcd[cpiece].prm.para.var1.isprm)); #endif RetSprm = wvApplySprmFromBucket (ver, (U16) wvGetrgsprmPrm ( (U16) clx->pcd[cpiece].prm. para.var1.isprm), NULL, achp, NULL, stsh, pointer, &pos, NULL); if (RetSprm.sgc == sgcChp) ret = 1; } else { index = clx->pcd[cpiece].prm.para.var2.igrpprl; #ifdef SPRMTEST fprintf (stderr, "\n"); for (i = 0; i < clx->cbGrpprl[index]; i++) fprintf (stderr, "%x ", *(clx->grpprl[index] + i)); fprintf (stderr, "\n"); i = 0; #endif while (i < clx->cbGrpprl[index]) { if (ver == WORD8) sprm = bread_16ubit (clx->grpprl[index] + i, &i); else { sprm8 = bread_8ubit (clx->grpprl[index] + i, &i); sprm = (U16) wvGetrgsprmWord6 (sprm8); } pointer = clx->grpprl[index] + i; RetSprm = wvApplySprmFromBucket (ver, sprm, NULL, achp, NULL, stsh, pointer, &i, NULL); if (RetSprm.sgc == sgcChp) ret = 1; } } return (ret); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/bx.c���������������������������������������������������������������������������������������0000664�0000764�0000764�00000002246�11247156607�007704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetBX (BX * item, U8 * page, U16 * pos) { item->offset = bread_8ubit (&(page[*pos]), pos); wvGetPHE (&item->phe, 0, page, pos); } void wvGetBX6 (BX * item, U8 * page, U16 * pos) { item->offset = bread_8ubit (&(page[*pos]), pos); wvGetPHE6 (&item->phe, page, pos); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvCleanLatex.in����������������������������������������������������������������������������0000664�0000764�0000764�00000006064�11247156606�012055� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh wv_script_name="$0" prefix=@prefix@ exec_prefix= datadir= t_dir=. wv_opts= i_file= o_file= print_help=no while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg ;; --exec-prefix=*) exec_prefix=$optarg ;; --datadir=*) datadir=$optarg ;; --targetdir=*) t_dir=$optarg ;; --charset=* | --password=*) wv_opts="$wv_opts $1" ;; -v | --version) echo @VERSION@ exit 0 ;; -\? | -h | --help) cat << EOF Usage: $wv_script_name [OPTIONS] <input-file> <output-file> Options: --prefix=<DIR> Set prefix (default is @prefix@) --exec-prefix=<DIR> Set exec_prefix (default is @exec_prefix@) --datadir=<DIR> Set datadir (default is @datadir@) --targetdir=<DIR> Target directory (target is <DIR>/<output-file>) --charset=<charset> Specify an iconv charset encoding --password=<password> Specify password for encrypted -v, --version Print version info and exit Authors: Dom Lachowicz (dominicl@seas.upenn.edu) Caolan McNamara (original author) Visit http://www.wvware.com/ EOF exit 0 ;; -?*) echo "Option '$1' not recognized." exit 1 ;; *) if test "x$i_file" = "x"; then i_file=$1 elif test "x$o_file" = "x"; then o_file=$1 else echo "Option '$1' not recognized." exit 1 fi ;; esac shift done if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as input" exit 1 fi if test -r "$i_file"; then okay=yes else echo "error: '$i_file' unreadable" exit 1 fi if test "x$o_file" = "x"; then echo "Usage: $1 [OPTIONS] <input-file> <output-file>" exit 1 fi name=`basename "$o_file"` if test "x$o_file" != "x$name"; then echo "* * * Better to use '--targetdir' for writing in another directory * * *" exit 1 fi sp_chk=`echo $name | sed "s/ /_/g"` if test "x$name" != "x$sp_chk"; then echo "sorry, LaTeX file names cannot contain spaces." exit 1 fi name=`echo $name | sed 's/\.[^\.]*$//'` if test "x$exec_prefix" = "x"; then exec_prefix=@exec_prefix@ fi wv_exec="$exec_prefix/bin/wvWare" if test -x "$wv_exec"; then okay=yes else wv_version=`wvWare -v 2>&1 | cut -f 2 -d " "` if test "x$wv_version" = "x@VERSION@"; then wv_exec="wvWare" else echo "error: no executable at '$wv_exec' or in path" exit 1 fi fi if test "x$datadir" = "x"; then datadir=@datadir@ fi xmlcfg="$datadir/wv/wvCleanLaTeX.xml" if test -r "$xmlcfg"; then okay=yes else echo "error: '$xmlcfg' unreadable" exit 1 fi if test -d "$t_dir"; then if test -w "$t_dir"; then okay=yes else echo "error: '$t_dir' is not writable" exit 1 fi else echo "error: '$t_dir' is not a directory" exit 1 fi if test "x$o_file" = "x-"; then "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" else "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" > "$t_dir"/"$o_file" fi ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/dttm.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000005252�11247156606�010242� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" void wvGetDTTM (DTTM * item, wvStream * fd) { U16 a = read_16ubit (fd); U16 b = read_16ubit (fd); wvCreateDTTM (item, a, b); } void wvGetDTTMFromBucket (DTTM * item, U8 * pointer) { U16 a = dread_16ubit (NULL, &pointer); U16 b = dread_16ubit (NULL, &pointer); wvCreateDTTM (item, a, b); } void wvCreateDTTM (DTTM * dttm, U16 temp1_16, U16 temp2_16) { dttm->mint = temp1_16 & 0x003F; dttm->hr = (temp1_16 & 0x07C0) >> 6; dttm->dom = (temp1_16 & 0xF800) >> 11; dttm->mon = temp2_16 & 0x000F; dttm->yr = (temp2_16 & 0x1FF0) >> 4; dttm->wdy = (temp2_16 & 0xE000) >> 13; } void wvInitDTTM (DTTM * dttm) { dttm->mint = 0; dttm->hr = 0; dttm->dom = 0; dttm->mon = 0; dttm->yr = 0; dttm->wdy = 0; } void wvCopyDTTM (DTTM * dest, DTTM * src) { memcpy (dest, src, sizeof (DTTM)); } void wvListDTTM (DTTM * src) { wvError (("min is %d\n", src->mint)); wvError (("hr is %d\n", src->hr)); wvError (("dom is %d\n", src->dom)); wvError (("mon is %d\n", src->mon)); wvError (("yr is %d\n", src->yr)); wvError (("wdy is %d\n", src->wdy)); } /* * dont free the char * back from this, its engine is * ctime */ char * wvDTTMtoUnix (DTTM * src) { /* im concerned with the lack of yday to i run it through the system to fill it in before using asctime */ time_t t; struct tm out; wvListDTTM (src); out.tm_sec = 0; out.tm_min = src->mint; out.tm_hour = src->hr; out.tm_mday = src->dom; out.tm_mon = src->mon - 1; out.tm_year = src->yr; out.tm_wday = src->wdy; out.tm_yday = 0; out.tm_isdst = -1; t = mktime (&out); if (t == -1) { wvWarning ("Bad Time!!, not critical error\n"); return (NULL); } return (ctime (&t)); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/text.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000161314�11247156606�010260� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include "wv.h" #include <glib.h> int (*wvConvertUnicodeToEntity) (U16 char16) = NULL; /* enough word docs use the cp1252 encoding and enough iconv * implementations don't include it that it's worth special- * casing */ static const U16 cp1252_to_ucs2_table[] = { 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007 , 0x0008, 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x000E, 0x000F , 0x0010, 0x0011, 0x0012, 0x0013, 0x0014, 0x0015, 0x0016, 0x0017 , 0x0018, 0x0019, 0x001A, 0x001B, 0x001C, 0x001D, 0x001E, 0x001F , 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x0025, 0x0026, 0x0027 , 0x0028, 0x0029, 0x002A, 0x002B, 0x002C, 0x002D, 0x002E, 0x002F , 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037 , 0x0038, 0x0039, 0x003A, 0x003B, 0x003C, 0x003D, 0x003E, 0x003F , 0x0040, 0x0041, 0x0042, 0x0043, 0x0044, 0x0045, 0x0046, 0x0047 , 0x0048, 0x0049, 0x004A, 0x004B, 0x004C, 0x004D, 0x004E, 0x004F , 0x0050, 0x0051, 0x0052, 0x0053, 0x0054, 0x0055, 0x0056, 0x0057 , 0x0058, 0x0059, 0x005A, 0x005B, 0x005C, 0x005D, 0x005E, 0x005F , 0x0060, 0x0061, 0x0062, 0x0063, 0x0064, 0x0065, 0x0066, 0x0067 , 0x0068, 0x0069, 0x006A, 0x006B, 0x006C, 0x006D, 0x006E, 0x006F , 0x0070, 0x0071, 0x0072, 0x0073, 0x0074, 0x0075, 0x0076, 0x0077 , 0x0078, 0x0079, 0x007A, 0x007B, 0x007C, 0x007D, 0x007E, 0x007F , 0x20AC, 0x0000, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021 , 0x02C6, 0x2030, 0x0160, 0x2039, 0x0152, 0x0000, 0x017D, 0x0000 , 0x0000, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014 , 0x02DC, 0x2122, 0x0161, 0x203A, 0x0153, 0x0000, 0x017E, 0x0178 , 0x00A0, 0x00A1, 0x00A2, 0x00A3, 0x00A4, 0x00A5, 0x00A6, 0x00A7 , 0x00A8, 0x00A9, 0x00AA, 0x00AB, 0x00AC, 0x00AD, 0x00AE, 0x00AF , 0x00B0, 0x00B1, 0x00B2, 0x00B3, 0x00B4, 0x00B5, 0x00B6, 0x00B7 , 0x00B8, 0x00B9, 0x00BA, 0x00BB, 0x00BC, 0x00BD, 0x00BE, 0x00BF , 0x00C0, 0x00C1, 0x00C2, 0x00C3, 0x00C4, 0x00C5, 0x00C6, 0x00C7 , 0x00C8, 0x00C9, 0x00CA, 0x00CB, 0x00CC, 0x00CD, 0x00CE, 0x00CF , 0x00D0, 0x00D1, 0x00D2, 0x00D3, 0x00D4, 0x00D5, 0x00D6, 0x00D7 , 0x00D8, 0x00D9, 0x00DA, 0x00DB, 0x00DC, 0x00DD, 0x00DE, 0x00DF , 0x00E0, 0x00E1, 0x00E2, 0x00E3, 0x00E4, 0x00E5, 0x00E6, 0x00E7 , 0x00E8, 0x00E9, 0x00EA, 0x00EB, 0x00EC, 0x00ED, 0x00EE, 0x00EF , 0x00F0, 0x00F1, 0x00F2, 0x00F3, 0x00F4, 0x00F5, 0x00F6, 0x00F7 , 0x00F8, 0x00F9, 0x00FA, 0x00FB, 0x00FC, 0x00FD, 0x00FE, 0x00FF }; U16 wvnLocaleToLIDConverter (U8 nLocale) { switch (nLocale) { #if 0 /* case 0: */ /* ANSI_CHARSET */ /* case 1: */ /* DEFAULT_CHARSET */ /* case 2: */ /* SYMBOL_CHARSET */ #endif case 77: /* MAC_CHARSET */ return (0xFFF); /* This number is a hack */ case 128: /* SHIFTJIS_CHARSET */ return (0x411); /* Japanese */ case 129: /* HANGEUL_CHARSET */ return (0x412); /* Korean */ case 130: /* JOHAB_CHARSET */ return (0x812); /* Korean (Johab) */ case 134: /* GB2312_CHARSET - Chinese Simplified */ return (0x804); /* China PRC - And others!! */ case 136: /* CHINESEBIG5_CHARSET - Chinese Traditional */ return (0x404); /* Taiwan - And others!! */ case 161: /* GREEK_CHARSET */ return (0x408); /* Greek */ case 162: /* TURKISH_CHARSET */ return (0x41f); /* Turkish */ case 163: /* VIETNAMESE_CHARSET */ return (0x42a); /* Vietnamese */ case 177: /* HEBREW_CHARSET */ return (0x40d); /* Hebrew */ case 178: /* ARABIC_CHARSET */ return (0x01); /* Arabic */ case 186: /* BALTIC_CHARSET */ return (0x425); /* Estonian - And others!! */ case 204: /* RUSSIAN_CHARSET */ return (0x419); /* Russian - And others!! */ case 222: /* THAI_CHARSET */ return (0x41e); /* Thai */ case 238: /* EASTEUROPE_CHARSET */ return (0x405); /* Czech - And many others!! */ #if 0 /* case 255: */ /* OEM_CHARSET */ #endif default: return (0x0); } return (0x0); } int wvOutputTextChar (U16 eachchar, U8 chartype, wvParseStruct * ps, CHP * achp) { U16 lid = 0; wvVersion v = wvQuerySupported (&ps->fib, NULL); /* testing adding a language */ /* For version <= WORD7, The charset used could * depend on the font's charset. */ if ((v <= WORD7) && (!ps->fib.fFarEast)) { FFN currentfont; if (ps->fonts.ffn == NULL) { lid = 0; } else { currentfont = ps->fonts.ffn[achp->ftc]; /* Return 0 if no match */ lid = wvnLocaleToLIDConverter (currentfont.chs); } } if ((v > WORD6) && !lid) lid = achp->lidDefault; /* No lidDefault for ver < WORD6 */ if (lid == 0x400 || lid == 0) lid = ps->fib.lid; /* end testing adding a language */ if (achp->fSpec) { /* if the character is still one of the special ones then call this other handler instead */ if (ps->scharhandler) return ((*(ps->scharhandler)) (ps, eachchar, achp)); } else { /* Most Chars go through this baby */ if (ps->charhandler) { if (!((v == WORD7 || v == WORD6) && ps->fib.fFarEast)) if (v <= WORD7) { /* versions <= 7 do not use unicode. versions >= 8 always do */ /* versions 7 and 6 use unicode iff the far-east flag is set */ chartype = 1; } return ((*(ps->charhandler)) (ps, eachchar, chartype, lid)); } } wvError (("No CharHandler registered, programmer error\n")); return (0); } void wvOutputHtmlChar (U16 eachchar, U8 chartype, char *outputtype, U16 lid) { if (chartype) eachchar = wvHandleCodePage (eachchar, lid); wvOutputFromUnicode (eachchar, outputtype); } #define CPNAME_OR_FALLBACK(name,fallbackname) \ { \ static char* cpname = NULL; \ if (!cpname) \ { \ GIConv cd = g_iconv_open(name,name); \ if (cd==(GIConv)-1) \ { \ cpname = fallbackname; \ } \ else \ { \ cpname = name; \ g_iconv_close(cd); \ } \ }; \ return cpname; \ } typedef struct { const char * language_tag ; U16 lid ; } wvLanguageId ; static const wvLanguageId mLanguageIds[] = { { "-none-", 0x0000 }, /* none (language neutral) */ { "-none-", 0x0400 }, /* none */ { "af-ZA", 0x0436 }, /* Afrikaans */ { "am", 0x045e }, /* Amharic */ { "sq-AL", 0x041c }, /* Albanian */ { "ar-SA", 0x0401 }, /* Arabic (Saudi) */ { "ar-IQ", 0x0801 }, /* Arabic (Iraq) */ { "ar-EG", 0x0c01 }, /* Arabic (Egypt) */ { "ar-LY", 0x1001 }, /* Arabic (Libya) */ { "ar-DZ", 0x1401 }, /* Arabic (Algeria) */ { "ar-MA", 0x1801 }, /* Arabic (Morocco) */ { "ar-TN", 0x1c01 }, /* Arabic (Tunisia) */ { "ar-OM", 0x2001 }, /* Arabic (Oman) */ { "ar-YE", 0x2401 }, /* Arabic (Yemen) */ { "ar-SY", 0x2801 }, /* Arabic (Syria) */ { "ar-JO", 0x2c01 }, /* Arabic (Jordan) */ { "ar-LB", 0x3001 }, /* Arabic (Lebanon) */ { "ar-KW", 0x3401 }, /* Arabic (Kuwait) */ { "ar-AE", 0x3801 }, /* Arabic (United Arab Emirates) */ { "ar-BH", 0x3c01 }, /* Arabic (Bahrain) */ { "ar-QA", 0x4001 }, /* Arabic (Qatar) */ { "as", 0x044d }, /* Assamese */ { "az", 0x042c }, /* Azerbaijani */ { "hy-AM", 0x042b }, /* Armenian */ { "az", 0x044c }, /* Azeri (Latin) az- */ { "az", 0x082c }, /* Azeri (Cyrillic) az- */ { "eu-ES", 0x042d }, /* Basque */ { "be-BY", 0x0423 }, /* Belarussian */ { "bn", 0x0445 }, /* Bengali bn- */ { "bg-BG", 0x0402 }, /* Bulgarian */ { "ca-ES", 0x0403 }, /* Catalan */ { "zh-TW", 0x0404 }, /* Chinese (Taiwan) */ { "zh-CN", 0x0804 }, /* Chinese (PRC) */ { "zh-HK", 0x0c04 }, /* Chinese (Hong Kong) */ { "zh-SG", 0x1004 }, /* Chinese (Singapore) */ { "ch-MO", 0x1404 }, /* Chinese (Macau SAR) */ { "hr-HR", 0x041a }, /* Croatian */ { "cs-CZ", 0x0405 }, /* Czech */ { "da-DK", 0x0406 }, /* Danish */ { "div", 0x465 }, /* Divehi div-*/ { "nl-NL", 0x0413 }, /* Dutch (Netherlands) */ { "nl-BE", 0x0813 }, /* Dutch (Belgium) */ { "en-US", 0x0409 }, /* English (USA) */ { "en-GB", 0x0809 }, /* English (UK) */ { "en-AU", 0x0c09 }, /* English (Australia) */ { "en-CA", 0x1009 }, /* English (Canada) */ { "en-NZ", 0x1409 }, /* English (New Zealand) */ { "en-IE", 0x1809 }, /* English (Ireland) */ { "en-ZA", 0x1c09 }, /* English (South Africa) */ { "en-JM", 0x2009 }, /* English (Jamaica) */ { "en", 0x2409 }, /* English (Caribbean) */ { "en-BZ", 0x2809 }, /* English (Belize) */ { "en-TT", 0x2c09 }, /* English (Trinidad) */ { "en-ZW", 0x3009 }, /* English (Zimbabwe) */ { "en-PH", 0x3409 }, /* English (Phillipines) */ { "et-EE", 0x0425 }, /* Estonian */ { "fo", 0x0438 }, /* Faeroese fo- */ { "fa-IR", 0x0429 }, /* Farsi */ { "fi-FI", 0x040b }, /* Finnish */ { "fr-FR", 0x040c }, /* French (France) */ { "fr-BE", 0x080c }, /* French (Belgium) */ { "fr-CA", 0x0c0c }, /* French (Canada) */ { "fr-CH", 0x100c }, /* French (Switzerland) */ { "fr-LU", 0x140c }, /* French (Luxembourg) */ { "fr-MC", 0x180c }, /* French (Monaco) */ { "gl", 0x0456 }, /* Galician gl- */ { "ga-IE", 0x083c }, /* Irish Gaelic */ { "gd-GB", 0x100c }, /* Scottish Gaelic */ { "ka-GE", 0x0437 }, /* Georgian */ { "de-DE", 0x0407 }, /* German (Germany) */ { "de-CH", 0x0807 }, /* German (Switzerland) */ { "de-AT", 0x0c07 }, /* German (Austria) */ { "de-LU", 0x1007 }, /* German (Luxembourg) */ { "de-LI", 0x1407 }, /* German (Liechtenstein) */ { "el-GR", 0x0408 }, /* Greek */ { "gu", 0x0447 }, /* Gujarati gu- */ { "ha", 0x0468 }, /* Hausa */ { "he-IL", 0x040d }, /* Hebrew */ { "hi-IN", 0x0439 }, /* Hindi */ { "hu-HU", 0x040e }, /* Hungarian */ { "is-IS", 0x040f }, /* Icelandic */ { "id-ID", 0x0421 }, /* Indonesian */ { "iu", 0x045d }, /* Inkutitut */ { "it-IT", 0x0410 }, /* Italian (Italy) */ { "it-CH", 0x0810 }, /* Italian (Switzerland) */ { "ja-JP", 0x0411}, /* Japanese */ { "kn", 0x044b }, /* Kannada kn- */ { "ks", 0x0860 }, /* Kashmiri (India) ks- */ { "kk", 0x043f }, /* Kazakh kk- */ { "kok", 0x0457 }, /* Konkani kok- */ { "ko-KR", 0x0412 }, /* Korean */ { "ko", 0x0812 }, /* Korean (Johab) ko- */ { "kir", 0x0440 }, /* Kyrgyz */ { "la", 0x0476 }, /* Latin */ { "lo", 0x0454 }, /* Laothian */ { "lv-LV", 0x0426 }, /* Latvian */ { "lt-LT", 0x0427 }, /* Lithuanian */ { "lt-LT", 0x0827 }, /* Lithuanian (Classic) */ { "mk", 0x042f }, /* FYRO Macedonian */ { "my-MY", 0x043e }, /* Malaysian */ { "my-BN", 0x083e }, /* Malay Brunei Darussalam */ { "ml", 0x044c }, /* Malayalam ml- */ { "mr", 0x044e }, /* Marathi mr- */ { "mt", 0x043a }, /* Maltese */ { "mo", 0x0450 }, /* Mongolian */ { "ne-NP", 0x0461 }, /* Napali (Nepal) */ { "ne-IN", 0x0861 }, /* Nepali (India) */ { "nb-NO", 0x0414 }, /* Norwegian (Bokmai) */ { "nn-NO", 0x0814 }, /* Norwegian (Nynorsk) */ { "or", 0x0448 }, /* Oriya or- */ { "om", 0x0472 }, /* Oromo (Afan, Galla) */ { "pl-PL", 0x0415 }, /* Polish */ { "pt-BR", 0x0416 }, /* Portuguese (Brazil) */ { "pt-PT", 0x0816 }, /* Portuguese (Portugal) */ { "pa", 0x0446 }, /* Punjabi pa- */ { "ps", 0x0463 }, /* Pashto (Pushto) */ { "rm", 0x0417 }, /* Rhaeto-Romanic rm- */ { "ro-RO", 0x0418 }, /* Romanian */ { "ro-MD", 0x0818 }, /* Romanian (Moldova) */ { "ru-RU", 0x0419 }, /* Russian */ { "ru-MD", 0x0819 }, /* Russian (Moldova) */ { "se", 0x043b }, /* Sami (Lappish) se- */ { "sa", 0x044f }, /* Sanskrit sa- */ { "sr", 0x0c1a }, /* Serbian (Cyrillic) sr- */ { "sr", 0x081a }, /* Serbian (Latin) sr- */ { "sd", 0x0459 }, /* Sindhi sd- */ { "sk-SK", 0x041b }, /* Slovak */ { "sl-SI", 0x0424 }, /* Slovenian */ { "wen", 0x042e }, /* Sorbian wen- */ { "so", 0x0477 }, /* Somali */ { "es-ES", 0x040a }, /* Spanish (Spain, Traditional) */ { "es-MX", 0x080a }, /* Spanish (Mexico) */ { "es-ES", 0x0c0a }, /* Spanish (Modern) */ { "es-GT", 0x100a }, /* Spanish (Guatemala) */ { "es-CR", 0x140a }, /* Spanish (Costa Rica) */ { "es-PA", 0x180a }, /* Spanish (Panama) */ { "es-DO", 0x1c0a }, /* Spanish (Dominican Republic) */ { "es-VE", 0x200a }, /* Spanish (Venezuela) */ { "es-CO", 0x240a }, /* Spanish (Colombia) */ { "es-PE", 0x280a }, /* Spanish (Peru) */ { "es-AR", 0x2c0a }, /* Spanish (Argentina) */ { "es-EC", 0x300a }, /* Spanish (Ecuador) */ { "es-CL", 0x340a }, /* Spanish (Chile) */ { "es-UY", 0x380a }, /* Spanish (Uruguay) */ { "es-PY", 0x3c0a }, /* Spanish (Paraguay) */ { "es-BO", 0x400a }, /* Spanish (Bolivia) */ { "es-SV", 0x440a }, /* Spanish (El Salvador) */ { "es-HN", 0x480a }, /* Spanish (Honduras) */ { "es-NI", 0x4c0a }, /* Spanish (Nicaragua) */ { "es-PR", 0x500a }, /* Spanish (Puerto Rico) */ { "sx", 0x0430 }, /* Sutu */ { "sw", 0x0441 }, /* Swahili (Kiswahili/Kenya) */ { "sv-SE", 0x041d }, /* Swedish */ { "sv-FI", 0x081d }, /* Swedish (Finland) */ { "ta", 0x0449 }, /* Tamil ta- */ { "tt", 0x0444 }, /* Tatar (Tatarstan) tt- */ { "te", 0x044a }, /* Telugu te- */ { "th-TH", 0x041e }, /* Thai */ { "ts", 0x0431 }, /* Tsonga ts- */ { "tn", 0x0432 }, /* Tswana tn- */ { "tr-TR", 0x041f }, /* Turkish */ { "tl", 0x0464 }, /* Tagalog */ { "tg", 0x0428 }, /* Tajik */ { "bo", 0x0451 }, /* Tibetan */ { "ti", 0x0473 }, /* Tigrinya */ { "uk-UA", 0x0422 }, /* Ukrainian */ { "ur-PK", 0x0420 }, /* Urdu (Pakistan) */ { "ur-IN", 0x0820 }, /* Urdu (India) */ { "uz", 0x0443 }, /* Uzbek (Latin) uz- */ { "uz", 0x0843 }, /* Uzbek (Cyrillic) uz- */ { "ven", 0x0433 }, /* Venda ven- */ { "vi-VN", 0x042a }, /* Vietnamese */ { "cy-GB", 0x0452 }, /* Welsh */ { "xh", 0x0434 }, /* Xhosa xh */ { "yi", 0x043d }, /* Yiddish yi- */ { "yo", 0x046a }, /* Yoruba */ { "zu", 0x0435 }, /* Zulu zu- */ { "en-US", 0x0800 } /* Default */ }; #define NrMappings (sizeof(mLanguageIds)/sizeof(mLanguageIds[0])) U16 wvLangToLIDConverter ( const char * lang ) { unsigned int i = 0 ; if (!lang) return 0x0400; /* return -none- */ for ( i = 0 ; i < NrMappings ; i++ ) if (!strcmp (lang, mLanguageIds[i].language_tag)) return mLanguageIds[i].lid ; return 0x0400 ; /* return -none- */ } const char * wvLIDToLangConverter (U16 lid) { unsigned int i = 0 ; if ( lid == 0 ) /* language netural */ return "-none-" ; for ( i = 0 ; i < NrMappings ; i++ ) if ( mLanguageIds[i].lid == lid ) return mLanguageIds[i].language_tag ; return "-none-"; /* default */ } static int wvIsCP1252 (U16 lid) { switch (lid & 0xff) { case 0x03: /*Catalan */ case 0x06: /*Danish */ case 0x07: /*German */ case 0x09: /*English */ case 0x0a: /*Spanish */ case 0x0b: /*Finnish */ case 0x0c: /*French */ case 0x0f: /*Icelandic */ case 0x10: /*Italian */ case 0x13: /*Dutch */ case 0x14: /*Norwegian */ case 0x16: /*Portuguese */ case 0x17: /*Rhaeto-Romanic */ case 0x1d: /*Swedish */ case 0x21: /*Bahasa Indonesian */ case 0x2d: /*Basque */ case 0x36: /*Afrikaans */ case 0x38: /*Faeroese */ case 0x3E: /*Malaysian / Malay */ case 0x41: /*Swahili */ return 1; case 0x1a: /*Serbian, Croatian, (Bosnian?) */ switch (lid) { case 0x041a: /*Croatian */ case 0x081a: /*Serbian (Latin) */ return 1; } default: return 0; } return 0; } const char * wvLIDToCodePageConverter (U16 lid) { if (lid == 0x0FFF) /*Macintosh Hack */ return ("MACINTOSH"); else if (wvIsCP1252 (lid)) return ("CP1252"); switch (lid & 0xff) { case 0x01: /*Arabic */ return ("CP1256"); case 0x02: /*Bulgarian */ return ("CP1251"); case 0x04: /*Chinese */ switch (lid) { #if 0 case 0x1404: /*Chinese (Macau SAR) */ #endif case 0x0c04: /*Chinese (Hong Kong SAR, PRC) */ CPNAME_OR_FALLBACK ("CP950", "BIG5-HKSCS"); case 0x0804: /*Chinese (PRC) */ CPNAME_OR_FALLBACK ("CP936", "GBK"); #if 0 case 0x1004: /*Chinese (Singapore) */ #endif case 0x0404: /*Chinese (Taiwan) */ CPNAME_OR_FALLBACK ("CP950", "BIG5"); } case 0x05: /*Czech */ return ("CP1250"); case 0x08: /*Greek */ return ("CP1253"); case 0x0d: /*Hebrew */ return ("CP1255"); case 0x0e: /*Hungarian */ return ("CP1250"); case 0x11: /*Japanese */ return ("CP932"); case 0x12: /*Korean */ switch (lid) { case 0x0812: /*Korean (Johab) */ return ("CP1361"); case 0x0412: /*Korean */ return ("CP949"); } case 0x15: /*Polish */ return ("CP1250"); case 0x18: /*Romanian */ return ("CP1250"); case 0x19: /*Russian */ return ("CP1251"); case 0x1a: /*Serbian, Croatian, (Bosnian?) */ switch (lid) { case 0x0c1a: /*Serbian (Cyrillic) */ return ("CP1251"); } case 0x1b: /*Slovak */ return ("CP1250"); case 0x1c: /*Albanian */ return ("CP1251"); case 0x1e: /*Thai */ return ("CP874"); case 0x1f: /*Turkish */ return ("CP1254"); case 0x20: /*Urdu. This is Unicode only. */ return ("CP0"); case 0x22: /*Ukrainian */ return ("CP1251"); case 0x23: /*Byelorussian / Belarusian */ return ("CP1251"); case 0x24: /*Slovenian */ return ("CP1250"); case 0x25: /*Estonian */ return ("CP1257"); case 0x26: /*Latvian */ return ("CP1257"); case 0x27: /*Lithuanian */ return ("CP1257"); case 0x29: /*Farsi / Persian. This is Unicode only. */ return ("CP0"); case 0x2a: /*Vietnamese */ return ("CP1258"); case 0x2b: /*Windows 2000: Armenian. This is Unicode only. */ return ("CP0"); case 0x2c: /*Azeri */ switch (lid) { case 0x082c: /*Azeri (Cyrillic) */ return ("CP1251"); #if 0 case 0x042c: /*Azeri (Latin) */ #endif } case 0x2f: /*Macedonian */ return ("CP1251"); #if 0 case 0x30: /*Sutu */ #endif case 0x37: /*Windows 2000: Georgian. This is Unicode only. */ return ("CP0"); case 0x39: /*Windows 2000: Hindi. This is Unicode only. */ return ("CP0"); #if 0 case 0x3f: /*Kazakh */ #endif case 0x43: /*Uzbek */ switch (lid) { case 0x0843: /*Uzbek (Cyrillic) */ return ("CP1251"); #if 0 case 0x0443: /*Uzbek (Latin) */ #endif } #if 0 case 0x44: /*Tatar */ #endif case 0x45: /*Windows 2000: Bengali. This is Unicode only. */ case 0x46: /*Windows 2000: Punjabi. This is Unicode only. */ case 0x47: /*Windows 2000: Gujarati. This is Unicode only. */ case 0x48: /*Windows 2000: Oriya. This is Unicode only. */ case 0x49: /*Windows 2000: Tamil. This is Unicode only. */ case 0x4a: /*Windows 2000: Telugu. This is Unicode only. */ case 0x4b: /*Windows 2000: Kannada. This is Unicode only. */ case 0x4c: /*Windows 2000: Malayalam. This is Unicode only. */ case 0x4d: /*Windows 2000: Assamese. This is Unicode only. */ case 0x4e: /*Windows 2000: Marathi. This is Unicode only. */ case 0x4f: /*Windows 2000: Sanskrit. This is Unicode only. */ return ("CP0"); case 0x55: /*Myanmar / Burmese. This is Unicode only. */ return ("CP0"); case 0x57: /*Windows 2000: Konkani. This is Unicode only. */ return ("CP0"); #if 0 case 0x58: /*Manipuri */ case 0x59: /*Sindhi */ case 0x60: /*Kashmiri (India) */ #endif case 0x61: /*Windows 2000: Nepali (India). This is Unicode only. */ return ("CP0"); }; /* TODO output a warning since this is a guess */ return ("CP1252"); } static U32 swap_iconv (U16 lid) { GIConv handle; char f_code[33]; /* From CCSID */ char t_code[33]; /* To CCSID */ const char *codepage; size_t ibuflen, obuflen; U8 buffer[2]; U8 buffer2[2]; gchar *ibuf, *obuf; /* do a bit of caching */ static U16 lastlid = -1; static U32 ret = -1; /* shortcut */ if (ret != -1 && lastlid == lid) return ret; ibuf = buffer; obuf = buffer2; lastlid = lid; codepage = wvLIDToCodePageConverter (lid); memset (f_code, '\0', 33); memset (t_code, '\0', 33); strcpy (f_code, codepage); strcpy (t_code, "UCS-2"); handle = g_iconv_open (t_code, f_code); if (handle == (GIConv)-1) return 0; buffer[0] = 0x20 & 0xff; buffer[1] = 0; ibuflen = obuflen = 2; g_iconv (handle, &ibuf, &ibuflen, &obuf, &obuflen); g_iconv_close (handle); ret = *(U16 *) buffer2 != 0x20; return ret; } U16 wvHandleCodePage (U16 eachchar, U16 lid) { char f_code[33]; /* From CCSID */ char t_code[33]; /* To CCSID */ const char *codepage; GIConv g_iconv_handle; /* Conversion Descriptor returned */ /* from g_iconv_open() function */ size_t ibuflen; /* Length of input buffer */ size_t obuflen; /* Length of output buffer */ gchar *ibuf; gchar *obuf; /* Buffer for converted characters */ U8 *p; U8 buffer[2]; U8 buffer2[2]; U16 rtn; if (wvIsCP1252 (lid) && eachchar <= 0xFF) { return cp1252_to_ucs2_table[eachchar]; } if (eachchar > 0xff) { buffer[0] = (char) (eachchar >> 8); buffer[1] = (char) eachchar & 0xff; } else { buffer[0] = eachchar & 0xff; buffer[1] = 0; } ibuf = buffer; obuf = buffer2; codepage = wvLIDToCodePageConverter (lid); /* All reserved positions of from code (last 12 characters) and to code */ /* (last 19 characters) must be set to hexadecimal zeros. */ memset (f_code, '\0', 33); memset (t_code, '\0', 33); strcpy (f_code, codepage); strcpy (t_code, "UCS-2"); g_iconv_handle = g_iconv_open (t_code, f_code); if (g_iconv_handle == (GIConv) - 1) { wvError ( ("g_iconv_open fail: %d, cannot convert %s to unicode\n", errno, codepage)); return ('?'); } ibuflen = obuflen = 2; p = obuf; g_iconv (g_iconv_handle, &ibuf, &ibuflen, &obuf, &obuflen); /* We might have double byte char here. */ if (swap_iconv (lid)) { rtn = (U16) buffer2[0] << 8; rtn |= (U16) buffer2[1]; } else { rtn = *(U16 *) buffer2; } g_iconv_close (g_iconv_handle); return (rtn); } void wvOutputFromUnicode (U16 eachchar, char *outputtype) { static char cached_outputtype[33]; /* Last outputtype */ static GIConv g_iconv_handle = (GIConv)-1; /* Cached iconv descriptor */ static int need_swapping; gchar *ibuf, *obuf; size_t ibuflen, obuflen, len, count, i; U8 buffer[2], buffer2[5]; if ((wvConvertUnicodeToEntity != NULL) && wvConvertUnicodeToEntity (eachchar)) return; if ((g_iconv_handle == (GIConv)-1) || strcmp (cached_outputtype, outputtype) != 0) { if ((g_iconv_handle != (GIConv)-1)) g_iconv_close (g_iconv_handle); g_iconv_handle = g_iconv_open (outputtype, "UCS-2"); if (g_iconv_handle == (GIConv) - 1) { wvError ( ("g_iconv_open fail: %d, cannot convert %s to %s\n", errno, "UCS-2", outputtype)); printf ("?"); return; } /* safe to cache the output type here */ strcpy (cached_outputtype, outputtype); /* Determining if unicode biteorder is swapped (glibc < 2.2) */ need_swapping = 1; buffer[0] = 0x20; buffer[1] = 0; ibuf = buffer; obuf = buffer2; ibuflen = 2; obuflen = 5; count = g_iconv (g_iconv_handle, &ibuf, &ibuflen, &obuf, &obuflen); if (count >= 0) need_swapping = buffer2[0] != 0x20; } if (need_swapping) { buffer[0] = (eachchar >> 8) & 0x00ff; buffer[1] = eachchar & 0x00ff; } else { buffer[0] = eachchar & 0x00ff; buffer[1] = (eachchar >> 8) & 0x00ff; } ibuf = buffer; obuf = buffer2; ibuflen = 2; len = obuflen = 5; count = g_iconv (g_iconv_handle, &ibuf, &ibuflen, &obuf, &obuflen); if (count == (size_t) - 1) { wvError (("iconv failed errno: %d, char: 0x%X, %s -> %s\n", errno, eachchar, "UCS-2", outputtype)); /* I'm torn here - do i just announce the failure, continue, or copy over to the other buffer? */ /* errno is usually 84 (illegal byte sequence) should i reverse the bytes and try again? */ printf ("%c", ibuf[1]); } else { len = len - obuflen; for (i = 0; i < len; i++) printf ("%c", buffer2[i]); } } int wvHandleElement (wvParseStruct * ps, wvTag tag, void *props, int dirty) { if (ps->elehandler) return ((*(ps->elehandler)) (ps, tag, props, dirty)); wvError (("No element handler registered!!\n")); return (0); } int wvHandleDocument (wvParseStruct * ps, wvTag tag) { if (ps->dochandler) return ((*(ps->dochandler)) (ps, tag)); wvError (("No dochandler!!\n")); return (0); } void wvSetCharHandler (wvParseStruct * ps, int (*proc) (wvParseStruct *, U16, U8, U16)) { ps->charhandler = proc; } void wvSetSpecialCharHandler (wvParseStruct * ps, int (*proc) (wvParseStruct *, U16, CHP *)) { ps->scharhandler = proc; } void wvSetElementHandler (wvParseStruct * ps, int (*proc) (wvParseStruct *, wvTag, void *, int)) { ps->elehandler = proc; } void wvSetDocumentHandler (wvParseStruct * ps, int (*proc) (wvParseStruct *, wvTag)) { ps->dochandler = proc; } int wvConvertUnicodeToLaTeX (U16 char16) { /* german and scandinavian characters, MV 1.7.2000 See man iso_8859_1 This requires the inputencoding latin1 package, see latin1.def. Chars in range 160...255 are just put through as these are legal iso-8859-1 symbols. (see above) Best way to do it until LaTeX is Unicode enabled (Omega project). -- MV 4.7.2000 We use a separate if-statement here ... the 'case range' construct is gcc specific :-( -- MV 13/07/2000 */ if ((char16 >= 0xa0) && (char16 <= 0xff)) { switch (char16) { case 0xa0: printf ("\\ "); /* hard space */ return (1); /* Fix up these as math characters: */ case 0xb1: printf ("$\\pm$"); return (1); case 0xb2: printf ("$\\mathtwosuperior$"); return (1); case 0xb3: printf ("$\\maththreesuperior$"); return (1); case 0xb5: printf ("$\\mu$"); return (1); case 0xb9: printf ("$\\mathonesuperior$"); return (1); case 0xd7: printf ("$\\times$"); return (1); } printf ("%c", char16); return (1); } switch (char16) { case 37: printf ("\\%%"); return (1); case 10: case 11: printf ("\\\\\n"); return (1); case 31: /* non-required hyphen */ printf ("\\-"); return (1); case 30: /* non-breaking hyphen */ printf ("-"); return (1); /* case 45: minus/hyphen, pass through */ case 12: printf("\\newpage\n"); return (1); case 13: case 14: case 7: return (1); case 9: printf ("\\hfill{}"); /* tab -- horrible cludge */ return (1); case 0xf020: printf (" "); /* Mac specialty ? MV 10.10.2000 */ return (1); case 0xf02c: printf (","); /* Mac */ return (1); case 0xf028: printf ("("); /* Mac */ return (1); case 34: printf ("\""); return (1); case 35: printf ("\\#"); /* MV 14.8.2000 */ return (1); case 36: printf ("\\$"); /* MV 14.8.2000 */ return (1); case 38: printf ("\\&"); /* MV 1.7.2000 */ return (1); case 92: printf ("$\\backslash$"); /* MV 23.9.2000 */ return (1); case 94: printf ("\\^"); /* MV 13.9.2000 */ return (1); case 95: printf ("\\_"); /* MV 13.9.2000 */ return (1); case 60: printf ("<"); return (1); case 0xf03e: /* Mac */ case 62: printf (">"); return (1); case 0xF8E7: /* without this, things should work in theory, but not for me */ printf ("_"); return (1); /* Added some new Unicode characters. It's probably difficult to write these characters in AbiWord, though ... :( -- 2000-08-11 huftis@bigfoot.com */ case 0x0100: printf ("\\=A"); /* A with macron */ return (1); case 0x0101: printf ("\\=a"); /* a with macron */ return (1); case 0x0102: printf ("\\u{A}"); /* A with breve */ return (1); case 0x0103: printf ("\\u{a}"); /* a with breve */ return (1); case 0x0104: printf ("\\k{A}"); /* A with ogonek */ return (1); case 0x0105: printf ("\\k{a}"); /* a with ogonek */ return (1); case 0x0106: printf ("\\'C"); /* C with acute */ return (1); case 0x0107: printf ("\\'c"); /* c with acute */ return (1); case 0x0108: printf ("\\^C"); /* C with circumflex */ return (1); case 0x0109: printf ("\\^c"); /* c with circumflex */ return (1); case 0x010A: printf ("\\.C"); /* C with dot above */ return (1); case 0x010B: printf ("\\.c"); /* c with dot above */ return (1); case 0x010C: printf ("\\v{C}"); /* C with caron */ return (1); case 0x010D: printf ("\\v{c}"); /* c with caron */ return (1); case 0x010E: printf ("\\v{D}"); /* D with caron */ return (1); case 0x010F: printf ("\\v{d}"); /* d with caron */ return (1); case 0x0110: printf ("\\DJ{}"); /* D with stroke */ return (1); case 0x0111: printf ("\\dj{}"); /* d with stroke */ return (1); case 0x0112: printf ("\\=E"); /* E with macron */ return (1); case 0x0113: printf ("\\=e"); /* e with macron */ return (1); case 0x0114: printf ("\\u{E}"); /* E with breve */ return (1); case 0x0115: printf ("\\u{e}"); /* e with breve */ return (1); case 0x0116: printf ("\\.E"); /* E with dot above */ return (1); case 0x0117: printf ("\\.e"); /* e with dot above */ return (1); case 0x0118: printf ("\\k{E}"); /* E with ogonek */ return (1); case 0x0119: printf ("\\k{e}"); /* e with ogonek */ return (1); case 0x011A: printf ("\\v{E}"); /* E with caron */ return (1); case 0x011B: printf ("\\v{e}"); /* e with caron */ return (1); case 0x011C: printf ("\\^G"); /* G with circumflex */ return (1); case 0x011D: printf ("\\^g"); /* g with circumflex */ return (1); case 0x011E: printf ("\\u{G}"); /* G with breve */ return (1); case 0x011F: printf ("\\u{g}"); /* g with breve */ return (1); case 0x0120: printf ("\\.G"); /* G with dot above */ return (1); case 0x0121: printf ("\\u{g}"); /* g with dot above */ return (1); case 0x0122: printf ("^H"); /* H with circumflex */ return (1); case 0x0123: printf ("^h"); /* h with circumflex */ return (1); case 0x0128: printf ("\\~I"); /* I with tilde */ return (1); case 0x0129: printf ("\\~{\\i}"); /* i with tilde (dotless) */ return (1); case 0x012A: printf ("\\=I"); /* I with macron */ return (1); case 0x012B: printf ("\\={\\i}"); /* i with macron (dotless) */ return (1); case 0x012C: printf ("\\u{I}"); /* I with breve */ return (1); case 0x012D: printf ("\\u{\\i}"); /* i with breve */ return (1); case 0x0130: printf ("\\.I"); /* I with dot above */ return (1); case 0x0131: printf ("\\i{}"); /* dotless i */ return (1); case 0x0132: printf ("IJ"); /* IJ ligature */ return (1); case 0x0133: printf ("ij"); /* ij ligature */ return (1); case 0x0134: printf ("\\^J"); /* J with circumflex (dotless) */ return (1); case 0x0135: printf ("\\^{\\j}"); /* j with circumflex (dotless) */ return (1); case 0x0136: printf ("\\c{K}"); /* K with cedilla */ return (1); case 0x0137: printf ("\\c{k}"); /* k with cedilla */ return (1); case 0x0138: printf ("k"); /* NOTE: Not the correct character (kra), but similar */ return (1); case 0x0139: printf ("\\'L"); /* L with acute */ return (1); case 0x013A: printf ("\\'l"); /* l with acute */ return (1); case 0x013B: printf ("\\c{L}"); /* L with cedilla */ return (1); case 0x013C: printf ("\\c{l}"); /* l with cedilla */ return (1); case 0x013D: printf ("\\v{L}"); /* L with caron */ return (1); case 0x013E: printf ("\\v{l}"); /* l with caron */ return (1); case 0x0141: printf ("\\L{}"); /* L with stroke */ return (1); case 0x0142: printf ("\\l{}"); /* l with stroke */ return (1); case 0x0143: printf ("\\'N"); /* N with acute */ return (1); case 0x0144: printf ("\\'n"); /* n with acute */ return (1); case 0x0145: printf ("\\c{N}"); /* N with cedilla */ return (1); case 0x0146: printf ("\\c{n}"); /* n with cedilla */ return (1); case 0x0147: printf ("\\v{N}"); /* N with caron */ return (1); case 0x0148: printf ("\\v{n}"); /* n with caron */ return (1); case 0x0149: printf ("'n"); /* n preceed with apostroph */ return (1); case 0x014A: printf ("\\NG{}"); /* ENG character */ return (1); case 0x014B: printf ("\\ng{}"); /* eng character */ return (1); case 0x014C: printf ("\\=O"); /* O with macron */ return (1); case 0x014D: printf ("\\=o"); /* o with macron */ return (1); case 0x014E: printf ("\\u{O}"); /* O with breve */ return (1); case 0x014F: printf ("\\u{o}"); /* o with breve */ return (1); case 0x0150: printf ("\\H{O}"); /* O with double acute */ return (1); case 0x0151: printf ("\\H{o}"); /* o with double acute */ return (1); case 0x0152: printf ("\\OE{}"); /* OE ligature */ return (1); case 0x0153: printf ("\\oe{}"); /* oe ligature */ return (1); case 0x0154: printf ("\\'R"); /* R with acute */ return (1); case 0x0155: printf ("\\'r"); /* r with acute */ return (1); case 0x0156: printf ("\\c{R}"); /* R with cedilla */ return (1); case 0x0157: printf ("\\c{r}"); /* r with cedilla */ return (1); case 0x0158: printf ("\\v{R}"); /* R with caron */ return (1); case 0x0159: printf ("\\v{r}"); /* r with caron */ return (1); case 0x015A: printf ("\\'S"); /* S with acute */ return (1); case 0x015B: printf ("\\'s"); /* s with acute */ return (1); case 0x015C: printf ("\\^S"); /* S with circumflex */ return (1); case 0x015D: printf ("\\^s"); /* c with circumflex */ return (1); case 0x015E: printf ("\\c{S}"); /* S with cedilla */ return (1); case 0x015F: printf ("\\c{s}"); /* s with cedilla */ return (1); case 0x0160: printf ("\\v{S}"); /* S with caron */ return (1); case 0x0161: printf ("\\v{s}"); /* s with caron */ return (1); case 0x0162: printf ("\\c{T}"); /* T with cedilla */ return (1); case 0x0163: printf ("\\c{t}"); /* t with cedilla */ return (1); case 0x0164: printf ("\\v{T}"); /* T with caron */ return (1); case 0x0165: printf ("\\v{t}"); /* t with caron */ return (1); case 0x0168: printf ("\\~U"); /* U with tilde */ return (1); case 0x0169: printf ("\\~u"); /* u with tilde */ return (1); case 0x016A: printf ("\\=U"); /* U with macron */ return (1); /* Greek (thanks Petr Vanicek!): */ case 0x0391: printf ("$A$"); return (1); case 0x0392: printf ("$B$"); return (1); case 0x0393: printf ("$\\Gamma$"); return (1); case 0xf044: /* Mac ? */ case 0x2206: /* Mac */ case 0x0394: printf ("$\\Delta$"); return (1); case 0x0395: printf ("$E$"); return (1); case 0x0396: printf ("$Z$"); return (1); case 0x0397: printf ("$H$"); return (1); case 0x0398: printf ("$\\Theta$"); return (1); case 0x0399: printf ("$I$"); return (1); case 0x039a: printf ("$K$"); return (1); case 0x039b: printf ("$\\Lambda$"); return (1); case 0xf04d: /* Mac? */ case 0x039c: printf ("$M$"); return (1); case 0x039d: printf ("$N$"); return (1); case 0x039e: printf ("$\\Xi$"); return (1); case 0x039f: printf ("$O$"); /* Omicron */ return (1); case 0x03a0: printf ("$\\Pi$"); return (1); case 0x03a1: printf ("$R$"); return (1); case 0x03a3: printf ("$\\Sigma$"); return (1); case 0x03a4: printf ("$T$"); return (1); case 0x03a5: printf ("$Y$"); return (1); case 0x03a6: printf ("$\\Phi$"); return (1); case 0x03a7: printf ("$X$"); /* Chi */ return (1); case 0x03a8: printf ("$\\Psi$"); return (1); case 0x2126: /* Mac */ case 0x03a9: printf ("$\\Omega$"); return (1); /* ...and lower case: */ case 0x03b1: printf ("$\\alpha$"); return (1); case 0x03b2: printf ("$\\beta$"); return (1); case 0xf067: /* Mac */ case 0x03b3: printf ("$\\gamma$"); return (1); case 0xf064: /* Mac */ case 0x03b4: printf ("$\\delta$"); return (1); case 0x03b5: printf ("$\\epsilon$"); return (1); case 0xf04e: /* Mac? variant? */ case 0xf07a: /* Mac? */ case 0x03b6: printf ("$\\zeta$"); return (1); case 0x03b7: printf ("$\\eta$"); return (1); case 0x03b8: printf ("$\\theta$"); return (1); case 0x03b9: printf ("$\\iota$"); return (1); case 0x03ba: printf ("$\\kappa$"); return (1); case 0xf06c: /* Mac? */ case 0x03bb: printf ("$\\lambda$"); return (1); case 0x03bc: printf ("$\\mu$"); return (1); case 0x03bd: printf ("$\\nu$"); return (1); case 0x03be: printf ("$\\xi$"); return (1); case 0x03bf: printf ("$o$"); /* omicron */ return (1); case 0x03c0: printf ("$\\pi$"); return (1); case 0xf072: /* Mac */ printf ("$\\varrho$"); return (1); case 0x03c1: printf ("$\\rho$"); return (1); case 0xf073: /* Mac */ case 0x03c3: printf ("$\\sigma$"); return (1); case 0x03c4: printf ("$\\tau$"); return (1); case 0x03c5: printf ("$\\upsilon$"); return (1); case 0x03c6: printf ("$\\phi$"); return (1); case 0x03c7: printf ("$\\chi$"); return (1); case 0x03c8: printf ("$\\psi$"); return (1); case 0x03c9: printf ("$\\omega$"); return (1); case 0xf06a: /* Mac? */ case 0x03d5: printf ("$\\varphi$"); /* ? */ return (1); /* More math, typical inline: */ case 0x2111: printf ("$\\Im$"); return (1); case 0x2118: printf ("$\\wp$"); /* Weierstrass p */ return (1); case 0x211c: printf ("$\\Re$"); return (1); case 0x2135: printf ("$\\aleph$"); return (1); case 0x2190: printf ("$\\leftarrow$"); return (1); case 0x2191: printf ("$\\uparrow$"); return (1); case 0xf0ae: /* Mac */ case 0x2192: printf ("$\\rightarrow$"); return (1); case 0x2193: printf ("$\\downarrow$"); return (1); case 0x21d0: printf ("$\\Leftarrow$"); return (1); case 0x21d1: printf ("$\\Uparrow$"); return (1); case 0x21d2: printf ("$\\Rightarrow$"); return (1); case 0x21d3: printf ("$\\Downarrow$"); return (1); case 0x21d4: printf ("$\\Leftrightarrow$"); return (1); case 0x2200: printf ("$\\forall$"); return (1); case 0xf0b6: /* Mac */ case 0x2202: printf ("$\\partial$"); return (1); case 0x2203: printf ("$\\exists$"); return (1); case 0x2205: printf ("$\\emptyset$"); return (1); case 0x2207: printf ("$\\nabla$"); return (1); case 0x2208: printf ("$\\in$"); /* element of */ return (1); case 0x2209: printf ("$\\notin$"); /* not an element of */ return (1); case 0x220b: printf ("$\\ni$"); /* contains as member */ return (1); case 0x221a: printf ("$\\surd$"); /* sq root */ return (1); case 0x2212: printf ("$-$"); /* minus */ return (1); case 0x221d: printf ("$\\propto$"); return (1); case 0x221e: printf ("$\\infty$"); return (1); case 0x2220: printf ("$\\angle$"); return (1); case 0x2227: printf ("$\\land$"); /* logical and */ return (1); case 0x2228: printf ("$\\lor$"); /* logical or */ return (1); case 0x2229: printf ("$\\cap$"); /* intersection */ return (1); case 0x222a: printf ("$\\cup$"); /* union */ return (1); case 0x223c: printf ("$\\sim$"); /* similar to */ return (1); case 0x2248: printf ("$\\approx$"); return (1); case 0x2261: printf ("$\\equiv$"); return (1); case 0x2260: printf ("$\\neq$"); return (1); case 0x2264: printf ("$\\leq$"); return (1); case 0xf0b3: /* Mac? */ case 0x2265: printf ("$\\geq$"); return (1); case 0x2282: printf ("$\\subset$"); return (1); case 0x2283: printf ("$\\supset$"); return (1); case 0x2284: printf ("$\\notsubset$"); return (1); case 0x2286: printf ("$\\subseteq$"); return (1); case 0x2287: printf ("$\\supseteq$"); return (1); case 0x2295: printf ("$\\oplus$"); /* circled plus */ return (1); case 0x2297: printf ("$\\otimes$"); return (1); case 0x22a5: printf ("$\\perp$"); /* perpendicular */ return (1); case 0x2660: printf ("$\\spadesuit$"); return (1); case 0x2663: printf ("$\\clubsuit$"); return (1); case 0x2665: printf ("$\\heartsuit$"); return (1); case 0x2666: printf ("$\\diamondsuit$"); return (1); case 0x01C7: printf ("LJ"); /* the LJ letter */ return (1); case 0x01C8: printf ("Lj"); /* the Lj letter */ return (1); case 0x01C9: printf ("lj"); /* the lj letter */ return (1); case 0x01CA: printf ("NJ"); /* the NJ letter */ return (1); case 0x01CB: printf ("Nj"); /* the Nj letter */ return (1); case 0x01CC: printf ("nj"); /* the nj letter */ return (1); case 0x01CD: printf ("\\v{A}"); /* A with caron */ return (1); case 0x01CE: printf ("\\v{a}"); /* a with caron */ return (1); case 0x01CF: printf ("\\v{I}"); /* I with caron */ return (1); case 0x01D0: printf ("\\v{\\i}"); /* i with caron (dotless) */ return (1); case 0x01D1: printf ("\\v{O}"); /* O with caron */ return (1); case 0x01D2: printf ("\\v{o}"); /* o with caron */ return (1); case 0x01D3: printf ("\\v{U}"); /* U with caron */ return (1); case 0x01D4: printf ("\\v{u}"); /* u with caron */ return (1); case 0x01E6: printf ("\\v{G}"); /* G with caron */ return (1); case 0x01E7: printf ("\\v{g}"); /* g with caron */ return (1); case 0x01E8: printf ("\\v{K}"); /* K with caron */ return (1); case 0x01E9: printf ("\\v{k}"); /* k with caron */ return (1); case 0x01F0: printf ("\\v{\\j}"); /* j with caron (dotless) */ return (1); case 0x01F1: printf ("DZ"); /* the DZ letter */ return (1); case 0x01F2: printf ("Dz"); /* the Dz letter */ return (1); case 0x01F3: printf ("dz"); /* the dz letter */ return (1); case 0x01F4: printf ("\\'G"); /* G with acute */ return (1); case 0x01F5: printf ("\\'g"); /* g with acute */ return (1); case 0x01FA: printf ("\\'{\\AA}"); /* Å with acute */ return (1); case 0x01FB: printf ("\\'{\\aa}"); /* å with acute */ return (1); case 0x01FC: printf ("\\'{\\AE}"); /* Æ with acute */ return (1); case 0x01FD: printf ("\\'{\\ae}"); /* æ with acute */ return (1); case 0x01FE: printf ("\\'{\\O}"); /* Ø with acute */ return (1); case 0x01FF: printf ("\\'{\\o}"); /* ø with acute */ return (1); case 0x2010: printf ("-"); /* hyphen */ return (1); case 0x2011: printf ("-"); /* non-breaking hyphen (is there a way to get this in LaTeX?) */ return (1); case 0x2012: printf ("--"); /* figure dash (similar to en-dash) */ return (1); case 0x2013: /* soft-hyphen? Or en-dash? I find that making this a soft-hyphen works very well, but makes the occasional "hard" word-connection hyphen (like the "-" in roller-coaster) disappear. (Are these actually en-dashes? Dunno.) How does MS Word distinguish between the 0x2013's that signify soft hyphens and those that signify word-connection hyphens? wvware should be able to as well. -- MV 8.7.2000 U+2013 is the en-dash character and not a soft hyphen. Soft hyphen is U+00AD. Changing to "--". -- 2000-08-11 huftis@bigfoot.com */ printf ("--"); return (1); case 0x016B: printf ("\\=u"); /* u with macron */ return (1); case 0x016C: printf ("\\u{U}"); /* U with breve */ return (1); case 0x016D: printf ("\\u{u}"); /* u with breve */ return (1); case 0x016E: printf ("\\r{U}"); /* U with ring above */ return (1); case 0x016F: printf ("\\r{u}"); /* u with ring above */ return (1); case 0x0170: printf ("\\H{U}"); /* U with double acute */ return (1); case 0x0171: printf ("\\H{u}"); /* u with double acute */ return (1); case 0x0174: printf ("\\^W"); /* W with circumflex */ return (1); case 0x0175: printf ("\\^w"); /* w with circumflex */ return (1); case 0x0176: printf ("\\^Y"); /* Y with circumflex */ return (1); case 0x0177: printf ("\\^y"); /* y with circumflex */ return (1); case 0x0178: printf ("\\\"Y"); /* Y with diaeresis */ return (1); case 0x0179: printf ("\\'Z"); /* Z with acute */ return (1); case 0x017A: printf ("\\'z"); /* z with acute */ return (1); case 0x017B: printf ("\\.Z"); /* Z with dot above */ return (1); case 0x017C: printf ("\\.z"); /* z with dot above */ return (1); case 0x017D: printf ("\\v{Z}"); /* Z with caron */ return (1); case 0x017E: printf ("\\v{z}"); /* z with caron */ return (1); /* Windows specials (MV 4.7.2000). More could be added. See http://www.hut.fi/u/jkorpela/www/windows-chars.html */ case 0x2014: printf ("---"); /* em-dash */ return (1); case 0x2018: printf ("`"); /* left single quote, Win */ return (1); case 0x2019: printf ("'"); /* Right single quote, Win */ return (1); case 0x201A: printf ("\\quotesinglbase{}"); /* single low 99 quotation mark */ return (1); case 0x201C: printf ("``"); /* inverted double quotation mark */ return (1); case 0x201D: printf ("''"); /* double q.m. */ return (1); case 0x201E: printf ("\\quotedblbase{}"); /* double low 99 quotation mark */ return (1); case 0x2020: printf ("\\dag{}"); /* dagger */ return (1); case 0x2021: printf ("\\ddag{}"); /* double dagger */ return (1); case 0x25cf: /* FilledCircle */ case 0x2022: printf ("$\\bullet$"); /* bullet */ return (1); case 0x2023: printf ("$\\bullet$"); /* NOTE: Not a real triangular bullet */ return (1); case 0x2024: printf ("."); /* One dot leader (for use in TOCs) */ return (1); case 0x2025: printf (".."); /* Two dot leader (for use in TOCs) */ return (1); case 0x2026: printf ("\\ldots"); /* ellipsis */ return (1); case 0x2039: printf ("\\guilsinglleft{}"); /* single left angle quotation mark */ return (1); case 0x203A: printf ("\\guilsinglright{}"); /* single right angle quotation mark */ return (1); case 0x203C: printf ("!!"); /* double exclamation mark */ return (1); case 0x2215: printf ("$/$"); /* Division slash */ return (1); case 0x2030: printf ("o/oo"); return (1); case 0x20ac: printf ("\\euro"); /* No known implementation ;-) Shouldn't we use the package 'eurofont'? -- 2000-08-15 huftis@bigfoot.com */ return (1); case 0x2160: printf ("I"); /* Roman numeral I */ return (1); case 0x2161: printf ("II"); /* Roman numeral II */ return (1); case 0x2162: printf ("III"); /* Roman numeral III */ return (1); case 0x2163: printf ("IV"); /* Roman numeral IV */ return (1); case 0x2164: printf ("V"); /* Roman numeral V */ return (1); case 0x2165: printf ("VI"); /* Roman numeral VI */ return (1); case 0x2166: printf ("VII"); /* Roman numeral VII */ return (1); case 0x2167: printf ("VIII"); /* Roman numeral VIII */ return (1); case 0x2168: printf ("IX"); /* Roman numeral IX */ return (1); case 0x2169: printf ("X"); /* Roman numeral X */ return (1); case 0x216A: printf ("XI"); /* Roman numeral XI */ return (1); case 0x216B: printf ("XII"); /* Roman numeral XII */ return (1); case 0x216C: printf ("L"); /* Roman numeral L */ return (1); case 0x216D: printf ("C"); /* Roman numeral C */ return (1); case 0x216E: printf ("D"); /* Roman numeral D */ return (1); case 0x216F: printf ("M"); /* Roman numeral M */ return (1); case 0x2170: printf ("i"); /* Roman numeral i */ return (1); case 0x2171: printf ("ii"); /* Roman numeral ii */ return (1); case 0x2172: printf ("iii"); /* Roman numeral iii */ return (1); case 0x2173: printf ("iv"); /* Roman numeral iv */ return (1); case 0x2174: printf ("v"); /* Roman numeral v */ return (1); case 0x2175: printf ("vi"); /* Roman numeral vi */ return (1); case 0x2176: printf ("vii"); /* Roman numeral vii */ return (1); case 0x2177: printf ("viii"); /* Roman numeral viii */ return (1); case 0x2178: printf ("ix"); /* Roman numeral ix */ return (1); case 0x2179: printf ("x"); /* Roman numeral x */ return (1); case 0x217A: printf ("xi"); /* Roman numeral xi */ return (1); case 0x217B: printf ("xiii"); /* Roman numeral xii */ return (1); case 0x217C: printf ("l"); /* Roman numeral l */ return (1); case 0x217D: printf ("c"); /* Roman numeral c */ return (1); case 0x217E: printf ("d"); /* Roman numeral d */ return (1); case 0x217F: printf ("m"); /* Roman numeral m */ return (1); } /* Debugging aid: */ if (char16 >= 0x80) { printf ("[%x]", char16); return (1); } return (0); } int wvConvertUnicodeToHtml (U16 char16) { switch (char16) { case 11: printf ("<br>"); return (1); case 31: /* non-required hyphen */ printf("­"); /*vladimir@lukianov.name HTML 4.01 spec*/ return (1); case 30: case 45: case 0x2013: printf ("-"); /* en-dash */ return (1); case 12: case 13: case 14: case 7: return (1); case 34: printf ("""); return (1); case 38: printf ("&"); return (1); case 60: printf ("<"); return (1); case 62: printf (">"); return (1); /* german characters, im assured that this is the right way to handle them by Markus Schulte <markus@dom.de> As the output encoding for HTML was chosen as UTF-8, we don't need Ä etc. etc. I removed all but sz -- MV 6.4.2000 */ case 0xdf: printf ("ß"); return (1); /* end german characters */ case 0x2026: #if 0 /* this just looks awful in netscape 4.5, so im going to do a very foolish thing and just put ... instead of this */ printf ("…"); /*is there a proper html name for ... &ellipse;? Yes, … -- MV */ #endif printf ("…"); return (1); case 0x2019: printf ("'"); return (1); case 0x2215: printf ("/"); return (1); case 0xF8E7: /* without this, things should work in theory, but not for me */ printf ("_"); return (1); case 0x2018: printf ("`"); return (1); /* Windows specials (MV): */ case 0x0160: printf ("Š"); return (1); case 0x0161: printf ("š"); return (1); case 0x2014: printf ("—"); return (1); case 0x201c: printf ("“"); /* inverted double quotation mark */ return (1); case 0x201d: printf ("”"); /* double q.m. */ return (1); case 0x201e: printf ("„"); /* below double q.m. */ return (1); case 0x2020: printf ("†"); return (1); case 0x2021: printf ("‡"); return (1); case 0x2022: printf ("•"); return (1); case 0x0152: printf ("Œ"); return (1); case 0x0153: printf ("œ"); return (1); case 0x0178: printf ("Ÿ"); return (1); case 0x2030: printf ("‰"); return (1); case 0x20ac: printf ("€"); return (1); /* Mac specials (MV): */ case 0xf020: printf (" "); return (1); case 0xf02c: printf (","); return (1); case 0xf028: printf ("("); return (1); case 0xf03e: printf (">"); return (1); case 0xf067: printf ("γ"); return (1); case 0xf064: printf ("δ"); return (1); case 0xf072: printf ("ρ"); return (1); case 0xf073: printf ("σ"); return (1); case 0xf0ae: printf ("→"); /* right arrow */ return (1); case 0xf0b6: printf ("∂"); /* partial deriv. */ return (1); case 0xf0b3: printf ("≥"); return (1); } /* Debugging aid: */ /* if (char16 >= 0x100) printf("[%x]", char16); */ return (0); } int wvConvertUnicodeToXml (U16 char16) { switch (char16) { case 11: printf ("<br />"); return (1); case 30: case 31: case 12: case 13: case 14: case 7: return (1); /* Much simpler here, because XML supports only a few entities */ case 34: printf ("""); return (1); case 38: printf ("&"); return (1); case 39: printf ("'"); return (1); case 60: printf ("<"); return (1); case 62: printf (">"); return (1); } return (0); } char *str_copy(char *d, size_t n, char *s) { strncpy(d, s, n); d[n-1] = 0; return d; } char *str_append(char *d, size_t n, char *s) { int max = n - strlen(d) - 1; strncat(d, s, max); d[n-1] = 0; return d; } #define BUF_COPY(d,s) str_copy(d,sizeof(d),s) char * wvConvertStylename(char *stylename, char *outputtype) { static char cached_outputtype[36]; static GIConv g_iconv_handle = (GIConv)-1; /**FIXME: 100 is just the size of stylename[] from wv.h**/ static char buffer[100]; char *ibuf, *obuf; size_t ibuflen, obuflen, len; /* Destroy */ if(!outputtype) { if ((g_iconv_handle != (GIConv)-1)) g_iconv_close(g_iconv_handle); return NULL; } /* Initialize */ if(!g_iconv_handle || strcmp(cached_outputtype, outputtype)) { if ((g_iconv_handle != (GIConv)-1)) g_iconv_close(g_iconv_handle); /**FIXME: don´t know if ISO-8859-1 is really the correct **charset for style names with eg umlauts. **/ g_iconv_handle = g_iconv_open(outputtype, "ISO-8859-1"); if(g_iconv_handle == (GIConv)-1) { wvError(("g_iconv_open fail: %d, cannot convert %s to %s\n", errno, "ISO-8859-1", outputtype)); return stylename; } BUF_COPY(cached_outputtype, outputtype); } /* Convert */ ibuf = stylename; ibuflen = strlen(stylename); obuf = buffer; obuflen = sizeof(buffer) - 1; len = g_iconv (g_iconv_handle, &ibuf, &ibuflen, &obuf, &obuflen); *obuf = 0; if(len == -1) { wvError(("wvConfig.c: can´t iconv()\n")); return stylename; } return buffer; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/plcf.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000003742�11247156607�010221� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" /* this function retrieves a generic PLCF; this is useful since it means we do not have to add specific functions for retrieving various simple PLCFs (for instance the PLCFs that store information about footnotes, endnotes and annotations are just simple arrays of U32s) plcf - a pointer to a pointer where we should allocate the structure the caller needs to free these using wvFree() once not needed offset - an offset in the stream fd where the PLCF starts len - a length in bytes (!!!) of the PLCF fd - the stream from which to read the PLCF */ int wvGetPLCF (void ** plcf, U32 offset, U32 len, wvStream * fd) { U32 i, i32, i8; if (len == 0) { *plcf = NULL; } else { *plcf = wvMalloc (len); if (*plcf == NULL) { wvError (("NO MEM 1, failed to alloc %d bytes\n",len)); return (1); } wvStream_goto (fd, offset); i32 = len / 4; i8 = len % 4; for (i = 0; i < i32; i++) ((U32*)(*plcf))[i] = read_32ubit (fd); for (i = i32*4; i < i32*4 + i8; i++) ((U8*)(*plcf))[i] = read_8ubit (fd); } return (0); } ������������������������������wv-1.2.9/olst.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000003757�11247156607�010264� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" #include "wvinternal.h" void wvInitOLST (OLST * item) { U8 i; for (i = 0; i < 9; i++) wvInitANLV (&item->rganlv[i]); item->fRestartHdr = 0; item->fSpareOlst2 = 0; item->fSpareOlst3 = 0; item->fSpareOlst4 = 0; for (i = 0; i < 64; i++) item->rgxch[i] = 0; } void wvGetOLST_internal (wvVersion ver, OLST * item, wvStream * fd, U8 * pointer) { U8 i; for (i = 0; i < 9; i++) wvGetANLV_internal (&item->rganlv[i], fd, pointer); item->fRestartHdr = dread_8ubit (fd, &pointer); item->fSpareOlst2 = dread_8ubit (fd, &pointer); item->fSpareOlst3 = dread_8ubit (fd, &pointer); item->fSpareOlst4 = dread_8ubit (fd, &pointer); if (ver == WORD8) { for (i = 0; i < 32; i++) item->rgxch[i] = dread_16ubit (fd, &pointer); } else { for (i = 0; i < 64; i++) item->rgxch[i] = dread_8ubit (fd, &pointer); } } void wvGetOLST (wvVersion ver, OLST * item, wvStream * fd) { wvGetOLST_internal (ver, item, fd, NULL); } void wvGetOLSTFromBucket (wvVersion ver, OLST * item, U8 * pointer) { wvGetOLST_internal (ver, item, NULL, pointer); } �����������������wv-1.2.9/wvinternal.h�������������������������������������������������������������������������������0000664�0000764�0000764�00000002755�11247156607�011476� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef WV_INTERNAL #define WV_INTERNAL unsigned int wvMapNameToTokenType (const char * name); void internal_wvReleasePAPX_FKP (PAPX_FKP * fkp); void internal_wvReleaseCHPX_FKP (CHPX_FKP * fkp); void wvGetBRC_internal (BRC * abrc, wvStream * infd, U8 * pointer); void wvGetBRC10_internal (BRC10 * item, wvStream * infd, U8 * pointer); void wvGetDCS_internal (DCS * item, wvStream * fd, U8 * pointer); void wvGetDTTM_internal (DTTM *, wvStream * fd, U8 * pointer); void wvGetNUMRM_internal (NUMRM * item, wvStream * fd, U8 * pointer); void wvGetSHD_internal (SHD * item, wvStream * fd, U8 * pointer); void wvGetBRC_internal6 (BRC * abrc, wvStream * infd, U8 * pointer); void wvGetTBD_internal (TBD * item, wvStream * fd, U8 * pointer); void wvGetOLST_internal (wvVersion ver, OLST * item, wvStream * fd, U8 * pointer); void wvGetANLV_internal (ANLV * item, wvStream * fd, U8 * pointer); int wvGetTC_internal (wvVersion ver, TC * tc, wvStream * infd, U8 * pointer); void wvGetTLP_internal (TLP * item, wvStream * infd, U8 * pointer); /* simple stream creation and writing functions */ int wvStream_write (void *ptr, size_t size, size_t nmemb, wvStream * in); int write_32ubit (wvStream * in, U32 out); int write_16ubit (wvStream * in, U16 out); int write_8ubit (wvStream * in, U8 out); void wvPutFBSE (FBSE * item, wvStream * fd); void wvPutFAnchor (FAnchor * item, wvStream * fd); void wvPutFOPTE (FOPTE * afopte, wvStream * fd); void wvPutFOPTEArray (FOPTE ** fopte, MSOFBH * msofbh, wvStream * fd); #endif �������������������wv-1.2.9/sep.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000013170�11247156607�010060� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" float wvRelativeWidth (S16 width, SEP * asep) { float fwidth; if (asep == NULL) return (100.00); fwidth = (float) (asep->xaPage - asep->dxaLeft - asep->dxaRight); fwidth = width / fwidth * 100; if (fwidth > 100.00) fwidth = 100.00; return (fwidth); } float wvRelativeHeight (S16 height, SEP * asep) { float fheight; if (asep == NULL) return (100.00); fheight = (float) (asep->yaPage - asep->dyaTop - asep->dyaBottom); fheight = height / fheight * 100; if (fheight > 100.00) fheight = 100.00; return (fheight); } /* The standard SEP is all zeros except as follows: bkc 2 (new page) dyaPgn 720 twips (equivalent to .5 in) dxaPgn 720 twips fEndnote 1 (True) fEvenlySpaced 1 (True) xaPage 12240 twips yaPage 15840 twips xaPageNUp 12240 twips yaPageNUp 15840 twips dyaHdrTop 720 twips dyaHdrBottom 720 twips dmOrientPage 1 (portrait orientation) dxaColumns 720 twips dyaTop 1440 twips dxaLeft 1800 twips dyaBottom 1440 twips dxaRight 1800 twips pgnStart 1 cbSEP (count of bytes of SEP) is 704(decimal), 2C0(hex). */ void wvInitSEP (SEP * item) { U8 i; item->bkc = 2; item->fTitlePage = 0; item->fAutoPgn = 0; item->nfcPgn = 0; item->fUnlocked = 0; item->cnsPgn = 0; item->fPgnRestart = 0; item->fEndNote = 1; item->lnc = 0; item->grpfIhdt = 0; item->nLnnMod = 0; item->dxaLnn = 0; item->dxaPgn = 720; item->dyaPgn = 720; item->fLBetween = 0; item->vjc = 0; item->dmBinFirst = 0; item->dmBinOther = 0; item->dmPaperReq = 0; wvInitBRC (&item->brcTop); wvInitBRC (&item->brcLeft); wvInitBRC (&item->brcBottom); wvInitBRC (&item->brcRight); item->fPropRMark = 0; item->ibstPropRMark = 0; wvInitDTTM (&item->dttmPropRMark); item->dxtCharSpace = 0; item->dyaLinePitch = 0; item->clm = 0; item->reserved1 = 0; item->dmOrientPage = 0; item->iHeadingPgn = 0; item->pgnStart = 1; item->lnnMin = 0; item->wTextFlow = 0; item->reserved2 = 0; item->pgbProp = 0; item->pgbApplyTo = 0; item->pgbPageDepth = 0; item->pgbOffsetFrom = 0; item->reserved = 0; item->xaPage = 12240; item->yaPage = 15840; item->xaPageNUp = 12240; item->yaPageNUp = 15840; item->dxaLeft = 1800; item->dxaRight = 1800; item->dyaTop = 1440; item->dyaBottom = 1440; item->dzaGutter = 0; item->dyaHdrTop = 720; item->dyaHdrBottom = 720; item->ccolM1 = 0; item->fEvenlySpaced = 1; item->reserved3 = 0; item->dxaColumns = 720; for (i = 0; i < 89; i++) item->rgdxaColumnWidthSpacing[i] = 0; item->dxaColumnWidth = 0; item->dmOrientFirst = 0; item->fLayout = 0; item->reserved4 = 0; wvInitOLST (&item->olstAnm); item->fBidi = 0; } void wvGetSEPX (wvVersion ver, SEPX * item, wvStream * fd) { U16 i; item->cb = read_16ubit (fd); if (item->cb) item->grpprl = (U8 *) wvMalloc (item->cb); else item->grpprl = NULL; for (i = 0; i < item->cb; i++) { item->grpprl[i] = read_8ubit (fd); wvTrace (("sep is %x\n", item->grpprl[i])); } } void wvReleaseSEPX (SEPX * item) { wvFree (item->grpprl); } int wvAddSEPXFromBucket (SEP * asep, SEPX * item, STSH * stsh) { U8 *pointer; U16 i = 0; U16 sprm; int ret = 0; Sprm RetSprm; #ifdef SPRMTEST fprintf (stderr, "\n"); while (i < item->cb) { fprintf (stderr, "%x (%d) ", *(item->grpprl + i), *(item->grpprl + i)); i++; } fprintf (stderr, "\n"); i = 0; #endif while (i < item->cb - 2) { sprm = bread_16ubit (item->grpprl + i, &i); pointer = item->grpprl + i; RetSprm = wvApplySprmFromBucket (WORD8, sprm, NULL, NULL, asep, stsh, pointer, &i, NULL); if (RetSprm.sgc == sgcSep) ret = 1; } return (ret); } int wvAddSEPXFromBucket6 (SEP * asep, SEPX * item, STSH * stsh) { U8 *pointer; U16 i = 0; int ret = 0; U8 sprm8; U16 sprm; Sprm RetSprm; #ifdef SPRMTEST fprintf (stderr, "\n"); while (i < item->cb) { fprintf (stderr, "%x (%d) ", *(item->grpprl + i), *(item->grpprl + i)); i++; } fprintf (stderr, "\n"); i = 0; #endif while (i < item->cb) { sprm8 = bread_8ubit (item->grpprl + i, &i); #ifdef SPRMTEST wvError (("sep word 6 sprm is %x (%d)\n", sprm8, sprm8)); #endif sprm = (U16) wvGetrgsprmWord6 (sprm8); #ifdef SPRMTEST wvTrace (("sep word 6 sprm is converted to %x\n", sprm)); #endif pointer = item->grpprl + i; RetSprm = wvApplySprmFromBucket (WORD6, sprm, NULL, NULL, asep, stsh, pointer, &i, NULL); if (RetSprm.sgc == sgcSep) ret = 1; } return (ret); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvVersion.c��������������������������������������������������������������������������������0000664�0000764�0000764�00000004712�11247156606�011274� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include "wv.h" /* Released under GPL, written by Caolan.McNamara@ul.ie. Copyright (C) 1998,1999 Caolan McNamara Real Life: Caolan McNamara * Doing: MSc in HCI Work: Caolan.McNamara@ul.ie * Phone: +353-86-8790257 URL: http://skynet.csn.ul.ie/~caolan * Sig: an oblique strategy How would you have done it? */ /* returns 1 for not an ole doc 2 ole but not word doc -1 for an error of some unknown kind 0 on success */ void usage (void) { fprintf (stderr, "Usage: wvVersion filename.doc\n"); exit (-1); } int main (int argc, char *argv[]) { FILE *input; int ret; wvParseStruct ps; if (argc < 2) usage (); input = fopen (argv[1], "rb"); if (!input) { fprintf (stderr, "Failed to open %s\n", argv[1]); return (-1); } fclose (input); wvInit (); ret = wvInitParser (&ps, argv[1]); if (ret == -1) { fprintf (stderr, "%s couldn't be opened as any known word document\n", argv[1]); return -1; } ret = wvQuerySupported (&ps.fib, NULL); printf ("Version: "); switch (ret & 0x7fff) { case WORD8: printf ("word8 or higher"); break; case WORD7: printf ("word7"); break; case WORD6: printf ("word6"); break; case WORD5: printf ("word5"); break; case WORD2: printf ("word2 (maybe)"); break; default: printf ("unknown msword version"); break; } printf (", Encrypted: "); if (ret & 0x8000) printf ("Yes\n"); else printf ("No\n"); wvOLEFree (&ps); return 0; } ������������������������������������������������������wv-1.2.9/sed.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000003655�11247156607�010053� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetSED (SED * item, wvStream * fd) { item->fn = (S16) read_16ubit (fd); item->fcSepx = read_32ubit (fd); item->fnMpr = (S16) read_16ubit (fd); item->fcMpr = read_32ubit (fd); } int wvGetSED_PLCF (SED ** item, U32 ** pos, U32 * noitem, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *item = NULL; *pos = NULL; *noitem = 0; } else { *noitem = (len - 4) / (cbSED + 4); *pos = (U32 *) wvMalloc ((*noitem + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*noitem + 1) * sizeof (U32))); return (1); } *item = (SED *) wvMalloc (*noitem * sizeof (SED)); if (*item == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *noitem * sizeof (SED))); wvFree (*pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i <= *noitem; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *noitem; i++) wvGetSED (&((*item)[i]), fd); } return (0); } �����������������������������������������������������������������������������������wv-1.2.9/depcomp������������������������������������������������������������������������������������0000755�0000764�0000764�00000044267�11265376464�010520� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to <bug-automake@gnu.org>. EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u="sed s,\\\\\\\\,/,g" depmode=msvisualcpp fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvText.in����������������������������������������������������������������������������������0000664�0000764�0000764�00000003665�11247156606�010765� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh prefix=@prefix@ exec_prefix=@exec_prefix@ datadir=@datadir@ tmpdir=${TMPDIR:-/tmp} # argument checking if [ ${#} -ne "2" ]; then echo "Usage: ${0} <word document> <text output file>" exit 1 fi USE_DUMP=0 which elinks >/dev/null 2>&1 if [ ${?} -eq "0" ]; then USE_DUMP=3 else which links >/dev/null 2>&1 if [ ${?} -eq "0" ]; then USE_DUMP=2 else which lynx >/dev/null 2>&1 if [ ${?} -eq "0" ]; then USE_DUMP=1 fi fi fi if [ $USE_DUMP -eq "1" ]; then echo "Could not find required program 'elinks' or 'links'" echo "Using lynx. Output will be pretty ugly." elif [ $USE_DUMP -eq "0" ]; then echo "Could not find required program 'elinks', 'links', or even 'lynx'" echo "Using wvWare -x wvText.xml. Output will be pretty bad." fi if [ $USE_DUMP -gt "0" ]; then # first, test for wvHtml which wvHtml >/dev/null 2>&1 if [ ${?} -ne "0" ]; then echo "Could not find required program 'wvHtml'" exit 1 fi # intermediate file TMP_FILE=`mktemp "$tmpdir/wv-XXXXXX"` TMP_FILE=`basename "$TMP_FILE"` wvHtml -1 "${1}" --targetdir="${tmpdir}" "${TMP_FILE}" >/dev/null 2>&1 if [ ${?} -ne "0" ]; then echo "Could not convert into HTML" exit 1 fi if [ $USE_DUMP -eq "3" ]; then # elinks does the best elinks -dump -force-html "${tmpdir}/${TMP_FILE}" > "${2}" elif [ $USE_DUMP -eq "2" ]; then # links does a pretty good job links -dump "${tmpdir}/${TMP_FILE}" > "${2}" else # lynx sucks, but does better than wvText.xml TERM=vt100 lynx -dump -force_html "${tmpdir}/${TMP_FILE}" > "${2}" fi; if [ ${?} -ne "0" ]; then echo "Could not convert into Text" rm -f "${tmpdir}/${TMP_FILE}" exit 1 fi # clean up rm -f "${tmpdir}/${TMP_FILE}" else # fall back onto our cruddy output # this is, admittedly, better than running # 'strings' on the word document though :) wvWare -x ${datadir}/wv/wvText.xml "${1}" > "${2}" fi ���������������������������������������������������������������������������wv-1.2.9/crc32.c������������������������������������������������������������������������������������0000664�0000764�0000764�00000017052�11247156607�010210� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ /* crc32.c C implementation of CRC-32 checksums for NAACCR records. Code is based upon and utilizes algorithm published by Ross Williams. This file contains: CRC lookup table function CalcCRC32 for calculating CRC-32 checksum function AssignCRC32 for assigning CRC-32 in NAACCR record function CheckCRC32 for checking CRC-32 in NAACCR record Provided by: Eric Durbin Kentucky Cancer Registry University of Kentucky October 14, 1998 Status: Public Domain */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "crc32.h" /*****************************************************************/ /* */ /* CRC LOOKUP TABLE */ /* ================ */ /* The following CRC lookup table was generated automagically */ /* by the Rocksoft^tm Model CRC Algorithm Table Generation */ /* Program V1.0 using the following model parameters: */ /* */ /* Width : 4 bytes. */ /* Poly : 0x04C11DB7L */ /* Reverse : TRUE. */ /* */ /* For more information on the Rocksoft^tm Model CRC Algorithm, */ /* see the document titled "A Painless Guide to CRC Error */ /* Detection Algorithms" by Ross Williams */ /* (ross@guest.adelaide.edu.au.). This document is likely to be */ /* in the FTP archive "ftp.adelaide.edu.au/pub/rocksoft". */ /* */ /*****************************************************************/ static const unsigned long crctable[256] = { 0x00000000L, 0x77073096L, 0xEE0E612CL, 0x990951BAL, 0x076DC419L, 0x706AF48FL, 0xE963A535L, 0x9E6495A3L, 0x0EDB8832L, 0x79DCB8A4L, 0xE0D5E91EL, 0x97D2D988L, 0x09B64C2BL, 0x7EB17CBDL, 0xE7B82D07L, 0x90BF1D91L, 0x1DB71064L, 0x6AB020F2L, 0xF3B97148L, 0x84BE41DEL, 0x1ADAD47DL, 0x6DDDE4EBL, 0xF4D4B551L, 0x83D385C7L, 0x136C9856L, 0x646BA8C0L, 0xFD62F97AL, 0x8A65C9ECL, 0x14015C4FL, 0x63066CD9L, 0xFA0F3D63L, 0x8D080DF5L, 0x3B6E20C8L, 0x4C69105EL, 0xD56041E4L, 0xA2677172L, 0x3C03E4D1L, 0x4B04D447L, 0xD20D85FDL, 0xA50AB56BL, 0x35B5A8FAL, 0x42B2986CL, 0xDBBBC9D6L, 0xACBCF940L, 0x32D86CE3L, 0x45DF5C75L, 0xDCD60DCFL, 0xABD13D59L, 0x26D930ACL, 0x51DE003AL, 0xC8D75180L, 0xBFD06116L, 0x21B4F4B5L, 0x56B3C423L, 0xCFBA9599L, 0xB8BDA50FL, 0x2802B89EL, 0x5F058808L, 0xC60CD9B2L, 0xB10BE924L, 0x2F6F7C87L, 0x58684C11L, 0xC1611DABL, 0xB6662D3DL, 0x76DC4190L, 0x01DB7106L, 0x98D220BCL, 0xEFD5102AL, 0x71B18589L, 0x06B6B51FL, 0x9FBFE4A5L, 0xE8B8D433L, 0x7807C9A2L, 0x0F00F934L, 0x9609A88EL, 0xE10E9818L, 0x7F6A0DBBL, 0x086D3D2DL, 0x91646C97L, 0xE6635C01L, 0x6B6B51F4L, 0x1C6C6162L, 0x856530D8L, 0xF262004EL, 0x6C0695EDL, 0x1B01A57BL, 0x8208F4C1L, 0xF50FC457L, 0x65B0D9C6L, 0x12B7E950L, 0x8BBEB8EAL, 0xFCB9887CL, 0x62DD1DDFL, 0x15DA2D49L, 0x8CD37CF3L, 0xFBD44C65L, 0x4DB26158L, 0x3AB551CEL, 0xA3BC0074L, 0xD4BB30E2L, 0x4ADFA541L, 0x3DD895D7L, 0xA4D1C46DL, 0xD3D6F4FBL, 0x4369E96AL, 0x346ED9FCL, 0xAD678846L, 0xDA60B8D0L, 0x44042D73L, 0x33031DE5L, 0xAA0A4C5FL, 0xDD0D7CC9L, 0x5005713CL, 0x270241AAL, 0xBE0B1010L, 0xC90C2086L, 0x5768B525L, 0x206F85B3L, 0xB966D409L, 0xCE61E49FL, 0x5EDEF90EL, 0x29D9C998L, 0xB0D09822L, 0xC7D7A8B4L, 0x59B33D17L, 0x2EB40D81L, 0xB7BD5C3BL, 0xC0BA6CADL, 0xEDB88320L, 0x9ABFB3B6L, 0x03B6E20CL, 0x74B1D29AL, 0xEAD54739L, 0x9DD277AFL, 0x04DB2615L, 0x73DC1683L, 0xE3630B12L, 0x94643B84L, 0x0D6D6A3EL, 0x7A6A5AA8L, 0xE40ECF0BL, 0x9309FF9DL, 0x0A00AE27L, 0x7D079EB1L, 0xF00F9344L, 0x8708A3D2L, 0x1E01F268L, 0x6906C2FEL, 0xF762575DL, 0x806567CBL, 0x196C3671L, 0x6E6B06E7L, 0xFED41B76L, 0x89D32BE0L, 0x10DA7A5AL, 0x67DD4ACCL, 0xF9B9DF6FL, 0x8EBEEFF9L, 0x17B7BE43L, 0x60B08ED5L, 0xD6D6A3E8L, 0xA1D1937EL, 0x38D8C2C4L, 0x4FDFF252L, 0xD1BB67F1L, 0xA6BC5767L, 0x3FB506DDL, 0x48B2364BL, 0xD80D2BDAL, 0xAF0A1B4CL, 0x36034AF6L, 0x41047A60L, 0xDF60EFC3L, 0xA867DF55L, 0x316E8EEFL, 0x4669BE79L, 0xCB61B38CL, 0xBC66831AL, 0x256FD2A0L, 0x5268E236L, 0xCC0C7795L, 0xBB0B4703L, 0x220216B9L, 0x5505262FL, 0xC5BA3BBEL, 0xB2BD0B28L, 0x2BB45A92L, 0x5CB36A04L, 0xC2D7FFA7L, 0xB5D0CF31L, 0x2CD99E8BL, 0x5BDEAE1DL, 0x9B64C2B0L, 0xEC63F226L, 0x756AA39CL, 0x026D930AL, 0x9C0906A9L, 0xEB0E363FL, 0x72076785L, 0x05005713L, 0x95BF4A82L, 0xE2B87A14L, 0x7BB12BAEL, 0x0CB61B38L, 0x92D28E9BL, 0xE5D5BE0DL, 0x7CDCEFB7L, 0x0BDBDF21L, 0x86D3D2D4L, 0xF1D4E242L, 0x68DDB3F8L, 0x1FDA836EL, 0x81BE16CDL, 0xF6B9265BL, 0x6FB077E1L, 0x18B74777L, 0x88085AE6L, 0xFF0F6A70L, 0x66063BCAL, 0x11010B5CL, 0x8F659EFFL, 0xF862AE69L, 0x616BFFD3L, 0x166CCF45L, 0xA00AE278L, 0xD70DD2EEL, 0x4E048354L, 0x3903B3C2L, 0xA7672661L, 0xD06016F7L, 0x4969474DL, 0x3E6E77DBL, 0xAED16A4AL, 0xD9D65ADCL, 0x40DF0B66L, 0x37D83BF0L, 0xA9BCAE53L, 0xDEBB9EC5L, 0x47B2CF7FL, 0x30B5FFE9L, 0xBDBDF21CL, 0xCABAC28AL, 0x53B39330L, 0x24B4A3A6L, 0xBAD03605L, 0xCDD70693L, 0x54DE5729L, 0x23D967BFL, 0xB3667A2EL, 0xC4614AB8L, 0x5D681B02L, 0x2A6F2B94L, 0xB40BBE37L, 0xC30C8EA1L, 0x5A05DF1BL, 0x2D02EF8DL }; /*****************************************************************/ /* End of CRC Lookup Table */ /*****************************************************************/ /* Calculate CRC-32 Checksum for NAACCR Record, skipping area of record containing checksum field. Uses reflected table driven method documented by Ross Williams. PARAMETERS: unsigned char *p NAACCR Record Buffer unsigned long reclen NAACCR Record Length unsigned long checksumpos Position of CHECKSUM (as in Data Dictionary) unsigned long checksumlen Length of checksum Field RETURNS: checksum value Author: Eric Durbin 1998-10-14 Status: Public Domain */ unsigned long CalcCRC32 (unsigned char *p, unsigned long reclen, unsigned long checksumpos, unsigned long checksumlen) { unsigned long j; /* initialize value */ unsigned long crc = CRC32_XINIT; /* process each byte prior to checksum field */ for (j = 1; j < checksumpos; j++) { crc = crctable[(crc ^ *p++) & 0xFFL] ^ (crc >> 8); } /* skip checksum position */ j += checksumlen; p += checksumlen; /* process remaining bytes in record */ while (j <= reclen) { crc = crctable[(crc ^ *p++) & 0xFFL] ^ (crc >> 8); j++; } /* return XOR out value */ return crc ^ CRC32_XOROT; } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/symbol.c�����������������������������������������������������������������������������������0000664�0000764�0000764�00000020317�11247156606�010576� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" U16 wvConvertSymbolToUnicode (U16 char16) { switch (char16) { case 0x20: return (0x0020); case 0x21: return (0x0021); case 0x22: return (0x2200); case 0x23: return (0x0023); case 0x24: return (0x2203); case 0x25: return (0x0025); case 0x26: return (0x0026); case 0x27: return (0x220B); case 0x28: return (0x0028); case 0x29: return (0x0029); case 0x2A: return (0x2217); case 0x2B: return (0x002B); case 0x2C: return (0x002C); case 0x2D: return (0x2212); case 0x2E: return (0x002E); case 0x2F: return (0x002F); case 0x30: return (0x0030); case 0x31: return (0x0031); case 0x32: return (0x0032); case 0x33: return (0x0033); case 0x34: return (0x0034); case 0x35: return (0x0035); case 0x36: return (0x0036); case 0x37: return (0x0037); case 0x38: return (0x0038); case 0x39: return (0x0039); case 0x3A: return (0x003A); case 0x3B: return (0x003B); case 0x3C: return (0x003C); case 0x3D: return (0x003D); case 0x3E: return (0x003E); case 0x3F: return (0x003F); case 0x40: return (0x2245); case 0x41: return (0x0391); case 0x42: return (0x0392); case 0x43: return (0x03A7); case 0x44: return (0x0394); case 0x45: return (0x0395); case 0x46: return (0x03A6); case 0x47: return (0x0393); case 0x48: return (0x0397); case 0x49: return (0x0399); case 0x4A: return (0x03D1); case 0x4B: return (0x039A); case 0x4C: return (0x039B); case 0x4D: return (0x039C); case 0x4E: return (0x039D); case 0x4F: return (0x039F); case 0x50: return (0x03A0); case 0x51: return (0x0398); case 0x52: return (0x03A1); case 0x53: return (0x03A3); case 0x54: return (0x03A4); case 0x55: return (0x03A5); case 0x56: return (0x03C2); case 0x57: return (0x03A9); case 0x58: return (0x039E); case 0x59: return (0x03A8); case 0x5A: return (0x0396); case 0x5B: return (0x005B); case 0x5C: return (0x2234); case 0x5D: return (0x005D); case 0x5E: return (0x22A5); case 0x5F: return (0x005F); case 0x60: return (0xF8E5); case 0x61: return (0x03B1); case 0x62: return (0x03B2); case 0x63: return (0x03C7); case 0x64: return (0x03B4); case 0x65: return (0x03B5); case 0x66: return (0x03C6); case 0x67: return (0x03B3); case 0x68: return (0x03B7); case 0x69: return (0x03B9); case 0x6A: return (0x03D5); case 0x6B: return (0x03BA); case 0x6C: return (0x03BB); case 0x6D: return (0x03BC); case 0x6E: return (0x03BD); case 0x6F: return (0x03BF); case 0x70: return (0x03C0); case 0x71: return (0x03B8); case 0x72: return (0x03C1); case 0x73: return (0x03C3); case 0x74: return (0x03C4); case 0x75: return (0x03C5); case 0x76: return (0x03D6); case 0x77: return (0x03C9); case 0x78: return (0x03BE); case 0x79: return (0x03C8); case 0x7A: return (0x03B6); case 0x7B: return (0x007B); case 0x7C: return (0x007C); case 0x7D: return (0x007D); case 0x7E: return (0x223C); case 0xA0: return (0x20AC); case 0xA1: return (0x03D2); case 0xA2: return (0x2032); case 0xA3: return (0x2264); case 0xA4: return (0x2215); case 0xA5: return (0x221E); case 0xA6: return (0x0192); case 0xA7: return (0x2663); case 0xA8: return (0x2666); case 0xA9: return (0x2665); case 0xAA: return (0x2660); case 0xAB: return (0x2194); case 0xAC: return (0x2190); case 0xAD: return (0x2191); case 0xAE: return (0x2192); case 0xAF: return (0x2193); case 0xB0: return (0x00B0); case 0xB1: return (0x00B1); case 0xB2: return (0x2033); case 0xB3: return (0x2265); case 0xB4: return (0x00D7); case 0xB5: return (0x221D); case 0xB6: return (0x2202); case 0xB7: return (0x2022); case 0xB8: return (0x00F7); case 0xB9: return (0x2260); case 0xBA: return (0x2261); case 0xBB: return (0x2248); case 0xBC: return (0x2026); case 0xBD: return (0xF8E6); case 0xBE: return (0xF8E7); case 0xBF: return (0x21B5); case 0xC0: return (0x2135); case 0xC1: return (0x2111); case 0xC2: return (0x211C); case 0xC3: return (0x2118); case 0xC4: return (0x2297); case 0xC5: return (0x2295); case 0xC6: return (0x2205); case 0xC7: return (0x2229); case 0xC8: return (0x222A); case 0xC9: return (0x2283); case 0xCA: return (0x2287); case 0xCB: return (0x2284); case 0xCC: return (0x2282); case 0xCD: return (0x2286); case 0xCE: return (0x2208); case 0xCF: return (0x2209); case 0xD0: return (0x2220); case 0xD1: return (0x2207); /* case 0xD2: return(0xF6DA); case 0xD3: return(0xF6D9); case 0xD4: return(0xF6DB); */ /* this works the other doesnt */ case 0xD2: return (0x00AE); case 0xD3: return (0x00A9); case 0xD4: return (0x2122); case 0xD5: return (0x220F); case 0xD6: return (0x221A); case 0xD7: return (0x22C5); case 0xD8: return (0x00AC); case 0xD9: return (0x2227); case 0xDA: return (0x2228); case 0xDB: return (0x21D4); case 0xDC: return (0x21D0); case 0xDD: return (0x21D1); case 0xDE: return (0x21D2); case 0xDF: return (0x21D3); case 0xE0: return (0x25CA); /* case 0xE1: return(0x2329); case 0xE2: return(0xF8E8); case 0xE3: return(0xF8E9); case 0xE4: return(0xF8EA); */ /* again these are technically incorrect, but they work better */ case 0xE1: return (0x003C); case 0xE2: return (0x00AE); case 0xE3: return (0x00A9); case 0xE4: return (0x2122); case 0xE5: return (0x2211); case 0xE6: return (0xF8EB); case 0xE7: return (0xF8EC); case 0xE8: return (0xF8ED); case 0xE9: return (0xF8EE); case 0xEA: return (0xF8EF); case 0xEB: return (0xF8F0); case 0xEC: return (0xF8F1); case 0xED: return (0xF8F2); case 0xEE: return (0xF8F3); case 0xEF: return (0xF8F4); case 0xF1: return (0x232A); case 0xF2: return (0x222B); case 0xF3: return (0x2320); case 0xF4: return (0xF8F5); case 0xF5: return (0x2321); case 0xF6: return (0xF8F6); case 0xF7: return (0xF8F7); case 0xF8: return (0xF8F8); case 0xF9: return (0xF8F9); case 0xFA: return (0xF8FA); case 0xFB: return (0xF8FB); case 0xFC: return (0xF8FC); case 0xFD: return (0xF8FD); case 0xFE: return (0xF8FE); default: return (char16); } } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/��������������������������������������������������������������������������������������0000775�0000764�0000764�00000000000�11454157201�010122� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/GNUmakefile.am������������������������������������������������������������������������0000664�0000764�0000764�00000000015�11247156563�012516� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������SUBDIRS = man�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/GNUmakefile.in������������������������������������������������������������������������0000664�0000764�0000764�00000041402�11454157061�012526� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# GNUmakefile.in generated by automake 1.11.1 from GNUmakefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 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@ 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@ subdir = help DIST_COMMON = $(srcdir)/GNUmakefile.am $(srcdir)/GNUmakefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ANSI_CFLAGS = @ANSI_CFLAGS@ AR = @AR@ 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@ DEPS_CFLAGS = @DEPS_CFLAGS@ DEPS_LIBS = @DEPS_LIBS@ DEPS_PKGS = @DEPS_PKGS@ DLLWRAP = @DLLWRAP@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ HAVE_LIBXML2 = @HAVE_LIBXML2@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBWMF_CONFIG = @LIBWMF_CONFIG@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPT_CFLAGS = @OPT_CFLAGS@ OPT_LIBS = @OPT_LIBS@ 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@ WV_BINARY_AGE = @WV_BINARY_AGE@ WV_INTERFACE_AGE = @WV_INTERFACE_AGE@ WV_MAJOR_VERSION = @WV_MAJOR_VERSION@ WV_MICRO_VERSION = @WV_MICRO_VERSION@ WV_MINOR_VERSION = @WV_MINOR_VERSION@ WV_VERSION = @WV_VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_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@ lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = man all: all-recursive .SUFFIXES: $(srcdir)/GNUmakefile.in: $(srcdir)/GNUmakefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign help/GNUmakefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign help/GNUmakefile .PRECIOUS: GNUmakefile GNUmakefile: $(srcdir)/GNUmakefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: GNUmakefile installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f GNUmakefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f GNUmakefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \ install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic clean-libtool \ ctags ctags-recursive distclean distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-dvi install-dvi-am install-exec \ install-exec-am install-html install-html-am install-info \ install-info-am install-man install-pdf install-pdf-am \ install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/����������������������������������������������������������������������������������0000775�0000764�0000764�00000000000�11454157201�010675� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/GNUmakefile.am��������������������������������������������������������������������0000664�0000764�0000764�00000000253�11247156563�013275� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������man_MANS = wvAbw.1 wvCleanLatex.1 wvDVI.1 wvHtml.1 wvLatex.1 wvMime.1 wvPDF.1 \ wvPS.1 wvRTF.1 wvSummary.1 wvText.1 wvVersion.1 wvWare.1 wvWml.1 EXTRA_DIST = $(man_MANS) �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvAbw.1���������������������������������������������������������������������������0000664�0000764�0000764�00000001212�11247156563�011773� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvAbw 1 .SH NAME wvHtml \- convert msword documents to Abiword's format .SH SYNOPSIS .ll +8 .B wvText in_word_doc out_text_doc .ll -8 .br .SH DESCRIPTION .I wvAbw converts Word documents into Abiword's native format. See http://www.abisource.com/ for more information. .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPS(1), .BR wvDVI(1), .BR wvPDF(1), .BR wvText(1), .BR wvWml(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/GNUmakefile.in��������������������������������������������������������������������0000664�0000764�0000764�00000032457�11454157061�013313� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# GNUmakefile.in generated by automake 1.11.1 from GNUmakefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 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@ 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@ subdir = help/man DIST_COMMON = $(srcdir)/GNUmakefile.am $(srcdir)/GNUmakefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = 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' man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ANSI_CFLAGS = @ANSI_CFLAGS@ AR = @AR@ 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@ DEPS_CFLAGS = @DEPS_CFLAGS@ DEPS_LIBS = @DEPS_LIBS@ DEPS_PKGS = @DEPS_PKGS@ DLLWRAP = @DLLWRAP@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ HAVE_LIBXML2 = @HAVE_LIBXML2@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBWMF_CONFIG = @LIBWMF_CONFIG@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPT_CFLAGS = @OPT_CFLAGS@ OPT_LIBS = @OPT_LIBS@ 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@ WV_BINARY_AGE = @WV_BINARY_AGE@ WV_INTERFACE_AGE = @WV_INTERFACE_AGE@ WV_MAJOR_VERSION = @WV_MAJOR_VERSION@ WV_MICRO_VERSION = @WV_MICRO_VERSION@ WV_MINOR_VERSION = @WV_MINOR_VERSION@ WV_VERSION = @WV_VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_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@ lt_ECHO = @lt_ECHO@ 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@ man_MANS = wvAbw.1 wvCleanLatex.1 wvDVI.1 wvHtml.1 wvLatex.1 wvMime.1 wvPDF.1 \ wvPS.1 wvRTF.1 wvSummary.1 wvText.1 wvVersion.1 wvWare.1 wvWml.1 EXTRA_DIST = $(man_MANS) all: all-am .SUFFIXES: $(srcdir)/GNUmakefile.in: $(srcdir)/GNUmakefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign help/man/GNUmakefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign help/man/GNUmakefile .PRECIOUS: GNUmakefile GNUmakefile: $(srcdir)/GNUmakefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-man1: $(man_MANS) @$(NORMAL_INSTALL) test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" @list=''; test -n "$(man1dir)" || exit 0; \ { for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ test -z "$$files" || { \ echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(man1dir)" && rm -f $$files; } tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @list='$(MANS)'; if test -n "$$list"; then \ list=`for p in $$list; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ if test -n "$$list" && \ grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ echo " typically \`make maintainer-clean' will remove them" >&2; \ exit 1; \ else :; fi; \ else :; fi @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: GNUmakefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f GNUmakefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 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 GNUmakefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-man1 \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-man uninstall-man1 # 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: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvSummary.1�����������������������������������������������������������������������0000664�0000764�0000764�00000001221�11247156563�012717� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvSummary 1 .SH NAME wvSummary \- view word document's summary info .SH SYNOPSIS .ll +8 .B wvSumamry word_doc .ll -8 .br .SH DESCRIPTION wvSummary displays the summary info included in all MSWord documents. This often includes the Author, time created, etc... .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPDF(1), .BR wvDVI(1), .BR wvMime(1), .BR wvRTF(1), .BR wvText(1), .BR wvWml(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvText.1��������������������������������������������������������������������������0000664�0000764�0000764�00000001173�11247156563�012214� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvText 1 .SH NAME wvHtml \- convert msword documents to text .SH SYNOPSIS .ll +8 .B wvText in_word_doc out_text_doc .ll -8 .br .SH DESCRIPTION .I wvText converts word documents into plain text, with formatting strikingly similar to the original document. .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPS(1), .BR wvDVI(1), .BR wvPDF(1), .BR wvRTF(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvHtml.1��������������������������������������������������������������������������0000664�0000764�0000764�00000001230�11247156563�012166� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvHtml 1 .SH NAME wvHtml \- convert msword documents to HTML4.0 .SH SYNOPSIS .ll +8 .B wvHtml in_word_doc out_html_doc .ll -8 .br .SH DESCRIPTION .I wvHtml converts word documents into W3C certified HTML4.0 format. You can use Netscape or some other browser to then view your docs. .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPS(1), .BR wvDVI(1), .BR wvPDF(1), .BR wvText(1), .BR wvWml(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvCleanLatex.1��������������������������������������������������������������������0000664�0000764�0000764�00000001156�11247156563�013311� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvLatex 1 .SH NAME wvCleanLatex \- convert msword documents to LaTeX .SH SYNOPSIS .ll +8 .B wvCleanLatex in_word_doc out_latex_doc .ll -8 .br .SH DESCRIPTION .I wvCleanLatex converts word documents into LaTeX that looks like it'd been hand-edited .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvPS(1), .BR wvDVI(1), .BR wvPDF(1), .BR wvText(1), .BR wvWml(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvVersion.1�����������������������������������������������������������������������0000664�0000764�0000764�00000001171�11247156563�012713� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvVersion 1 .SH NAME wvVersion \- view word document's version # .SH SYNOPSIS .ll +8 .B wvVersion word_doc .ll -8 .br .SH DESCRIPTION wvVersion displays the word version number of a MSWord document. 8=Word97, 7=Word95, ... .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPS(1), .BR wvPDF(1), .BR wvDVI(1), .BR wvRTF(1), .BR wvText(1), .BR wvWml(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvWml.1���������������������������������������������������������������������������0000664�0000764�0000764�00000001162�11247156563�012025� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvWml 1 .SH NAME wvHtml \- convert msword documents to WML .SH SYNOPSIS .ll +8 .B wvWml in_word_doc out_wml_doc .ll -8 .br .SH DESCRIPTION .I wvWml converts word documents into WML, suitable for viewing on PDAs such as web-phones. .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPS(1), .BR wvDVI(1), .BR wvPDF(1), .BR wvRTF(1), .BR wvText(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvLatex.1�������������������������������������������������������������������������0000664�0000764�0000764�00000001114�11247156563�012340� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvLatex 1 .SH NAME wvLatex \- convert msword documents to LaTeX .SH SYNOPSIS .ll +8 .B wvLatex in_word_doc out_latex_doc .ll -8 .br .SH DESCRIPTION .I wvLatex converts word documents into LaTeX .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvCleanLatex(1), .BR wvPS(1), .BR wvDVI(1), .BR wvPDF(1), .BR wvText(1), .BR wvWml(1), .BR wvMime(1), .BR wvRTF(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvDVI.1���������������������������������������������������������������������������0000664�0000764�0000764�00000001136�11247156563�011711� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvDVI 1 .SH NAME wvDVI \- convert msword documents to DVI .SH SYNOPSIS .ll +8 .B wvPS in_word_doc out_dvi_doc .ll -8 .br .SH DESCRIPTION .I wvDVI converts word documents into DVI documents. .SH REQUIREMENTS .I wvLatex latex .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPDF(1), .BR wvPS(1), .BR wvText(1), .BR wvWml(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvMime.1��������������������������������������������������������������������������0000664�0000764�0000764�00000001245�11247156563�012157� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvMime 1 .SH NAME wvMime \- view MSWord documents .SH SYNOPSIS .ll +8 .B wvMime word_doc .ll -8 .br .SH DESCRIPTION .I wvMime will view your word documents using ggv,gv,ghostview,etc... instead of acting as a conversion engine. .SH REQUIREMENTS .I wvPS, (one of) ggv, gv, ghostview .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvDVI(1), .BR wvPDF(1), .BR wvPS(1), .BR wvRTF(1), .BR wvText(1), .BR wvWml(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvPDF.1���������������������������������������������������������������������������0000664�0000764�0000764�00000001160�11247156563�011675� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvPDF 1 .SH NAME wvPDF \- convert msword documents to PDF .SH SYNOPSIS .ll +8 .B wvPDF in_word_doc out_pdf_doc .ll -8 .br .SH DESCRIPTION .I wvPDF converts word documents into Adobe's PDF format. .SH REQUIREMENTS .I wvPS distill .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPS(1), .BR wvDVI(1), .BR wvRTF(1), .BR wvText(1), .BR wvWml(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvRTF.1���������������������������������������������������������������������������0000664�0000764�0000764�00000001137�11247156563�011723� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvRTF 1 .SH NAME wvHtml \- convert msword documents to RTF .SH SYNOPSIS .ll +8 .B wvRTF in_word_doc .ll -8 .br .SH DESCRIPTION .I wvRTF converts word documents into RTF (Rich Text Format). wvRTF is experimental. .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPS(1), .BR wvDVI(1), .BR wvPDF(1), .BR wvText(1), .BR wvWml(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/help/man/wvWare.1��������������������������������������������������������������������������0000664�0000764�0000764�00000004723�11247156563�012172� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvWare 1 .SH NAME wvWare \- convert msword documents .SH SYNOPSIS .ll +8 .B wvWare [-c charset] [--charset charset] [-p password] [--password password] [-x config.xml] [--config config.xml] [-d dir] [--dir dir] filename .ll -8 .br .SH DESCRIPTION .I wvWare converts word documents into other formats such as PS,PDF,HTML,LaTeX,DVI,ABW .SS OPTIONS .TP .I "\-c charset, \-\-charset charset" word 97 documents are stored in one of two formats, either in 8 bit windows codepages or in 16 bit unicode. The unicode can be converted easily into utf-8, and the codepages are promoted to unicode and converted from there, except for the western european codepage which is always converted to iso-5589-15 if possible. This is the default behaviour. While it is possible to convert into other formats or to force a conversion to a particular format, it is not recomended as you don't get a guarantee that the output will be correct. For instance, if you convert an english document into koi8-r encoding then it will be wrong, but if you are sure then you can override the default output format. The charsets that are available depend on your system: systems using the gnu libc 2 and above can convert to just about anything; systems that at, wv configure time, prove to be inadequate for charset conversion use wv's internal conversion formats which are a small subset of the possible conversions, namely: utf-8 iso-5589-15 koi8-r tis-620 .TP .I "\-p password, \-\-password password" Due to heroic work done by a great team of workers, the wv library can decrypt password protected word 97 and older versions of word documents given the correct password. .TP .I "\-d dir, \-\-dir dir" If dir is used then any created graphics will be placed in this directory. The default is the directory in which the word document resides. .TP .I "\-x config.xml, \-\-config config.xml" Use this to give the location of the config file. If not used, the config file is searched for by first checking the current directory, and then by looking in the install location (/usr/local/lib/wv/wvHtml.xml by default) .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPS(1), .BR wvDVI(1), .BR wvPDF(1), .BR wvRTF(1), .BR wvText(1), .BR wvWml(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) Caolan McNamara (original author) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com ���������������������������������������������wv-1.2.9/help/man/wvPS.1����������������������������������������������������������������������������0000664�0000764�0000764�00000001273�11247156563�011613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������.PU .TH wvPS 1 .SH NAME wvPS \- convert msword documents to PS .SH SYNOPSIS .ll +8 .B wvPS in_word_doc out_ps_doc .ll -8 .br .SH DESCRIPTION .I wvPS converts word documents into PS (Postscript) format. You can then use the PS version to print, view using gv, ggv,ghostview,etc.. .SH REQUIREMENTS .I wvDVI dvips .SH MORE INFORMATION http://wvware.sourceforge.net .SH "SEE ALSO" .BR wvAbw(1), .BR wvWare(1), .BR wvHtml(1), .BR wvLatex(1), .BR wvCleanLatex(1), .BR wvPDF(1), .BR wvText(1), .BR wvWml(1), .BR wvDVI(1), .BR wvRTF(1), .BR wvMime(1), .BR catdoc(1), .BR word2x(1) .SH "AUTHOR" Dom Lachowicz (current author and maintainer) WEB: http://wvware.sourceforge.net MAIL: cinamod@hotmail.com �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/getopt.c�����������������������������������������������������������������������������������0000664�0000764�0000764�00000075622�11247156607�010605� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ /* Getopt for GNU. NOTE: getopt is now part of the C library, so if you don't know what "Keep this file name-space clean" means, talk to roland@gnu.ai.mit.edu before changing it! Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. Ditto for AIX 3.2 and <stdlib.h>. */ #ifndef _NO_PROTO #define _NO_PROTO #endif #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #if !defined (__STDC__) || !__STDC__ /* This is a separate conditional since some stdc systems reject `defined (const)'. */ #ifndef const #define const #endif #endif /* Comment out all this code if we are using the GNU C Library, and are not actually compiling the library itself. This code is part of the GNU C Library, but also included in many other GNU distributions. Compiling and linking in this code is a waste when using the GNU C library (especially if it is a shared library). Rather than having every GNU program understand `configure --with-gnu-libc' and omit the object files, it is simpler to just do this in the source for each such file. */ #define GETOPT_INTERFACE_VERSION 2 #if !defined (_LIBC) && defined (__GLIBC__) && __GLIBC__ >= 2 #include <gnu-versions.h> #if _GNU_GETOPT_INTERFACE_VERSION == GETOPT_INTERFACE_VERSION #define ELIDE_CODE #endif #endif #ifndef ELIDE_CODE /* This needs to come after some library #include to get __GNU_LIBRARY__ defined. */ #ifdef __GNU_LIBRARY__ /* Don't include stdlib.h for non-GNU C libraries because some of them contain conflicting prototypes for getopt. */ #include <stdlib.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #endif /* GNU C library. */ #ifdef VMS #include <unixlib.h> #if HAVE_STRING_H - 0 #include <string.h> #endif #endif #if defined (WIN32) && !defined (__CYGWIN32__) /* It's not Unix, really. See? Capital letters. */ #include <windows.h> #define getpid() GetCurrentProcessId() #endif #ifndef _ /* This is for other GNU distributions with internationalized messages. When compiling libc, the _ macro is predefined. */ #ifdef HAVE_LIBINTL_H # include <libintl.h> # define _(msgid) gettext (msgid) #else # define _(msgid) (msgid) #endif #endif /* This version of `getopt' appears to the caller like standard Unix `getopt' but it behaves differently for the user, since it allows the user to intersperse the options with the other arguments. As `getopt' works, it permutes the elements of ARGV so that, when it is done, all the options precede everything else. Thus all application programs are extended to handle flexible argument order. Setting the environment variable POSIXLY_CORRECT disables permutation. Then the behavior is completely standard. GNU application programs can use a third alternative mode in which they can distinguish the relative order of options and other arguments. */ #include "getopt.h" /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ char *optarg = NULL; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ /* 1003.2 says this must be 1 before any call. */ int optind = 1; /* Formerly, initialization of getopt depended on optind==0, which causes problems with re-calling getopt as programs generally don't know that. */ int __getopt_initialized = 0; /* The next char to be scanned in the option-element in which the last option character we returned was found. This allows us to pick up the scan where we left off. If this is zero, or a null string, it means resume the scan by advancing to the next ARGV-element. */ static char *nextchar; /* Callers store zero here to inhibit the error message for unrecognized options. */ int opterr = 1; /* Set to an option character which was unrecognized. This must be initialized on some systems to avoid linking in the system's own getopt implementation. */ int optopt = '?'; /* Describe how to deal with options that follow non-option ARGV-elements. If the caller did not specify anything, the default is REQUIRE_ORDER if the environment variable POSIXLY_CORRECT is defined, PERMUTE otherwise. REQUIRE_ORDER means don't recognize them as options; stop option processing when the first non-option is seen. This is what Unix does. This mode of operation is selected by either setting the environment variable POSIXLY_CORRECT, or using `+' as the first character of the list of option characters. PERMUTE is the default. We permute the contents of ARGV as we scan, so that eventually all the non-options are at the end. This allows options to be given in any order, even with programs that were not written to expect this. RETURN_IN_ORDER is an option available to programs that were written to expect options and other ARGV-elements in any order and that care about the ordering of the two. We describe each non-option ARGV-element as if it were the argument of an option with character code 1. Using `-' as the first character of the list of option characters selects this mode of operation. The special argument `--' forces an end of option-scanning regardless of the value of `ordering'. In the case of RETURN_IN_ORDER, only `--' can cause `getopt' to return -1 with `optind' != ARGC. */ static enum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER } ordering; /* Value of POSIXLY_CORRECT environment variable. */ static char *posixly_correct; #ifdef __GNU_LIBRARY__ /* We want to avoid inclusion of string.h with non-GNU libraries because there are many ways it can cause trouble. On some systems, it contains special magic macros that don't work in GCC. */ #include <string.h> #define my_index strchr #else /* Avoid depending on library functions or files whose names are inconsistent. */ char *getenv (); static char * my_index (str, chr) const char *str; int chr; { while (*str) { if (*str == chr) return (char *) str; str++; } return 0; } /* If using GCC, we can safely declare strlen this way. If not using GCC, it is ok not to declare it. */ #ifdef __GNUC__ /* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. That was relevant to code that was here before. */ #if !defined (__STDC__) || !__STDC__ /* gcc with -traditional declares the built-in strlen to return int, and has done so at least since version 2.4.5. -- rms. */ extern int strlen (const char *); #endif /* not __STDC__ */ #endif /* __GNUC__ */ #endif /* not __GNU_LIBRARY__ */ /* Handle permutation of arguments. */ /* Describe the part of ARGV that contains non-options that have been skipped. `first_nonopt' is the index in ARGV of the first of them; `last_nonopt' is the index after the last of them. */ static int first_nonopt; static int last_nonopt; #ifdef _LIBC /* Bash 2.0 gives us an environment variable containing flags indicating ARGV elements that should not be considered arguments. */ /* Defined in getopt_init.c */ extern char *__getopt_nonoption_flags; static int nonoption_flags_max_len; static int nonoption_flags_len; static int original_argc; static char *const *original_argv; extern pid_t __libc_pid; /* Make sure the environment variable bash 2.0 puts in the environment is valid for the getopt call we must make sure that the ARGV passed to getopt is that one passed to the process. */ static void __attribute__ ((unused)) store_args_and_env (int argc, char *const *argv) { /* XXX This is no good solution. We should rather copy the args so that we can compare them later. But we must not use malloc(3). */ original_argc = argc; original_argv = argv; } text_set_element (__libc_subinit, store_args_and_env); # define SWAP_FLAGS(ch1, ch2) \ if (nonoption_flags_len > 0) \ { \ char __tmp = __getopt_nonoption_flags[ch1]; \ __getopt_nonoption_flags[ch1] = __getopt_nonoption_flags[ch2]; \ __getopt_nonoption_flags[ch2] = __tmp; \ } #else /* !_LIBC */ # define SWAP_FLAGS(ch1, ch2) #endif /* _LIBC */ /* Exchange two adjacent subsequences of ARGV. One subsequence is elements [first_nonopt,last_nonopt) which contains all the non-options that have been skipped so far. The other is elements [last_nonopt,optind), which contains all the options processed since those non-options were skipped. `first_nonopt' and `last_nonopt' are relocated so that they describe the new indices of the non-options in ARGV after they are moved. */ #if defined (__STDC__) && __STDC__ static void exchange (char **); #endif static void exchange (argv) char **argv; { int bottom = first_nonopt; int middle = last_nonopt; int top = optind; char *tem; /* Exchange the shorter segment with the far end of the longer segment. That puts the shorter segment into the right place. It leaves the longer segment in the right place overall, but it consists of two parts that need to be swapped next. */ #ifdef _LIBC /* First make sure the handling of the `__getopt_nonoption_flags' string can work normally. Our top argument must be in the range of the string. */ if (nonoption_flags_len > 0 && top >= nonoption_flags_max_len) { /* We must extend the array. The user plays games with us and presents new arguments. */ char *new_str = malloc (top + 1); if (new_str == NULL) nonoption_flags_len = nonoption_flags_max_len = 0; else { memcpy (new_str, __getopt_nonoption_flags, nonoption_flags_max_len); memset (&new_str[nonoption_flags_max_len], '\0', top + 1 - nonoption_flags_max_len); nonoption_flags_max_len = top + 1; __getopt_nonoption_flags = new_str; } } #endif while (top > middle && middle > bottom) { if (top - middle > middle - bottom) { /* Bottom segment is the short one. */ int len = middle - bottom; register int i; /* Swap it with the top part of the top segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[top - (middle - bottom) + i]; argv[top - (middle - bottom) + i] = tem; SWAP_FLAGS (bottom + i, top - (middle - bottom) + i); } /* Exclude the moved bottom segment from further swapping. */ top -= len; } else { /* Top segment is the short one. */ int len = top - middle; register int i; /* Swap it with the bottom part of the bottom segment. */ for (i = 0; i < len; i++) { tem = argv[bottom + i]; argv[bottom + i] = argv[middle + i]; argv[middle + i] = tem; SWAP_FLAGS (bottom + i, middle + i); } /* Exclude the moved top segment from further swapping. */ bottom += len; } } /* Update records for the slots the non-options now occupy. */ first_nonopt += (optind - last_nonopt); last_nonopt = optind; } /* Initialize the internal data when the first call is made. */ #if defined (__STDC__) && __STDC__ static const char *_getopt_initialize (int, char *const *, const char *); #endif static const char * _getopt_initialize (argc, argv, optstring) int argc; char *const *argv; const char *optstring; { /* Start processing options with ARGV-element 1 (since ARGV-element 0 is the program name); the sequence of previously skipped non-option ARGV-elements is empty. */ first_nonopt = last_nonopt = optind; nextchar = NULL; posixly_correct = getenv ("POSIXLY_CORRECT"); /* Determine how to handle the ordering of options and nonoptions. */ if (optstring[0] == '-') { ordering = RETURN_IN_ORDER; ++optstring; } else if (optstring[0] == '+') { ordering = REQUIRE_ORDER; ++optstring; } else if (posixly_correct != NULL) ordering = REQUIRE_ORDER; else ordering = PERMUTE; #ifdef _LIBC if (posixly_correct == NULL && argc == original_argc && argv == original_argv) { if (nonoption_flags_max_len == 0) { if (__getopt_nonoption_flags == NULL || __getopt_nonoption_flags[0] == '\0') nonoption_flags_max_len = -1; else { const char *orig_str = __getopt_nonoption_flags; int len = nonoption_flags_max_len = strlen (orig_str); if (nonoption_flags_max_len < argc) nonoption_flags_max_len = argc; __getopt_nonoption_flags = (char *) malloc (nonoption_flags_max_len); if (__getopt_nonoption_flags == NULL) nonoption_flags_max_len = -1; else { memcpy (__getopt_nonoption_flags, orig_str, len); memset (&__getopt_nonoption_flags[len], '\0', nonoption_flags_max_len - len); } } } nonoption_flags_len = nonoption_flags_max_len; } else nonoption_flags_len = 0; #endif return optstring; } /* Scan elements of ARGV (whose length is ARGC) for option characters given in OPTSTRING. If an element of ARGV starts with '-', and is not exactly "-" or "--", then it is an option element. The characters of this element (aside from the initial '-') are option characters. If `getopt' is called repeatedly, it returns successively each of the option characters from each of the option elements. If `getopt' finds another option character, it returns that character, updating `optind' and `nextchar' so that the next call to `getopt' can resume the scan with the following option character or ARGV-element. If there are no more option characters, `getopt' returns -1. Then `optind' is the index in ARGV of the first ARGV-element that is not an option. (The ARGV-elements have been permuted so that those that are not options now come last.) OPTSTRING is a string containing the legitimate option characters. If an option character is seen that is not listed in OPTSTRING, return '?' after printing an error message. If you set `opterr' to zero, the error message is suppressed but we still return '?'. If a char in OPTSTRING is followed by a colon, that means it wants an arg, so the following text in the same ARGV-element, or the text of the following ARGV-element, is returned in `optarg'. Two colons mean an option that wants an optional arg; if there is text in the current ARGV-element, it is returned in `optarg', otherwise `optarg' is set to zero. If OPTSTRING starts with `-' or `+', it requests different methods of handling the non-option ARGV-elements. See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above. Long-named options begin with `--' instead of `-'. Their names may be abbreviated as long as the abbreviation is unique or is an exact match for some defined option. If they have an argument, it follows the option name in the same ARGV-element, separated from the option name by a `=', or else the in next ARGV-element. When `getopt' finds a long-named option, it returns 0 if that option's `flag' field is nonzero, the value of the option's `val' field if the `flag' field is zero. The elements of ARGV aren't really const, because we permute them. But we pretend they're const in the prototype to be compatible with other systems. LONGOPTS is a vector of `struct option' terminated by an element containing a name which is zero. LONGIND returns the index in LONGOPT of the long-named option found. It is only valid when a long-named option has been found by the most recent call. If LONG_ONLY is nonzero, '-' as well as '--' can introduce long-named options. */ int _getopt_internal (argc, argv, optstring, longopts, longind, long_only) int argc; char *const *argv; const char *optstring; const struct option *longopts; int *longind; int long_only; { optarg = NULL; if (optind == 0 || !__getopt_initialized) { if (optind == 0) optind = 1; /* Don't scan ARGV[0], the program name. */ optstring = _getopt_initialize (argc, argv, optstring); __getopt_initialized = 1; } /* Test whether ARGV[optind] points to a non-option argument. Either it does not have option syntax, or there is an environment flag from the shell indicating it is not an option. The later information is only used when the used in the GNU libc. */ #ifdef _LIBC #define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0' \ || (optind < nonoption_flags_len \ && __getopt_nonoption_flags[optind] == '1')) #else #define NONOPTION_P (argv[optind][0] != '-' || argv[optind][1] == '\0') #endif if (nextchar == NULL || *nextchar == '\0') { /* Advance to the next ARGV-element. */ /* Give FIRST_NONOPT & LAST_NONOPT rational values if OPTIND has been moved back by the user (who may also have changed the arguments). */ if (last_nonopt > optind) last_nonopt = optind; if (first_nonopt > optind) first_nonopt = optind; if (ordering == PERMUTE) { /* If we have just processed some options following some non-options, exchange them so that the options come first. */ if (first_nonopt != last_nonopt && last_nonopt != optind) exchange ((char **) argv); else if (last_nonopt != optind) first_nonopt = optind; /* Skip any additional non-options and extend the range of non-options previously skipped. */ while (optind < argc && NONOPTION_P) optind++; last_nonopt = optind; } /* The special ARGV-element `--' means premature end of options. Skip it like a null option, then exchange with previous non-options as if it were an option, then skip everything else like a non-option. */ if (optind != argc && !strcmp (argv[optind], "--")) { optind++; if (first_nonopt != last_nonopt && last_nonopt != optind) exchange ((char **) argv); else if (first_nonopt == last_nonopt) first_nonopt = optind; last_nonopt = argc; optind = argc; } /* If we have done all the ARGV-elements, stop the scan and back over any non-options that we skipped and permuted. */ if (optind == argc) { /* Set the next-arg-index to point at the non-options that we previously skipped, so the caller will digest them. */ if (first_nonopt != last_nonopt) optind = first_nonopt; return -1; } /* If we have come to a non-option and did not permute it, either stop the scan or describe it to the caller and pass it by. */ if (NONOPTION_P) { if (ordering == REQUIRE_ORDER) return -1; optarg = argv[optind++]; return 1; } /* We have found another option-ARGV-element. Skip the initial punctuation. */ nextchar = (argv[optind] + 1 + (longopts != NULL && argv[optind][1] == '-')); } /* Decode the current option-ARGV-element. */ /* Check whether the ARGV-element is a long option. If long_only and the ARGV-element has the form "-f", where f is a valid short option, don't consider it an abbreviated form of a long option that starts with f. Otherwise there would be no way to give the -f short option. On the other hand, if there's a long option "fubar" and the ARGV-element is "-fu", do consider that an abbreviation of the long option, just like "--fu", and not "-f" with arg "u". This distinction seems to be the most useful approach. */ if (longopts != NULL && (argv[optind][1] == '-' || (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1]))))) { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = -1; int option_index; for (nameend = nextchar; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == (unsigned int) strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (opterr) fprintf (stderr, _("%s: option `%s' is ambiguous\n"), argv[0], argv[optind]); nextchar += strlen (nextchar); optind++; optopt = 0; return '?'; } if (pfound != NULL) { option_index = indfound; optind++; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) optarg = nameend + 1; else { if (opterr) if (argv[optind - 1][1] == '-') /* --option */ fprintf (stderr, _ ("%s: option `--%s' doesn't allow an argument\n"), argv[0], pfound->name); else /* +option or -option */ fprintf (stderr, _ ("%s: option `%c%s' doesn't allow an argument\n"), argv[0], argv[optind - 1][0], pfound->name); nextchar += strlen (nextchar); optopt = pfound->val; return '?'; } } else if (pfound->has_arg == 1) { if (optind < argc) optarg = argv[optind++]; else { if (opterr) fprintf (stderr, _ ("%s: option `%s' requires an argument\n"), argv[0], argv[optind - 1]); nextchar += strlen (nextchar); optopt = pfound->val; return optstring[0] == ':' ? ':' : '?'; } } nextchar += strlen (nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } /* Can't find it as a long option. If this is not getopt_long_only, or the option starts with '--' or is not a valid short option, then it's an error. Otherwise interpret it as a short option. */ if (!long_only || argv[optind][1] == '-' || my_index (optstring, *nextchar) == NULL) { if (opterr) { if (argv[optind][1] == '-') /* --option */ fprintf (stderr, _("%s: unrecognized option `--%s'\n"), argv[0], nextchar); else /* +option or -option */ fprintf (stderr, _("%s: unrecognized option `%c%s'\n"), argv[0], argv[optind][0], nextchar); } nextchar = (char *) ""; optind++; optopt = 0; return '?'; } } /* Look at and handle the next short option-character. */ { char c = *nextchar++; char *temp = my_index (optstring, c); /* Increment `optind' when we start to process its last character. */ if (*nextchar == '\0') ++optind; if (temp == NULL || c == ':') { if (opterr) { if (posixly_correct) /* 1003.2 specifies the format of this message. */ fprintf (stderr, _("%s: illegal option -- %c\n"), argv[0], c); else fprintf (stderr, _("%s: invalid option -- %c\n"), argv[0], c); } optopt = c; return '?'; } /* Convenience. Treat POSIX -W foo same as long option --foo */ if (temp[0] == 'W' && temp[1] == ';') { char *nameend; const struct option *p; const struct option *pfound = NULL; int exact = 0; int ambig = 0; int indfound = 0; int option_index; /* This is an option that requires an argument. */ if (*nextchar != '\0') { optarg = nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ optind++; } else if (optind == argc) { if (opterr) { /* 1003.2 specifies the format of this message. */ fprintf (stderr, _ ("%s: option requires an argument -- %c\n"), argv[0], c); } optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; return c; } else /* We already incremented `optind' once; increment it again when taking next ARGV-elt as argument. */ optarg = argv[optind++]; /* optarg is now the argument, see if it's in the table of longopts. */ for (nextchar = nameend = optarg; *nameend && *nameend != '='; nameend++) /* Do nothing. */ ; /* Test all long options for either exact match or abbreviated matches. */ for (p = longopts, option_index = 0; p->name; p++, option_index++) if (!strncmp (p->name, nextchar, nameend - nextchar)) { if ((unsigned int) (nameend - nextchar) == strlen (p->name)) { /* Exact match found. */ pfound = p; indfound = option_index; exact = 1; break; } else if (pfound == NULL) { /* First nonexact match found. */ pfound = p; indfound = option_index; } else /* Second or later nonexact match found. */ ambig = 1; } if (ambig && !exact) { if (opterr) fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"), argv[0], argv[optind]); nextchar += strlen (nextchar); optind++; return '?'; } if (pfound != NULL) { option_index = indfound; if (*nameend) { /* Don't test has_arg with >, because some C compilers don't allow it to be used on enums. */ if (pfound->has_arg) optarg = nameend + 1; else { if (opterr) fprintf (stderr, _("\ %s: option `-W %s' doesn't allow an argument\n"), argv[0], pfound->name); nextchar += strlen (nextchar); return '?'; } } else if (pfound->has_arg == 1) { if (optind < argc) optarg = argv[optind++]; else { if (opterr) fprintf (stderr, _ ("%s: option `%s' requires an argument\n"), argv[0], argv[optind - 1]); nextchar += strlen (nextchar); return optstring[0] == ':' ? ':' : '?'; } } nextchar += strlen (nextchar); if (longind != NULL) *longind = option_index; if (pfound->flag) { *(pfound->flag) = pfound->val; return 0; } return pfound->val; } nextchar = NULL; return 'W'; /* Let the application handle it. */ } if (temp[1] == ':') { if (temp[2] == ':') { /* This is an option that accepts an argument optionally. */ if (*nextchar != '\0') { optarg = nextchar; optind++; } else optarg = NULL; nextchar = NULL; } else { /* This is an option that requires an argument. */ if (*nextchar != '\0') { optarg = nextchar; /* If we end this ARGV-element by taking the rest as an arg, we must advance to the next element now. */ optind++; } else if (optind == argc) { if (opterr) { /* 1003.2 specifies the format of this message. */ fprintf (stderr, _ ("%s: option requires an argument -- %c\n"), argv[0], c); } optopt = c; if (optstring[0] == ':') c = ':'; else c = '?'; } else /* We already incremented `optind' once; increment it again when taking next ARGV-elt as argument. */ optarg = argv[optind++]; nextchar = NULL; } } return c; } } int getopt (argc, argv, optstring) int argc; char *const *argv; const char *optstring; { return _getopt_internal (argc, argv, optstring, (const struct option *) 0, (int *) 0, 0); } #endif /* Not ELIDE_CODE. */ #ifdef TEST /* Compile with -DTEST to make an executable for use in testing the above definition of `getopt'. */ int main (argc, argv) int argc; char **argv; { int c; int digit_optind = 0; while (1) { int this_option_optind = optind ? optind : 1; c = getopt (argc, argv, "abc:d:0123456789"); if (c == -1) break; switch (c) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (digit_optind != 0 && digit_optind != this_option_optind) printf ("digits occur in two different argv-elements.\n"); digit_optind = this_option_optind; printf ("option %c\n", c); break; case 'a': printf ("option a\n"); break; case 'b': printf ("option b\n"); break; case 'c': printf ("option c with value `%s'\n", optarg); break; case '?': break; default: printf ("?? getopt returned character code 0%o ??\n", c); } } if (optind < argc) { printf ("non-option ARGV-elements: "); while (optind < argc) printf ("%s ", argv[optind++]); printf ("\n"); } exit (0); } #endif /* TEST */ ��������������������������������������������������������������������������������������������������������������wv-1.2.9/rs.c���������������������������������������������������������������������������������������0000664�0000764�0000764�00000002431�11247156607�007713� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetRS (RS * item, wvStream * fd) { item->fRouted = (S16) read_16ubit (fd); item->fReturnOrig = (S16) read_16ubit (fd); item->fTrackStatus = (S16) read_16ubit (fd); item->fDirty = (S16) read_16ubit (fd); item->nProtect = (S16) read_16ubit (fd); item->iStage = (S16) read_16ubit (fd); item->delOption = (S16) read_16ubit (fd); item->cRecip = (S16) read_16ubit (fd); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/bintree.h����������������������������������������������������������������������������������0000664�0000764�0000764�00000001327�11247156606�010726� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef BinTree #define BinTree /* Caolan.McNamara@ul.ie */ /* modify these lines to establish data type */ typedef struct Node_ { struct Node_ *Left; /* left child */ struct Node_ *Right; /* right child */ struct Node_ *Parent; /* parent */ void *Data; /* data stored in node */ } Node; typedef struct BintreeInfo_ { Node *Root; int (*CompLT) (void *, void *); int (*CompEQ) (void *, void *); int no_in_tree; } BintreeInfo; void InitBintree (BintreeInfo *, int (*)(void *, void *), int (*)(void *, void *)); Node *InsertNode (BintreeInfo *, void *); void wvDeleteNode (BintreeInfo *, Node *); Node *FindNode (BintreeInfo *, void *); Node *NextNode (BintreeInfo *, Node *); #endif ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/crc32.h������������������������������������������������������������������������������������0000664�0000764�0000764�00000002150�11247156607�010206� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* crc32.h header file for crc32 checksum C implementation of CRC-32 checksums for NAACCR records. Code is based upon and utilizes algorithm published by Ross Williams. This file contains: CRC lookup table function CalcCRC32 for calculating CRC-32 checksum function AssignCRC32 for assigning CRC-32 in NAACCR record function CheckCRC32 for checking CRC-32 in NAACCR record Provided by: Eric Durbin Kentucky Cancer Registry University of Kentucky October 14, 1998 Status: Public Domain */ #define CRC32_XINIT 0xFFFFFFFFL /* initial value */ #define CRC32_XOROT 0xFFFFFFFFL /* final xor value */ #define MINIMUM_CHECKSUM_LEN 8 #define MAXIMUM_CHECKSUM_LEN 99 /* NAACCR 6.0 Specifications */ #define NAACCR_60_CHECKSUM_POS 942 #define NAACCR_60_CHECKSUM_LEN 10 /* function prototypes */ unsigned long CalcCRC32 (unsigned char *, unsigned long, unsigned long, unsigned long); int AssignCRC32 (unsigned char *, unsigned long, unsigned long, unsigned long); int CompareCRC32 (unsigned char *, unsigned long, unsigned long, unsigned long); ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/anld.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000012340�11247156606�010204� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" #include "crc32.h" void wvGetANLD (wvVersion ver, ANLD * item, wvStream * fd) { U8 temp8; int i; #ifdef PURIFY wvInitANLD (item); #endif item->nfc = read_8ubit (fd); item->cxchTextBefore = read_8ubit (fd); item->cxchTextAfter = read_8ubit (fd); temp8 = read_8ubit (fd); item->jc = temp8 & 0x03; item->fPrev = (temp8 & 0x04) >> 2; item->fHang = (temp8 & 0x08) >> 3; item->fSetBold = (temp8 & 0x10) >> 4; item->fSetItalic = (temp8 & 0x20) >> 5; item->fSetSmallCaps = (temp8 & 0x40) >> 6; item->fSetCaps = (temp8 & 0x80) >> 7; temp8 = read_8ubit (fd); item->fSetStrike = temp8 & 0x01; item->fSetKul = (temp8 & 0x02) >> 1; item->fPrevSpace = (temp8 & 0x04) >> 2; item->fBold = (temp8 & 0x08) >> 3; item->fItalic = (temp8 & 0x10) >> 4; item->fSmallCaps = (temp8 & 0x20) >> 5; item->fCaps = (temp8 & 0x40) >> 6; item->fStrike = (temp8 & 0x80) >> 7; temp8 = read_8ubit (fd); item->kul = temp8 & 0x07; item->ico = (temp8 & 0xF1) >> 3; item->ftc = (S16) read_16ubit (fd); item->hps = read_16ubit (fd); item->iStartAt = read_16ubit (fd); item->dxaIndent = (S16) read_16ubit (fd); item->dxaSpace = read_16ubit (fd); item->fNumber1 = read_8ubit (fd); item->fNumberAcross = read_8ubit (fd); item->fRestartHdn = read_8ubit (fd); item->fSpareX = read_8ubit (fd); for (i = 0; i < 32; i++) { if (ver == WORD8) item->rgxch[i] = read_16ubit (fd); else item->rgxch[i] = read_8ubit (fd); } } void wvGetANLD_FromBucket (wvVersion ver, ANLD * item, U8 * pointer8) { U8 temp8; int i; #ifdef PURIFY wvInitANLD (item); #endif item->nfc = dread_8ubit (NULL, &pointer8); item->cxchTextBefore = dread_8ubit (NULL, &pointer8); item->cxchTextAfter = dread_8ubit (NULL, &pointer8); temp8 = dread_8ubit (NULL, &pointer8); item->jc = temp8 & 0x03; item->fPrev = (temp8 & 0x04) >> 2; item->fHang = (temp8 & 0x08) >> 3; item->fSetBold = (temp8 & 0x10) >> 4; item->fSetItalic = (temp8 & 0x20) >> 5; item->fSetSmallCaps = (temp8 & 0x40) >> 6; item->fSetCaps = (temp8 & 0x80) >> 7; temp8 = dread_8ubit (NULL, &pointer8); item->fSetStrike = temp8 & 0x01; item->fSetKul = (temp8 & 0x02) >> 1; item->fPrevSpace = (temp8 & 0x04) >> 2; item->fBold = (temp8 & 0x08) >> 3; item->fItalic = (temp8 & 0x10) >> 4; item->fSmallCaps = (temp8 & 0x20) >> 5; item->fCaps = (temp8 & 0x40) >> 6; item->fStrike = (temp8 & 0x80) >> 7; temp8 = dread_8ubit (NULL, &pointer8); item->kul = temp8 & 0x07; item->ico = (temp8 & 0xF1) >> 3; item->ftc = (S16) dread_16ubit (NULL, &pointer8); item->hps = dread_16ubit (NULL, &pointer8); item->iStartAt = dread_16ubit (NULL, &pointer8); item->dxaIndent = (S16) dread_16ubit (NULL, &pointer8); item->dxaSpace = dread_16ubit (NULL, &pointer8); item->fNumber1 = dread_8ubit (NULL, &pointer8); #if 0 if (item->fNumber1 == 46) wvTrace ( ("This level has not been modified, so you can't believe its nfc\n")); #endif item->fNumberAcross = dread_8ubit (NULL, &pointer8); item->fRestartHdn = dread_8ubit (NULL, &pointer8); item->fSpareX = dread_8ubit (NULL, &pointer8); for (i = 0; i < 32; i++) { if (ver == WORD8) item->rgxch[i] = dread_16ubit (NULL, &pointer8); else item->rgxch[i] = dread_8ubit (NULL, &pointer8); } } void wvCopyANLD (ANLD * dest, ANLD * src) { memcpy (dest, src, sizeof (ANLD)); } void wvInitANLD (ANLD * item) { int i; item->nfc = 0; item->cxchTextBefore = 0; item->cxchTextAfter = 0; item->jc = 0; item->fPrev = 0; item->fHang = 0; item->fSetBold = 0; item->fSetItalic = 0; item->fSetSmallCaps = 0; item->fSetCaps = 0; item->fSetStrike = 0; item->fSetKul = 0; item->fPrevSpace = 0; item->fBold = 0; item->fItalic = 0; item->fSmallCaps = 0; item->fCaps = 0; item->fStrike = 0; item->kul = 0; item->ico = 0; item->ftc = 0; item->hps = 0; item->iStartAt = 0; item->dxaIndent = 0; item->dxaSpace = 0; item->fNumber1 = 0; item->fNumberAcross = 0; item->fRestartHdn = 0; item->fSpareX = 0; for (i = 0; i < 32; i++) item->rgxch[i] = 0; } U32 wvCheckSumANLD (ANLD * item) { return (CalcCRC32 ((unsigned char *) item, cbANLD, cbANLD, 0)); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/bkd.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000004341�11247156607�010031� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetBKD (BKD * item, wvStream * fd) { U16 temp16; item->ipgd_itxbxs = (S16) read_16ubit (fd); item->dcpDepend = (S16) read_16ubit (fd); temp16 = read_16ubit (fd); item->icol = temp16 & 0x00FF; item->fTableBreak = (temp16 & 0x0100) >> 8; item->fColumnBreak = (temp16 & 0x0200) >> 9; item->fMarked = (temp16 & 0x0400) >> 10; item->fUnk = (temp16 & 0x0800) >> 11; item->fTextOverflow = (temp16 & 0x1000) >> 12; item->reserved1 = (temp16 & 0xE000) >> 13; } int wvGetBKD_PLCF (BKD ** bkd, U32 ** pos, U32 * nobkd, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *bkd = NULL; *pos = NULL; *nobkd = 0; } else { *nobkd = (len - 4) / (cbBKD + 4); *pos = (U32 *) wvMalloc ((*nobkd + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nobkd + 1) * sizeof (U32))); return (1); } *bkd = (BKD *) wvMalloc (*nobkd * sizeof (BKD)); if (*bkd == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nobkd * sizeof (BKD))); wvFree (pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i < *nobkd + 1; i++) { (*pos)[i] = read_32ubit (fd); } for (i = 0; i < *nobkd; i++) { wvGetBKD (&((*bkd)[i]), fd); } } return (0); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/fib.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000106774�11247156607�010046� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" void wvInitFIB (FIB * item) { item->wIdent = 0; item->nFib = 0; item->nProduct = 0; item->lid = 0; item->pnNext = 0; item->fDot = 0; item->fGlsy = 0; item->fComplex = 0; item->fHasPic = 0; item->cQuickSaves = 0; item->fEncrypted = 0; item->fWhichTblStm = 0; item->fReadOnlyRecommended = 0; item->fWriteReservation = 0; item->fExtChar = 0; item->fLoadOverride = 0; item->fFarEast = 0; item->fCrypto = 0; item->nFibBack = 0; item->lKey = 0; item->envr = 0; item->fMac = 0; item->fEmptySpecial = 0; item->fLoadOverridePage = 0; item->fFutureSavedUndo = 0; item->fWord97Saved = 0; item->fSpare0 = 0; item->chse = 0; item->chsTables = 0; item->fcMin = 0; item->fcMac = 0; item->csw = 0; item->wMagicCreated = 0; item->wMagicRevised = 0; item->wMagicCreatedPrivate = 0; item->wMagicRevisedPrivate = 0; item->pnFbpChpFirst_W6 = 0; item->pnChpFirst_W6 = 0; item->cpnBteChp_W6 = 0; item->pnFbpPapFirst_W6 = 0; item->pnPapFirst_W6 = 0; item->cpnBtePap_W6 = 0; item->pnFbpLvcFirst_W6 = 0; item->pnLvcFirst_W6 = 0; item->cpnBteLvc_W6 = 0; item->lidFE = 0; item->clw = 0; item->cbMac = 0; item->lProductCreated = 0; item->lProductRevised = 0; item->ccpText = 0; item->ccpFtn = 0; item->ccpHdr = 0; item->ccpMcr = 0; item->ccpAtn = 0; item->ccpEdn = 0; item->ccpTxbx = 0; item->ccpHdrTxbx = 0; item->pnFbpChpFirst = 0; item->pnChpFirst = 0; item->cpnBteChp = 0; item->pnFbpPapFirst = 0; item->pnPapFirst = 0; item->cpnBtePap = 0; item->pnFbpLvcFirst = 0; item->pnLvcFirst = 0; item->cpnBteLvc = 0; item->fcIslandFirst = 0; item->fcIslandLim = 0; item->cfclcb = 0; item->fcStshfOrig = 0; item->lcbStshfOrig = 0; item->fcStshf = 0; item->lcbStshf = 0; item->fcPlcffndRef = 0; item->lcbPlcffndRef = 0; item->fcPlcffndTxt = 0; item->lcbPlcffndTxt = 0; item->fcPlcfandRef = 0; item->lcbPlcfandRef = 0; item->fcPlcfandTxt = 0; item->lcbPlcfandTxt = 0; item->fcPlcfsed = 0; item->lcbPlcfsed = 0; item->fcPlcpad = 0; item->lcbPlcpad = 0; item->fcPlcfphe = 0; item->lcbPlcfphe = 0; item->fcSttbfglsy = 0; item->lcbSttbfglsy = 0; item->fcPlcfglsy = 0; item->lcbPlcfglsy = 0; item->fcPlcfhdd = 0; item->lcbPlcfhdd = 0; item->fcPlcfbteChpx = 0; item->lcbPlcfbteChpx = 0; item->fcPlcfbtePapx = 0; item->lcbPlcfbtePapx = 0; item->fcPlcfsea = 0; item->lcbPlcfsea = 0; item->fcSttbfffn = 0; item->lcbSttbfffn = 0; item->fcPlcffldMom = 0; item->lcbPlcffldMom = 0; item->fcPlcffldHdr = 0; item->lcbPlcffldHdr = 0; item->fcPlcffldFtn = 0; item->lcbPlcffldFtn = 0; item->fcPlcffldAtn = 0; item->lcbPlcffldAtn = 0; item->fcPlcffldMcr = 0; item->lcbPlcffldMcr = 0; item->fcSttbfbkmk = 0; item->lcbSttbfbkmk = 0; item->fcPlcfbkf = 0; item->lcbPlcfbkf = 0; item->fcPlcfbkl = 0; item->lcbPlcfbkl = 0; item->fcCmds = 0; item->lcbCmds = 0; item->fcPlcmcr = 0; item->lcbPlcmcr = 0; item->fcSttbfmcr = 0; item->lcbSttbfmcr = 0; item->fcPrDrvr = 0; item->lcbPrDrvr = 0; item->fcPrEnvPort = 0; item->lcbPrEnvPort = 0; item->fcPrEnvLand = 0; item->lcbPrEnvLand = 0; item->fcWss = 0; item->lcbWss = 0; item->fcDop = 0; item->lcbDop = 0; item->fcSttbfAssoc = 0; item->lcbSttbfAssoc = 0; item->fcClx = 0; item->lcbClx = 0; item->fcPlcfpgdFtn = 0; item->lcbPlcfpgdFtn = 0; item->fcAutosaveSource = 0; item->lcbAutosaveSource = 0; item->fcGrpXstAtnOwners = 0; item->lcbGrpXstAtnOwners = 0; item->fcSttbfAtnbkmk = 0; item->lcbSttbfAtnbkmk = 0; item->fcPlcdoaMom = 0; item->lcbPlcdoaMom = 0; item->fcPlcdoaHdr = 0; item->lcbPlcdoaHdr = 0; item->fcPlcspaMom = 0; item->lcbPlcspaMom = 0; item->fcPlcspaHdr = 0; item->lcbPlcspaHdr = 0; item->fcPlcfAtnbkf = 0; item->lcbPlcfAtnbkf = 0; item->fcPlcfAtnbkl = 0; item->lcbPlcfAtnbkl = 0; item->fcPms = 0; item->lcbPms = 0; item->fcFormFldSttbs = 0; item->lcbFormFldSttbs = 0; item->fcPlcfendRef = 0; item->lcbPlcfendRef = 0; item->fcPlcfendTxt = 0; item->lcbPlcfendTxt = 0; item->fcPlcffldEdn = 0; item->lcbPlcffldEdn = 0; item->fcPlcfpgdEdn = 0; item->lcbPlcfpgdEdn = 0; item->fcDggInfo = 0; item->lcbDggInfo = 0; item->fcSttbfRMark = 0; item->lcbSttbfRMark = 0; item->fcSttbCaption = 0; item->lcbSttbCaption = 0; item->fcSttbAutoCaption = 0; item->lcbSttbAutoCaption = 0; item->fcPlcfwkb = 0; item->lcbPlcfwkb = 0; item->fcPlcfspl = 0; item->lcbPlcfspl = 0; item->fcPlcftxbxTxt = 0; item->lcbPlcftxbxTxt = 0; item->fcPlcffldTxbx = 0; item->lcbPlcffldTxbx = 0; item->fcPlcfhdrtxbxTxt = 0; item->lcbPlcfhdrtxbxTxt = 0; item->fcPlcffldHdrTxbx = 0; item->lcbPlcffldHdrTxbx = 0; item->fcStwUser = 0; item->lcbStwUser = 0; item->fcSttbttmbd = 0; item->cbSttbttmbd = 0; item->fcUnused = 0; item->lcbUnused = 0; item->fcPgdMother = 0; item->lcbPgdMother = 0; item->fcBkdMother = 0; item->lcbBkdMother = 0; item->fcPgdFtn = 0; item->lcbPgdFtn = 0; item->fcBkdFtn = 0; item->lcbBkdFtn = 0; item->fcPgdEdn = 0; item->lcbPgdEdn = 0; item->fcBkdEdn = 0; item->lcbBkdEdn = 0; item->fcSttbfIntlFld = 0; item->lcbSttbfIntlFld = 0; item->fcRouteSlip = 0; item->lcbRouteSlip = 0; item->fcSttbSavedBy = 0; item->lcbSttbSavedBy = 0; item->fcSttbFnm = 0; item->lcbSttbFnm = 0; item->fcPlcfLst = 0; item->lcbPlcfLst = 0; item->fcPlfLfo = 0; item->lcbPlfLfo = 0; item->fcPlcftxbxBkd = 0; item->lcbPlcftxbxBkd = 0; item->fcPlcftxbxHdrBkd = 0; item->lcbPlcftxbxHdrBkd = 0; item->fcDocUndo = 0; item->lcbDocUndo = 0; item->fcRgbuse = 0; item->lcbRgbuse = 0; item->fcUsp = 0; item->lcbUsp = 0; item->fcUskf = 0; item->lcbUskf = 0; item->fcPlcupcRgbuse = 0; item->lcbPlcupcRgbuse = 0; item->fcPlcupcUsp = 0; item->lcbPlcupcUsp = 0; item->fcSttbGlsyStyle = 0; item->lcbSttbGlsyStyle = 0; item->fcPlgosl = 0; item->lcbPlgosl = 0; item->fcPlcocx = 0; item->lcbPlcocx = 0; item->fcPlcfbteLvc = 0; item->lcbPlcfbteLvc = 0; wvInitFILETIME (&item->ftModified); item->fcPlcflvc = 0; item->lcbPlcflvc = 0; item->fcPlcasumy = 0; item->lcbPlcasumy = 0; item->fcPlcfgram = 0; item->lcbPlcfgram = 0; item->fcSttbListNames = 0; item->lcbSttbListNames = 0; item->fcSttbfUssr = 0; item->lcbSttbfUssr = 0; /* Word 2 */ item->Spare = 0; item->rgwSpare0[0] = 0; item->rgwSpare0[1] = 0; item->rgwSpare0[2] = 0; item->fcSpare0 = 0; item->fcSpare1 = 0; item->fcSpare2 = 0; item->fcSpare3 = 0; item->ccpSpare0 = 0; item->ccpSpare1 = 0; item->ccpSpare2 = 0; item->ccpSpare3 = 0; item->fcPlcfpgd = 0; item->cbPlcfpgd = 0; item->fcSpare5 = 0; item->cbSpare5 = 0; item->fcSpare6 = 0; item->cbSpare6 = 0; item->wSpare4 = 0; } void wvGetFIB (FIB * item, wvStream * fd) { U16 temp16; U8 temp8; item->fEncrypted = 0; wvStream_goto (fd, 0); #ifdef PURIFY wvInitFIB (item); #endif item->wIdent = read_16ubit (fd); item->nFib = read_16ubit (fd); if ((wvQuerySupported (item, NULL) == WORD2)) { wvInitFIB (item); wvStream_offset (fd, -4); wvGetFIB2 (item, fd); return; } if ((wvQuerySupported (item, NULL) == WORD5) || (wvQuerySupported (item, NULL) == WORD6) || (wvQuerySupported (item, NULL) == WORD7)) { wvInitFIB (item); wvStream_offset (fd, -4); wvGetFIB6 (item, fd); return; } item->nProduct = read_16ubit (fd); item->lid = read_16ubit (fd); wvTrace (("lid is %x\n", item->lid)); item->pnNext = (S16) read_16ubit (fd); temp16 = read_16ubit (fd); item->fDot = (temp16 & 0x0001); item->fGlsy = (temp16 & 0x0002) >> 1; item->fComplex = (temp16 & 0x0004) >> 2; item->fHasPic = (temp16 & 0x0008) >> 3; item->cQuickSaves = (temp16 & 0x00F0) >> 4; item->fEncrypted = (temp16 & 0x0100) >> 8; item->fWhichTblStm = (temp16 & 0x0200) >> 9; item->fReadOnlyRecommended = (temp16 & 0x0400) >> 10; item->fWriteReservation = (temp16 & 0x0800) >> 11; item->fExtChar = (temp16 & 0x1000) >> 12; wvTrace (("fExtChar is %d\n", item->fExtChar)); item->fLoadOverride = (temp16 & 0x2000) >> 13; item->fFarEast = (temp16 & 0x4000) >> 14; item->fCrypto = (temp16 & 0x8000) >> 15; item->nFibBack = read_16ubit (fd); item->lKey = read_32ubit (fd); item->envr = read_8ubit (fd); temp8 = read_8ubit (fd); item->fMac = (temp8 & 0x01); item->fEmptySpecial = (temp8 & 0x02) >> 1; item->fLoadOverridePage = (temp8 & 0x04) >> 2; item->fFutureSavedUndo = (temp8 & 0x08) >> 3; item->fWord97Saved = (temp8 & 0x10) >> 4; item->fSpare0 = (temp8 & 0xFE) >> 5; item->chse = read_16ubit (fd); item->chsTables = read_16ubit (fd); item->fcMin = read_32ubit (fd); item->fcMac = read_32ubit (fd); item->csw = read_16ubit (fd); item->wMagicCreated = read_16ubit (fd); item->wMagicRevised = read_16ubit (fd); item->wMagicCreatedPrivate = read_16ubit (fd); item->wMagicRevisedPrivate = read_16ubit (fd); item->pnFbpChpFirst_W6 = (S16) read_16ubit (fd); item->pnChpFirst_W6 = (S16) read_16ubit (fd); item->cpnBteChp_W6 = (S16) read_16ubit (fd); item->pnFbpPapFirst_W6 = (S16) read_16ubit (fd); item->pnPapFirst_W6 = (S16) read_16ubit (fd); item->cpnBtePap_W6 = (S16) read_16ubit (fd); item->pnFbpLvcFirst_W6 = (S16) read_16ubit (fd); item->pnLvcFirst_W6 = (S16) read_16ubit (fd); item->cpnBteLvc_W6 = (S16) read_16ubit (fd); item->lidFE = (S16) read_16ubit (fd); item->clw = read_16ubit (fd); item->cbMac = (S32) read_32ubit (fd); item->lProductCreated = read_32ubit (fd); item->lProductRevised = read_32ubit (fd); item->ccpText = read_32ubit (fd); item->ccpFtn = (S32) read_32ubit (fd); item->ccpHdr = (S32) read_32ubit (fd); item->ccpMcr = (S32) read_32ubit (fd); item->ccpAtn = (S32) read_32ubit (fd); item->ccpEdn = (S32) read_32ubit (fd); item->ccpTxbx = (S32) read_32ubit (fd); item->ccpHdrTxbx = (S32) read_32ubit (fd); item->pnFbpChpFirst = (S32) read_32ubit (fd); item->pnChpFirst = (S32) read_32ubit (fd); item->cpnBteChp = (S32) read_32ubit (fd); item->pnFbpPapFirst = (S32) read_32ubit (fd); item->pnPapFirst = (S32) read_32ubit (fd); item->cpnBtePap = (S32) read_32ubit (fd); item->pnFbpLvcFirst = (S32) read_32ubit (fd); item->pnLvcFirst = (S32) read_32ubit (fd); item->cpnBteLvc = (S32) read_32ubit (fd); item->fcIslandFirst = (S32) read_32ubit (fd); item->fcIslandLim = (S32) read_32ubit (fd); item->cfclcb = read_16ubit (fd); item->fcStshfOrig = (S32) read_32ubit (fd); item->lcbStshfOrig = read_32ubit (fd); item->fcStshf = (S32) read_32ubit (fd); item->lcbStshf = read_32ubit (fd); item->fcPlcffndRef = (S32) read_32ubit (fd); item->lcbPlcffndRef = read_32ubit (fd); item->fcPlcffndTxt = (S32) read_32ubit (fd); item->lcbPlcffndTxt = read_32ubit (fd); item->fcPlcfandRef = (S32) read_32ubit (fd); item->lcbPlcfandRef = read_32ubit (fd); item->fcPlcfandTxt = (S32) read_32ubit (fd); item->lcbPlcfandTxt = read_32ubit (fd); item->fcPlcfsed = (S32) read_32ubit (fd); item->lcbPlcfsed = read_32ubit (fd); item->fcPlcpad = (S32) read_32ubit (fd); item->lcbPlcpad = read_32ubit (fd); item->fcPlcfphe = (S32) read_32ubit (fd); item->lcbPlcfphe = read_32ubit (fd); item->fcSttbfglsy = (S32) read_32ubit (fd); item->lcbSttbfglsy = read_32ubit (fd); item->fcPlcfglsy = (S32) read_32ubit (fd); item->lcbPlcfglsy = read_32ubit (fd); item->fcPlcfhdd = (S32) read_32ubit (fd); item->lcbPlcfhdd = read_32ubit (fd); item->fcPlcfbteChpx = (S32) read_32ubit (fd); item->lcbPlcfbteChpx = read_32ubit (fd); item->fcPlcfbtePapx = (S32) read_32ubit (fd); item->lcbPlcfbtePapx = read_32ubit (fd); item->fcPlcfsea = (S32) read_32ubit (fd); item->lcbPlcfsea = read_32ubit (fd); item->fcSttbfffn = (S32) read_32ubit (fd); item->lcbSttbfffn = read_32ubit (fd); item->fcPlcffldMom = (S32) read_32ubit (fd); item->lcbPlcffldMom = read_32ubit (fd); item->fcPlcffldHdr = (S32) read_32ubit (fd); item->lcbPlcffldHdr = read_32ubit (fd); item->fcPlcffldFtn = (S32) read_32ubit (fd); item->lcbPlcffldFtn = read_32ubit (fd); item->fcPlcffldAtn = (S32) read_32ubit (fd); item->lcbPlcffldAtn = read_32ubit (fd); item->fcPlcffldMcr = (S32) read_32ubit (fd); item->lcbPlcffldMcr = read_32ubit (fd); item->fcSttbfbkmk = (S32) read_32ubit (fd); item->lcbSttbfbkmk = read_32ubit (fd); item->fcPlcfbkf = (S32) read_32ubit (fd); item->lcbPlcfbkf = read_32ubit (fd); item->fcPlcfbkl = (S32) read_32ubit (fd); item->lcbPlcfbkl = read_32ubit (fd); item->fcCmds = (S32) read_32ubit (fd); item->lcbCmds = read_32ubit (fd); item->fcPlcmcr = (S32) read_32ubit (fd); item->lcbPlcmcr = read_32ubit (fd); item->fcSttbfmcr = (S32) read_32ubit (fd); item->lcbSttbfmcr = read_32ubit (fd); item->fcPrDrvr = (S32) read_32ubit (fd); item->lcbPrDrvr = read_32ubit (fd); item->fcPrEnvPort = (S32) read_32ubit (fd); item->lcbPrEnvPort = read_32ubit (fd); item->fcPrEnvLand = (S32) read_32ubit (fd); item->lcbPrEnvLand = read_32ubit (fd); item->fcWss = (S32) read_32ubit (fd); item->lcbWss = read_32ubit (fd); item->fcDop = (S32) read_32ubit (fd); item->lcbDop = read_32ubit (fd); item->fcSttbfAssoc = (S32) read_32ubit (fd); item->lcbSttbfAssoc = read_32ubit (fd); item->fcClx = (S32) read_32ubit (fd); item->lcbClx = read_32ubit (fd); item->fcPlcfpgdFtn = (S32) read_32ubit (fd); item->lcbPlcfpgdFtn = read_32ubit (fd); item->fcAutosaveSource = (S32) read_32ubit (fd); item->lcbAutosaveSource = read_32ubit (fd); item->fcGrpXstAtnOwners = (S32) read_32ubit (fd); item->lcbGrpXstAtnOwners = read_32ubit (fd); item->fcSttbfAtnbkmk = (S32) read_32ubit (fd); item->lcbSttbfAtnbkmk = read_32ubit (fd); item->fcPlcdoaMom = (S32) read_32ubit (fd); item->lcbPlcdoaMom = read_32ubit (fd); item->fcPlcdoaHdr = (S32) read_32ubit (fd); item->lcbPlcdoaHdr = read_32ubit (fd); item->fcPlcspaMom = (S32) read_32ubit (fd); item->lcbPlcspaMom = read_32ubit (fd); item->fcPlcspaHdr = (S32) read_32ubit (fd); item->lcbPlcspaHdr = read_32ubit (fd); item->fcPlcfAtnbkf = (S32) read_32ubit (fd); item->lcbPlcfAtnbkf = read_32ubit (fd); item->fcPlcfAtnbkl = (S32) read_32ubit (fd); item->lcbPlcfAtnbkl = read_32ubit (fd); item->fcPms = (S32) read_32ubit (fd); item->lcbPms = read_32ubit (fd); item->fcFormFldSttbs = (S32) read_32ubit (fd); item->lcbFormFldSttbs = read_32ubit (fd); item->fcPlcfendRef = (S32) read_32ubit (fd); item->lcbPlcfendRef = read_32ubit (fd); item->fcPlcfendTxt = (S32) read_32ubit (fd); item->lcbPlcfendTxt = read_32ubit (fd); item->fcPlcffldEdn = (S32) read_32ubit (fd); item->lcbPlcffldEdn = read_32ubit (fd); item->fcPlcfpgdEdn = (S32) read_32ubit (fd); item->lcbPlcfpgdEdn = read_32ubit (fd); item->fcDggInfo = (S32) read_32ubit (fd); item->lcbDggInfo = read_32ubit (fd); item->fcSttbfRMark = (S32) read_32ubit (fd); item->lcbSttbfRMark = read_32ubit (fd); item->fcSttbCaption = (S32) read_32ubit (fd); item->lcbSttbCaption = read_32ubit (fd); item->fcSttbAutoCaption = (S32) read_32ubit (fd); item->lcbSttbAutoCaption = read_32ubit (fd); item->fcPlcfwkb = (S32) read_32ubit (fd); item->lcbPlcfwkb = read_32ubit (fd); item->fcPlcfspl = (S32) read_32ubit (fd); item->lcbPlcfspl = read_32ubit (fd); item->fcPlcftxbxTxt = (S32) read_32ubit (fd); item->lcbPlcftxbxTxt = read_32ubit (fd); item->fcPlcffldTxbx = (S32) read_32ubit (fd); item->lcbPlcffldTxbx = read_32ubit (fd); item->fcPlcfhdrtxbxTxt = (S32) read_32ubit (fd); item->lcbPlcfhdrtxbxTxt = read_32ubit (fd); item->fcPlcffldHdrTxbx = (S32) read_32ubit (fd); item->lcbPlcffldHdrTxbx = read_32ubit (fd); item->fcStwUser = (S32) read_32ubit (fd); item->lcbStwUser = read_32ubit (fd); item->fcSttbttmbd = (S32) read_32ubit (fd); item->cbSttbttmbd = read_32ubit (fd); item->fcUnused = (S32) read_32ubit (fd); item->lcbUnused = read_32ubit (fd); item->fcPgdMother = (S32) read_32ubit (fd); item->lcbPgdMother = read_32ubit (fd); item->fcBkdMother = (S32) read_32ubit (fd); item->lcbBkdMother = read_32ubit (fd); item->fcPgdFtn = (S32) read_32ubit (fd); item->lcbPgdFtn = read_32ubit (fd); item->fcBkdFtn = (S32) read_32ubit (fd); item->lcbBkdFtn = read_32ubit (fd); item->fcPgdEdn = (S32) read_32ubit (fd); item->lcbPgdEdn = read_32ubit (fd); item->fcBkdEdn = (S32) read_32ubit (fd); item->lcbBkdEdn = read_32ubit (fd); item->fcSttbfIntlFld = (S32) read_32ubit (fd); item->lcbSttbfIntlFld = read_32ubit (fd); item->fcRouteSlip = (S32) read_32ubit (fd); item->lcbRouteSlip = read_32ubit (fd); item->fcSttbSavedBy = (S32) read_32ubit (fd); item->lcbSttbSavedBy = read_32ubit (fd); item->fcSttbFnm = (S32) read_32ubit (fd); item->lcbSttbFnm = read_32ubit (fd); item->fcPlcfLst = (S32) read_32ubit (fd); item->lcbPlcfLst = read_32ubit (fd); item->fcPlfLfo = (S32) read_32ubit (fd); item->lcbPlfLfo = read_32ubit (fd); item->fcPlcftxbxBkd = (S32) read_32ubit (fd); item->lcbPlcftxbxBkd = read_32ubit (fd); item->fcPlcftxbxHdrBkd = (S32) read_32ubit (fd); item->lcbPlcftxbxHdrBkd = read_32ubit (fd); item->fcDocUndo = (S32) read_32ubit (fd); item->lcbDocUndo = read_32ubit (fd); item->fcRgbuse = (S32) read_32ubit (fd); item->lcbRgbuse = read_32ubit (fd); item->fcUsp = (S32) read_32ubit (fd); item->lcbUsp = read_32ubit (fd); item->fcUskf = (S32) read_32ubit (fd); item->lcbUskf = read_32ubit (fd); item->fcPlcupcRgbuse = (S32) read_32ubit (fd); item->lcbPlcupcRgbuse = read_32ubit (fd); item->fcPlcupcUsp = (S32) read_32ubit (fd); item->lcbPlcupcUsp = read_32ubit (fd); item->fcSttbGlsyStyle = (S32) read_32ubit (fd); item->lcbSttbGlsyStyle = read_32ubit (fd); item->fcPlgosl = (S32) read_32ubit (fd); item->lcbPlgosl = read_32ubit (fd); item->fcPlcocx = (S32) read_32ubit (fd); item->lcbPlcocx = read_32ubit (fd); item->fcPlcfbteLvc = (S32) read_32ubit (fd); item->lcbPlcfbteLvc = read_32ubit (fd); wvGetFILETIME (&(item->ftModified), fd); item->fcPlcflvc = (S32) read_32ubit (fd); item->lcbPlcflvc = read_32ubit (fd); item->fcPlcasumy = (S32) read_32ubit (fd); item->lcbPlcasumy = read_32ubit (fd); item->fcPlcfgram = (S32) read_32ubit (fd); item->lcbPlcfgram = read_32ubit (fd); item->fcSttbListNames = (S32) read_32ubit (fd); item->lcbSttbListNames = read_32ubit (fd); item->fcSttbfUssr = (S32) read_32ubit (fd); item->lcbSttbfUssr = read_32ubit (fd); } wvStream * wvWhichTableStream (FIB * fib, wvParseStruct * ps) { wvStream *ret; if ((wvQuerySupported (fib, NULL) & 0x7fff) == WORD8) { if (fib->fWhichTblStm) { wvTrace (("1Table\n")); ret = ps->tablefd1; if (ret == NULL) { wvError ( ("!!, the FIB lied to us, (told us to use the 1Table) making a heroic effort to use the other table stream, hold on tight\n")); ret = ps->tablefd0; } } else { wvTrace (("0Table\n")); ret = ps->tablefd0; if (ret == NULL) { wvError ( ("!!, the FIB lied to us, (told us to use the 0Table) making a heroic effort to use the other table stream, hold on tight\n")); ret = ps->tablefd1; } } } else /* word 7- */ ret = ps->mainfd; return (ret); } wvVersion wvQuerySupported (FIB * fib, int *reason) { int ret = WORD8; if (fib->wIdent == 0x37FE) ret = WORD5; else { /*begin from microsofts kb q 40 */ if (fib->nFib < 101) { if (reason) *reason = 1; ret = WORD2; } else { switch (fib->nFib) { case 101: if (reason) *reason = 2; ret = WORD6; break; /* I'm pretty sure we should break here, Jamie. */ case 103: case 104: if (reason) *reason = 3; ret = WORD7; break; /* I'm pretty sure we should break here, Jamie. */ default: break; } } /*end from microsofts kb q 40 */ } wvTrace (("RET is %d\n", ret)); if (fib->fEncrypted) { if (reason) *reason = 4; ret |= 0x8000; } return (ret); } void wvGetFIB2 (FIB * item, wvStream * fd) { U16 temp16 = 0; item->wIdent = read_16ubit (fd); item->nFib = read_16ubit (fd); item->nProduct = read_16ubit (fd); item->lid = read_16ubit (fd); wvTrace (("lid is %x\n", item->lid)); item->pnNext = (S16) read_16ubit (fd); temp16 = read_16ubit (fd); item->fDot = (temp16 & 0x0001); item->fGlsy = (temp16 & 0x0002) >> 1; item->fComplex = (temp16 & 0x0004) >> 2; item->fHasPic = (temp16 & 0x0008) >> 3; item->cQuickSaves = (temp16 & 0x00F0) >> 4; item->fEncrypted = (temp16 & 0x0100) >> 8; item->fWhichTblStm = 0; /* Unused from here on */ item->fReadOnlyRecommended = 0; item->fWriteReservation = 0; item->fExtChar = 0; item->fLoadOverride = 0; item->fFarEast = 0; item->fCrypto = 0; item->nFibBack = read_16ubit (fd); wvTrace (("nFibBack is %d\n", item->nFibBack)); item->Spare = read_32ubit (fd); /* A spare for W2 */ item->rgwSpare0[0] = read_16ubit (fd); item->rgwSpare0[1] = read_16ubit (fd); item->rgwSpare0[2] = read_16ubit (fd); item->fcMin = read_32ubit (fd); /* These appear correct MV 29.8.2000 */ item->fcMac = read_32ubit (fd); wvTrace (("fc from %d to %d\n", item->fcMin, item->fcMac)); item->cbMac = read_32ubit (fd); /* Last byte file position plus one. */ item->fcSpare0 = read_32ubit (fd); item->fcSpare1 = read_32ubit (fd); item->fcSpare2 = read_32ubit (fd); item->fcSpare3 = read_32ubit (fd); item->ccpText = read_32ubit (fd); wvTrace (("length %d == %d\n", item->fcMac - item->fcMin, item->ccpText)); item->ccpFtn = (S32) read_32ubit (fd); item->ccpHdr = (S32) read_32ubit (fd); item->ccpMcr = (S32) read_32ubit (fd); item->ccpAtn = (S32) read_32ubit (fd); item->ccpSpare0 = (S32) read_32ubit (fd); item->ccpSpare1 = (S32) read_32ubit (fd); item->ccpSpare2 = (S32) read_32ubit (fd); item->ccpSpare3 = (S32) read_32ubit (fd); item->fcStshfOrig = read_32ubit (fd); item->lcbStshfOrig = (S32) read_16ubit (fd); item->fcStshf = read_32ubit (fd); item->lcbStshf = (S32) read_16ubit (fd); item->fcPlcffndRef = read_32ubit (fd); item->lcbPlcffndRef = (S32) read_16ubit (fd); item->fcPlcffndTxt = read_32ubit (fd); item->lcbPlcffndTxt = (S32) read_16ubit (fd); item->fcPlcfandRef = read_32ubit (fd); item->lcbPlcfandRef = (S32) read_16ubit (fd); item->fcPlcfandTxt = read_32ubit (fd); item->lcbPlcfandTxt = (S32) read_16ubit (fd); item->fcPlcfsed = read_32ubit (fd); item->lcbPlcfsed = (S32) read_16ubit (fd); item->fcPlcfpgd = read_32ubit (fd); item->cbPlcfpgd = read_16ubit (fd); item->fcPlcfphe = read_32ubit (fd); item->lcbPlcfphe = (S32) read_16ubit (fd); item->fcPlcfglsy = read_32ubit (fd); item->lcbPlcfglsy = (S32) read_16ubit (fd); item->fcPlcfhdd = read_32ubit (fd); item->lcbPlcfhdd = (S32) read_16ubit (fd); item->fcPlcfbteChpx = read_32ubit (fd); item->lcbPlcfbteChpx = (S32) read_16ubit (fd); item->fcPlcfbtePapx = read_32ubit (fd); item->lcbPlcfbtePapx = (S32) read_16ubit (fd); item->fcPlcfsea = read_32ubit (fd); item->lcbPlcfsea = (S32) read_16ubit (fd); item->fcSttbfffn = read_32ubit (fd); item->lcbSttbfffn = (S32) read_16ubit (fd); item->fcPlcffldMom = read_32ubit (fd); item->lcbPlcffldMom = (S32) read_16ubit (fd); item->fcPlcffldHdr = read_32ubit (fd); item->lcbPlcffldHdr = (S32) read_16ubit (fd); item->fcPlcffldFtn = read_32ubit (fd); item->lcbPlcffldFtn = (S32) read_16ubit (fd); item->fcPlcffldAtn = read_32ubit (fd); item->lcbPlcffldAtn = (S32) read_16ubit (fd); item->fcPlcffldMcr = read_32ubit (fd); item->lcbPlcffldMcr = (S32) read_16ubit (fd); item->fcSttbfbkmk = read_32ubit (fd); item->lcbSttbfbkmk = (S32) read_16ubit (fd); item->fcPlcfbkf = read_32ubit (fd); item->lcbPlcfbkf = (S32) read_16ubit (fd); item->fcPlcfbkl = read_32ubit (fd); item->lcbPlcfbkl = (S32) read_16ubit (fd); item->fcCmds = read_32ubit (fd); item->lcbCmds = (S32) read_16ubit (fd); item->fcPlcmcr = read_32ubit (fd); item->lcbPlcmcr = (S32) read_16ubit (fd); item->fcSttbfmcr = read_32ubit (fd); item->lcbSttbfmcr = (S32) read_16ubit (fd); item->fcPrDrvr = read_32ubit (fd); item->lcbPrDrvr = (S32) read_16ubit (fd); item->fcPrEnvPort = read_32ubit (fd); item->lcbPrEnvPort = (S32) read_16ubit (fd); item->fcPrEnvLand = read_32ubit (fd); item->lcbPrEnvLand = (S32) read_16ubit (fd); item->fcWss = read_32ubit (fd); item->lcbWss = (S32) read_16ubit (fd); item->fcDop = read_32ubit (fd); item->lcbDop = (S32) read_16ubit (fd); item->fcSttbfAssoc = read_32ubit (fd); item->lcbSttbfAssoc = (S32) read_16ubit (fd); item->fcClx = read_32ubit (fd); item->lcbClx = (S32) read_16ubit (fd); item->fcPlcfpgdFtn = read_32ubit (fd); item->lcbPlcfpgdFtn = (S32) read_16ubit (fd); item->fcAutosaveSource = read_32ubit (fd); item->lcbAutosaveSource = (S32) read_16ubit (fd); item->fcSpare5 = read_32ubit (fd); item->cbSpare5 = read_16ubit (fd); item->fcSpare6 = read_32ubit (fd); item->cbSpare6 = read_16ubit (fd); item->wSpare4 = read_16ubit (fd); item->pnChpFirst = read_16ubit (fd); item->pnPapFirst = read_16ubit (fd); item->cpnBteChp = read_16ubit (fd); item->cpnBtePap = read_16ubit (fd); } void wvGetFIB6 (FIB * item, wvStream * fd) { U16 temp16; U8 temp8; item->wIdent = read_16ubit (fd); item->nFib = read_16ubit (fd); item->nProduct = read_16ubit (fd); item->lid = read_16ubit (fd); wvTrace (("lid is %x\n", item->lid)); item->pnNext = (S16) read_16ubit (fd); temp16 = read_16ubit (fd); item->fDot = (temp16 & 0x0001); item->fGlsy = (temp16 & 0x0002) >> 1; item->fComplex = (temp16 & 0x0004) >> 2; item->fHasPic = (temp16 & 0x0008) >> 3; item->cQuickSaves = (temp16 & 0x00F0) >> 4; item->fEncrypted = (temp16 & 0x0100) >> 8; item->fWhichTblStm = 0; /* word 6 files only have one table stream */ item->fReadOnlyRecommended = (temp16 & 0x0400) >> 10; item->fWriteReservation = (temp16 & 0x0800) >> 11; item->fExtChar = (temp16 & 0x1000) >> 12; wvTrace (("fExtChar is %d\n", item->fExtChar)); item->fLoadOverride = 0; item->fFarEast = 0; item->fCrypto = 0; item->nFibBack = read_16ubit (fd); item->lKey = read_32ubit (fd); item->envr = read_8ubit (fd); temp8 = read_8ubit (fd); item->fMac = 0; item->fEmptySpecial = 0; item->fLoadOverridePage = 0; item->fFutureSavedUndo = 0; item->fWord97Saved = 0; item->fSpare0 = 0; item->chse = read_16ubit (fd); item->chsTables = read_16ubit (fd); item->fcMin = read_32ubit (fd); item->fcMac = read_32ubit (fd); item->csw = 14; item->wMagicCreated = 0xCA0; /*this is the unique id of the creater, so its me :-) */ item->cbMac = read_32ubit (fd); read_16ubit (fd); read_16ubit (fd); read_16ubit (fd); read_16ubit (fd); read_16ubit (fd); read_16ubit (fd); read_16ubit (fd); read_16ubit (fd); item->ccpText = read_32ubit (fd); item->ccpFtn = (S32) read_32ubit (fd); item->ccpHdr = (S32) read_32ubit (fd); item->ccpMcr = (S32) read_32ubit (fd); item->ccpAtn = (S32) read_32ubit (fd); item->ccpEdn = (S32) read_32ubit (fd); item->ccpTxbx = (S32) read_32ubit (fd); item->ccpHdrTxbx = (S32) read_32ubit (fd); read_32ubit (fd); item->fcStshfOrig = (S32) read_32ubit (fd); item->lcbStshfOrig = read_32ubit (fd); item->fcStshf = (S32) read_32ubit (fd); item->lcbStshf = read_32ubit (fd); item->fcPlcffndRef = (S32) read_32ubit (fd); item->lcbPlcffndRef = read_32ubit (fd); item->fcPlcffndTxt = (S32) read_32ubit (fd); item->lcbPlcffndTxt = read_32ubit (fd); item->fcPlcfandRef = (S32) read_32ubit (fd); item->lcbPlcfandRef = read_32ubit (fd); item->fcPlcfandTxt = (S32) read_32ubit (fd); item->lcbPlcfandTxt = read_32ubit (fd); item->fcPlcfsed = (S32) read_32ubit (fd); item->lcbPlcfsed = read_32ubit (fd); item->fcPlcpad = (S32) read_32ubit (fd); item->lcbPlcpad = read_32ubit (fd); item->fcPlcfphe = (S32) read_32ubit (fd); item->lcbPlcfphe = read_32ubit (fd); item->fcSttbfglsy = (S32) read_32ubit (fd); item->lcbSttbfglsy = read_32ubit (fd); item->fcPlcfglsy = (S32) read_32ubit (fd); item->lcbPlcfglsy = read_32ubit (fd); item->fcPlcfhdd = (S32) read_32ubit (fd); item->lcbPlcfhdd = read_32ubit (fd); item->fcPlcfbteChpx = (S32) read_32ubit (fd); item->lcbPlcfbteChpx = read_32ubit (fd); item->fcPlcfbtePapx = (S32) read_32ubit (fd); item->lcbPlcfbtePapx = read_32ubit (fd); item->fcPlcfsea = (S32) read_32ubit (fd); item->lcbPlcfsea = read_32ubit (fd); item->fcSttbfffn = (S32) read_32ubit (fd); item->lcbSttbfffn = read_32ubit (fd); item->fcPlcffldMom = (S32) read_32ubit (fd); item->lcbPlcffldMom = read_32ubit (fd); item->fcPlcffldHdr = (S32) read_32ubit (fd); item->lcbPlcffldHdr = read_32ubit (fd); item->fcPlcffldFtn = (S32) read_32ubit (fd); item->lcbPlcffldFtn = read_32ubit (fd); item->fcPlcffldAtn = (S32) read_32ubit (fd); item->lcbPlcffldAtn = read_32ubit (fd); item->fcPlcffldMcr = (S32) read_32ubit (fd); item->lcbPlcffldMcr = read_32ubit (fd); item->fcSttbfbkmk = (S32) read_32ubit (fd); item->lcbSttbfbkmk = read_32ubit (fd); item->fcPlcfbkf = (S32) read_32ubit (fd); item->lcbPlcfbkf = read_32ubit (fd); item->fcPlcfbkl = (S32) read_32ubit (fd); item->lcbPlcfbkl = read_32ubit (fd); item->fcCmds = (S32) read_32ubit (fd); item->lcbCmds = read_32ubit (fd); item->fcPlcmcr = (S32) read_32ubit (fd); item->lcbPlcmcr = read_32ubit (fd); item->fcSttbfmcr = (S32) read_32ubit (fd); item->lcbSttbfmcr = read_32ubit (fd); item->fcPrDrvr = (S32) read_32ubit (fd); item->lcbPrDrvr = read_32ubit (fd); item->fcPrEnvPort = (S32) read_32ubit (fd); item->lcbPrEnvPort = read_32ubit (fd); item->fcPrEnvLand = (S32) read_32ubit (fd); item->lcbPrEnvLand = read_32ubit (fd); item->fcWss = (S32) read_32ubit (fd); item->lcbWss = read_32ubit (fd); item->fcDop = (S32) read_32ubit (fd); item->lcbDop = read_32ubit (fd); item->fcSttbfAssoc = (S32) read_32ubit (fd); item->lcbSttbfAssoc = read_32ubit (fd); item->fcClx = (S32) read_32ubit (fd); item->lcbClx = read_32ubit (fd); item->fcPlcfpgdFtn = (S32) read_32ubit (fd); item->lcbPlcfpgdFtn = read_32ubit (fd); item->fcAutosaveSource = (S32) read_32ubit (fd); item->lcbAutosaveSource = read_32ubit (fd); item->fcGrpXstAtnOwners = (S32) read_32ubit (fd); item->lcbGrpXstAtnOwners = read_32ubit (fd); item->fcSttbfAtnbkmk = (S32) read_32ubit (fd); item->lcbSttbfAtnbkmk = read_32ubit (fd); read_16ubit (fd); item->pnChpFirst = (S32) read_16ubit (fd); item->pnPapFirst = (S32) read_16ubit (fd); item->cpnBteChp = (S32) read_16ubit (fd); item->cpnBtePap = (S32) read_16ubit (fd); item->fcPlcdoaMom = (S32) read_32ubit (fd); item->lcbPlcdoaMom = read_32ubit (fd); item->fcPlcdoaHdr = (S32) read_32ubit (fd); item->lcbPlcdoaHdr = read_32ubit (fd); read_32ubit (fd); read_32ubit (fd); read_32ubit (fd); read_32ubit (fd); item->fcPlcfAtnbkf = (S32) read_32ubit (fd); item->lcbPlcfAtnbkf = read_32ubit (fd); item->fcPlcfAtnbkl = (S32) read_32ubit (fd); item->lcbPlcfAtnbkl = read_32ubit (fd); item->fcPms = (S32) read_32ubit (fd); item->lcbPms = read_32ubit (fd); item->fcFormFldSttbs = (S32) read_32ubit (fd); item->lcbFormFldSttbs = read_32ubit (fd); item->fcPlcfendRef = (S32) read_32ubit (fd); item->lcbPlcfendRef = read_32ubit (fd); item->fcPlcfendTxt = (S32) read_32ubit (fd); item->lcbPlcfendTxt = read_32ubit (fd); item->fcPlcffldEdn = (S32) read_32ubit (fd); item->lcbPlcffldEdn = read_32ubit (fd); item->fcPlcfpgdEdn = (S32) read_32ubit (fd); item->lcbPlcfpgdEdn = read_32ubit (fd); read_32ubit (fd); read_32ubit (fd); item->fcSttbfRMark = (S32) read_32ubit (fd); item->lcbSttbfRMark = read_32ubit (fd); item->fcSttbCaption = (S32) read_32ubit (fd); item->lcbSttbCaption = read_32ubit (fd); item->fcSttbAutoCaption = (S32) read_32ubit (fd); item->lcbSttbAutoCaption = read_32ubit (fd); item->fcPlcfwkb = (S32) read_32ubit (fd); item->lcbPlcfwkb = read_32ubit (fd); read_32ubit (fd); read_32ubit (fd); item->fcPlcftxbxTxt = (S32) read_32ubit (fd); item->lcbPlcftxbxTxt = read_32ubit (fd); item->fcPlcffldTxbx = (S32) read_32ubit (fd); item->lcbPlcffldTxbx = read_32ubit (fd); item->fcPlcfhdrtxbxTxt = (S32) read_32ubit (fd); item->lcbPlcfhdrtxbxTxt = read_32ubit (fd); item->fcPlcffldHdrTxbx = (S32) read_32ubit (fd); item->lcbPlcffldHdrTxbx = read_32ubit (fd); item->fcStwUser = (S32) read_32ubit (fd); item->lcbStwUser = read_32ubit (fd); item->fcSttbttmbd = (S32) read_32ubit (fd); item->cbSttbttmbd = read_32ubit (fd); item->fcUnused = (S32) read_32ubit (fd); item->lcbUnused = read_32ubit (fd); item->fcPgdMother = (S32) read_32ubit (fd); item->lcbPgdMother = read_32ubit (fd); item->fcBkdMother = (S32) read_32ubit (fd); item->lcbBkdMother = read_32ubit (fd); item->fcPgdFtn = (S32) read_32ubit (fd); item->lcbPgdFtn = read_32ubit (fd); item->fcBkdFtn = (S32) read_32ubit (fd); item->lcbBkdFtn = read_32ubit (fd); item->fcPgdEdn = (S32) read_32ubit (fd); item->lcbPgdEdn = read_32ubit (fd); item->fcBkdEdn = (S32) read_32ubit (fd); item->lcbBkdEdn = read_32ubit (fd); item->fcSttbfIntlFld = (S32) read_32ubit (fd); item->lcbSttbfIntlFld = read_32ubit (fd); item->fcRouteSlip = (S32) read_32ubit (fd); item->lcbRouteSlip = read_32ubit (fd); item->fcSttbSavedBy = (S32) read_32ubit (fd); item->lcbSttbSavedBy = read_32ubit (fd); item->fcSttbFnm = (S32) read_32ubit (fd); item->lcbSttbFnm = read_32ubit (fd); } ����wv-1.2.9/roman.h������������������������������������������������������������������������������������0000664�0000764�0000764�00000002104�11247156607�010405� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef ROMAN_HEADER #define ROMAN_HEADER /* roman.c by Adam Rogoyski (apoc@laker.net) Temperanc on EFNet irc * Copyright (C) 1998 Adam Rogoyski * Converts Decimal numbers to Roman Numerals and Roman Numberals to * Decimals on the command line or in Interactive mode. * Uses an expanded Roman Numeral set to handle numbers up to 999999999 * compile: gcc -o roman roman.c -O2 * --- GNU General Public License Disclamer --- * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ long formString (char **, long, char, char); char *chomp (char *); char *decimalToRoman (long, char *); long romanToDecimal (char *); long value (char); #endif ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/asumyi.c�����������������������������������������������������������������������������������0000664�0000764�0000764�00000003024�11247156606�010574� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetASUMYI (ASUMYI * asu, wvStream * fd) { U16 temp16 = read_16ubit (fd); asu->fValid = temp16 & 0x0001; asu->fView = (temp16 & 0x0002) >> 1; asu->iViewBy = (temp16 & 0x000C) >> 2; asu->fUpdateProps = (temp16 & 0x0010) >> 4; asu->reserved = (temp16 & 0xFFE0) >> 5; asu->wDlgLevel = read_16ubit (fd); asu->lHighestLevel = read_32ubit (fd); asu->lCurrentLevel = read_32ubit (fd); } void wvInitASUMYI (ASUMYI * asu) { asu->fValid = 0; asu->fView = 0; asu->iViewBy = 0; asu->fUpdateProps = 0; asu->reserved = 0; asu->wDlgLevel = 0; asu->lHighestLevel = 0; asu->lCurrentLevel = 0; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/pgd.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000003325�11247156606�010043� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetPGD (wvVersion ver, PGD * item, wvStream * fd) { U16 temp16; temp16 = read_16ubit (fd); item->fContinue = temp16 & 0x0001; item->fUnk = (temp16 & 0x0002) >> 1; item->fRight = (temp16 & 0x0004) >> 2; item->fPgnRestart = (temp16 & 0x0008) >> 3; item->fEmptyPage = (temp16 & 0x0010) >> 4; item->fAllFtn = (temp16 & 0x0020) >> 5; item->fColOnly = (temp16 & 0x0040) >> 6; item->fTableBreaks = (temp16 & 0x0080) >> 7; item->fMarked = (temp16 & 0x0100) >> 8; item->fColumnBreaks = (temp16 & 0x0200) >> 9; item->fTableHeader = (temp16 & 0x0400) >> 10; item->fNewPage = (temp16 & 0x0800) >> 11; item->bkc = (temp16 & 0xF000) >> 12; item->lnn = read_16ubit (fd); item->pgn = read_16ubit (fd); if (ver == WORD8) item->dym = (S32) read_32ubit (fd); else item->dym = 0; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/fkp.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000024353�11247156607�010056� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" #include "wvinternal.h" static PAPX_FKP wvPAPX_FKP_previous; static U32 wvPAPX_pn_previous = 0; static CHPX_FKP wvCHPX_FKP_previous; static U32 wvCHPX_pn_previous = 0; void external_wvReleasePAPX_FKP (void) { if (wvPAPX_pn_previous != 0) { wvPAPX_pn_previous = 0; } } void external_wvReleaseCHPX_FKP (void) { if (wvCHPX_pn_previous != 0) { wvCHPX_pn_previous = 0; } } void internal_wvReleasePAPX_FKP (PAPX_FKP * fkp) { int i; wvFree (fkp->rgfc); fkp->rgfc = NULL; wvFree (fkp->rgbx); fkp->rgbx = NULL; for (i = 0; i < fkp->crun; i++) wvReleasePAPX (&(fkp->grppapx[i])); fkp->crun = 0; wvFree (fkp->grppapx); fkp->grppapx = NULL; } /* At offset 511 is a 1-byte count named crun, which is a count of paragraphs in PAPX FKPs. Beginning at offset 0 of the FKP is an array of crun+1 FCs, named rgfc, which records the beginning and limit FCs of crun paragraphs. immediately following the fkp.rgfc is an array of 13 byte entries called BXs. This array called the rgbx is in 1-to-1 correspondence with the rgfc. The first byte of the ith BX entry contains a single byte field which gives the word offset of the PAPX that belongs to the paragraph whose beginning in FC space is rgfc[i] and whose limit is rgfc[i+1] in FC space. The last 12 bytes of the ith BX entry contain a PHE structure that stores the current paragraph height of the paragraph whose beginning in FC space is rgfc[i] and whose limit is rgfc[i+1] in FC space. */ /* The first byte of each BX is the word offset of the PAPX recorded for the paragraph corresponding to this BX. .. If the byte stored is 0, this represents a 1 line paragraph 15 pixels high with Normal style (stc == 0) whose column width is 7980 dxas. The last 12 bytes of the BX is a PHE structure which stores the current paragraph height for the paragraph corresponding to the BX. If a plcfphe has an entry that maps to the FC for this paragraph, that entry's PHE overrides the PHE stored in the FKP.11*fkp.crun+4 unused space. As new runs/paragraphs are recorded in the FKP, unused space is reduced by 17 if CHPX/PAPX is already recorded and is reduced by 17+sizeof(PAPX) if property is not already recorded. */ void wvGetPAPX_FKP (wvVersion ver, PAPX_FKP * fkp, U32 pn, wvStream * fd) { int i; U8 page[WV_PAGESIZE]; U16 pos = 0; /*size_t bytes_read; */ /* brian.ewins@bt.com */ /* there seem to be a lot of repeat calls... */ /* pn=0 is safe because thats the index block, not a PAPX_FKP */ if (pn != 0 && pn == wvPAPX_pn_previous) { memcpy (fkp, &wvPAPX_FKP_previous, sizeof (PAPX_FKP)); return; } wvTrace ( ("seeking to %x to get crun\n", pn * WV_PAGESIZE + (WV_PAGESIZE - 1))); wvStream_goto (fd, pn * WV_PAGESIZE); /*bytes_read= */ wvStream_read (page, WV_PAGESIZE, 1, fd); fkp->crun = (U8) page[WV_PAGESIZE - 1]; fkp->rgfc = (U32 *) wvMalloc (sizeof (U32) * (fkp->crun + 1)); fkp->rgbx = (BX *) wvMalloc (sizeof (BX) * (fkp->crun)); fkp->grppapx = (PAPX *) wvMalloc (sizeof (PAPX) * (fkp->crun)); for (i = 0; i < fkp->crun + 1; i++) { fkp->rgfc[i] = bread_32ubit (&(page[pos]), &pos); wvTrace (("rgfc is %x\n", fkp->rgfc[i])); } for (i = 0; i < fkp->crun; i++) { if (ver == WORD8) wvGetBX (&fkp->rgbx[i], page, &pos); else wvGetBX6 (&fkp->rgbx[i], page, &pos); } for (i = 0; i < fkp->crun; i++) { if (fkp->rgbx[i].offset == 0) { wvTrace (("i is %d, using clear papx\n", i)); wvInitPAPX (&(fkp->grppapx[i])); } else { wvTrace ( ("papx index i is %d, offset is %x\n", i, pn * WV_PAGESIZE + fkp->rgbx[i].offset * 2)); pos = fkp->rgbx[i].offset * 2; wvGetPAPX (ver, &(fkp->grppapx[i]), page, &pos); } } if (wvPAPX_pn_previous != 0) internal_wvReleasePAPX_FKP (&wvPAPX_FKP_previous); memcpy (&wvPAPX_FKP_previous, fkp, sizeof (PAPX_FKP)); wvPAPX_pn_previous = pn; } /* Using the FC, search the FCs FKP for the largest FC less than the character's FC, call it fcTest. */ U32 wvSearchNextLargestFCPAPX_FKP (PAPX_FKP * fkp, U32 currentfc) { U32 i = 0; U8 until = fkp->crun + 1; U32 fcTest = 0; while (i < until) { wvTrace (("searching fkp %x %x\n", currentfc, fkp->rgfc[i])); if ((wvNormFC (fkp->rgfc[i], NULL) < currentfc) && (wvNormFC (fkp->rgfc[i], NULL) > fcTest)) fcTest = wvNormFC (fkp->rgfc[i], NULL); else if (wvNormFC (fkp->rgfc[i], NULL) == currentfc) fcTest = currentfc + 1; i++; } /*for the first paragraph return the current pos as the beginning */ /* if (fcTest == 0) fcTest = currentfc+1; */ return (fcTest); } U32 wvSearchNextLargestFCCHPX_FKP (CHPX_FKP * fkp, U32 currentfc) { U32 i = 0; U8 until = fkp->crun + 1; U32 fcTest = 0; while (i < until) { wvTrace (("searching fkp %x %x\n", currentfc, fkp->rgfc[i])); if ((wvNormFC (fkp->rgfc[i], NULL) <= currentfc) && (wvNormFC (fkp->rgfc[i], NULL) > fcTest)) fcTest = wvNormFC (fkp->rgfc[i], NULL); i++; } /*for the first paragraph return the current pos as the beginning */ /* if (fcTest == 0) fcTest = currentfc+1; */ return (fcTest); } /* Using the FC of the character, first search the FKP that describes the character to find the smallest FC in the rgfc that is larger than the character FC. */ U32 wvSearchNextSmallestFCPAPX_FKP (PAPX_FKP * fkp, U32 currentfc) { U32 i = 0; U32 fcTest = 0xffffffffL; U8 until = fkp->crun + 1; while (i < until) { wvTrace ( ("Smallest %x, %x %x\n", currentfc, wvNormFC (fkp->rgfc[i], NULL), wvNormFC (fkp->rgfc[i], NULL))); if ((wvNormFC (fkp->rgfc[i], NULL) > currentfc) && (wvNormFC (fkp->rgfc[i], NULL) < fcTest)) fcTest = wvNormFC (fkp->rgfc[i], NULL); i++; } return (fcTest); } void wvReleasePAPX_FKP (PAPX_FKP * fkp) { return; } void wvInitPAPX_FKP (PAPX_FKP * fkp) { fkp->rgfc = NULL; fkp->rgbx = NULL; fkp->crun = 0; fkp->grppapx = NULL; } int wvGetIndexFCInFKP_PAPX (PAPX_FKP * fkp, U32 currentfc) { U32 i = 1; /*was 0, there is something slightly out of sync in the system */ U8 until = fkp->crun + 1; while (i < until) { wvTrace ( ("current fc is %x, %x, %x\n", currentfc, wvNormFC (fkp->rgfc[i], NULL), fkp->rgfc[i])); if (wvNormFC (fkp->rgfc[i], NULL) == currentfc) return (i); i++; } /* basically read Algorithm to determine paragraph properties for a paragraph & Formatted Disk Page for PAPXs, somehow the currentfc sent in was wrong or my understanding is ! */ wvTrace (("Shite, fix me %x %x\n", currentfc, fkp->rgfc[0])); /*return 1 to make things continue on their merry way */ return (1); } void internal_wvReleaseCHPX_FKP (CHPX_FKP * fkp) { int i; wvTrace (("chpx fkp b freeed\n")); wvFree (fkp->rgfc); fkp->rgfc = NULL; wvFree (fkp->rgb); fkp->rgb = NULL; for (i = 0; i < fkp->crun; i++) wvReleaseCHPX (&(fkp->grpchpx[i])); fkp->crun = 0; wvFree (fkp->grpchpx); fkp->grpchpx = NULL; wvTrace (("chpx fkp e freeed\n")); } /* Character properties * -basically just like PAPX FKPs above * however, rather than an array of BX structs in rgbx, * there is an array of bytes (giving the word offset to the CHPX) in rgb * -JB */ void wvGetCHPX_FKP (wvVersion ver, CHPX_FKP * fkp, U32 pn, wvStream * fd) { int i; U8 page[WV_PAGESIZE]; U16 pos = 0; /*size_t bytes_read; */ /* brian.ewins@bt.com */ /* there seem to be a lot of repeat calls... */ /* pn=0 is safe because thats the index block, not a CHPX_FKP */ if (pn != 0 && pn == wvCHPX_pn_previous) { memcpy (fkp, &wvCHPX_FKP_previous, sizeof (CHPX_FKP)); return; } wvStream_goto (fd, pn * WV_PAGESIZE); /*bytes_read= */ wvStream_read (page, WV_PAGESIZE, 1, fd); fkp->crun = (U8) page[WV_PAGESIZE - 1]; wvTrace (("chpx fkp gone to %x\n", pn * WV_PAGESIZE + (WV_PAGESIZE - 1))); wvTrace (("crun is %d\n", fkp->crun)); fkp->rgfc = (U32 *) wvMalloc (sizeof (U32) * (fkp->crun + 1)); fkp->rgb = (U8 *) wvMalloc (sizeof (U8) * (fkp->crun)); fkp->grpchpx = (CHPX *) wvMalloc (sizeof (CHPX) * (fkp->crun)); wvStream_goto (fd, pn * WV_PAGESIZE); wvTrace (("offset is %x\n", pn * WV_PAGESIZE)); for (i = 0; i < fkp->crun + 1; i++) { fkp->rgfc[i] = bread_32ubit (&(page[pos]), &pos); wvTrace (("rgfc is %x\n", fkp->rgfc[i])); } for (i = 0; i < fkp->crun; i++) fkp->rgb[i] = bread_8ubit (&(page[pos]), &pos); for (i = 0; i < fkp->crun; i++) { if (fkp->rgb[i] == 0) { wvTrace (("i is %d, using clear chpx\n", i)); wvInitCHPX (&(fkp->grpchpx[i])); } else { wvTrace ( ("chpx index i is %d, offset is %x\n", i, (pn * WV_PAGESIZE) + (fkp->rgb[i] * 2))); pos = fkp->rgb[i] * 2; wvGetCHPX (ver, &(fkp->grpchpx[i]), page, &pos); } } if (wvCHPX_pn_previous != 0) internal_wvReleaseCHPX_FKP (&wvCHPX_FKP_previous); memcpy (&wvCHPX_FKP_previous, fkp, sizeof (CHPX_FKP)); wvCHPX_pn_previous = pn; } void wvReleaseCHPX_FKP (CHPX_FKP * fkp) { return; } void wvInitCHPX_FKP (CHPX_FKP * fkp) { fkp->rgfc = NULL; fkp->rgb = NULL; fkp->crun = 0; fkp->grpchpx = NULL; } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/dogrid.c�����������������������������������������������������������������������������������0000664�0000764�0000764�00000003067�11247156606�010544� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <sys/types.h> #include <string.h> #include <stdio.h> #include "wv.h" void wvGetDOGRID (DOGRID * dog, wvStream * fd) { U16 temp16; dog->xaGrid = read_16ubit (fd); dog->yaGrid = read_16ubit (fd); dog->dxaGrid = read_16ubit (fd); dog->dyaGrid = read_16ubit (fd); temp16 = read_16ubit (fd); dog->dyGridDisplay = temp16 & 0x007F; dog->fTurnItOff = (temp16 & 0x0080) >> 7; dog->dxGridDisplay = (temp16 & 0x7F00) >> 8; dog->fFollowMargins = (temp16 & 0x8000) >> 15; } void wvInitDOGRID (DOGRID * dog) { dog->xaGrid = 0; dog->yaGrid = 0; dog->dxaGrid = 0; dog->dyaGrid = 0; dog->dyGridDisplay = 0; dog->fTurnItOff = 0; dog->dxGridDisplay = 0; dog->fFollowMargins = 0; } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/stylesheet.c�������������������������������������������������������������������������������0000664�0000764�0000764�00000033300�11247156607�011457� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include "wv.h" #include <glib.h> /*modify this to handle cbSTSHI < the current size*/ void wvGetSTSHI (STSHI * item, U16 cbSTSHI, wvStream * fd) { U16 temp16; int i; U16 count = 0; wvInitSTSHI (item); /* zero any new fields that might not exist in the file */ item->cstd = read_16ubit (fd); count += 2; wvTrace (("there are %d std\n", item->cstd)); item->cbSTDBaseInFile = read_16ubit (fd); count += 2; temp16 = read_16ubit (fd); count += 2; item->fStdStylenamesWritten = temp16 & 0x01; item->reserved = (temp16 & 0xfe) >> 1; item->stiMaxWhenSaved = read_16ubit (fd); count += 2; item->istdMaxFixedWhenSaved = read_16ubit (fd); count += 2; item->nVerBuiltInNamesWhenSaved = read_16ubit (fd); count += 2; for (i = 0; i < 3; i++) { item->rgftcStandardChpStsh[i] = read_16ubit (fd); count += 2; if (count >= cbSTSHI) break; } while (count < cbSTSHI) { read_8ubit (fd); count++; } } void wvInitSTSHI (STSHI * item) { int i; item->cstd = 0; item->cbSTDBaseInFile = 0; item->fStdStylenamesWritten = 0; item->reserved = 0; item->stiMaxWhenSaved = 0; item->istdMaxFixedWhenSaved = 0; item->nVerBuiltInNamesWhenSaved = 0; for (i = 0; i < 3; i++) item->rgftcStandardChpStsh[i] = 0; } void wvReleaseSTD (STD * item) { U8 i; if (!item) return; wvFree (item->xstzName); for (i = 0; i < item->cupx; i++) { if (item->grupxf[i].cbUPX == 0) continue; if ((item->cupx == 1) || ((item->cupx == 2) && (i == 1))) wvFree (item->grupxf[i].upx.chpx.grpprl); else if ((item->cupx == 2) && (i == 0)) wvFree (item->grupxf[i].upx.papx.grpprl); } if (item->sgc == sgcChp) if (item->grupe) wvReleaseCHPX (&(item->grupe[0].chpx)); wvFree (item->grupxf); wvFree (item->grupe); } void wvInitSTD (STD * item) { item->sti = 0; item->fScratch = 0; item->fInvalHeight = 0; item->fHasUpe = 0; item->fMassCopy = 0; item->sgc = 0; item->istdBase = istdNil; item->cupx = 0; item->istdNext = 0; item->bchUpe = 0; item->fAutoRedef = 0; item->fHidden = 0; item->reserved = 0; item->xstzName = NULL; item->grupxf = NULL; item->grupe = NULL; } static const char * wvGetUCS2LEName(void) { char ** p; static char * szUCS2LENames[] = { "UCS-2LE", /* preferred */ "UCS-2-LE", /* older libiconv */ "UNICODELITTLE", /* older glibc */ "UTF-16LE", /* superset */ "UTF-16-LE", /* my guess */ NULL }; for (p = szUCS2LENames; *p; ++p) { GIConv g_iconv_handle; if ((g_iconv_handle = g_iconv_open("UTF-8",*p)) != (GIConv)-1) { g_iconv_close(g_iconv_handle); return *p; } } return NULL; } int wvGetSTD (STD * item, U16 baselen, U16 fixedlen, wvStream * fd) { U16 temp16; U16 len, i, j; int pos; int ret = 0; U16 count = 0; U32 allocName = 0; /* length allocated for xstzName */ GIConv conv = NULL; U32 b = 0; wvInitSTD (item); /* zero any new fields that might not exist in the file */ wvTrace (("baselen set to %d fixed part len is %d\n", baselen, fixedlen)); temp16 = read_16ubit (fd); count += 2; item->sti = temp16 & 0x0fff; item->fScratch = (temp16 & 0x1000) >> 12; item->fInvalHeight = (temp16 & 0x2000) >> 13; item->fHasUpe = (temp16 & 0x4000) >> 14; item->fMassCopy = (temp16 & 0x8000) >> 15; temp16 = read_16ubit (fd); count += 2; item->sgc = temp16 & 0x000f; item->istdBase = (temp16 & 0xfff0) >> 4; temp16 = read_16ubit (fd); count += 2; item->cupx = temp16 & 0x000f; item->istdNext = (temp16 & 0xfff0) >> 4; item->bchUpe = read_16ubit (fd); count += 2; if (count < baselen) /* word 6 has only a count of 8 */ { temp16 = read_16ubit (fd); count += 2; item->fAutoRedef = temp16 & 0x0001; item->fHidden = (temp16 & 0x0002) >> 1; item->reserved = (temp16 & 0xfffc) >> 2; while (count < baselen) /* eat any new fields we might know about ourselves */ { read_8ubit (fd); count++; } } wvTrace (("count is %d, baselen is %d\n", count, baselen)); pos = 10; if (count < 10) { ret = 1; len = read_8ubit (fd); pos++; } else { len = read_16ubit (fd); pos += 2; wvTrace ( ("%x %x %x %x\n", fixedlen, baselen, fixedlen - baselen, len)); if (fixedlen - baselen < len) { wvWarning ("The names of the styles are not stored in unicode as is usual for this version, going to 8 bit\n"); wvStream_offset (fd, -2); len = read_8ubit (fd); count = 9; /* to fake the later char reader code */ pos--; } } wvTrace (("doing a std, str len is %d\n", len + 1)); allocName = (len + 1) * sizeof (char); item->xstzName = (char *) wvMalloc (allocName); *(item->xstzName) = 0; b = 0; conv = g_iconv_open("utf-8", wvGetUCS2LEName ()); for (i = 0; i < len + 1; i++) { if (count < 10) { /* Hub: IMHO we should perform a conversion here */ item->xstzName[i] = read_8ubit (fd); pos++; } else { char buf[16]; char buf2[4]; char * tmp; char * tmp2; size_t insz, sz; temp16 = read_16ubit (fd); buf2[0] = temp16 & 0x00ff; buf2[1] = (temp16 & 0xff00) >> 8; tmp2 = buf2; insz = 2 * sizeof(char); tmp = buf; sz = sizeof(buf); if ((size_t) -1 != g_iconv (conv, &tmp2, &insz, &tmp, &sz)) { while ((b + sizeof(buf) - sz + 1) >= allocName) { allocName *= 2; item->xstzName = (char *) realloc(item->xstzName, allocName); } if (sz) { *tmp = 0; } strncat (item->xstzName, buf, sizeof(buf) - sz); b += (sizeof(buf) - sz); pos += 2; } } wvTrace (("sample letter is %c\n", item->xstzName[i])); } g_iconv_close(conv); wvTrace (("string ended\n")); wvTrace (("cupx is %d\n", item->cupx)); if (item->cupx == 0) { item->grupxf = NULL; item->grupe = NULL; return (0); } item->grupxf = (UPXF *) wvMalloc (sizeof (UPXF) * item->cupx); if (item->grupxf == NULL) { wvError ( ("Couuldn't alloc %d bytes for UPXF\n", sizeof (UPXF) * item->cupx)); return (0); } memset (item->grupxf, 0, sizeof (UPXF) * item->cupx); item->grupe = (UPE *) wvMalloc (sizeof (UPE) * item->cupx); if (item->grupe == NULL) { wvError ( ("Couuldn't alloc %d bytes for UPE\n", sizeof (UPE) * item->cupx)); return (0); } memset (item->grupe, 0, sizeof (UPE) * item->cupx); for (i = 0; i < item->cupx; i++) { if ((pos + 1) / 2 != pos / 2) { /*eat odd bytes */ wvStream_offset (fd, 1); pos++; } item->grupxf[i].cbUPX = read_16ubit (fd); wvTrace (("cbUPX is %d\n", item->grupxf[i].cbUPX)); pos += 2; if (item->grupxf[i].cbUPX == 0) continue; if ((item->cupx == 1) || ((item->cupx == 2) && (i == 1))) { item->grupxf[i].upx.chpx.grpprl = (U8 *) wvMalloc (item->grupxf[i].cbUPX); for (j = 0; j < item->grupxf[i].cbUPX; j++) { item->grupxf[i].upx.chpx.grpprl[j] = read_8ubit (fd); pos++; } } else if ((item->cupx == 2) && (i == 0)) { item->grupxf[i].upx.papx.istd = read_16ubit (fd); pos += 2; if (item->grupxf[i].cbUPX - 2) item->grupxf[i].upx.papx.grpprl = (U8 *) wvMalloc (item->grupxf[i].cbUPX - 2); else item->grupxf[i].upx.papx.grpprl = NULL; for (j = 0; j < item->grupxf[i].cbUPX - 2; j++) { item->grupxf[i].upx.papx.grpprl[j] = read_8ubit (fd); pos++; } } else { wvTrace (("Strange cupx option\n")); wvStream_offset (fd, item->grupxf[i].cbUPX); pos += item->grupxf[i].cbUPX; } } /*eat odd bytes */ if ((pos + 1) / 2 != pos / 2) wvStream_offset (fd, 1); return (ret); } void wvReleaseSTSH (STSH * item) { int i; for (i = 0; i < item->Stshi.cstd; i++) { wvTrace (("Releasing %d std\n", i)); wvReleaseSTD (&(item->std[i])); } wvFree (item->std); } void wvGetSTSH (STSH * item, U32 offset, U32 len, wvStream * fd) { U16 cbStshi, cbStd, i, word6 = 0, j; U16 *chains1; U16 *chains2; if (len == 0) { item->Stshi.cstd = 0; item->std = NULL; return; } wvTrace (("stsh offset len is %x %d\n", offset, len)); wvStream_goto (fd, offset); cbStshi = read_16ubit (fd); wvGetSTSHI (&(item->Stshi), cbStshi, fd); if (item->Stshi.cstd == 0) { item->std = NULL; return; } chains1 = (U16 *) wvMalloc (sizeof (U16) * item->Stshi.cstd); chains2 = (U16 *) wvMalloc (sizeof (U16) * item->Stshi.cstd); item->std = (STD *) wvMalloc (sizeof (STD) * item->Stshi.cstd); if (item->std == NULL) { wvError ( ("No mem for STD list, of size %d\n", sizeof (STD) * item->Stshi.cstd)); return; } for (i = 0; i < item->Stshi.cstd; i++) wvInitSTD (&(item->std[i])); for (i = 0; i < item->Stshi.cstd; i++) { cbStd = read_16ubit (fd); wvTrace ( ("index is %d,cbStd is %d, should end on %x\n", i, cbStd, wvStream_tell (fd) + cbStd)); if (cbStd != 0) { word6 = wvGetSTD (&(item->std[i]), item->Stshi.cbSTDBaseInFile, cbStd, fd); wvTrace ( ("istdBase is %d, type is %d, 6|8 version is %d\n", item->std[i].istdBase, item->std[i].sgc, word6)); } wvTrace (("actually ended on %x\n", wvStream_tell (fd))); chains1[i] = item->std[i].istdBase; } /* we will do number 10, (standard character style) first if possible, some evil word docs attempt illegally to use sprmCBold etc with a 128 and 129 argument, which is supposedly not allowed, but happens anyway. In all examples so far it has been character style no 10 that they have attempted to access */ if (item->std[10].istdBase == istdNil) { wvTrace (("Generating istd no %d\n", i)); wvGenerateStyle (item, 10, word6); } for (i = 0; i < item->Stshi.cstd; i++) { if ((item->std[i].istdBase == istdNil) && (i != 10)) { wvTrace (("Generating istd no %d\n", i)); wvGenerateStyle (item, i, word6); } wvTrace (("1: No %d,Base is %d\n", i, chains1[i])); } j = 0; while (j < 11) { int finished = 1; for (i = 0; i < item->Stshi.cstd; i++) { if ((chains1[i] != istdNil) && (chains1[chains1[i]] == istdNil)) { chains2[i] = istdNil; wvTrace (("Generating istd no %d\n", i)); wvGenerateStyle (item, i, word6); finished = 0; } else chains2[i] = chains1[i]; wvTrace (("%d: No %d, Base is %d\n", j, i, chains2[i])); } for (i = 0; i < item->Stshi.cstd; i++) chains1[i] = chains2[i]; if (finished) break; j++; } wvFree (chains1); wvFree (chains2); } void wvGenerateStyle (STSH * item, U16 i, U16 word6) { if (item->std[i].cupx == 0) { wvTrace (("Empty Slot %d\n", i)); return; } switch (item->std[i].sgc) { case sgcPara: wvTrace ( ("doing paragraph, len is %d\n", item->std[i].grupxf[0].cbUPX)); if (item->std[i].cupx > 1) { wvTrace ( ("doing paragraph, len is %d\n", item->std[i].grupxf[1].cbUPX)); } wvInitPAPFromIstd (&(item->std[i].grupe[0].apap), (U16) item->std[i].istdBase, item); if (word6) wvAddPAPXFromBucket6 (&(item->std[i].grupe[0].apap), &(item->std[i].grupxf[0]), item); else wvAddPAPXFromBucket (&(item->std[i].grupe[0].apap), &(item->std[i].grupxf[0]), item, NULL); /* data is NULL because HugePAPX cannot occur in this circumstance, according to the docs */ /* if cupx <=1, there is not grupe[1] or grupxf[1] to access */ if (item->std[i].cupx <= 1) { wvWarning("cupx <=1. we better stop here."); break; } wvInitCHPFromIstd (&(item->std[i].grupe[1].achp), (U16) item->std[i].istdBase, item); wvTrace (("here1\n")); if (word6) wvAddCHPXFromBucket6 (&(item->std[i].grupe[1].achp), &(item->std[i].grupxf[1]), item); else wvAddCHPXFromBucket (&(item->std[i].grupe[1].achp), &(item->std[i].grupxf[1]), item); wvTrace (("here2\n")); if (item->std[i].grupe[1].achp.istd != istdNormalChar) { wvWarning ("chp should have had istd set to istdNormalChar, doing it manually\n"); item->std[i].grupe[1].achp.istd = istdNormalChar; } break; case sgcChp: wvInitCHPXFromIstd (&(item->std[i].grupe[0].chpx), (U16) item->std[i].istdBase, item); if (word6) wvUpdateCHPXBucket (&(item->std[i].grupxf[0])); wvMergeCHPXFromBucket (&(item->std[i].grupe[0].chpx), &(item->std[i].grupxf[0])); /* UPE.chpx.istd is set to the style's istd */ item->std[i].grupe[0].chpx.istd = i; /*? */ break; default: wvWarning ("New document type\n"); break; } } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/unicode.c����������������������������������������������������������������������������������0000664�0000764�0000764�00000003533�11247156607�010721� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" #include "utf.h" char * wvWideStrToMB (U16 * str) { int len, len2 = 0, j; char *utf8 = NULL; char target[5]; /* no wide char becomes longer than about 3 or 4 chars, but you never know :-) */ if (str == NULL) return (NULL); while (*str != 0) { len = our_wctomb (target, *str); utf8 = (char *) realloc (utf8, len2 + len + 1); for (j = 0; j < len; j++) utf8[len2 + j] = target[j]; len2 += len; str++; } if (utf8 != NULL) utf8[len2] = '\0'; return (utf8); } char * wvWideCharToMB (U16 char16) { int len, len2 = 0, j; char *utf8 = NULL; char target[5]; /* no wide char becomes longer than about 3 or 4 chars, but you never know :-) */ len = our_wctomb (target, char16); utf8 = (char *) realloc (utf8, len2 + len + 1); for (j = 0; j < len; j++) utf8[len2 + j] = target[j]; len2 += len; if (utf8 != NULL) utf8[len2] = '\0'; return (utf8); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/dop.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000034312�11247156606�010053� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <sys/types.h> #include <string.h> #include <stdio.h> #include "wv.h" void wvGetCOPTS (COPTS * item, wvStream * fd) { U16 temp16; temp16 = read_16ubit (fd); item->fNoTabForInd = temp16 & 0x0001; item->fNoSpaceRaiseLower = (temp16 & 0x0002) >> 1; item->fSuppressSpbfAfterPageBreak = (temp16 & 0x0004) >> 2; item->fWrapTrailSpaces = (temp16 & 0x0008) >> 3; item->fMapPrintTextColor = (temp16 & 0x0010) >> 4; item->fNoColumnBalance = (temp16 & 0x0020) >> 5; item->fConvMailMergeEsc = (temp16 & 0x0040) >> 6; item->fSuppressTopSpacing = (temp16 & 0x0080) >> 7; item->fOrigWordTableRules = (temp16 & 0x0100) >> 8; item->fTransparentMetafiles = (temp16 & 0x0200) >> 9; item->fShowBreaksInFrames = (temp16 & 0x0400) >> 10; item->fSwapBordersFacingPgs = (temp16 & 0x800) >> 11; item->reserved = (temp16 & 0xf000) >> 12; } void wvInitCOPTS (COPTS * item) { item->fNoTabForInd = 0; item->fNoSpaceRaiseLower = 0; item->fSuppressSpbfAfterPageBreak = 0; item->fWrapTrailSpaces = 0; item->fMapPrintTextColor = 0; item->fNoColumnBalance = 0; item->fConvMailMergeEsc = 0; item->fSuppressTopSpacing = 0; item->fOrigWordTableRules = 0; item->fTransparentMetafiles = 0; item->fShowBreaksInFrames = 0; item->fSwapBordersFacingPgs = 0; item->reserved = 0; } void wvGetDOP (wvVersion ver, DOP * dop, U32 fcDop, U32 lcbDop, wvStream * fd) { U16 temp16; U32 temp32; int i; if (ver != WORD8) wvInitDOP (dop); if (lcbDop <= 0) return; wvStream_goto (fd, fcDop); temp16 = read_16ubit (fd); dop->fFacingPages = temp16 & 0x0001; dop->fWidowControl = (temp16 & 0x0002) >> 1; dop->fPMHMainDoc = (temp16 & 0x0004) >> 2; dop->grfSuppression = (temp16 & 0x18) >> 3; dop->fpc = (temp16 & 0x0060) >> 5; wvTrace (("fpc is %d\n", dop->fpc)); dop->reserved1 = (temp16 & 0x0080) >> 7; dop->grpfIhdt = (temp16 & 0xFF00) >> 8; temp16 = read_16ubit (fd); if (ver == WORD2) { dop->fFtnRestart = temp16 & 0x0001; dop->nFtn = (temp16 & 0xFFFE) >> 1; } else { dop->rncFtn = temp16 & 0x0003; dop->nFtn = (temp16 & 0xFFFC) >> 2; } temp16 = read_16ubit (fd); if (ver == WORD2) { dop->irmBar = temp16 & 0x00FF; dop->irmProps = temp16 & 0x8F00 >> 8; } else { dop->fOutlineDirtySave = temp16 & 0x0001; dop->reserved2 = (temp16 & 0x00FE) >> 1; dop->fOnlyMacPics = (temp16 & 0x0100) >> 8; dop->fOnlyWinPics = (temp16 & 0x0200) >> 9; dop->fLabelDoc = (temp16 & 0x0400) >> 10; dop->fHyphCapitals = (temp16 & 0x0800) >> 11; dop->fAutoHyphen = (temp16 & 0x1000) >> 12; dop->fFormNoFields = (temp16 & 0x2000) >> 13; dop->fLinkStyles = (temp16 & 0x4000) >> 14; } dop->fRevMarking = (temp16 & 0x8000) >> 15; temp16 = read_16ubit (fd); dop->fBackup = temp16 & 0x0001; dop->fExactCWords = (temp16 & 0x0002) >> 1; dop->fPagHidden = (temp16 & 0x0004) >> 2; dop->fPagResults = (temp16 & 0x0008) >> 3; dop->fLockAtn = (temp16 & 0x0010) >> 4; dop->fMirrorMargins = (temp16 & 0x0020) >> 5; if (ver == WORD2) { dop->fKeepFileFormat = (temp16 & 0x0040) >> 6; } else { dop->reserved3 = (temp16 & 0x0040) >> 6; } dop->fDfltTrueType = (temp16 & 0x0080) >> 7; dop->fPagSuppressTopSpacing = (temp16 & 0x0100) >> 8; if (ver == WORD2) { dop->fRTLAlignment = (temp16 & 0x0200) >> 9; } else { dop->fProtEnabled = (temp16 & 0x0200) >> 9; } /* (Nameless in W2) */ dop->fDispFormFldSel = (temp16 & 0x0400) >> 10; dop->fRMView = (temp16 & 0x0800) >> 11; dop->fRMPrint = (temp16 & 0x1000) >> 12; dop->reserved4 = (temp16 & 0x2000) >> 13; dop->fLockRev = (temp16 & 0x4000) >> 14; dop->fEmbedFonts = (temp16 & 0x8000) >> 15; if (ver == WORD2) { temp16 = read_16ubit (fd); /* nameless to (temp16&0xFE00)>>8 */ dop->fSpares = read_16ubit (fd); } /* not used in word 8 as far as i know, but are in previous word's not in word 2 either */ if (ver > WORD2) wvGetCOPTS (&dop->copts, fd); dop->dxaTab = read_16ubit (fd); if (ver == WORD2) dop->ftcDefaultBi = read_16ubit (fd); dop->wSpare = read_16ubit (fd); dop->dxaHotZ = read_16ubit (fd); if (ver > WORD2) dop->cConsecHypLim = read_16ubit (fd); dop->wSpare2 = read_16ubit (fd); if (ver == WORD2) dop->wSpare3 = read_16ubit (fd); wvGetDTTM (&dop->dttmCreated, fd); wvGetDTTM (&dop->dttmRevised, fd); wvGetDTTM (&dop->dttmLastPrint, fd); dop->nRevision = read_16ubit (fd); dop->tmEdited = read_32ubit (fd); dop->cWords = read_32ubit (fd); dop->cCh = read_32ubit (fd); dop->cPg = read_16ubit (fd); if (ver == WORD2) { dop->rgwSpareDocSum[1] = read_16ubit (fd); dop->rgwSpareDocSum[2] = read_16ubit (fd); return; /* No more for Word 2 */ } else { dop->cParas = read_32ubit (fd); } temp16 = read_16ubit (fd); dop->rncEdn = temp16 & 0x0003; dop->nEdn = (temp16 & 0xFFFC) >> 2; temp16 = read_16ubit (fd); dop->epc = temp16 & 0x0003; dop->nfcFtnRef = (temp16 & 0x003C) >> 2; dop->nfcEdnRef = (temp16 & 0x03C0) >> 6; dop->fPrintFormData = (temp16 & 0x0400) >> 10; dop->fSaveFormData = (temp16 & 0x0800) >> 11; dop->fShadeFormData = (temp16 & 0x1000) >> 12; dop->reserved6 = (temp16 & 0x6000) >> 13; dop->fWCFtnEdn = (temp16 & 0x8000) >> 15; dop->cLines = read_32ubit (fd); dop->cWordsFtnEnd = read_32ubit (fd); dop->cChFtnEdn = read_32ubit (fd); dop->cPgFtnEdn = read_16ubit (fd); dop->cParasFtnEdn = read_32ubit (fd); dop->cLinesFtnEdn = read_32ubit (fd); dop->lKeyProtDoc = read_32ubit (fd); temp16 = read_16ubit (fd); dop->wvkSaved = temp16 & 0x0007; dop->wScaleSaved = (temp16 & 0x0FF8) >> 3; dop->zkSaved = (temp16 & 0x3000) >> 12; dop->fRotateFontW6 = (temp16 & 0x4000) >> 14; dop->iGutterPos = (temp16 & 0x8000) >> 15; if (ver == WORD6) { dop->fNoTabForInd = dop->copts.fNoTabForInd; dop->fNoSpaceRaiseLower = dop->copts.fNoSpaceRaiseLower; dop->fSuppressSpbfAfterPageBreak = dop->copts.fSuppressSpbfAfterPageBreak; dop->fWrapTrailSpaces = dop->copts.fWrapTrailSpaces; dop->fMapPrintTextColor = dop->copts.fMapPrintTextColor; dop->fNoColumnBalance = dop->copts.fNoColumnBalance; dop->fConvMailMergeEsc = dop->copts.fConvMailMergeEsc; dop->fSuppressTopSpacing = dop->copts.fSuppressTopSpacing; dop->fOrigWordTableRules = dop->copts.fOrigWordTableRules; dop->fTransparentMetafiles = dop->copts.fTransparentMetafiles; dop->fShowBreaksInFrames = dop->copts.fShowBreaksInFrames; dop->fSwapBordersFacingPgs = dop->copts.fSwapBordersFacingPgs; return; } temp32 = read_32ubit (fd); dop->fNoTabForInd = temp32 & 0x00000001; dop->fNoSpaceRaiseLower = (temp32 & 0x00000002) >> 1; dop->fSuppressSpbfAfterPageBreak = (temp32 & 0x00000004) >> 2; dop->fWrapTrailSpaces = (temp32 & 0x00000008) >> 3; dop->fMapPrintTextColor = (temp32 & 0x00000010) >> 4; dop->fNoColumnBalance = (temp32 & 0x00000020) >> 5; dop->fConvMailMergeEsc = (temp32 & 0x00000040) >> 6; dop->fSuppressTopSpacing = (temp32 & 0x00000080) >> 7; dop->fOrigWordTableRules = (temp32 & 0x00000100) >> 8; dop->fTransparentMetafiles = (temp32 & 0x00000200) >> 9; dop->fShowBreaksInFrames = (temp32 & 0x00000400) >> 10; dop->fSwapBordersFacingPgs = (temp32 & 0x00000800) >> 11; dop->reserved7 = (temp32 & 0x0000F000) >> 12; dop->fSuppressTopSpacingMac5 = (temp32 & 0x00010000) >> 16; dop->fTruncDxaExpand = (temp32 & 0x00020000) >> 17; dop->fPrintBodyBeforeHdr = (temp32 & 0x00040000) >> 18; dop->fNoLeading = (temp32 & 0x00080000) >> 19; dop->reserved8 = (temp32 & 0x00100000) >> 20; dop->fMWSmallCaps = (temp32 & 0x00200000) >> 21; dop->reserved9 = (temp32 & 0xFFC00000) >> 22; if (ver == WORD7) return; dop->adt = read_16ubit (fd); wvGetDOPTYPOGRAPHY (&dop->doptypography, fd); wvGetDOGRID (&dop->dogrid, fd); temp16 = read_16ubit (fd); dop->reserved10 = temp16 & 0x0001; dop->lvl = (temp16 & 0x001E) >> 1; dop->fGramAllDone = (temp16 & 0x0020) >> 5; dop->fGramAllClean = (temp16 & 0x0040) >> 6; dop->fSubsetFonts = (temp16 & 0x0080) >> 7; dop->fHideLastVersion = (temp16 & 0x0100) >> 8; dop->fHtmlDoc = (temp16 & 0x0200) >> 9; dop->reserved11 = (temp16 & 0x0400) >> 10; dop->fSnapBorder = (temp16 & 0x0800) >> 11; dop->fIncludeHeader = (temp16 & 0x1000) >> 12; dop->fIncludeFooter = (temp16 & 0x2000) >> 13; dop->fForcePageSizePag = (temp16 & 0x4000) >> 14; dop->fMinFontSizePag = (temp16 & 0x8000) >> 15; temp16 = read_16ubit (fd); dop->fHaveVersions = temp16 & 0x0001; dop->fAutoVersion = (temp16 & 0x0002) >> 1; dop->reserved11 = (temp16 & 0xFFFC) >> 2; wvGetASUMYI (&dop->asumyi, fd); dop->cChWS = read_32ubit (fd); dop->cChWSFtnEdn = read_32ubit (fd); dop->grfDocEvents = read_32ubit (fd); temp32 = read_32ubit (fd); dop->fVirusPrompted = temp32 & 0x00000001; dop->fVirusLoadSafe = (temp32 & 0x00000002) >> 1; dop->KeyVirusSession30 = (temp32 & 0xFFFFFFFC) >> 2; for (i = 0; i < 30; i++) dop->Spare[i] = read_8ubit (fd); dop->reserved12 = read_32ubit (fd); dop->reserved13 = read_32ubit (fd); dop->cDBC = read_32ubit (fd); dop->cDBCFtnEdn = read_32ubit (fd); dop->reserved14 = read_32ubit (fd); dop->new_nfcFtnRef = read_16ubit (fd); dop->new_nfcEdnRef = read_16ubit (fd); dop->hpsZoonFontPag = read_16ubit (fd); dop->dywDispPag = read_16ubit (fd); /* if ((dop->fLockAtn) || (dop->fLockRev)) wvError(("doc protection key is %x\n",dop->lKeyProtDoc)); */ } void wvInitDOP (DOP * dop) { int i; dop->fFacingPages = 0; dop->fWidowControl = 0; dop->fPMHMainDoc = 0; dop->grfSuppression = 0; dop->fpc = 0; dop->reserved1 = 0; dop->grpfIhdt = 0; dop->rncFtn = 0; dop->fFtnRestart = 0; dop->nFtn = 0; dop->irmBar = 0; dop->irmProps = 0; dop->fOutlineDirtySave = 0; dop->reserved2 = 0; dop->fOnlyMacPics = 0; dop->fOnlyWinPics = 0; dop->fLabelDoc = 0; dop->fHyphCapitals = 0; dop->fAutoHyphen = 0; dop->fFormNoFields = 0; dop->fLinkStyles = 0; dop->fRevMarking = 0; dop->fBackup = 0; dop->fExactCWords = 0; dop->fPagHidden = 0; dop->fPagResults = 0; dop->fLockAtn = 0; dop->fMirrorMargins = 0; dop->fKeepFileFormat = 0; dop->reserved3 = 0; dop->fDfltTrueType = 0; dop->fPagSuppressTopSpacing = 0; dop->fRTLAlignment = 0; dop->fSpares = 0; dop->fProtEnabled = 0; dop->fDispFormFldSel = 0; dop->fRMView = 0; dop->fRMPrint = 0; dop->reserved4 = 0; dop->fLockRev = 0; dop->fEmbedFonts = 0; wvInitCOPTS (&dop->copts); dop->dxaTab = 0; dop->ftcDefaultBi = 0; dop->wSpare = 0; dop->dxaHotZ = 0; dop->cConsecHypLim = 0; dop->wSpare2 = 0; wvInitDTTM (&dop->dttmCreated); wvInitDTTM (&dop->dttmRevised); wvInitDTTM (&dop->dttmLastPrint); dop->nRevision = 0; dop->tmEdited = 0; dop->cWords = 0; dop->cCh = 0; dop->cPg = 0; dop->cParas = 0; dop->rgwSpareDocSum[1] = 0; dop->rgwSpareDocSum[2] = 0; dop->rncEdn = 0; dop->nEdn = 0; dop->epc = 0; dop->nfcFtnRef = 0; dop->nfcEdnRef = 0; dop->fPrintFormData = 0; dop->fSaveFormData = 0; dop->fShadeFormData = 0; dop->reserved6 = 0; dop->fWCFtnEdn = 0; dop->cLines = 0; dop->cWordsFtnEnd = 0; dop->cChFtnEdn = 0; dop->cPgFtnEdn = 0; dop->cParasFtnEdn = 0; dop->cLinesFtnEdn = 0; dop->lKeyProtDoc = 0; dop->wvkSaved = 0; dop->wScaleSaved = 0; dop->zkSaved = 0; dop->fRotateFontW6 = 0; dop->iGutterPos = 0; dop->fNoTabForInd = 0; dop->fNoSpaceRaiseLower = 0; dop->fSuppressSpbfAfterPageBreak = 0; dop->fWrapTrailSpaces = 0; dop->fMapPrintTextColor = 0; dop->fNoColumnBalance = 0; dop->fConvMailMergeEsc = 0; dop->fSuppressTopSpacing = 0; dop->fOrigWordTableRules = 0; dop->fTransparentMetafiles = 0; dop->fShowBreaksInFrames = 0; dop->fSwapBordersFacingPgs = 0; dop->reserved7 = 0; dop->fSuppressTopSpacingMac5 = 0; dop->fTruncDxaExpand = 0; dop->fPrintBodyBeforeHdr = 0; dop->fNoLeading = 0; dop->reserved8 = 0; dop->fMWSmallCaps = 0; dop->reserved9 = 0; dop->adt = 0; wvInitDOPTYPOGRAPHY (&dop->doptypography); wvInitDOGRID (&dop->dogrid); dop->reserved10 = 0; dop->lvl = 0; dop->fGramAllDone = 0; dop->fGramAllClean = 0; dop->fSubsetFonts = 0; dop->fHideLastVersion = 0; dop->fHtmlDoc = 0; dop->reserved11 = 0; dop->fSnapBorder = 0; dop->fIncludeHeader = 0; dop->fIncludeFooter = 0; dop->fForcePageSizePag = 0; dop->fMinFontSizePag = 0; dop->fHaveVersions = 0; dop->fAutoVersion = 0; dop->reserved11 = 0; wvInitASUMYI (&dop->asumyi); dop->cChWS = 0; dop->cChWSFtnEdn = 0; dop->grfDocEvents = 0; dop->fVirusPrompted = 0; dop->fVirusLoadSafe = 0; dop->KeyVirusSession30 = 0; for (i = 0; i < 30; i++) dop->Spare[i] = 0; dop->reserved12 = 0; dop->reserved13 = 0; dop->cDBC = 0; dop->cDBCFtnEdn = 0; dop->reserved14 = 0; dop->new_nfcFtnRef = 0; dop->new_nfcEdnRef = 0; dop->hpsZoonFontPag = 0; dop->dywDispPag = 0; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/asumy.c������������������������������������������������������������������������������������0000664�0000764�0000764�00000001770�11247156607�010432� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <sys/types.h> #include <string.h> #include <stdio.h> #include "wv.h" void wvGetASUMY (ASUMY * item, wvStream * fd) { item->lLevel = (S32) read_32ubit (fd); } ��������wv-1.2.9/picf.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000032532�11454041730�010203� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include "wv.h" #include "wvinternal.h" U32 PutWord8Structs(MSOFBH *bse_pic_amsofbh, U8* p, size_t size); U32 PutWord8MetafileHeader(PICF * apicf, U8* p); U32 PutWord8BitmapHeader(PICF * apicf, U8* p, long len, U32 header_len); /* return value: 1 == success 0 == failure */ int wvGetPICF (wvVersion ver, PICF * apicf, wvStream * fd) { U8 temp; U32 i; U8 *buf,*p; size_t size; long pos = wvStream_tell (fd); apicf->lcb = read_32ubit (fd); apicf->cbHeader = read_16ubit (fd); wvTrace (("size of pic is %x (%d)\n", apicf->cbHeader, apicf->cbHeader)); apicf->mfp_mm = (S16) read_16ubit (fd); wvTrace (("mm type is %d\n", apicf->mfp_mm)); apicf->mfp_xExt = (S16) read_16ubit (fd); apicf->mfp_yExt = (S16) read_16ubit (fd); apicf->mfp_hMF = (S16) read_16ubit (fd); if (apicf->mfp_mm == 99) wvGetBITMAP (&(apicf->obj.bitmap), fd); else wvGetrc (&(apicf->obj.arc), fd); apicf->dxaGoal = (S16) read_16ubit (fd); apicf->dyaGoal = (S16) read_16ubit (fd); apicf->mx = read_16ubit (fd); apicf->my = read_16ubit (fd); apicf->dxaCropLeft = (S16) read_16ubit (fd); apicf->dyaCropTop = (S16) read_16ubit (fd); apicf->dxaCropRight = (S16) read_16ubit (fd); apicf->dyaCropBottom = (S16) read_16ubit (fd); temp = read_8ubit (fd); apicf->brcl = temp & 0x0F; apicf->fFrameEmpty = (temp & 0x10) >> 4; apicf->fBitmap = (temp & 0x20) >> 5; wvTrace (("bitmap is %d\n", apicf->fBitmap)); apicf->fDrawHatch = (temp & 0x40) >> 6; apicf->fError = (temp & 0x80) >> 7; apicf->bpp = read_8ubit (fd); wvGetBRC (ver, &(apicf->brcTop), fd); wvGetBRC (ver, &(apicf->brcLeft), fd); wvGetBRC (ver, &(apicf->brcBottom), fd); wvGetBRC (ver, &(apicf->brcRight), fd); apicf->dxaOrigin = (S16) read_16ubit (fd); apicf->dyaOrigin = (S16) read_16ubit (fd); if (ver == WORD8) apicf->cProps = (S16) read_16ubit (fd); else apicf->cProps = 0; pos = wvStream_tell (fd) - pos; for (i = pos; i < apicf->cbHeader; i++) read_8ubit (fd); wvTrace (("pos is finally %x\n", wvStream_tell (fd))); wvTrace (("len of data is %d\n", apicf->lcb - apicf->cbHeader)); wvTrace ( ("ends at %x\n", wvStream_tell (fd) + apicf->lcb - apicf->cbHeader)); i = 0; if (apicf->mfp_mm < 90){ MSOFBH bse_pic_amsofbh; size_t lHeaderSize; size_t lWordStructsSize; U8 *pHeader; U8 *pWordStructs; U32 len; U32 j; U8 bmp_header[40]; U32 header_len; U32 colors_used; U16 bpp; pWordStructs = pHeader = 0; wvTrace (("test\n")); len = apicf->lcb - apicf->cbHeader; /*lvm007@aha.ru store*/ pos = wvStream_tell (fd); i = wvEatOldGraphicHeader (fd, len); if(i!=-1)/*Found BMP */ { wvTrace (("len is %d, header len guess is %d\n", len, i)); if (i + 2 >= len) { wvTrace (("all read ok methinks\n")); apicf->rgb = NULL; return 1; } len -= i; pos = wvStream_tell (fd); for(j=0;j< sizeof(bmp_header);j++) bmp_header[j] = read_8ubit (fd); bpp = bmp_header[14] + (bmp_header[15] << 8); if ( bpp < 9) { colors_used = bmp_header[32] + (bmp_header[33] << 8) + (bmp_header[34] << 16) + (bmp_header[35] << 24); } else { colors_used = 0; } wvStream_goto(fd,pos); header_len = 14 + 40 + 4 * colors_used; /*Get Blip Header Size*/ lHeaderSize = PutWord8BitmapHeader(apicf, 0, len + i-14, header_len); pHeader = wvMalloc(lHeaderSize); /*Write Blip Header*/ PutWord8BitmapHeader(apicf, pHeader, len, header_len); /*Set Type of FBSE Header*/ bse_pic_amsofbh.ver = 0; bse_pic_amsofbh.inst = msobiDIB; bse_pic_amsofbh.fbt = msofbtBlipFirst + msoblipDIB;/*msoblipJPEG msoblipPNG*/ bse_pic_amsofbh.cbLength = lHeaderSize+len; }else{/*must be WMF*/ /*Get Blip Header Size*/ lHeaderSize = PutWord8MetafileHeader(apicf, 0); pHeader = wvMalloc(lHeaderSize); /*Write Blip Header*/ PutWord8MetafileHeader(apicf, pHeader); /*Set Type of FBSE Header*/ bse_pic_amsofbh.ver = 0; bse_pic_amsofbh.inst = msobiWMF; bse_pic_amsofbh.fbt = msofbtBlipFirst + msoblipWMF; bse_pic_amsofbh.cbLength = lHeaderSize+len; i = 0; wvStream_goto(fd,pos); } lWordStructsSize = PutWord8Structs(&bse_pic_amsofbh, 0,0); pWordStructs = wvMalloc(lWordStructsSize); PutWord8Structs(&bse_pic_amsofbh, pWordStructs, lWordStructsSize); size = lHeaderSize + lWordStructsSize + apicf->lcb - apicf->cbHeader; p = buf = wvMalloc(size); if(!p) { wvFree(pWordStructs); wvFree(pHeader); return 0; } memcpy(p, pWordStructs, lWordStructsSize); p+= lWordStructsSize; memcpy(p, pHeader, lHeaderSize); p+=lHeaderSize; wvFree(pWordStructs); wvFree(pHeader); } else{ size = apicf->lcb - apicf->cbHeader; p = buf = wvMalloc(size); } for (; i < apicf->lcb - apicf->cbHeader; i++) *p++ = read_8ubit (fd); /* f = fopen("test.dat","wb"); fwrite(buf, 1,size, f); fclose(f); */ wvStream_memory_create(&apicf->rgb, (char*)buf, size); return 1; } U32 wvEatOldGraphicHeader (wvStream * fd, U32 len) { U32 X, entry, count = 0, test; U16 pad; test = read_32ubit (fd); /*0x00090001 */ if (test != 0x00090001L){ wvError (("Old Graphic\n")); return -1; } count += 4; test = read_16ubit (fd); /*0x0300 */ if (test != 0x0300){ wvError (("Old Graphic\n")); return -1; } count += 2; read_32ubit (fd); /*changes */ count += 4; test = read_16ubit (fd); /*0x0000 */ if (test != 0x00000000L){ wvError (("Old Graphic\n")); return -1; } count += 2; X = read_32ubit (fd); /*changes, lets call this X */ wvError (("X is %x\n", X)); count += 4; test = read_16ubit (fd); /*0x0000 */ if (test != 0x00000000L){ wvError (("Old Graphic\n")); return -1; } count += 2; /* while ( entry != X) */ do { entry = read_32ubit (fd); count += 4; wvTrace ( ("Entry is %x, %x, count is %d\n", entry, wvStream_tell (fd), count)); switch (entry) { case 3: read_16ubit (fd); count += 2; wvTrace ( ("suspect that we are finished, count %d, len %d\n", count, len)); break; default: { U32 lene2 = entry - 2; U32 i; wvTrace ( ("lene2 is %d, predict end of %x\n", len, wvStream_tell (fd) + (entry - 2) * 2)); /* RIES (rvt@dds.nl) prolly a dirty patch because I check count everytime it's incremnented against lene2. This seems twork very well I tried it on around 15.000 word documents and it seems to work! */ for (i = 0; i < lene2; i++) { if ( (count + 1) >= len) return (count); test = read_16ubit (fd); if ((i == 0) && ((test == 0x0f43) || (test == 0x0b41))) { wvTrace ( ("Found a Bitmap, Will strip header and return with bitmap data\n")); count += 2; if ( (count + 1) >= len) return (count); pad = test; test = read_32ubit (fd); /*0x00cc0020 */ if (test != 0x00cc0020) wvTrace (("Old Graphic\n")); count += 4; if ( (count + 1) >= len) return (count); if (pad == 0x0f43) { test = read_16ubit (fd); /*0x0000 */ if (test != 0x0000) wvTrace (("Old Graphic\n")); count += 2; if ( (count + 1) >= len) return (count); } read_16ubit (fd); /*width */ count += 2; if ( (count + 1) >= len) return (count); read_16ubit (fd); /*height */ count += 2; if ( (count + 1) >= len) return (count); test = read_32ubit (fd); /*0x00000000L */ if (test != 0x00000000L) wvTrace (("Old Graphic\n")); count += 4; if ( (count + 1) >= len) return (count); read_16ubit (fd); /*width */ count += 2; if ( (count + 1) >= len) return (count); read_16ubit (fd); /*height */ count += 2; if ( (count + 1) >= len) return (count); test = read_32ubit (fd); /*0x00000000L */ if (test != 0x00000000L) wvTrace (("Old Graphic\n")); count += 4; return (count); } count += 2; if ( (count + 1) >= len) return (count); } } break; } } while (count + 1 < len); wvTrace (("Entry is %x %x, %d\n", entry, wvStream_tell (fd), count)); return (count); } U32 wvPutMSOFBH(MSOFBH * amsofbh, wvStream * fd) { if(fd){ write_16ubit (fd,(U16)((amsofbh->ver & 0x000F)|(amsofbh->inst<<4))); write_16ubit (fd,(U16)amsofbh->fbt); write_32ubit (fd,(U32)amsofbh->cbLength); } return (8); } U32 PutWord8Structs(MSOFBH *bse_pic_amsofbh, U8* buf, size_t size) { long count; MSOFBH amsofbh,opt_amsofbh,bse_amsofbh; FBSE afbse; FOPTE *fopte; wvStream OutStream; wvStream *fd; U8* int_buf; int i; if(!bse_pic_amsofbh) return 0; count = 0; if(buf){ fd = &OutStream; int_buf = wvMalloc(size); wvStream_memory_create(&fd, (char*)int_buf, size); } else fd = 0; /*Container Data*/ /*Init Data *OPT amsofbh*/ opt_amsofbh.ver=0; opt_amsofbh.inst=0; opt_amsofbh.fbt = msofbtOPT; opt_amsofbh.cbLength = 12; /* 2*6 see wvPutFOPTEArray */ /*OPT*/ fopte = (FOPTE *) wvMalloc (sizeof (FOPTE) * 2); for(i=0;i<2;i++){ (fopte)[i].pid=0; (fopte)[i].op=1;/*-i;*/ (fopte)[i].fComplex=0; (fopte)[i].fBid=1;/*+i*(79999);*/ (fopte)[i].entry=0; } /*Container amsofbh*/ amsofbh.ver=0; amsofbh.inst=0; amsofbh.fbt = msofbtSpContainer; amsofbh.cbLength = sizeof(opt_amsofbh) + opt_amsofbh.cbLength; /*Write Data*/ /*Container amsofbh*/ count+=wvPutMSOFBH(&amsofbh, fd); /*OPT amsofbh*/ count+=wvPutMSOFBH(&opt_amsofbh, fd); /*OPT */ if(buf) wvPutFOPTEArray(&fopte,&opt_amsofbh,fd); count+=opt_amsofbh.cbLength; wvFree(fopte); /*Set Blip Data */ memset(&afbse,0,sizeof(afbse)); afbse.btMacOS = 3; afbse.btWin32 = 4; afbse.cRef = 1; afbse.tag = 0xff; afbse.size = sizeof(*bse_pic_amsofbh) + bse_pic_amsofbh->cbLength; /*msofbtBSE amsofbh*/ bse_amsofbh.ver=0; bse_amsofbh.inst=0; bse_amsofbh.fbt = msofbtBSE; bse_amsofbh.cbLength = sizeof(afbse) + afbse.size; count+=wvPutMSOFBH(&bse_amsofbh, fd); if(buf) wvPutFBSE (&afbse, fd); count+=sizeof(afbse); count+=wvPutMSOFBH(bse_pic_amsofbh, fd); if(buf){ memcpy(buf, int_buf, size); } return count; } /*Put Metafile Blip*/ U32 PutWord8MetafileHeader(PICF * apicf, U8* buf) { int i; MetaFileBlip amf; size_t count; size_t chunk_size; U8 *p; memset(amf.m_rgbUidPrimary, 0, sizeof(amf.m_rgbUidPrimary)); p = buf; count=0; chunk_size = sizeof(amf.m_rgbUid); if(buf){ for(i=0;i<16;i++) amf.m_rgbUid[i] = i; /*I Dont know what to put here*/ memcpy(p, &amf.m_rgbUid, chunk_size); /* count = fwrite( &amf.m_rgbUid,1,sizeof(amf.m_rgbUid),f);*/ p+=chunk_size; } count += chunk_size; /* dont save pointer amf.m_pvBits; */ chunk_size = sizeof(amf.m_cb) + sizeof(amf.m_fCompression) + sizeof(amf.m_fFilter)+ sizeof(amf.m_ptSize) + sizeof(amf.m_rcBounds) + sizeof(amf.m_cbSave); if(buf){ amf.m_cb = amf.m_cbSave = apicf->lcb - apicf->cbHeader; amf.m_fCompression= msocompressionNone; amf.m_fFilter = msofilterNone; amf.m_ptSize.x = apicf->dxaGoal; amf.m_ptSize.y = apicf->dyaGoal; amf.m_rcBounds.bottom = apicf->dyaCropBottom; amf.m_rcBounds.top = apicf->dyaCropTop; amf.m_rcBounds.left = apicf->dxaCropRight; amf.m_rcBounds.right = apicf->dxaCropLeft; amf.m_pvBits = 0; /*count += fwrite( &amf.m_cb,1,len,f);*/ memcpy(p, &amf.m_cb, chunk_size); p+=chunk_size; } count += chunk_size; return count; } /*Put Metafile Blip*/ U32 PutWord8BitmapHeader(PICF * apicf, U8* buf, long len, U32 header_len) { int i; BitmapBlip abm; size_t count; size_t chunk_size; U8 *p; p = buf; count=0; chunk_size = sizeof(abm.m_rgbUid); if(buf){ for(i=0;i<16;i++) abm.m_rgbUid[i] = i; /*I Dont know what to put here*/ /*fwrite( &abm,1,sizeof(abm.m_rgbUid),f);*/ memcpy(p, &abm, chunk_size); p+=chunk_size; } count += chunk_size; chunk_size = sizeof(abm.m_bTag); if(buf){ abm.m_bTag = 255; memcpy(p, &abm.m_bTag, chunk_size); p+=chunk_size; } count += chunk_size; /*Write Bitmap Structs*/ if(buf){ *p++ = 0x42; /* B */ *p++ = 0x4D; /* M */ *p++ = len & 0x000000FF; *p++ = (len & 0x0000FF00) >> 8; *p++ = (len & 0x00FF0000) >> 16; *p++ = (len & 0xFF000000) >> 24; *p++ = 0x00; *p++ = 0x00; *p++ = 0x00; *p++ = 0x00; *p++ = header_len & 0x000000FF; *p++ = (header_len & 0x0000FF00) >> 8; *p++ = (header_len & 0x00FF0000) >> 16; *p++ = (header_len & 0xFF000000) >> 24; } count+=14; return count; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/brc.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000013067�11247156606�010043� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" #include "wvinternal.h" void wvGetBRC_internal (BRC * abrc, wvStream * infd, U8 * pointer) { U8 temp8; #ifdef PURIFY wvInitBRC (abrc); #endif abrc->dptLineWidth = dread_8ubit (infd, &pointer); abrc->brcType = dread_8ubit (infd, &pointer); abrc->ico = dread_8ubit (infd, &pointer); temp8 = dread_8ubit (infd, &pointer); abrc->dptSpace = temp8 & 0x1f; abrc->fShadow = (temp8 & 0x20) >> 5; abrc->fFrame = (temp8 & 0x40) >> 6; abrc->reserved = (temp8 & 0x80) >> 7; } void wvGetBRC (wvVersion ver, BRC * abrc, wvStream * infd) { if (ver == WORD8) wvGetBRC_internal (abrc, infd, NULL); else wvGetBRC_internal6 (abrc, infd, NULL); } void wvGetBRC_internal6 (BRC * abrc, wvStream * infd, U8 * pointer) { U16 temp16; #ifdef PURIFY wvInitBRC (abrc); #endif temp16 = dread_16ubit (infd, &pointer); abrc->dptLineWidth = (temp16 & 0x0007); abrc->brcType = (temp16 & 0x0018) >> 3; abrc->fShadow = (temp16 & 0x0020) >> 5; abrc->ico = (temp16 & 0x07C0) >> 6; abrc->dptSpace = (temp16 & 0xF800) >> 11; } int wvGetBRCFromBucket (wvVersion ver, BRC * abrc, U8 * pointer) { if (ver == WORD8) wvGetBRC_internal (abrc, NULL, pointer); else { wvGetBRC_internal6 (abrc, NULL, pointer); return (cb6BRC); } return (cbBRC); } void wvInitBRC10 (BRC10 * item) { item->dxpLine2Width = 0; item->dxpSpaceBetween = 0; item->dxpLine1Width = 0; item->dxpSpace = 0; item->fShadow = 0; item->fSpare = 0; } void wvGetBRC10_internal (BRC10 * item, wvStream * infd, U8 * pointer) { U16 temp16; temp16 = dread_16ubit (infd, &pointer); #ifdef PURIFY wvInitBRC10 (item); #endif item->dxpLine2Width = (temp16 & 0x0007); item->dxpSpaceBetween = (temp16 & 0x0038) >> 3; item->dxpLine1Width = (temp16 & 0x01C0) >> 6; item->dxpSpace = (temp16 & 0x3E00) >> 9; item->fShadow = (temp16 & 0x4000) >> 14; item->fSpare = (temp16 & 0x8000) >> 15; } int wvGetBRC10FromBucket (BRC10 * abrc10, U8 * pointer) { wvGetBRC10_internal (abrc10, NULL, pointer); return (cbBRC10); } void wvInitBRC (BRC * abrc) { abrc->dptLineWidth = 0; abrc->brcType = 0; abrc->ico = 0; abrc->dptSpace = 0; abrc->fShadow = 0; abrc->fFrame = 0; abrc->reserved = 0; } int wvEqualBRC (BRC * a, BRC * b) { if (a->dptLineWidth == b->dptLineWidth) if (a->brcType == b->brcType) if (a->ico == b->ico) if (a->dptSpace == b->dptSpace) if (a->fShadow == b->fShadow) if (a->fFrame == b->fFrame) if (a->reserved == b->reserved) return (1); return (0); } void wvCopyBRC (BRC * dest, BRC * src) { dest->dptLineWidth = src->dptLineWidth; dest->brcType = src->brcType; dest->ico = src->ico; dest->dptSpace = src->dptSpace; dest->fShadow = src->fShadow; dest->fFrame = src->fFrame; dest->reserved = src->reserved; } /* I'm not certain as to how this should work, but it will probably never occur, its in here for the sake of completeness */ void wvConvertBRC10ToBRC (BRC * item, BRC10 * in) { wvInitBRC (item); item->dptSpace = in->dxpSpace; item->fShadow = in->fShadow; /* The border lines and their brc10 settings follow: line type dxpLine1Width dxpSpaceBetween dxpLine2Width no border 0 0 0 single line 1 0 0 border two single line 1 1 1 border fat solid border 4 0 0 thick solid 2 0 0 border dotted border 6 (special value meaning 0 0 dotted line) hairline border 7(special value meaning 0 0 hairline) */ if ((in->dxpLine1Width == 0) && (in->dxpSpaceBetween == 0) && (in->dxpLine2Width == 0)) item->brcType = 0; else if ((in->dxpLine1Width == 1) && (in->dxpSpaceBetween == 0) && (in->dxpLine2Width == 0)) item->brcType = 1; else if ((in->dxpLine1Width == 1) && (in->dxpSpaceBetween == 1) && (in->dxpLine2Width == 1)) item->brcType = 3; else if ((in->dxpLine1Width == 4) && (in->dxpSpaceBetween == 0) && (in->dxpLine2Width == 0)) item->brcType = 3; else if ((in->dxpLine1Width == 2) && (in->dxpSpaceBetween == 0) && (in->dxpLine2Width == 0)) item->brcType = 2; else if ((in->dxpLine1Width == 6) && (in->dxpSpaceBetween == 0) && (in->dxpLine2Width == 0)) item->brcType = 6; else if ((in->dxpLine1Width == 7) && (in->dxpSpaceBetween == 0) && (in->dxpLine2Width == 0)) item->brcType = 5; else item->brcType = 0; } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/install-sh���������������������������������������������������������������������������������0000775�0000764�0000764�00000004212�11247156607�011126� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh # # install - install a program, script, or datafile # This comes from X11R5; it is not part of GNU. # # $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $ # # This script is compatible with the BSD install script, but was written # from scratch. # # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" instcmd="$mvprog" chmodcmd="" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; *) if [ x"$src" = x ] then src=$1 else dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` fi # Make a temp file name in the proper directory. dstdir=`dirname $dst` dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp # and set any options; do chmod last to preserve setuid bits if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi # Now rename the file to the real destination. $doit $rmcmd $dst $doit $mvcmd $dsttmp $dst exit 0 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/field.c������������������������������������������������������������������������������������0000664�0000764�0000764�00000022402�11247156607�010352� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <time.h> #include "wv.h" char *xml_slash = ""; static const TokenTable s_Tokens[] = { {"TIME", FC_TIME}, {"\\@", FC_DateTimePicture}, {"HYPERLINK", FC_HYPERLINK}, {"TOC", FC_TOC}, {"\\o", FC_TOC_FROM_RANGE}, {"PAGEREF", FC_PAGEREF}, {"EMBED", FC_EMBED}, {"EDITTIME", FC_EDITTIME}, {"SPEICHERDAT", FC_SPEICHERDAT}, {"DATEINAME" , FC_DATEINAME }, {"*", FC_OTHER} }; static unsigned int s_mapNameToToken (const char *name) { unsigned int k; for (k = 0; k < FieldCodeTableSize; k++) { if (s_Tokens[k].m_name[0] == '*') return k; else if (!(strcasecmp (s_Tokens[k].m_name, name))) return k; } return 0; } int lookahead (char *token, char test1, char test2) { int ret = 0; while ((*token == test1) || (*token == test2)) { token++; ret++; } return (ret); } #define TIMESTR_SIZE 4096 int wvHandleDateTimePicture (char *retstring, size_t max, char *token, time_t * mytime) { int no; int consumed = 0; struct tm *current; char timestr[TIMESTR_SIZE]; char temp[64]; timestr[0] = '\0'; if (!token) return (0); current = localtime (mytime); /* the '11' is the max width of an integer (10 digits for '4 billion') + nul */ while (*token && (consumed < (TIMESTR_SIZE - 11))) { switch (*token) { case 'A': if ((strlen (token) > 5) && (0 == strncmp (token, "AM/PM", 5))) { strcat (timestr, "%p"); token += 5; consumed += 2; } break; case 'a': if ((strlen (token) > 5) && (0 == strncmp (token, "AM/PM", 5))) { strcat (timestr, "%P"); token += 5; consumed += 2; } break; case 'M': no = lookahead (token, 'M', 'M'); token += (no - 1); switch (no) { case 1: sprintf (temp, "%d", current->tm_mon+1); strcat (timestr, temp); consumed += strlen (temp); break; case 2: strcat (timestr, "%m"); consumed += 2; break; case 3: strcat (timestr, "%b"); consumed += 2; break; default: strcat (timestr, "%B"); consumed += 2; break; } break; case 's': case 'S': no = lookahead (token, 's', 'S'); token += (no - 1); switch (no) { case 1: default: strcat (timestr, "%S"); break; } consumed += 2; break; case 'd': case 'D': case 't': case 'T': if(*token == 't' || *token == 'T') no = lookahead (token, 't', 't'); else no = lookahead (token, 'd', 'D'); token += (no - 1); switch (no) { case 1: consumed += sprintf (temp, "%d", current->tm_wday); strcat (timestr, temp); consumed += strlen (temp); break; case 2: strcat (timestr, "%d"); consumed += 2; break; case 3: strcat (timestr, "%a"); consumed += 2; break; default: strcat (timestr, "%A"); consumed += 2; break; } break; case 'y': case 'Y': case 'j': case 'J': if(*token == 'j' || *token == 'J') no = lookahead (token, 'j', 'J'); else no = lookahead (token, 'y', 'Y'); token += (no - 1); switch (no) { case 2: strcat (timestr, "%y"); break; default: strcat (timestr, "%Y"); break; } consumed += 2; break; case 'h': no = lookahead (token, 'h', 'h'); token += (no - 1); switch (no) { case 1: sprintf (temp, "%d", current->tm_hour % 12); strcat (timestr, temp); consumed += strlen (temp); break; default: strcat (timestr, "%I"); consumed += 2; break; } break; case 'H': no = lookahead (token, 'H', 'H'); token += (no - 1); switch (no) { case 1: consumed += sprintf (temp, "%d", current->tm_hour); strcat (timestr, temp); consumed += strlen (temp); break; default: strcat (timestr, "%H"); consumed += 2; break; } break; case 'm': no = lookahead (token, 'm', 'm'); token += (no - 1); switch (no) { case 1: consumed += sprintf (temp, "%d", current->tm_min); strcat (timestr, temp); consumed += strlen (temp); break; default: strcat (timestr, "%M"); consumed += 2; break; } break; case '\"': break; case '`': break; default: temp[0] = *token; temp[1] = '\0'; strcat (timestr, temp); consumed += 1; break; } token++; } return (strftime (retstring, max, timestr, current)); } int wvHandleTotalField (char *command) { int ret = 0; unsigned int tokenIndex; char *token; if (*command != 0x13) { wvError (("field did not begin with 0x13\n")); return (1); } strtok (command, "\t, "); while ((token = strtok (NULL, "\t, "))) { tokenIndex = s_mapNameToToken (token); switch (s_Tokens[tokenIndex].m_type) { case FC_HYPERLINK: token = strtok (NULL, "\"\" "); printf ("</a>"); break; default: break; } } return (ret); } static time_t s_file_mtime(char *name) { struct stat buf; if(stat(name, &buf) == -1) { wvError(("stat %s failed.", name)); return (time_t)-1; } return buf.st_mtime; } int wvHandleCommandField (wvParseStruct *ps, char *command) { int ret = 0; unsigned int tokenIndex; char *token; char datestr[4096]; time_t mytime = (time_t)-1; if (*command != 0x13) { wvError (("field did not begin with 0x13\n")); return (1); } strtok (command, "\t, "); while ((token = strtok (NULL, "\t, "))) { tokenIndex = s_mapNameToToken (token); switch (s_Tokens[tokenIndex].m_type) { case FC_HYPERLINK: token = strtok (NULL, "\"\" "); printf ("<a href=\"%s\">", token); break; case FC_EMBED: wvError (("embed\n")); token = strtok (NULL, "\t, "); /* printf ("<!--%s-->", token); */ break; case FC_PAGEREF: token = strtok (NULL, "\"\" "); printf ("<a href=\"#%s\" %s>", token, xml_slash); break; case FC_EDITTIME: token = strtok (NULL, "\"\" "); break; case FC_TOC: wvTrace (("toc\n")); break; case FC_TOC_FROM_RANGE: token = strtok (NULL, "\"\" "); #ifdef DEBUG if (token) wvTrace (("toc range is %s\n", token)); #endif break; case FC_TIME: wvError (("time token\n")); ret = 1; time (&mytime); break; case FC_DateTimePicture: wvTrace (("DateTimePicture\n")); token = strtok (NULL, "\"\""); if(mytime == (time_t)-1) time (&mytime); if (wvHandleDateTimePicture (datestr, 4096, token, &mytime)) { /* printf ("%s", datestr); */ /* prefer to print out the text that follows the spec char */ } else wvError ( ("date and time field function returned nothing\n")); ret = 0; /* print the text which follows after the spec char*/ break; case FC_DATEINAME: if (ps->filename) { printf("%s", ps->filename); } ret = 1; break; case FC_SPEICHERDAT: if (ps->filename) { mytime = s_file_mtime(ps->filename); } ret = 1; break; default: break; } } return (ret); } int fieldCharProc (wvParseStruct * ps, U16 eachchar, U8 chartype, U16 lid) { static U16 command[40000]; static U16 argumen[40000]; static U16 *which; static int i, depth; char *a; static char *c = NULL; static int ret; if (eachchar == 0x13) { a = NULL; ret = 1; if (depth == 0) { which = command; command[0] = 0; argumen[0] = 0; i = 0; } depth++; } else if (eachchar == 0x14) { if (depth == 1) { command[i] = 0; c = wvWideStrToMB (command); if (wvHandleCommandField (ps, c)) ret = 1; else ret = 0; wvError ( ("command %s, ret is %d\n", wvWideStrToMB (command), ret)); wvFree (c); which = argumen; i = 0; } } if (i >= 40000) { wvError (("WHAT!\n")); return 0; } which[i] = eachchar; if (chartype) which[i] = wvHandleCodePage (which[i], lid); i++; if (eachchar == 0x15) { depth--; if (depth == 0) { which[i] = 0; a = wvWideStrToMB (argumen); c = wvWideStrToMB (command); wvHandleTotalField (c); wvFree (a); wvFree (c); } } return (ret); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/filetime.c���������������������������������������������������������������������������������0000664�0000764�0000764�00000007202�11247156607�011066� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <time.h> #include "wv.h" void wvGetFILETIME (FILETIME * ft, wvStream * fd) { ft->dwLowDateTime = read_32ubit (fd); ft->dwHighDateTime = read_32ubit (fd); } void wvInitFILETIME (FILETIME * ft) { ft->dwLowDateTime = 0; ft->dwHighDateTime = 0; } int wvFileTimeToDosDateTime (const FILETIME * ft, U16 * fatdate, U16 * fattime) { time_t unixtime = wvDOSFS_FileTimeToUnixTime (ft, NULL); struct tm *tm = localtime (&unixtime); if (fattime) *fattime = (tm->tm_hour << 11) + (tm->tm_min << 5) + (tm->tm_sec / 2); if (fatdate) *fatdate = ((tm->tm_year - 80) << 9) + ((tm->tm_mon + 1) << 5) + tm->tm_mday; return (1); } /*********************************************************************** * DOSFS_FileTimeToUnixTime * * Convert a FILETIME format to Unix time. * If not NULL, 'remainder' contains the fractional part of the filetime, * in the range of [0..9999999] (even if time_t is negative). */ time_t wvDOSFS_FileTimeToUnixTime (const FILETIME * filetime, U32 * remainder) { U32 a0; /* 16 bit, low bits */ U32 a1; /* 16 bit, medium bits */ U32 a2; /* 32 bit, high bits */ U32 r; /* remainder of division */ unsigned int carry; /* carry bit for subtraction */ int negative; /* whether a represents a negative value */ /* Copy the time values to a2/a1/a0 */ a2 = filetime->dwHighDateTime; a1 = ((U32) filetime->dwLowDateTime) >> 16; a0 = ((U32) filetime->dwLowDateTime) & 0xffff; /* Subtract the time difference */ if (a0 >= 32768) a0 -= 32768, carry = 0; else a0 += (1 << 16) - 32768, carry = 1; if (a1 >= 54590 + carry) a1 -= 54590 + carry, carry = 0; else a1 += (1 << 16) - 54590 - carry, carry = 1; a2 -= 27111902 + carry; /* If a is negative, replace a by (-1-a) */ negative = (a2 >= ((U32) 1) << 31); if (negative) { /* Set a to -a - 1 (a is a2/a1/a0) */ a0 = 0xffff - a0; a1 = 0xffff - a1; a2 = ~a2; } /* Divide a by 10000000 (a = a2/a1/a0), put the rest into r. Split the divisor into 10000 * 1000 which are both less than 0xffff. */ a1 += (a2 % 10000) << 16; a2 /= 10000; a0 += (a1 % 10000) << 16; a1 /= 10000; r = a0 % 10000; a0 /= 10000; a1 += (a2 % 1000) << 16; a2 /= 1000; a0 += (a1 % 1000) << 16; a1 /= 1000; r += (a0 % 1000) * 10000; a0 /= 1000; /* If a was negative, replace a by (-1-a) and r by (9999999 - r) */ if (negative) { /* Set a to -a - 1 (a is a2/a1/a0) */ a0 = 0xffff - a0; a1 = 0xffff - a1; a2 = ~a2; r = 9999999 - r; } if (remainder) *remainder = r; /* Do not replace this by << 32, it gives a compiler warning and it does not work. */ return ((((time_t) a2) << 16) << 16) + (a1 << 16) + a0; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/fopt.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000007717�11247156606�010252� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include "wv.h" #include "wvinternal.h" U32 wvGetFAnchor (FAnchor * item, wvStream * fd) { /* It is supposed to be a RECT, but its only 4 long so... */ item->left = read_8ubit (fd); item->right = read_8ubit (fd); item->top = read_8ubit (fd); item->bottom = read_8ubit (fd); return (4); } void wvInitFOPTEArray (FOPTE ** fopte) { *fopte = NULL; } void wvReleaseFOPTEArray (FOPTE ** fopte) { U32 i = 0; if (*fopte) { while ((*fopte)[i].pid != 0) { wvFree ((*fopte)[i].entry); i++; } wvFree (*fopte); } } U32 wvGetFOPTEArray (FOPTE ** fopte, MSOFBH * msofbh, wvStream * fd) { U32 i, j, count = 0; U32 no = msofbh->cbLength / 6; *fopte = (FOPTE *) wvMalloc (sizeof (FOPTE) * no); no = 0; while (count < msofbh->cbLength) { wvTrace ( ("count %x %x, pos %x\n", count, msofbh->cbLength, wvStream_tell (fd))); count += wvGetFOPTE (&(*fopte)[no], fd); no++; } *fopte = (FOPTE *) realloc (*fopte, sizeof (FOPTE) * (no + 1)); for (i = 0; i < no; i++) { if ((*fopte)[i].fComplex) for (j = 0; j < (*fopte)[i].op; j++) (*fopte)[i].entry[j] = read_8ubit (fd); } (*fopte)[i].pid = 0; wvTrace (("returning %x\n", count)); return (count); } void wvReleaseFOPTE (FOPTE * afopte) { wvFree (afopte->entry); } U32 wvGetFOPTE (FOPTE * afopte, wvStream * fd) { U16 dtemp; wvTrace (("pos is %x\n", wvStream_tell (fd))); dtemp = read_16ubit (fd); wvTrace (("dtemp is %x\n", dtemp)); #ifdef PURIFY afopte->pid = 0; afopte->fBid = 0; afopte->fComplex = 0; #endif afopte->pid = (dtemp & 0x3fff); afopte->entry = 0; afopte->fBid = ((dtemp & 0x4000) >> 14); afopte->fComplex = ((dtemp & 0x8000) >> 15); afopte->op = read_32ubit (fd); wvTrace ( ("orig %x,pid is %x %d, val is %x\n", dtemp, afopte->pid, afopte->pid, afopte->op)); if (afopte->fComplex) { wvTrace (("1 complex len is %d (%x)\n", afopte->op, afopte->op)); afopte->entry = (U8 *) wvMalloc (afopte->op); return (afopte->op + 6); } afopte->entry = NULL; return (6); } void wvPutFAnchor (FAnchor * item, wvStream * fd) { /* It is supposed to be a RECT, but its only 4 long so... */ write_8ubit (fd, (U8) item->left); write_8ubit (fd, (U8) item->right); write_8ubit (fd, (U8) item->top); write_8ubit (fd, (U8) item->bottom); } void wvPutFOPTE (FOPTE * afopte, wvStream * fd) { U16 dtemp = (U16) 0; dtemp |= afopte->pid; dtemp |= afopte->fBid << 14; dtemp |= afopte->fComplex << 15; write_16ubit (fd, dtemp); write_32ubit (fd, afopte->op); } /* TODO: check to make sure that this is correct */ void wvPutFOPTEArray (FOPTE ** fopte, MSOFBH * msofbh, wvStream * fd) { U32 i, j, count = 0; U32 no = 0; while (count < msofbh->cbLength) { /*lvm007@aha.ru fix*/ count += 6; wvPutFOPTE (&(*fopte)[no], fd); no++; } for (i = 0; i < no; i++) { if ((*fopte)[i].fComplex) for (j = 0; j < (*fopte)[i].op; j++) write_8ubit (fd, (*fopte)[i].entry[j]); } } �������������������������������������������������wv-1.2.9/decrypt95.c��������������������������������������������������������������������������������0000664�0000764�0000764�00000020172�11247156607�011121� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" #include <gsf/gsf-output-memory.h> /* ROTATE_LEFT rotates x left n bits , with a bitlen of b*/ #define ROTATE_LEFT(x, n,b) (((x) << (n)) | ((x) >> (b-(n)))) int wvDecrypt95 (wvParseStruct * ps) { GsfOutput *mainfd; unsigned char pw[16], z, g; unsigned char key[16]; U8 pwkey[2]; int i, c, len, ret = 1; U32 j = 0; unsigned long end; unsigned char test[0x10]; U16 hash, h; if (ps->password[0] == 0) return (ret); hash = (U16) ps->fib.lKey & 0xffff; pwkey[0] = (U8) ((ps->fib.lKey >> 16) & 0xFF); pwkey[1] = (U8) ((ps->fib.lKey >> 24) & 0xFF); /* currently I do not know what the story is with the actual input of non ascii password for word 95 */ for (i = 0; i < 16; i++) pw[i] = (U8) ps->password[i]; len = strlen ((char *) pw); i = len; z = 0xbb; for (; i < 16; i++) { switch (j) { case 0: pw[i] = 0xbb; break; case 1: pw[i] = 0xff; break; case 2: pw[i] = 0xff; break; case 3: pw[i] = 0xba; break; case 4: pw[i] = 0xff; break; case 5: pw[i] = 0xff; break; case 6: pw[i] = 0xb9; break; case 7: pw[i] = 0x80; break; case 8: pw[i] = 0x0; break; case 9: pw[i] = 0xbe; break; case 10: pw[i] = 0xf; break; case 11: pw[i] = 0x0; break; case 12: pw[i] = 0xbf; break; case 13: pw[i] = 0xf; break; case 14: pw[i] = 0; break; j++; } j++; } h = 0xce4b; wvTrace (("hash is now %x\n", hash)); for (i = 0; i < 16; i++) { g = (pw[i] ^ pwkey[i & 1]); g = ROTATE_LEFT (g, 7, 8); h ^= (ROTATE_LEFT (pw[i], i + 1, 15) ^ (i + 1) ^ i); wvTrace (("h is now %x\n", h)); if (i == len - 1) if (h == hash) ret = 0; key[i] = g; } if (ret) return (ret); wvStream_offset_from_end (ps->mainfd, 0); end = wvStream_tell (ps->mainfd); j = 0; wvStream_goto (ps->mainfd, j); mainfd = gsf_output_memory_new (); while (j < 0x30) { c = read_8ubit (ps->mainfd); gsf_output_write (mainfd, 1, (guint8 *)&c); j++; } while (j < end) { for (i = 0; i < 16; i++) test[i] = read_8ubit (ps->mainfd); for (i = 0; i < 16; i++) { if (test[i] != 0) c = key[i] ^ test[i]; else c = 0; gsf_output_write (mainfd, 1, (guint8 *)&c); } j += 16; } if (ps->tablefd0) wvStream_close (ps->tablefd0); if (ps->tablefd1) wvStream_close (ps->tablefd1); wvStream_close (ps->mainfd); gsf_output_close (mainfd); wvStream_memory_create(&ps->mainfd, g_memdup (gsf_output_memory_get_bytes (GSF_OUTPUT_MEMORY (mainfd)), gsf_output_size (mainfd)), gsf_output_size (mainfd)); g_object_unref (G_OBJECT (mainfd)); ps->tablefd = ps->mainfd; ps->tablefd0 = ps->mainfd; ps->tablefd1 = ps->mainfd; wvStream_rewind (ps->mainfd); ps->fib.fEncrypted = 0; wvGetFIB (&ps->fib, ps->mainfd); ps->fib.fEncrypted = 0; return (ret); } #if 0 int wvCrack95 (wvParseStruct * ps) { /* is is quite possible to crack password 95 files fairly easily, there is standard frequency analysis on the cipher text whiich is simply stamped with a 16byte xor key from 0x28 onwards, but there are quite a few known bytes in the fib header with is also encrypted, for instance unencrypted is the beginning and end of the text stream, encrypted is the len of the text stream, so already you have a few bytes of the xor key, and so on, the fcStshOrig is nearly always the same as the fcStsh so theres another byte or two, and so forth. If a struct has an lcb of 0, it remains zero despite what should happen in a xor and thus you know that the fc before and after the 0 lcb are the same, and so forth, so you could derive a lot of information about the xor key from the header, I might complete this some day, there have been a load of other programs that do similiar things, so i don't know that my adding to that pile will help */ int i; U8 block1[4]; U8 block2[4]; U32 reallen; wvError (("begin is %x\n", ps->fib.fcMin)); wvError (("end is %x\n", ps->fib.fcMac)); wvError (("len is %x\n", ps->fib.fcMac - ps->fib.fcMin)); reallen = ps->fib.fcMac - ps->fib.fcMin; wvError (("encrypted len is %x\n", ps->fib.ccpText)); block1[0] = (U8) (ps->fib.ccpText & 0xFF); block1[1] = (U8) ((ps->fib.ccpText >> 8) & 0xFF); block1[2] = (U8) ((ps->fib.ccpText >> 16) & 0xFF); block1[3] = (U8) ((ps->fib.ccpText >> 24) & 0xFF); block2[0] = (U8) (reallen & 0xFF); block2[1] = (U8) ((reallen >> 8) & 0xFF); block2[2] = (U8) ((reallen >> 16) & 0xFF); block2[3] = (U8) ((reallen >> 24) & 0xFF); key[4] = block1[0] ^ block2[0]; key[5] = block1[1] ^ block2[1]; key[6] = block1[2] ^ block2[2]; key[7] = block1[3] ^ block2[3]; block1[0] = (U8) (ps->fib.lcbStshf & 0xFF); block1[1] = (U8) ((ps->fib.lcbStshf >> 8) & 0xFF); block1[2] = (U8) ((ps->fib.lcbStshf >> 16) & 0xFF); block1[3] = (U8) ((ps->fib.lcbStshf >> 24) & 0xFF); block2[0] = block1[0] ^ key[4]; block2[1] = block1[1] ^ key[5]; block2[2] = block1[2] ^ key[6]; block2[3] = block1[3] ^ key[7]; reallen = sread_32ubit (block2); fprintf (stderr, "reallen is %x\n", reallen); block2[0] = (U8) (reallen & 0xFF); block2[1] = (U8) ((reallen >> 8) & 0xFF); block2[2] = (U8) ((reallen >> 16) & 0xFF); block2[3] = (U8) ((reallen >> 24) & 0xFF); block1[0] = (U8) (ps->fib.lcbStshfOrig & 0xFF); block1[1] = (U8) ((ps->fib.lcbStshfOrig >> 8) & 0xFF); block1[2] = (U8) ((ps->fib.lcbStshfOrig >> 16) & 0xFF); block1[3] = (U8) ((ps->fib.lcbStshfOrig >> 24) & 0xFF); key[12] = block1[0] ^ block2[0]; key[13] = block1[1] ^ block2[1]; key[14] = block1[2] ^ block2[2]; key[15] = block1[3] ^ block2[3]; block1[0] = (U8) (ps->fib.fcStshf & 0xFF); block1[1] = (U8) ((ps->fib.fcStshf >> 8) & 0xFF); block1[2] = (U8) ((ps->fib.fcStshf >> 16) & 0xFF); block1[3] = (U8) ((ps->fib.fcStshf >> 24) & 0xFF); block2[0] = (U8) (ps->fib.fcPlcffndRef & 0xFF); block2[1] = (U8) ((ps->fib.fcPlcffndRef >> 8) & 0xFF); block2[2] = (U8) ((ps->fib.fcPlcffndRef >> 16) & 0xFF); block2[3] = (U8) ((ps->fib.fcPlcffndRef >> 24) & 0xFF); if ((block1[0] == 0) && (block2[0]) && (reallen < 0xff)) { fprintf (stderr, "good\n"); key[8] = reallen ^ block2[0]; } else fprintf (stderr, "crap\n"); block2[0] = (U8) (ps->fib.lcbPlcffndRef & 0xFF); block2[1] = (U8) ((ps->fib.lcbPlcffndRef >> 8) & 0xFF); block2[2] = (U8) ((ps->fib.lcbPlcffndRef >> 16) & 0xFF); block2[3] = (U8) ((ps->fib.lcbPlcffndRef >> 24) & 0xFF); fprintf (stderr, "%x %x %x %x\n", block2[0], block2[1], block2[1], block2[0]); if ((block2[0] == 0) && (block2[1] == 0) && (block2[2] == 0) && (block2[3] == 0)) { fprintf (stderr, "good\n"); block1[0] = (U8) (ps->fib.fcPlcffndRef & 0xFF); block2[0] = (U8) (ps->fib.fcPlcffndTxt & 0xFF); reallen = key[8] ^ block2[0]; key[0] = reallen ^ block1[0]; } for (i = 0; i < 16; i++) fprintf (stderr, "key %d is %x\n", i, key[i]); return (0); } #endif ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/lvl.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000010417�11247156607�010067� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" void wvInitLVL (LVL * lvl) { lvl->grpprlPapx = NULL; lvl->grpprlChpx = NULL; lvl->numbertext = NULL; wvInitLVLF (&(lvl->lvlf)); } void wvCopyLVL (LVL * dest, LVL * src) { int len; wvReleaseLVL (dest); wvInitLVL (dest); wvCopyLVLF (&(dest->lvlf), &(src->lvlf)); if (src->lvlf.cbGrpprlPapx > 0) { dest->grpprlPapx = (U8 *) wvMalloc (src->lvlf.cbGrpprlPapx); memcpy (dest->grpprlPapx, src->grpprlPapx, src->lvlf.cbGrpprlPapx); } else dest->grpprlPapx = NULL; if (src->lvlf.cbGrpprlChpx > 0) { dest->grpprlChpx = (U8 *) wvMalloc (src->lvlf.cbGrpprlChpx); memcpy (dest->grpprlChpx, src->grpprlChpx, src->lvlf.cbGrpprlChpx); } else dest->grpprlChpx = NULL; if (src->numbertext == NULL) dest->numbertext = NULL; else { len = src->numbertext[0]; dest->numbertext = (U16 *) wvMalloc (sizeof (U16) * (len + 2)); memcpy (dest->numbertext, src->numbertext, len + 2); } } void wvGetLVL (LVL * lvl, wvStream * fd) { int len; wvGetLVLF (&(lvl->lvlf), fd); if (lvl->lvlf.cbGrpprlPapx > 0) { lvl->grpprlPapx = (U8 *) wvMalloc (lvl->lvlf.cbGrpprlPapx); wvStream_read (lvl->grpprlPapx, sizeof (U8), lvl->lvlf.cbGrpprlPapx, fd); } else lvl->grpprlPapx = NULL; if (lvl->lvlf.cbGrpprlChpx > 0) { lvl->grpprlChpx = (U8 *) wvMalloc (lvl->lvlf.cbGrpprlChpx); wvStream_read (lvl->grpprlChpx, sizeof (U8), lvl->lvlf.cbGrpprlChpx, fd); } else lvl->grpprlChpx = NULL; len = read_16ubit (fd); if (len > 0) { int i = 0; lvl->numbertext = (U16 *) wvMalloc (sizeof (U16) * (len + 2)); lvl->numbertext[0] = len; for(i = 0; i < len; i++) lvl->numbertext[i + 1] = read_16ubit (fd); lvl->numbertext[len + 1] = 0; } else lvl->numbertext = NULL; wvTrace (("len is %d\n", len)); } void wvReleaseLVL (LVL * lvl) { if (lvl == NULL) return; wvFree (lvl->grpprlPapx); wvFree (lvl->grpprlChpx); wvFree (lvl->numbertext); } void wvCopyLVLF (LVLF * dest, LVLF * src) { memcpy (dest, src, sizeof (LVLF)); } void wvGetLVLF (LVLF * item, wvStream * fd) { U8 temp8; int i; #ifdef PURIFY wvInitLVLF (item); #endif item->iStartAt = read_32ubit (fd); wvTrace (("iStartAt is %d\n", item->iStartAt)); item->nfc = read_8ubit (fd); temp8 = read_8ubit (fd); item->jc = temp8 & 0x03; item->fLegal = (temp8 & 0x04) >> 2; item->fNoRestart = (temp8 & 0x08) >> 3; item->fPrev = (temp8 & 0x10) >> 4; item->fPrevSpace = (temp8 & 0x20) >> 5; item->fWord6 = (temp8 & 0x40) >> 6; item->reserved1 = (temp8 & 0x80) >> 7; for (i = 0; i < 9; i++) item->rgbxchNums[i] = read_8ubit (fd); item->ixchFollow = read_8ubit (fd);; item->dxaSpace = read_32ubit (fd); item->dxaIndent = read_32ubit (fd); item->cbGrpprlChpx = read_8ubit (fd); item->cbGrpprlPapx = read_8ubit (fd); item->reserved2 = read_16ubit (fd);; } void wvInitLVLF (LVLF * item) { int i; item->iStartAt = 1; item->nfc = 0; item->jc = 0; item->fLegal = 0; item->fNoRestart = 0; item->fPrev = 0; item->fPrevSpace = 0; item->fWord6 = 0; item->reserved1 = 0; for (i = 0; i < 9; i++) item->rgbxchNums[i] = 0; item->ixchFollow = 0; item->dxaSpace = 0; item->dxaIndent = 0; item->cbGrpprlChpx = 0; item->cbGrpprlPapx = 0; item->reserved2 = 0; } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xst.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000004674�11247156607�010120� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvFreeXst (Xst ** xst) { Xst *freegroup; if ((xst == NULL) || (*xst == NULL)) return; while (*xst != NULL) { freegroup = *xst; *xst = (*xst)->next; if (freegroup->u16string != NULL) wvFree (freegroup->u16string); wvFree (freegroup); } } void wvGetXst (Xst ** xst, U32 offset, U32 len, wvStream * fd) { U16 clen, i; U32 count = 0; Xst *authorlist; Xst *current = NULL; if ((len == 0) || (xst == NULL)) { *xst = NULL; return; } wvStream_goto (fd, offset); *xst = (Xst *) wvMalloc (sizeof (Xst)); authorlist = *xst; if (authorlist == NULL) { wvError (("not enough mem for annotation group\n")); return; } authorlist->next = NULL; authorlist->u16string = NULL; authorlist->noofstrings = 0; current = authorlist; while (count < len) { clen = read_16ubit (fd); count += 2; current->u16string = (U16 *) wvMalloc ((clen + 1) * sizeof (U16)); authorlist->noofstrings++; if (current->u16string == NULL) { wvError ( ("not enough mem for author string of clen %d\n", clen)); break; } for (i = 0; i < clen; i++) { current->u16string[i] = read_16ubit (fd); count += 2; } current->u16string[i] = '\0'; if (count < len) { current->next = (Xst *) wvMalloc (sizeof (Xst)); if (current->next == NULL) { wvError (("not enough mem for annotation group\n")); break; } current = current->next; current->next = NULL; current->u16string = NULL; } } } ��������������������������������������������������������������������wv-1.2.9/wvPDF.in�����������������������������������������������������������������������������������0000664�0000764�0000764�00000016747�11247156607�010460� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh wv_script_name="$0" which latex >/dev/null 2>&1 if [ ${?} -ne "0" ]; then echo "Could not find required program 'latex'" exit 1 fi which dvips >/dev/null 2>&1 if [ ${?} -ne "0" ]; then echo "Could not find required program 'dvips'" exit 1 fi distiller="none" which distill >/dev/null 2>&1 if [ ${?} -ne "0" ]; then which ps2pdf >/dev/null 2>&1 if [ ${?} -ne "0" ]; then distiller="none" else distiller="ps2pdf" fi else distiller="distill" fi if test "$distiller" = "none"; then echo "Could not find required program(s) 'distill' or 'ps2pdf'" exit 1 fi prefix=@prefix@ exec_prefix= datadir= t_dir=. wv_opts= i_file= o_file= print_help=no while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg ;; --exec-prefix=*) exec_prefix=$optarg ;; --datadir=*) datadir=$optarg ;; --targetdir=*) t_dir=$optarg ;; --charset=* | --password=*) wv_opts="$wv_opts $1" ;; -v | --version) echo @VERSION@ exit 0 ;; -\? | -h | --help) cat << EOF Usage: $wv_script_name [OPTIONS] <input-file> <output-file> Options: --prefix=<DIR> Set prefix (default is @prefix@) --exec-prefix=<DIR> Set exec_prefix (default is @exec_prefix@) --datadir=<DIR> Set datadir (default is @datadir@) --targetdir=<DIR> Target directory (target is <DIR>/<output-file>) --charset=<charset> Specify an iconv charset encoding --password=<password> Specify password for encrypted -v, --version Print version info and exit Authors: Dom Lachowicz (dominicl@seas.upenn.edu) Caolan McNamara (original author) Visit http://www.wvware.com/ EOF exit 0 ;; -?*) echo "Option '$1' not recognized." exit 1 ;; *) if test "x$i_file" = "x"; then i_file=$1 elif test "x$o_file" = "x"; then o_file=$1 else echo "Option '$1' not recognized." exit 1 fi ;; esac shift done if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as input" exit 1 fi if test -r "$i_file"; then okay=yes else echo "error: '$i_file' unreadable" exit 1 fi if test "x$o_file" = "x"; then echo "Usage: $1 [OPTIONS] <input-file> <output-file>" exit 1 fi if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as output" exit 1 fi name=`basename "$o_file"` if test "x$o_file" != "x$name"; then t_dir=`dirname "$o_file"` o_file=$name fi name=`basename "$o_file" | sed "s/ /_/g"` name=`echo $name | sed 's/\.[^\.]*$//'` if test "x$exec_prefix" = "x"; then exec_prefix=@exec_prefix@ fi wv_exec="$exec_prefix/bin/wvWare" if test -x "$wv_exec"; then okay=yes else wv_version=`wvWare -v 2>&1 | cut -f 2 -d " "` if test "x$wv_version" = "x@VERSION@"; then wv_exec="wvWare" else echo "error: no executable at '$wv_exec' or in path" exit 1 fi fi if test "x$datadir" = "x"; then datadir=@datadir@ fi xmlcfg="$datadir/wv/wvLaTeX.xml" if test -r "$xmlcfg"; then okay=yes else echo "error: '$xmlcfg' unreadable" exit 1 fi if test -d "$t_dir"; then if test -w "$t_dir"; then okay=yes else echo "error: '$t_dir' is not writable" exit 1 fi else echo "error: '$t_dir' is not a directory" exit 1 fi # auto_wmf=`"$wv_exec" --auto-eps=wmf` # auto_emf=`"$wv_exec" --auto-eps=emf` # auto_png=`"$wv_exec" --auto-eps=png` # auto_jpg=`"$wv_exec" --auto-eps=jpg` # auto_pict=`"$wv_exec" --auto-eps=pict` im_chk=`convert --help 2>&1 | grep -v ImageMagick` if test "x$im_chk" = "x"; then im_chk="no" s_img="" else im_chk="yes" # if we have ImageMagick's convert, then use that to convert PNG, JPEG & PICT # to EPS. Therefore, need to suppress wvWare's desire to convert these: s_img="png,jpg,pict" fi "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" -s "$s_img" > "$t_dir"/"$name".tex cd "$t_dir" echo echo 'Current directory: '`pwd` # First, convert any images i_okay=yes for i_name in "$name"*.wmf; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/wmf$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done for i_name in "$name"*.emf; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/emf$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi done for i_name in "$name"*.png; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/png$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done for i_name in "$name"*.jpg; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/jpg$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done for i_name in "$name"*.pict; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/pict$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done if test "$i_okay" = "no"; then echo 'WARNING: Failed to convert one or more images to EPS' fi # "$name".tex is the LaTeX file # use latex to convert this to DVI latex --interaction=batchmode "$name".tex >/dev/null 2>&1 # check latex exit status and comment or clean up if [ ${?} -ne "0" ]; then echo "Some problem running latex." echo "Check for Errors in $name.log" echo "Continuing..." else rm -f "$name".aux "$name".log "$name".tex fi # latex replaces the "tex" extension with a "dvi" extension if [ ! -f "$name".dvi ]; then echo "Conversion into dvi failed" exit 1 fi dvips -o "$name".ps "$name".dvi >/dev/null 2>&1 if [ ${?} -ne "0" ]; then echo "Could not convert into Postscript" exit 1 fi #clean up rm -f "$name".dvi if test "$distiller" = "distill"; then distill "$name".ps >/dev/null 2>&1 else ps2pdf "$name".ps "$name".ps.pdf >/dev/null 2>&1 fi if [ ${?} -ne "0" ]; then echo "Could not convert into PDF" exit 1 fi cp -f "$name".ps.pdf "$o_file" #clean up rm -f "$name".ps "$name".ps.log "$name".ps.pdf �������������������������wv-1.2.9/frd.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000003441�11247156607�010044� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetFRD (FRD * item, wvStream * fd) { item->frd = (S16) read_16ubit (fd); } int wvGetFRD_PLCF (FRD ** frd, U32 ** pos, U32 * nofrd, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *frd = NULL; *pos = NULL; *nofrd = 0; } else { *nofrd = (len - 4) / 6; *pos = (U32 *) wvMalloc ((*nofrd + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nofrd + 1) * sizeof (U32))); return (1); } *frd = (FRD *) wvMalloc (*nofrd * sizeof (FRD)); if (*frd == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nofrd * sizeof (FRD))); wvFree (pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i <= *nofrd; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *nofrd; i++) wvGetFRD (&((*frd)[i]), fd); } return (0); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/twips.c������������������������������������������������������������������������������������0000664�0000764�0000764�00000004274�11247156606�010443� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" /* basically the definition of a twip is that there are 1440 twips per inch, now for html we need this figure in pixels, so we have to take some screen resolution as a standard to work from. if we were to take hozitontal twips and a 1280 pixel wide screen then there are 1440 twips per 75 pixels if we were to take vertical twips and a 1024 pixel high screen then there are 1440 twips per 75 pixels */ #define TWIPS_PER_INCH 1440 #if 0 #define PIXELS_PER_H_INCH 75 #define PIXELS_PER_V_INCH 75 #else #define PIXELS_PER_H_INCH 100 #define PIXELS_PER_V_INCH 100 #endif static S16 pperhi = PIXELS_PER_H_INCH; static S16 ppervi = PIXELS_PER_V_INCH; void wvSetPixelsPerInch (S16 hpixels, S16 vpixels) { pperhi = hpixels; ppervi = vpixels; } float wvTwipsToHPixels (S16 twips) { float ret = ((float) (pperhi * twips)) / TWIPS_PER_INCH; wvTrace (("ret is %f\n", ret)); return (ret); } float wvTwipsToVPixels (S16 twips) { float ret = ((float) (ppervi * twips)) / TWIPS_PER_INCH; wvTrace (("ret is %f\n", ret)); return (ret); } float wvTwipsToMM (S16 twips) { float ret; ret = ((float) twips) / TWIPS_PER_INCH; ret = ret * (float) 25.0; return (ret); } /* [A twip ] is one-twentieth of a point size*/ float wvPointsToMM (S16 points) { return (wvTwipsToMM ((S16) (points * 20))); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvLatex.in���������������������������������������������������������������������������������0000664�0000764�0000764�00000006057�11247156607�011115� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh wv_script_name="$0" prefix=@prefix@ exec_prefix= datadir= t_dir=. wv_opts= i_file= o_file= print_help=no while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg ;; --exec-prefix=*) exec_prefix=$optarg ;; --datadir=*) datadir=$optarg ;; --targetdir=*) t_dir=$optarg ;; --charset=* | --password=*) wv_opts="$wv_opts $1" ;; -v | --version) echo @VERSION@ exit 0 ;; -\? | -h | --help) cat << EOF Usage: $wv_script_name [OPTIONS] <input-file> <output-file> Options: --prefix=<DIR> Set prefix (default is @prefix@) --exec-prefix=<DIR> Set exec_prefix (default is @exec_prefix@) --datadir=<DIR> Set datadir (default is @datadir@) --targetdir=<DIR> Target directory (target is <DIR>/<output-file>) --charset=<charset> Specify an iconv charset encoding --password=<password> Specify password for encrypted -v, --version Print version info and exit Authors: Dom Lachowicz (dominicl@seas.upenn.edu) Caolan McNamara (original author) Visit http://www.wvware.com/ EOF exit 0 ;; -?*) echo "Option '$1' not recognized." exit 1 ;; *) if test "x$i_file" = "x"; then i_file=$1 elif test "x$o_file" = "x"; then o_file=$1 else echo "Option '$1' not recognized." exit 1 fi ;; esac shift done if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as input" exit 1 fi if test -r "$i_file"; then okay=yes else echo "error: '$i_file' unreadable" exit 1 fi if test "x$o_file" = "x"; then echo "Usage: $1 [OPTIONS] <input-file> <output-file>" exit 1 fi name=`basename "$o_file"` if test "x$o_file" != "x$name"; then echo "* * * Better to use '--targetdir' for writing in another directory * * *" exit 1 fi sp_chk=`echo $name | sed "s/ /_/g"` if test "x$name" != "x$sp_chk"; then echo "sorry, LaTeX file names cannot contain spaces." exit 1 fi name=`echo $name | sed 's/\.[^\.]*$//'` if test "x$exec_prefix" = "x"; then exec_prefix=@exec_prefix@ fi wv_exec="$exec_prefix/bin/wvWare" if test -x "$wv_exec"; then okay=yes else wv_version=`wvWare -v 2>&1 | cut -f 2 -d " "` if test "x$wv_version" = "x@VERSION@"; then wv_exec="wvWare" else echo "error: no executable at '$wv_exec' or in path" exit 1 fi fi if test "x$datadir" = "x"; then datadir=@datadir@ fi xmlcfg="$datadir/wv/wvLaTeX.xml" if test -r "$xmlcfg"; then okay=yes else echo "error: '$xmlcfg' unreadable" exit 1 fi if test -d "$t_dir"; then if test -w "$t_dir"; then okay=yes else echo "error: '$t_dir' is not writable" exit 1 fi else echo "error: '$t_dir' is not a directory" exit 1 fi if test "x$o_file" = "x-"; then "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" else "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" > "$t_dir"/"$o_file" fi ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvWml.in�����������������������������������������������������������������������������������0000664�0000764�0000764�00000005560�11247156607�010575� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh wv_script_name="$0" prefix=@prefix@ exec_prefix= datadir= t_dir=. wv_opts= i_file= o_file= print_help=no while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg ;; --exec-prefix=*) exec_prefix=$optarg ;; --datadir=*) datadir=$optarg ;; --targetdir=*) t_dir=$optarg ;; --charset=* | --password=*) wv_opts="$wv_opts $1" ;; -v | --version) echo @VERSION@ exit 0 ;; -\? | -h | --help) cat << EOF Usage: $wv_script_name [OPTIONS] <input-file> <output-file> Options: --prefix=<DIR> Set prefix (default is @prefix@) --exec-prefix=<DIR> Set exec_prefix (default is @exec_prefix@) --datadir=<DIR> Set datadir (default is @datadir@) --targetdir=<DIR> Target directory (target is <DIR>/<output-file>) --charset=<charset> Specify an iconv charset encoding --password=<password> Specify password for encrypted -v, --version Print version info and exit Authors: Dom Lachowicz (dominicl@seas.upenn.edu) Caolan McNamara (original author) Visit http://www.wvware.com/ EOF exit 0 ;; -?*) echo "Option '$1' not recognized." exit 1 ;; *) if test "x$i_file" = "x"; then i_file=$1 elif test "x$o_file" = "x"; then o_file=$1 else echo "Option '$1' not recognized." exit 1 fi ;; esac shift done if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as input" exit 1 fi if test -r "$i_file"; then okay=yes else echo "error: '$i_file' unreadable" exit 1 fi if test "x$o_file" = "x"; then echo "Usage: $1 [OPTIONS] <input-file> <output-file>" exit 1 fi name=`basename "$o_file"` if test "x$o_file" != "x$name"; then t_dir=`dirname "$o_file"` o_file=$name fi name=`echo $name | sed 's/\.[^\.]*$//'` if test "x$exec_prefix" = "x"; then exec_prefix=@exec_prefix@ fi wv_exec="$exec_prefix/bin/wvWare" if test -x "$wv_exec"; then okay=yes else wv_version=`wvWare -v 2>&1 | cut -f 2 -d " "` if test "x$wv_version" = "x@VERSION@"; then wv_exec="wvWare" else echo "error: no executable at '$wv_exec' or in path" exit 1 fi fi if test "x$datadir" = "x"; then datadir=@datadir@ fi xmlcfg="$datadir/wv/wvWml.xml" if test -r "$xmlcfg"; then okay=yes else echo "error: '$xmlcfg' unreadable" exit 1 fi if test -d "$t_dir"; then if test -w "$t_dir"; then okay=yes else echo "error: '$t_dir' is not writable" exit 1 fi else echo "error: '$t_dir' is not a directory" exit 1 fi if test "x$o_file" = "x-"; then "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" else "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" > "$t_dir"/"$o_file" fi ������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/chp.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000046131�11247156606�010045� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" #include "bintree.h" /* * To apply a UPX.chpx to a UPE.chp, apply the UPX.chpx.grpprl to * UPE.chp. Note that a UPE.chp for a paragraph style should always have * UPE.chp.istd == istdNormalChar. */ void wvAddCHPXFromBucket (CHP * achp, UPXF * upxf, STSH * stsh) { U8 *pointer; U16 i = 0; U16 sprm; #ifdef SPRMTEST fprintf (stderr, "\n"); while (i < upxf->cbUPX) { fprintf (stderr, "%x (%d) ", *(upxf->upx.chpx.grpprl + i), *(upxf->upx.chpx.grpprl + i)); i++; } fprintf (stderr, "\n"); i = 0; #endif while (i + 2 < upxf->cbUPX) /* is this check sufficient ?? */ { sprm = bread_16ubit (upxf->upx.chpx.grpprl + i, &i); #ifdef SPRMTEST wvError (("sprm is %x, i is %d\n", sprm, i)); #endif pointer = upxf->upx.chpx.grpprl + i; wvApplySprmFromBucket (WORD8, sprm, NULL, achp, NULL, stsh, pointer, &i, NULL); } } void wvApplyCHPXFromBucket (CHP * achp, CHPX * chpx, STSH * stsh) { U8 *pointer; U16 i = 0; U16 sprm; #ifdef SPRMTEST fprintf (stderr, "\n"); while (i < chpx->cbGrpprl) { fprintf (stderr, "%x (%d) ", *(chpx->grpprl + i), *(chpx->grpprl + i)); i++; } fprintf (stderr, "\n"); i = 0; #endif while (i < chpx->cbGrpprl) { sprm = bread_16ubit (chpx->grpprl + i, &i); wvTrace (("the sprm is %d\n", sprm)); pointer = chpx->grpprl + i; wvApplySprmFromBucket (WORD8, sprm, NULL, achp, NULL, stsh, pointer, &i, NULL); } achp->istd = chpx->istd; } void wvAddCHPXFromBucket6 (CHP * achp, UPXF * upxf, STSH * stsh) { U8 *pointer; U16 i = 0; U8 sprm8; U16 sprm; wvTrace (("cbUPX word 6 is %d\n", upxf->cbUPX)); #ifdef SPRMTEST fprintf (stderr, "\n"); while (i < upxf->cbUPX) { fprintf (stderr, "%x (%d) ", *(upxf->upx.chpx.grpprl + i), *(upxf->upx.chpx.grpprl + i)); i++; } fprintf (stderr, "\n"); i = 0; #endif while (i < upxf->cbUPX) { sprm8 = bread_8ubit (upxf->upx.chpx.grpprl + i, &i); #ifdef SPRMTEST wvError (("chp word 6 sprm is %x (%d)\n", sprm8, sprm8)); #endif sprm = (U16) wvGetrgsprmWord6 (sprm8); #ifdef SPRMTEST wvError (("chp word 6 sprm is converted to %x\n", sprm)); #endif pointer = upxf->upx.chpx.grpprl + i; wvApplySprmFromBucket (WORD6, sprm, NULL, achp, NULL, stsh, pointer, &i, NULL); } } void wvInitCHPFromIstd (CHP * achp, U16 istdBase, STSH * stsh) { wvTrace (("initing from %d\n", istdBase)); if (istdBase == istdNil) { wvInitCHP (achp); /* Set the Nil style's fonts from the defaults. */ achp->ftcAscii = stsh->Stshi.rgftcStandardChpStsh[0]; achp->ftcFE = stsh->Stshi.rgftcStandardChpStsh[1]; achp->ftcOther = stsh->Stshi.rgftcStandardChpStsh[2]; } else { if (istdBase >= stsh->Stshi.cstd) { wvError ( ("ISTD out of bounds, requested %d of %d\n", istdBase, stsh->Stshi.cstd)); wvInitCHP (achp); /*it can't hurt to try and start with a blank istd */ return; } else { if (stsh->std[istdBase].cupx == 0) /*empty slot in the array, i don't think this should happen */ { wvTrace (("Empty style slot used (chp)\n")); wvInitCHP (achp); } else { wvTrace (("type is %d\n", stsh->std[istdBase].sgc)); switch (stsh->std[istdBase].sgc) { case sgcPara: wvCopyCHP (achp, &(stsh->std[istdBase].grupe[1].achp)); break; case sgcChp: wvInitCHP (achp); wvApplyCHPXFromBucket (achp, &(stsh->std[istdBase]. grupe[0].chpx), stsh); strncpy(achp->stylename,stsh->std[istdBase].xstzName, sizeof(achp->stylename)); break; } } } } } /* The standard CHP is all zeros except: hps 20 half-points fcPic -1 istd 10 (the standard character style) lidDefault, lidFE 0x0400 (no proofing) wCharScale 100 fUsePgsuSettings -1 */ void wvInitCHP (CHP * item) { int i; item->fBold = 0; item->fItalic = 0; item->fRMarkDel = 0; item->fOutline = 0; item->fFldVanish = 0; item->fSmallCaps = 0; item->fCaps = 0; item->fVanish = 0; item->fRMark = 0; item->fSpec = 0; item->fStrike = 0; item->fObj = 0; item->fShadow = 0; item->fLowerCase = 0; item->fData = 0; item->fOle2 = 0; item->fEmboss = 0; item->fImprint = 0; item->fDStrike = 0; item->fUsePgsuSettings = -1; /*-1 ? */ item->reserved1 = 0; item->reserved2 = 0; item->reserved11 = 0; item->ftc = 0; item->ftcAscii = 0; item->ftcFE = 0; item->ftcOther = 0; item->hps = 20; item->dxaSpace = 0; item->iss = 0; item->kul = 0; item->fSpecSymbol = 0; item->ico = 0; item->reserved3 = 0; item->fSysVanish = 0; item->hpsPos = 0; item->super_sub = 0; item->lid = 0; item->lidDefault = 0x0400; item->lidFE = 0x0400; item->idct = 0; item->idctHint = 0; item->wCharScale = 100; item->fcPic_fcObj_lTagObj = -1; item->ibstRMark = 0; item->ibstRMarkDel = 0; wvInitDTTM (&item->dttmRMark); wvInitDTTM (&item->dttmRMarkDel); item->reserved4 = 0; item->istd = istdNormalChar; item->ftcSym = 0; item->xchSym = 0; item->idslRMReason = 0; item->idslReasonDel = 0; item->ysr = 0; item->chYsr = 0; item->cpg = 0; item->hpsKern = 0; item->icoHighlight = 0; item->fHighlight = 0; item->kcd = 0; item->fNavHighlight = 0; item->fChsDiff = 0; item->fMacChs = 0; item->fFtcAsciSym = 0; item->reserved5 = 0; item->fPropRMark = 0; item->ibstPropRMark = 0; wvInitDTTM (&item->dttmPropRMark); item->sfxtText = 0; item->reserved6 = 0; item->reserved7 = 0; item->reserved8 = 0; item->reserved9 = 0; wvInitDTTM (&item->reserved10); item->fDispFldRMark = 0; item->ibstDispFldRMark = 0; wvInitDTTM (&item->dttmDispFldRMark); for (i = 0; i < 16; i++) item->xstDispFldRMark[i] = 0; wvInitSHD (&item->shd); wvInitBRC (&item->brc); /* bidi */ item->fBidi = 0; item->fBoldBidi = 0; item->fItalicBidi = 0; item->ftcBidi = 0; item->hpsBidi = 0; item->icoBidi = 0; item->lidBidi = 0; item->stylename[0] = 0; } void wvCopyCHP (CHP * dest, CHP * src) { int i; dest->fBold = src->fBold; dest->fItalic = src->fItalic; dest->fRMarkDel = src->fRMarkDel; dest->fOutline = src->fOutline; dest->fFldVanish = src->fFldVanish; dest->fSmallCaps = src->fSmallCaps; dest->fCaps = src->fCaps; dest->fVanish = src->fVanish; dest->fRMark = src->fRMark; dest->fSpec = src->fSpec; dest->fStrike = src->fStrike; dest->fObj = src->fObj; dest->fShadow = src->fShadow; dest->fLowerCase = src->fLowerCase; dest->fData = src->fData; dest->fOle2 = src->fOle2; dest->fEmboss = src->fEmboss; dest->fImprint = src->fImprint; dest->fDStrike = src->fDStrike; dest->fUsePgsuSettings = src->fUsePgsuSettings; dest->reserved1 = src->reserved1; dest->reserved2 = src->reserved2; dest->reserved11 = src->reserved11; dest->ftc = src->ftc; dest->ftcAscii = src->ftcAscii; dest->ftcFE = src->ftcFE; dest->ftcOther = src->ftcOther; dest->hps = src->hps; dest->dxaSpace = src->dxaSpace; dest->iss = src->iss; dest->kul = src->kul; dest->fSpecSymbol = src->fSpecSymbol; dest->ico = src->ico; dest->reserved3 = src->reserved3; dest->fSysVanish = src->fSysVanish; dest->hpsPos = src->hpsPos; dest->super_sub = src->super_sub; dest->lid = src->lid; dest->lidDefault = src->lidDefault; dest->lidFE = src->lidFE; dest->idct = src->idct; dest->idctHint = src->idctHint; dest->wCharScale = src->wCharScale; dest->fcPic_fcObj_lTagObj = src->fcPic_fcObj_lTagObj; dest->ibstRMark = src->ibstRMark; dest->ibstRMarkDel = src->ibstRMarkDel; wvCopyDTTM (&dest->dttmRMark, &src->dttmRMark); wvCopyDTTM (&dest->dttmRMarkDel, &src->dttmRMarkDel); dest->reserved4 = src->reserved4; dest->istd = src->istd; dest->ftcSym = src->ftcSym; dest->xchSym = src->xchSym; dest->idslRMReason = src->idslRMReason; dest->idslReasonDel = src->idslReasonDel; dest->ysr = src->ysr; dest->chYsr = src->chYsr; dest->cpg = src->cpg; dest->hpsKern = src->hpsKern; dest->icoHighlight = src->icoHighlight; dest->fHighlight = src->fHighlight; dest->kcd = src->kcd; dest->fNavHighlight = src->fNavHighlight; dest->fChsDiff = src->fChsDiff; dest->fMacChs = src->fMacChs; dest->fFtcAsciSym = src->fFtcAsciSym; dest->reserved5 = src->reserved5; dest->fPropRMark = src->fPropRMark; dest->ibstPropRMark = src->ibstPropRMark; wvCopyDTTM (&dest->dttmPropRMark, &src->dttmPropRMark); dest->sfxtText = src->sfxtText; dest->reserved6 = src->reserved6; dest->reserved7 = src->reserved7; dest->reserved8 = src->reserved8; dest->reserved9 = src->reserved9; wvCopyDTTM (&dest->reserved10, &src->reserved10); dest->fDispFldRMark = src->fDispFldRMark; dest->ibstDispFldRMark = src->ibstDispFldRMark; wvCopyDTTM (&dest->dttmDispFldRMark, &src->dttmDispFldRMark); for (i = 0; i < 16; i++) dest->xstDispFldRMark[i] = src->xstDispFldRMark[i]; wvCopySHD (&dest->shd, &src->shd); wvCopyBRC (&dest->brc, &src->brc); /* bidi */ dest->fBidi = src->fBidi; dest->fBoldBidi = src->fBoldBidi; dest->fItalicBidi = src->fItalicBidi; dest->ftcBidi = src->ftcBidi; dest->hpsBidi = src->hpsBidi; dest->icoBidi = src->icoBidi; dest->lidBidi = src->lidBidi; strcpy(dest->stylename,src->stylename); } /* * The chpx for the null style has an istd of zero, a cbGrpprl of zero * (and an empty grpprl) this only exists in the UPD/UPE */ void wvInitCHPX (CHPX * item) { item->istd = 0; item->cbGrpprl = 0; item->grpprl = NULL; } /* * For a character style, the UPE.chpx can be constructed by starting with * the first UPE from the based-on style (std.istdBase). */ void wvInitCHPXFromIstd (CHPX * chpx, U16 istdBase, STSH * stsh) { if (istdBase == istdNil) wvInitCHPX (chpx); else { if (istdBase >= stsh->Stshi.cstd) { wvError ( ("ISTD out of bounds, requested %d of %d\n", istdBase, stsh->Stshi.cstd)); wvInitCHPX (chpx); /*it can't hurt to try and start with a blank istd */ return; } else wvCopyCHPX (chpx, &(stsh->std[istdBase].grupe[0].chpx)); } } void wvCopyCHPX (CHPX * dest, CHPX * src) { int i; dest->istd = src->istd; dest->cbGrpprl = src->cbGrpprl; if (dest->cbGrpprl) dest->grpprl = (U8 *) wvMalloc (dest->cbGrpprl); else dest->grpprl = NULL; if (dest->grpprl == NULL || src->grpprl == NULL) return; for (i = 0; i < dest->cbGrpprl; i++) dest->grpprl[i] = src->grpprl[i]; } void wvReleaseCHPX (CHPX * item) { wvFree (item->grpprl); } int wvCompLT (void *a, void *b) { U8 *a2, *b2; U16 sprm1, sprm2; a2 = (U8 *) a; b2 = (U8 *) b; sprm1 = sread_16ubit (a2); sprm2 = sread_16ubit (b2); return (sprm1 < sprm2); } int wvCompEQ (void *a, void *b) { U8 *a2, *b2; U16 sprm1, sprm2; a2 = (U8 *) a; b2 = (U8 *) b; sprm1 = sread_16ubit (a2); sprm2 = sread_16ubit (b2); return (sprm1 == sprm2); } /* Apply the first UPX (UPX.chpx) in std.grupx to the UPE. To apply a UPX.chpx to a UPE.chpx, take the grpprl in UPE.chpx.grpprl (which has a length of UPE.chpx.cbGrpprl) and merge the grpprl in UPX.chpx.grpprl into it. Merging grpprls is a tricky business, but for character styles it is easy because no prls in character style grpprls should interact with each other. Each prl from the source (the UPX.chpx.grpprl) should be inserted into the destination (the UPE.chpx.grpprl) so that the sprm of each prl is in increasing order, and any prls that have the same sprm are replaced by the prl in the source. UPE.chpx.cbGrpprl is then set to the length of resulting grpprl, and UPE.chpx.istd is set to the style's istd. */ void wvMergeCHPXFromBucket (CHPX * dest, UPXF * src) { BintreeInfo tree; Node *testn, *testp; U16 i = 0, j; U16 sprm; U8 len = 0; U8 temp; Node *test = NULL; U8 *pointer, *dpointer; U8 *grpprl = NULL; /* use a binary tree ala the wmf stuff and first insert every dest sprm into it, then insert every src sprm into it, take the full count and take them out of the tree and create the list from them */ InitBintree (&tree, wvCompLT, wvCompEQ); pointer = dest->grpprl; while (i < dest->cbGrpprl) { wvTrace (("gotcha the sprm is %x\n", *((U16 *) pointer))); test = InsertNode (&tree, (void *) pointer); sprm = dread_16ubit (NULL, &pointer); wvTrace (("the sprm is %x\n", sprm)); temp = wvEatSprm (sprm, pointer, &i); pointer += temp; i += 2; if (test) len += temp + 2; } i = 0; pointer = src->upx.chpx.grpprl; i = 0; while (i < src->cbUPX) { /*wvTrace(("gotcha 2 the sprm is %x\n",*((U16 *)pointer))); */ test = InsertNode (&tree, (void *) pointer); if(!pointer) break; sprm = dread_16ubit (NULL, &pointer); i += 2; wvTrace (("the sprm is %x\n", sprm)); temp = wvEatSprm (sprm, pointer, &i); wvTrace (("len of op is %d\n", temp)); pointer += temp; wvTrace (("p dis is %d\n", pointer - src->upx.chpx.grpprl)); if (test) len += temp + 2; } if (len != 0) grpprl = (U8 *) wvMalloc (len); else return; dpointer = grpprl; testn = NextNode (&tree, NULL); while (testn != NULL) { pointer = (U8 *) testn->Data; sprm = sread_16ubit (pointer); wvTrace (("methinks the sprm is %x\n", sprm)); pointer += 2; i = 0; wvEatSprm (sprm, pointer, &i); wvTrace (("i is now %d\n", i)); pointer = (U8 *) testn->Data; for (j = 0; j < i + 2; j++) *dpointer++ = *pointer++; testp = NextNode (&tree, testn); wvDeleteNode (&tree, testn); testn = testp; } wvFree (dest->grpprl); dest->grpprl = grpprl; dest->cbGrpprl = len; /*test */ i = 0; pointer = dest->grpprl; while (i < dest->cbGrpprl) { sprm = dread_16ubit (NULL, &pointer); wvTrace (("final test the sprm is %x\n", sprm)); temp = wvEatSprm (sprm, pointer, &i); pointer += temp; i += 2; if (test) len += temp + 2; } } void wvUpdateCHPXBucket (UPXF * src) { U16 i = 0, j; U16 sprm; U8 sprm8; U16 len = 0; int temp; U8 *pointer, *dpointer; U8 *grpprl = NULL; i = 0; if (src->cbUPX == 0) return; pointer = src->upx.chpx.grpprl; wvTrace (("Msrc->cbUPX len is %d\n", src->cbUPX)); for (i = 0; i < src->cbUPX; i++) wvTrace (("%x\n", src->upx.chpx.grpprl[i])); wvTrace (("Mend\n")); i = 0; len = 0; while (i < src->cbUPX) { sprm8 = dread_8ubit (NULL, &pointer); wvTrace (("Mpre the sprm is %x\n", sprm8)); sprm = (U16) wvGetrgsprmWord6 (sprm8); wvTrace (("Mpost the sprm is %x\n", sprm)); i++; len += 2; temp = wvEatSprm (sprm, pointer, &i); wvTrace (("Mlen of op is %d\n", temp)); pointer += temp; wvTrace (("Mp dis is %d\n", pointer - src->upx.chpx.grpprl)); len += temp; } wvTrace (("Mlen ends up as %d\n", len)); if (len == 0) return; grpprl = (U8 *) wvMalloc (len); dpointer = grpprl; i = 0; pointer = src->upx.chpx.grpprl; while (i < src->cbUPX) { sprm8 = dread_8ubit (NULL, &pointer); sprm = (U16) wvGetrgsprmWord6 (sprm8); i++; *dpointer++ = (sprm & 0x00FF); *dpointer++ = (sprm & 0xff00) >> 8; temp = wvEatSprm (sprm, pointer, &i); for (j = 0; j < temp; j++) *dpointer++ = *pointer++; wvTrace (("Mlen of op is %d\n", temp)); } wvFree (src->upx.chpx.grpprl); src->upx.chpx.grpprl = grpprl; src->cbUPX = len; for (i = 0; i < src->cbUPX; i++) wvTrace (("%x\n", src->upx.chpx.grpprl[i])); } /* * taken from wvAssembleSimplePAP in pap.c and modified * to handle CHP's * -JB */ int wvAssembleSimpleCHP (wvVersion ver, CHP * achp, const PAP * apap, U32 fc, CHPX_FKP * fkp, STSH * stsh) { CHPX *chpx; int index; UPXF upxf; int ret = 0; U16 tistd; /* initialize CHP to para's stylesheet character properties this * should have resolved all the other stylesheet dependencies * for us, when the stsh's were initialized. */ wvInitCHPFromIstd (achp, apap->istd, stsh); /* having done this, we want to set the achp->istd to nil, since any char istd value stored in the para style is not applicable (its a para style */ achp->istd = istdNil; tistd = istdNil; apply_chpx: /* get CHPX */ if(fkp) { /* the PAPX version of the function only looks at rgfc's, which are * the same for CHPX and PAPX FKPs, so we'll reuse the function */ index = wvGetIndexFCInFKP_PAPX ((PAPX_FKP *) fkp, fc); wvTrace (("index is %d, using %d\n", index, index - 1)); chpx = &(fkp->grpchpx[index - 1]); /* apply CHPX from FKP */ if ((chpx) && (chpx->cbGrpprl > 0)) { ret = 1; /* for (i = 0; i < chpx->cbGrpprl; i++) */ upxf.cbUPX = chpx->cbGrpprl; upxf.upx.chpx.grpprl = chpx->grpprl; if (ver == WORD8) wvAddCHPXFromBucket (achp, &upxf, stsh); else wvAddCHPXFromBucket6 (achp, &upxf, stsh); } if(achp->istd < stsh->Stshi.cstd) { if (0 != stsh->std[achp->istd].xstzName) { strncpy(achp->stylename,stsh->std[achp->istd].xstzName, sizeof(achp->stylename)); } else { wvError (("trying to copy null string\n")); } } if(achp->istd != tistd) { /* the chpx contained instruction to apply character style: we have to start all over again, since we init the chp from the wrong (paragraph) style */ tistd = achp->istd; wvInitCHPFromIstd (achp, achp->istd, stsh); goto apply_chpx; } } return (ret); } void wvGetCHPX (wvVersion ver, CHPX * item, U8 * page, U16 * pos) { U8 i; item->cbGrpprl = bread_8ubit (&(page[*pos]), pos); if (item->cbGrpprl > 0) { item->grpprl = (U8 *) wvMalloc (item->cbGrpprl); memcpy (item->grpprl, &(page[*pos]), item->cbGrpprl); } else item->grpprl = NULL; item->istd = 0; /* I have no idea what to set this to... -- nothing; the istd is contained in the grpprl*/ for (i = 0; i < item->cbGrpprl; i++) wvTrace (("chpx byte is %x\n", item->grpprl[i])); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/missing������������������������������������������������������������������������������������0000755�0000764�0000764�00000026233�11265376463�010532� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to <bug-automake@gnu.org>." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/clx.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000022756�11247156607�010071� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" void wvReleaseCLX (CLX * clx) { U16 i; for (i = 0; i < clx->grpprl_count; i++) wvFree (clx->grpprl[i]); wvFree (clx->grpprl); wvFree (clx->cbGrpprl); wvReleasePCD_PLCF (clx->pcd, clx->pos); } void wvBuildCLXForSimple6 (CLX * clx, FIB * fib) { wvInitCLX (clx); clx->nopcd = 1;; clx->pcd = (PCD *) wvMalloc (clx->nopcd * sizeof (PCD)); clx->pos = (U32 *) wvMalloc ((clx->nopcd + 1) * sizeof (U32)); clx->pos[0] = 0; clx->pos[1] = fib->ccpText; wvInitPCD (&(clx->pcd[0])); clx->pcd[0].fc = fib->fcMin; /* reverse the special encoding thing they do for word97 if we are using the usual 8 bit chars */ if (fib->fExtChar == 0) { clx->pcd[0].fc *= 2; clx->pcd[0].fc |= 0x40000000UL; } clx->pcd[0].prm.fComplex = 0; clx->pcd[0].prm.para.var1.isprm = 0; /* these set the ones that *I* use correctly, but may break for other wv users, though i doubt it, im just marking a possible firepoint for the future */ } /* The complex part of a file (CLX) is composed of a number of variable-sized blocks of data. Recorded first are any grpprls that may be referenced by the plcfpcd (if the plcfpcd has no grpprl references, no grpprls will be recorded) followed by the plcfpcd. Each block in the complex part is prefaced by a clxt (clx type), which is a 1-byte code, either 1 (meaning the block contains a grpprl) or 2 (meaning this is the plcfpcd). A clxtGrpprl (1) is followed by a 2-byte cb which is the count of bytes of the grpprl. A clxtPlcfpcd (2) is followed by a 4-byte lcb which is the count of bytes of the piece table. A full saved file will have no clxtGrpprl's. */ void wvGetCLX (wvVersion ver, CLX * clx, U32 offset, U32 len, U8 fExtChar, wvStream * fd) { U8 clxt; U16 cb; U32 lcb, i, j = 0; wvTrace (("offset %x len %d\n", offset, len)); wvStream_goto (fd, offset); wvInitCLX (clx); while (j < len) { clxt = read_8ubit (fd); j++; if (clxt == 1) { cb = read_16ubit (fd); j += 2; clx->grpprl_count++; clx->cbGrpprl = (U16 *) realloc (clx->cbGrpprl, sizeof (U16) * clx->grpprl_count); clx->cbGrpprl[clx->grpprl_count - 1] = cb; clx->grpprl = (U8 **) realloc (clx->grpprl, sizeof (U8 *) * (clx->grpprl_count)); clx->grpprl[clx->grpprl_count - 1] = (U8 *) wvMalloc (cb); for (i = 0; i < cb; i++) clx->grpprl[clx->grpprl_count - 1][i] = read_8ubit (fd); j += i; } else if (clxt == 2) { if (ver == WORD8) { lcb = read_32ubit (fd); j += 4; } else { wvTrace (("Here so far\n")); #if 0 lcb = read_16ubit (fd); /* word 6 only has two bytes here */ j += 2; #endif lcb = read_32ubit (fd); /* word 6 specs appeared to have lied ! */ j += 4; } wvGetPCD_PLCF (&clx->pcd, &clx->pos, &clx->nopcd, wvStream_tell (fd), lcb, fd); j += lcb; if (ver <= WORD7) /* MV 28.8.2000 Appears to be valid */ { #if 0 /* DANGER !!, this is a completely mad attempt to differenciate between word 95 files that use 16 and 8 bit characters. It may not work, it attempt to err on the side of 8 bit characters. */ if (!(wvGuess16bit (clx->pcd, clx->pos, clx->nopcd))) #else /* I think that this is the correct reason for this behaviour */ if (fExtChar == 0) #endif for (i = 0; i < clx->nopcd; i++) { clx->pcd[i].fc *= 2; clx->pcd[i].fc |= 0x40000000UL; } } } else { wvError (("clxt is not 1 or 2, it is %d\n", clxt)); return; } } } void wvInitCLX (CLX * item) { item->pcd = NULL; item->pos = NULL; item->nopcd = 0; item->grpprl_count = 0; item->cbGrpprl = NULL; item->grpprl = NULL; } int wvGetPieceBoundsFC (U32 * begin, U32 * end, CLX * clx, U32 piececount) { int type; if ((piececount + 1) > clx->nopcd) { wvTrace ( ("piececount is > nopcd, i.e.%d > %d\n", piececount + 1, clx->nopcd)); return (-1); } *begin = wvNormFC (clx->pcd[piececount].fc, &type); if (type) *end = *begin + (clx->pos[piececount + 1] - clx->pos[piececount]); else *end = *begin + ((clx->pos[piececount + 1] - clx->pos[piececount]) * 2); return (type); } int wvGetPieceBoundsCP (U32 * begin, U32 * end, CLX * clx, U32 piececount) { if ((piececount + 1) > clx->nopcd) return (-1); *begin = clx->pos[piececount]; *end = clx->pos[piececount + 1]; return (0); } char * wvAutoCharset (wvParseStruct * ps) { U16 i = 0; int flag; char *ret; ret = "iso-8859-15"; /* If any of the pieces use unicode then we have to assume the worst and use utf-8 */ while (i < ps->clx.nopcd) { wvNormFC (ps->clx.pcd[i].fc, &flag); if (flag == 0) { ret = "UTF-8"; break; } i++; } /* Also if the document fib is not codepage 1252 we also have to assume the worst */ if (strcmp (ret, "UTF-8")) { if ( (ps->fib.lid != 0x407) && (ps->fib.lid != 0x807) && (ps->fib.lid != 0x409) && (ps->fib.lid != 0x807) && (ps->fib.lid != 0xC09)) ret = "UTF-8"; } return (ret); } int wvQuerySamePiece (U32 fcTest, CLX * clx, U32 piece) { /* wvTrace(("Same Piece, %x %x %x\n",fcTest,wvNormFC(clx->pcd[piece].fc,NULL),wvNormFC(clx->pcd[piece+1].fc,NULL))); if ( (fcTest >= wvNormFC(clx->pcd[piece].fc,NULL)) && (fcTest < wvNormFC(clx->pcd[piece+1].fc,NULL)) ) */ wvTrace ( ("Same Piece, %x %x %x\n", fcTest, clx->pcd[piece].fc, wvGetEndFCPiece (piece, clx))); if ((fcTest >= wvNormFC (clx->pcd[piece].fc, NULL)) && (fcTest < wvGetEndFCPiece (piece, clx))) return (1); return (0); } U32 wvGetPieceFromCP (U32 currentcp, CLX * clx) { U32 i = 0; while (i < clx->nopcd) { wvTrace ( ("i %d: currentcp is %d, clx->pos[i] is %d, clx->pos[i+1] is %d\n", i, currentcp, clx->pos[i], clx->pos[i + 1])); if ((currentcp >= clx->pos[i]) && (currentcp < clx->pos[i + 1])) return (i); i++; } wvTrace (("cp was not in any piece ! \n", currentcp)); return (0xffffffffL); } U32 wvGetEndFCPiece (U32 piece, CLX * clx) { int flag; U32 fc; U32 offset = clx->pos[piece + 1] - clx->pos[piece]; wvTrace (("offset is %x, befc is %x\n", offset, clx->pcd[piece].fc)); fc = wvNormFC (clx->pcd[piece].fc, &flag); wvTrace (("fc is %x, flag %d\n", fc, flag)); if (flag) fc += offset; else fc += offset * 2; wvTrace (("fc is finally %x\n", fc)); return (fc); } /* 1) search for the piece containing the character in the piece table. 2) Then calculate the FC in the file that stores the character from the piece table information. */ U32 wvConvertCPToFC (U32 currentcp, CLX * clx) { U32 currentfc = 0xffffffffL; U32 i = 0; int flag; while (i < clx->nopcd) { if ((currentcp >= clx->pos[i]) && (currentcp < clx->pos[i + 1])) { currentfc = wvNormFC (clx->pcd[i].fc, &flag); if (flag) currentfc += (currentcp - clx->pos[i]); else currentfc += ((currentcp - clx->pos[i]) * 2); break; } i++; } if (currentfc == 0xffffffffL) { i--; currentfc = wvNormFC (clx->pcd[i].fc, &flag); if (flag) currentfc += (currentcp - clx->pos[i]); else currentfc += ((currentcp - clx->pos[i]) * 2); wvTrace (("flaky cp to fc conversion underway\n")); } return (currentfc); } struct test { U32 fc; U32 offset; }; int compar (const void *a, const void *b) { struct test *one, *two; one = (struct test *) a; two = (struct test *) b; if (one->fc < two->fc) return (-1); else if (one->fc == two->fc) return (0); return (1); } /* In word 95 files there is no flag attached to each offset as there is in word 97 to tell you that we are talking about 16 bit chars, so I attempt here to make an educated guess based on overlapping offsets to figure it out, If I had some actual information as the how word 95 actually stores it it would help. */ int wvGuess16bit (PCD * pcd, U32 * pos, U32 nopcd) { struct test *fcs; U32 i; int ret = 1; fcs = (struct test *) wvMalloc (sizeof (struct test) * nopcd); for (i = 0; i < nopcd; i++) { fcs[i].fc = pcd[i].fc; fcs[i].offset = (pos[i + 1] - pos[i]) * 2; } qsort (fcs, nopcd, sizeof (struct test), compar); for (i = 0; i < nopcd - 1; i++) { if (fcs[i].fc + fcs[i].offset > fcs[i + 1].fc) { wvTrace (("overlap, my guess is 8 bit\n")); ret = 0; break; } } wvFree (fcs); return (ret); } ������������������wv-1.2.9/COPYING������������������������������������������������������������������������������������0000664�0000764�0000764�00000043101�11247156606�010154� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) 19yy <name of author> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/ffn.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000014050�11247156606�010037� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvInitFFN (FFN * item) { U8 i; item->cbFfnM1 = 0; item->prq = 0; item->fTrueType = 0; item->reserved1 = 0; item->ff = 0; item->reserved2 = 0; item->wWeight = 0; item->chs = 0; item->ixchSzAlt = 0; wvInitPANOSE (&item->panose); wvInitFONTSIGNATURE (&item->fs); for (i = 0; i < 65; i++) item->xszFfn[i] = 0; } void wvGetFFN6 (FFN * item, wvStream * fd) { int len, i; U8 temp8; #ifdef PURIFY wvInitFFN (item); #endif item->cbFfnM1 = read_8ubit (fd); temp8 = read_8ubit (fd); item->prq = temp8 & 0x03; item->fTrueType = (temp8 & 0x04) >> 2; item->reserved1 = (temp8 & 0x08) >> 3; item->ff = (temp8 & 0x70) >> 4; item->reserved2 = (temp8 & 0x80) >> 7; item->wWeight = (S16) read_16ubit (fd); item->chs = read_8ubit (fd); item->ixchSzAlt = read_8ubit (fd); wvInitPANOSE (&(item->panose)); wvInitFONTSIGNATURE (&(item->fs)); len = item->cbFfnM1 - 5; if (len > 65) len = 65; for (i = 0; i < len; i++) item->xszFfn[i] = read_8ubit (fd); } void wvGetFFN (FFN * item, wvStream * fd) { int len, i; U8 temp8; #ifdef PURIFY wvInitFFN (item); #endif item->cbFfnM1 = read_8ubit (fd); temp8 = read_8ubit (fd); item->prq = temp8 & 0x03; item->fTrueType = (temp8 & 0x04) >> 2; item->reserved1 = (temp8 & 0x08) >> 3; item->ff = (temp8 & 0x70) >> 4; item->reserved2 = (temp8 & 0x80) >> 7; item->wWeight = (S16) read_16ubit (fd); item->chs = read_8ubit (fd); item->ixchSzAlt = read_8ubit (fd); wvGetPANOSE (&(item->panose), fd); wvGetFONTSIGNATURE (&(item->fs), fd); len = item->cbFfnM1 - 39; len = len / 2; /* item->xszFfn = (U16) wvMalloc(sizeof(U16) * len)); */ if (len > 65) len = 65; for (i = 0; i < len; i++) item->xszFfn[i] = read_16ubit (fd); } void wvGetFFN_STTBF (FFN_STTBF * item, U32 offset, U32 len, wvStream * fd) { int i; wvTrace (("reading fonts...\n")); wvTrace (("seeking to %x, len %d\n", offset, len)); if (len == 0) { item->nostrings = 0; item->ffn = NULL; } else { wvStream_goto (fd, offset); item->extendedflag = read_16ubit (fd); if (item->extendedflag == 0xFFFF) item->nostrings = read_16ubit (fd); else item->nostrings = item->extendedflag; item->extradatalen = read_16ubit (fd); item->ffn = (FFN *) wvMalloc (item->nostrings * sizeof (FFN)); for (i = 0; i < item->nostrings; i++) { #ifdef DEBUG char *dbg; #endif wvGetFFN (&(item->ffn[i]), fd); #ifdef DEBUG dbg = wvWideStrToMB (item->ffn[i].xszFfn); wvTrace (("font %d: %s\n", i, dbg)); if (dbg) wvFree (dbg); #endif } } wvTrace (("done reading fonts.\n")); } void wvGetFFN_STTBF6 (FFN_STTBF * item, U32 offset, U32 len, wvStream * fd) { U32 count = 0; int noffn = 0; wvTrace (("reading fonts 6...\n")); wvTrace (("seeking to %x, len %d\n", offset, len)); if (len == 0) { item->nostrings = 0; item->ffn = NULL; return; } wvStream_goto (fd, offset); item->extendedflag = 0; item->nostrings = 5; /* lets just set a val to start off with */ item->extradatalen = 0; item->ffn = (FFN *) wvMalloc (item->nostrings * sizeof (FFN)); if (len != read_16ubit (fd)) wvError (("FFN STTBF lens differ\n")); count += 2; while (count < len) { #ifdef DEBUG char *dbg; #endif if (noffn == item->nostrings) { /* need to extend the array just in case */ item->nostrings += 5; item->ffn = (FFN *) realloc (item->ffn, item->nostrings * sizeof (FFN)); } wvGetFFN6 (&(item->ffn[noffn]), fd); count += (item->ffn[noffn].cbFfnM1 + 1); #ifdef DEBUG dbg = wvWideStrToMB (item->ffn[noffn].xszFfn); wvTrace (("font %d: %s\n", noffn, dbg)); if (dbg) wvFree (dbg); #endif noffn++; } if (item->nostrings != noffn) item->nostrings = noffn; wvTrace (("done reading fonts 6.\n")); } void wvReleaseFFN_STTBF (FFN_STTBF * item) { if (item->ffn != NULL) wvFree (item->ffn); } /* This has to be extended in the future to return a list of possible font names, as the FFN spec mentions. It currently on does the first one. */ char * wvGetFontnameFromCode (FFN_STTBF * item, int fontcode) { if (fontcode >= item->nostrings) return (NULL); return (wvWideStrToMB (item->ffn[fontcode].xszFfn)); } #if 0 int wvGetFRD_PLCF (FRD ** frd, U32 ** pos, int *nofrd, U32 offset, U32 len, wvStream * fd) { int i; if (len == 0) { *frd = NULL; *pos = NULL; *nofrd = 0; } else { *nofrd = (len - 4) / 6; *pos = (U32 *) wvMalloc ((*nofrd + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nofrd + 1) * sizeof (U32))); return (1); } *frd = (FRD *) wvMalloc (*nofrd * sizeof (FRD)); if (*frd == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nofrd * sizeof (FRD))); wvFree (pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i < *nofrd + 1; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *nofrd; i++) wvGetFRD (&((*frd)[i]), fd); } return (0); } #endif ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvRTF.c������������������������������������������������������������������������������������0000664�0000764�0000764�00000036240�11247156606�010303� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #include <time.h> #include "getopt.h" #include "wv.h" /* By Dom Lachowicz (cinamod@hotmail.com) */ /* i don't like appearing to use printf */ #define rtf_output printf #define rtf_output_char(c) do {rtf_output("%c", (c));} while(0) #define ENSURE_BUF() fflush(stdout) typedef struct _rtfUserData { /* formatting variables */ /* cached integer values */ int cFont; int cFontSize; int cCol; /* boolean formats */ int bIsBold:1; int bIsItalic:1; int bIsStrike:1; int bIsUl:1; int bIsSup:1; int bIsSub:1; /* paragraph related */ int bInPara:1; int bInSec:1; } rtfUserData; /* this gets printed at the top of each document in the {\fonttbl section */ struct _fontMapping { char *word; char *rtf; }; /* TODO: build me up appropriately */ static struct _fontMapping fontMap[] = { {"Arial", "Arial"}, {"Bitstream Charter", "Bitstream Charter"}, {"Bookman", "Bookman"}, {"Courier", "Courier"}, {"Courier New", "Courier New"}, {"Century Schoolbook", "Century Schoolbook"}, {"Dingbats", "Dingbats"}, {"Goth", "Goth"}, {"Nimbus Sans", "Nimbus Sans"}, {"Palladio", "Palladio"}, {"Standard Symbol", "Standard Symbol"}, {"Symbol", "Symbol"}, {"Times", "Times New Roman"}, {"Times New Roman", "Times New Roman"}, }; #define FontTblSize (sizeof(fontMap)/sizeof(fontMap[0])) #define DFL_FONT_INDEX 13 /* I map this to whatever "Times New Roman" is */ static void output_fonttable (void) { int i; rtf_output ("{\\fonttbl\n"); for (i = 0; i < FontTblSize; i++) rtf_output ("{\\f%d\\fnil\\fcharset0\\fprq0\\fttruetype %s;}\n", i, fontMap[i].rtf); rtf_output ("}\n"); } /* map the MSWord name to the corresponding RTF name index */ static int mapFont (const char *name) { int k; for (k = 0; k < FontTblSize; k++) if (!strcasecmp (fontMap[k].word, name)) return k; return DFL_FONT_INDEX; } #undef DFL_FONT_INDEX #undef FontTblSize /* this gets printed at the top of each document in the {\colortbl section */ static int colorTable[][3] = { {0x00, 0x00, 0x00}, /* black */ {0x00, 0x00, 0xff}, /* blue */ {0x00, 0xff, 0xff}, /* cyan */ {0x00, 0xff, 0x00}, /* green */ {0xff, 0x00, 0xff}, /* magenta */ {0xff, 0x00, 0x00}, /* red */ {0xff, 0xff, 0x00}, /* yellow */ {0xff, 0xff, 0xff}, /* white */ {0x00, 0x00, 0x80}, /* dark blue */ {0x00, 0x80, 0x80}, /* dark cyan */ {0x00, 0x80, 0x00}, /* dark green */ {0x80, 0x00, 0x80}, /* dark magenta */ {0x80, 0x00, 0x00}, /* dark red */ {0x80, 0x80, 0x00}, /* dark yellow */ {0x80, 0x80, 0x80}, /* dark gray */ {0xc0, 0xc0, 0xc0}, /* light gray */ }; /* rtf names for the color_table as above */ static char *rtfColors[] = { "\\cf0", /* black */ "\\cf1", /* blue */ "\\cf2", /* cyan */ "\\cf3", /* green */ "\\cf4", /* magenta */ "\\cf5", /* red */ "\\cf6", /* yellow */ "\\cf7", /* white */ "\\cf8", /* dark blue */ "\\cf9", /* dark cyan */ "\\cf10", /* dark green */ "\\cf11", /* dark magenta */ "\\cf12", /* dark red */ "\\cf13", /* dark yellow */ "\\cf14", /* dark gray */ "\\cf15", /* light gray */ }; #define RED(i) colorTable[(i)][0] #define GREEN(i) colorTable[(i)][1] #define BLUE(i) colorTable[(i)][2] #define ClrTblSize (sizeof(colorTable)/sizeof(colorTable[0])) static void output_colortable (void) { int i; rtf_output ("{\\colortbl\n"); for (i = 0; i < ClrTblSize; i++) { rtf_output ("\\red%d\\green%d\\blue%d;\n", RED (i), GREEN (i), BLUE (i)); } rtf_output ("}\n"); } #undef RED #undef GREEN #undef BLUE #undef ClrTblSize static void output_rtfUserData (rtfUserData * ud) { /* add the initial bracket */ rtf_output_char ('{'); /* font color */ rtf_output (rtfColors[ud->cCol]); /* font face */ rtf_output ("\\f%d", ud->cFont); /* font size */ rtf_output ("\\fs%d", ud->cFontSize); /* italic text */ if (ud->bIsItalic) rtf_output ("\\i"); /* bold text */ if (ud->bIsBold) rtf_output ("\\b"); /* underline and strike-through */ if (ud->bIsUl) rtf_output ("\\ul"); if (ud->bIsStrike) rtf_output ("\\strike"); /* sub/superscript */ if (ud->bIsSup) { rtf_output ("\\super"); } else if (ud->bIsSub) { rtf_output ("\\sub"); } /* add the final space */ rtf_output_char (' '); } static void fill_rtfUserData (rtfUserData * ud, CHP * chp, wvParseStruct * ps) { char *fname = NULL; if (!ps->fib.fFarEast) { fname = wvGetFontnameFromCode (&ps->fonts, chp->ftcAscii); } else { fname = wvGetFontnameFromCode (&ps->fonts, chp->ftcFE); } ud->cCol = 0; if (chp->ico) ud->cCol = chp->ico - 1; ud->cFont = mapFont (fname); ud->cFontSize = chp->hps; ud->bIsBold = (chp->fBold); ud->bIsItalic = (chp->fItalic); ud->bIsUl = (chp->kul); ud->bIsStrike = (chp->fStrike); ud->bIsSup = (chp->iss == 1); ud->bIsSub = (chp->iss == 2); free(fname); } static void handleImage (Blip * b, long width, long height) { /* TODO: image support */ wvStream * pwv = NULL; size_t size = 0; int data = 0; int cnt = 0; int tag = time (NULL); /* short-circuit this method if we don't support the incoming format */ switch (b->type) { case msoblipPNG: /* conveniently I know how to export to PNG */ rtf_output ("{\\*\\shppict{\\pict\\pngblip\\picw%d\\pich%d\\picwgoal\\pichgoal\n", width, height); break; case msoblipDIB: case msoblipWMF: case msoblipEMF: case msoblipPICT: case msoblipJPEG: default: /* TODO: support other image types */ return; } rtf_output ("\bliptag%d{\\*\\blipuid%032x}", tag, tag); pwv = b->blip.bitmap.m_pvBits; size = wvStream_size (pwv); wvStream_rewind(pwv); while (cnt < size) { if (cnt++ % 64 == 0) rtf_output_char ('\n'); rtf_output ("%02x", read_8ubit(pwv)); } rtf_output_char ('}'); } static int charProc (wvParseStruct * ps, U16 eachchar, U8 chartype, U16 lid) { /* convert incoming character to unicode */ if (chartype) eachchar = wvHandleCodePage (eachchar, lid); /* take care of any oddities in Microsoft's character "encoding" */ /* TODO: does the above code page handler take care of these? */ if (chartype == 1 && eachchar == 146) eachchar = 39; /* apostrophe */ switch (eachchar) { case 13: /* paragraph end */ return 0; case 11: /* hard line break */ break; case 12: /* page breaks, section marks */ break; case 14: /* column break */ break; case 19: /* field begin */ /* flush current text buffer */ ps->fieldstate++; ps->fieldmiddle = 0; return 0; case 20: /* field separator */ ps->fieldmiddle = 1; return 0; case 21: /* field end */ ps->fieldstate--; ps->fieldmiddle = 0; return 0; default: break; } /* todo: properly handle fields */ if (eachchar == 0x13 || eachchar == 0x14) return 0; /* properly escape this */ if (eachchar == '{' || eachchar == '}') rtf_output_char ('\\'); rtf_output_char (eachchar); return 0; } static int specCharProc (wvParseStruct * ps, U16 eachchar, CHP * achp) { Blip blip; wvStream *fil; long pos; FSPA *fspa; PICF picf; FDOA *fdoa; switch (eachchar) { case 19: /* field begin */ ps->fieldstate++; ps->fieldmiddle = 0; return 0; case 20: /* field separator */ if (achp->fOle2) { wvTrace (("Field has an embedded OLE2 object\n")); } ps->fieldmiddle = 1; return 0; case 21: /* field end */ ps->fieldstate--; ps->fieldmiddle = 0; return 0; default: break; } /* TODO: properly handle fields */ if (ps->fieldstate) { if (eachchar == 0x13 || eachchar == 0x14) return 0; } /* image handling */ switch (eachchar) { case 0x01: if (achp->fOle2) { wvTrace (("embedded OLE2 component. currently unsupported")); return 0; } pos = wvStream_tell (ps->data); wvStream_goto (ps->data, achp->fcPic_fcObj_lTagObj); wvGetPICF (wvQuerySupported (&ps->fib, NULL), &picf, ps->data); fil = picf.rgb; if (wv0x01 (&blip, fil, picf.lcb - picf.cbHeader)) { handleImage (&blip, picf.dxaGoal, picf.dyaGoal); } else { wvTrace (("Dom: strange no graphic data 1\n")); } wvStream_goto (ps->data, pos); return 0; break; case 0x08: if (wvQuerySupported (&ps->fib, NULL) == WORD8) { if (ps->nooffspa > 0) { fspa = wvGetFSPAFromCP (ps->currentcp, ps->fspa, ps->fspapos, ps->nooffspa); if (!fspa) { wvError ( ("No fspa! Panic and Insanity Abounds!\n")); return 0; } if (wv0x08 (&blip, fspa->spid, ps)) { handleImage (&blip, fspa->xaRight - fspa->xaLeft, fspa->yaBottom - fspa->yaTop); } else { wvTrace (("Dom: strange no graphic data 2\n")); return 0; } } else { wvTrace (("nooffspa was <=0 -- ignoring")); } } else { wvError ( ("pre Word8 0x08 graphic -- unsupported at the moment")); fdoa = wvGetFDOAFromCP (ps->currentcp, NULL, ps->fdoapos, ps->nooffdoa); } } return 0; } static int eleProc (wvParseStruct * ps, wvTag tag, void *props, int dirty) { /* some word structures */ PAP *apap; CHP *achp; SEP *asep; int iRes; rtfUserData *ud = (rtfUserData *) ps->userData; switch (tag) { case SECTIONBEGIN: /* TODO: get smarter */ asep = (SEP *) props; rtf_output ("\\sectd\\sbknone\\colsx360\n"); ud->bInSec = 1; break; case SECTIONEND: ud->bInSec = 0; break; case PARABEGIN: apap = (PAP *) props; ud->bInPara = 1; rtf_output ("\\pard"); switch (apap->jc) { case 0: /* left */ break; case 1: /* center */ rtf_output ("\\qc"); break; case 2: /* right */ rtf_output ("\\qr"); break; default: break; } break; case PARAEND: /* pretty much nothing */ rtf_output_char ('\n'); ud->bInPara = 0; break; case CHARPROPBEGIN: achp = (CHP *) props; fill_rtfUserData (ud, achp, ps); output_rtfUserData (ud); break; case CHARPROPEND: achp = (CHP *) props; fill_rtfUserData (ud, achp, ps); if (ud->bInPara) { rtf_output_char ('}'); } break; default: break; } return 0; } static int docProc (wvParseStruct * ps, wvTag tag) { switch (tag) { case DOCBEGIN: /* print out my rtf preamble */ rtf_output ("{\\rtf1\\ansi\\ansicpg1252\\deff0\n"); /* now print out a font table */ /* and a color table */ output_fonttable (); output_colortable (); rtf_output ("\\kerning0\\cf0\\viewkind1\\paperw12240\\paperh15840\\margl1440\\margr1440\\widowctl\n"); break; case DOCEND: rtf_output ("}\n"); ENSURE_BUF (); break; default: break; } return 0; } static void do_version (void) { printf ("wvRTF version %s\n",VERSION); } static void do_help (void) { do_version (); printf ("(c) Dom Lachowicz 2000\n"); printf ("Usage:\n"); printf ("\t-c --charset=set\n"); printf ("\t-p --password=pass\n"); printf ("\t-v --version\n"); printf ("\t-? --help\n"); printf ("\nConverts MSWord documents to RTF\n"); } static char *charset = NULL; int main (int argc, char *argv[]) { FILE *input; char *fname, *password; int ret; wvParseStruct ps; char *dir = NULL; rtfUserData ud; static struct option long_options[] = { {"charset", 1, 0, 'c'}, {"password", 1, 0, 'p'}, {"dir", 1, 0, 'd'}, {"version", 0, 0, 'v'}, {"help", 0, 0, '?'}, {0, 0, 0, 0} }; int c, index = 0; if (argc < 2) { do_help (); return 1; } while (1) { c = getopt_long (argc, argv, "?vc:p:d:", long_options, &index); if (c == -1) break; switch (c) { case '?': do_help (); return 0; case 'v': do_version (); return 0; case 'c': if (optarg) charset = optarg; else wvError (("No argument given to charset")); break; case 'p': if (optarg) password = optarg; else wvError (("No password given to password option")); break; case 'd': if (optarg) dir = optarg; else wvError (("No directory given to dir option")); break; default: do_help (); return -1; } } if (optind >= argc) { fprintf (stderr, "No file name given to open\n"); return -1; } fname = argv[optind]; input = fopen (fname, "rb"); if (!input) { fprintf (stderr, "Failed to open %s\n", fname); return -1; } fclose (input); wvInit (); ret = wvInitParser (&ps, fname); ps.filename = fname; ps.dir = dir; /* set to 0 */ memset (&ud, 1, sizeof (rtfUserData)); ps.userData = &ud; if (ret & 0x8000) /* Password protected? */ { if ((ret & 0x7fff) == WORD8) { ret = 0; if (password == NULL) { fprintf (stderr, "Password required, this is an encrypted document\n"); return -1; } else { wvSetPassword (password, &ps); if (wvDecrypt97 (&ps)) { wvError (("Incorrect Password\n")); return -1; } } } else if (((ret & 0x7fff) == WORD7) || ((ret & 0x7fff) == WORD6)) { ret = 0; if (password == NULL) { fprintf (stderr, "Password required, this is an encrypted document\n"); return -1; } else { wvSetPassword (password, &ps); if (wvDecrypt95 (&ps)) { wvError (("Incorrect Password\n")); return -1; } } } } if (ret) { wvError (("startup error\n")); wvOLEFree (&ps); return -1; } wvSetElementHandler (&ps, eleProc); wvSetDocumentHandler (&ps, docProc); wvSetCharHandler (&ps, charProc); wvSetSpecialCharHandler (&ps, specCharProc); wvText (&ps); /* free associated memory */ wvOLEFree (&ps); return 0; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/aclocal.m4���������������������������������������������������������������������������������0000664�0000764�0000764�00001164500�11454157057�010772� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# generated automatically by aclocal 1.11.1 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009 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_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, [m4_warning([this file was generated for autoconf 2.65. 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'.])]) # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # 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. m4_define([_LT_COPYING], [dnl # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, # 2006, 2007, 2008 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is part of GNU Libtool. # # 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 # 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, or # obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ]) # serial 56 LT_INIT # LT_PREREQ(VERSION) # ------------------ # Complain and exit if this libtool version is less that VERSION. m4_defun([LT_PREREQ], [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], [m4_fatal([Libtool version $1 or higher is required], 63)])], [$2])]) # _LT_CHECK_BUILDDIR # ------------------ # Complain if the absolute build directory name contains unusual characters m4_defun([_LT_CHECK_BUILDDIR], [case `pwd` in *\ * | *\ *) AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; esac ]) # LT_INIT([OPTIONS]) # ------------------ AC_DEFUN([LT_INIT], [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT AC_BEFORE([$0], [LT_LANG])dnl AC_BEFORE([$0], [LT_OUTPUT])dnl AC_BEFORE([$0], [LTDL_INIT])dnl m4_require([_LT_CHECK_BUILDDIR])dnl dnl Autoconf doesn't catch unexpanded LT_ macros by default: m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 dnl unless we require an AC_DEFUNed macro: AC_REQUIRE([LTOPTIONS_VERSION])dnl AC_REQUIRE([LTSUGAR_VERSION])dnl AC_REQUIRE([LTVERSION_VERSION])dnl AC_REQUIRE([LTOBSOLETE_VERSION])dnl m4_require([_LT_PROG_LTMAIN])dnl dnl Parse OPTIONS _LT_SET_OPTIONS([$0], [$1]) # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ltmain" # Always use our own libtool. LIBTOOL='$(SHELL) $(top_builddir)/libtool' AC_SUBST(LIBTOOL)dnl _LT_SETUP # Only expand once: m4_define([LT_INIT]) ])# LT_INIT # Old names: AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PROG_LIBTOOL], []) dnl AC_DEFUN([AM_PROG_LIBTOOL], []) # _LT_CC_BASENAME(CC) # ------------------- # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. m4_defun([_LT_CC_BASENAME], [for cc_temp in $1""; do case $cc_temp in compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) # _LT_FILEUTILS_DEFAULTS # ---------------------- # It is okay to use these file commands and assume they have been set # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. m4_defun([_LT_FILEUTILS_DEFAULTS], [: ${CP="cp -f"} : ${MV="mv -f"} : ${RM="rm -f"} ])# _LT_FILEUTILS_DEFAULTS # _LT_SETUP # --------- m4_defun([_LT_SETUP], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl _LT_DECL([], [host_alias], [0], [The host system])dnl _LT_DECL([], [host], [0])dnl _LT_DECL([], [host_os], [0])dnl dnl _LT_DECL([], [build_alias], [0], [The build system])dnl _LT_DECL([], [build], [0])dnl _LT_DECL([], [build_os], [0])dnl dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl dnl AC_REQUIRE([AC_PROG_LN_S])dnl test -z "$LN_S" && LN_S="ln -s" _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl dnl AC_REQUIRE([LT_CMD_MAX_LEN])dnl _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_CMD_RELOAD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl _LT_CONFIG_LIBTOOL_INIT([ # See if we are running on zsh, and set the options which allow our # commands through without removal of \ escapes INIT. if test -n "\${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi ]) if test -n "${ZSH_VERSION+set}" ; then setopt NO_GLOB_SUBST fi _LT_CHECK_OBJDIR m4_require([_LT_TAG_COMPILER])dnl _LT_PROG_ECHO_BACKSLASH 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 "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # 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' # 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 _LT_CC_BASENAME([$compiler]) # 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 _LT_PATH_MAGIC fi ;; esac # Use C for the default configuration in the libtool script LT_SUPPORTED_TAG([CC]) _LT_LANG_C_CONFIG _LT_LANG_DEFAULT_CONFIG _LT_CONFIG_COMMANDS ])# _LT_SETUP # _LT_PROG_LTMAIN # --------------- # Note that this code is called both from `configure', and `config.status' # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, # `config.status' has no value for ac_aux_dir unless we are using Automake, # so we pass a copy along to make sure it has a sensible value anyway. m4_defun([_LT_PROG_LTMAIN], [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) ltmain="$ac_aux_dir/ltmain.sh" ])# _LT_PROG_LTMAIN # So that we can recreate a full libtool script including additional # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS # in macros and then make a single call at the end using the `libtool' # label. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) # ---------------------------------------- # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL_INIT], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_INIT], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_INIT]) # _LT_CONFIG_LIBTOOL([COMMANDS]) # ------------------------------ # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. m4_define([_LT_CONFIG_LIBTOOL], [m4_ifval([$1], [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], [$1 ])])]) # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) # ----------------------------------------------------- m4_defun([_LT_CONFIG_SAVE_COMMANDS], [_LT_CONFIG_LIBTOOL([$1]) _LT_CONFIG_LIBTOOL_INIT([$2]) ]) # _LT_FORMAT_COMMENT([COMMENT]) # ----------------------------- # Add leading comment marks to the start of each line, and a trailing # full-stop to the whole comment if one is not present already. m4_define([_LT_FORMAT_COMMENT], [m4_ifval([$1], [ m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) )]) # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) # ------------------------------------------------------------------- # CONFIGNAME is the name given to the value in the libtool script. # VARNAME is the (base) name used in the configure script. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on # VARNAME. Any other value will be used directly. m4_define([_LT_DECL], [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], [m4_ifval([$1], [$1], [$2])]) lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) m4_ifval([$4], [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) lt_dict_add_subkey([lt_decl_dict], [$2], [tagged?], [m4_ifval([$5], [yes], [no])])]) ]) # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) # -------------------------------------------------------- m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_tag_varnames], [_lt_decl_filter([tagged?], [yes], $@)]) # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) # --------------------------------------------------------- m4_define([_lt_decl_filter], [m4_case([$#], [0], [m4_fatal([$0: too few arguments: $#])], [1], [m4_fatal([$0: too few arguments: $#: $1])], [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], [lt_dict_filter([lt_decl_dict], $@)])[]dnl ]) # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) # -------------------------------------------------- m4_define([lt_decl_quote_varnames], [_lt_decl_filter([value], [1], $@)]) # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_dquote_varnames], [_lt_decl_filter([value], [2], $@)]) # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) # --------------------------------------------------- m4_define([lt_decl_varnames_tagged], [m4_assert([$# <= 2])dnl _$0(m4_quote(m4_default([$1], [[, ]])), m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) m4_define([_lt_decl_varnames_tagged], [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) # ------------------------------------------------ m4_define([lt_decl_all_varnames], [_$0(m4_quote(m4_default([$1], [[, ]])), m4_if([$2], [], m4_quote(lt_decl_varnames), m4_quote(m4_shift($@))))[]dnl ]) m4_define([_lt_decl_all_varnames], [lt_join($@, lt_decl_varnames_tagged([$1], lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl ]) # _LT_CONFIG_STATUS_DECLARE([VARNAME]) # ------------------------------------ # Quote a variable value, and forward it to `config.status' so that its # declaration there will have the same value as in `configure'. VARNAME # must have a single quote delimited value for this to work. m4_define([_LT_CONFIG_STATUS_DECLARE], [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) # _LT_CONFIG_STATUS_DECLARATIONS # ------------------------------ # We delimit libtool config variables with single quotes, so when # we write them to config.status, we have to be sure to quote all # embedded single quotes properly. In configure, this macro expands # each variable declared with _LT_DECL (and _LT_TAGDECL) into: # # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAGS # ---------------- # Output comment and list of tags supported by the script m4_defun([_LT_LIBTOOL_TAGS], [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl available_tags="_LT_TAGS"dnl ]) # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) # ----------------------------------- # Extract the dictionary values for VARNAME (optionally with TAG) and # expand to a commented shell variable setting: # # # Some comment about what VAR is for. # visible_name=$lt_internal_name m4_define([_LT_LIBTOOL_DECLARE], [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [description])))[]dnl m4_pushdef([_libtool_name], m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), [0], [_libtool_name=[$]$1], [1], [_libtool_name=$lt_[]$1], [2], [_libtool_name=$lt_[]$1], [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl ]) # _LT_LIBTOOL_CONFIG_VARS # ----------------------- # Produce commented declarations of non-tagged libtool config variables # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' # script. Tagged libtool config variables (even for the LIBTOOL CONFIG # section) are produced by _LT_LIBTOOL_TAG_VARS. m4_defun([_LT_LIBTOOL_CONFIG_VARS], [m4_foreach([_lt_var], m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) # _LT_LIBTOOL_TAG_VARS(TAG) # ------------------------- m4_define([_LT_LIBTOOL_TAG_VARS], [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) # _LT_TAGVAR(VARNAME, [TAGNAME]) # ------------------------------ m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) # _LT_CONFIG_COMMANDS # ------------------- # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of # variables for single and double quote escaping we saved from calls # to _LT_DECL, we can put quote escaped variables declarations # into `config.status', and then the shell code to quote escape them in # for loops in `config.status'. Finally, any additional code accumulated # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. m4_defun([_LT_CONFIG_COMMANDS], [AC_PROVIDE_IFELSE([LT_OUTPUT], dnl If the libtool generation code has been placed in $CONFIG_LT, dnl instead of duplicating it all over again into config.status, dnl then we will have config.status run $CONFIG_LT later, so it dnl needs to know what name is stored there: [AC_CONFIG_COMMANDS([libtool], [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], dnl If the libtool generation code is destined for config.status, dnl expand the accumulated commands and init code now: [AC_CONFIG_COMMANDS([libtool], [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) ])#_LT_CONFIG_COMMANDS # Initialize. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], [ # 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' _LT_CONFIG_STATUS_DECLARATIONS LTCC='$LTCC' LTCFLAGS='$LTCFLAGS' compiler='$compiler_DEFAULT' # Quote evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_quote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Double-quote double-evaled strings. for var in lt_decl_all_varnames([[ \ ]], lt_decl_dquote_varnames); do case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in *[[\\\\\\\`\\"\\\$]]*) eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ;; *) eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" ;; esac done # Fix-up fallback echo if it was mangled by the above quoting rules. case \$lt_ECHO in *'\\\[$]0 --fallback-echo"')dnl " lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` ;; esac _LT_OUTPUT_LIBTOOL_INIT ]) # LT_OUTPUT # --------- # This macro allows early generation of the libtool script (before # AC_OUTPUT is called), incase it is used in configure for compilation # tests. AC_DEFUN([LT_OUTPUT], [: ${CONFIG_LT=./config.lt} AC_MSG_NOTICE([creating $CONFIG_LT]) cat >"$CONFIG_LT" <<_LTEOF #! $SHELL # Generated by $as_me. # Run this file to recreate a libtool stub with the current configuration. lt_cl_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AS_SHELL_SANITIZE _AS_PREPARE exec AS_MESSAGE_FD>&1 exec AS_MESSAGE_LOG_FD>>config.log { echo AS_BOX([Running $as_me.]) } >&AS_MESSAGE_LOG_FD 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="\ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) configured by $[0], generated by m4_PACKAGE_STRING. Copyright (C) 2008 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=: ;; -*) AC_MSG_ERROR([unrecognized option: $[1] Try \`$[0] --help' for more information.]) ;; *) AC_MSG_ERROR([unrecognized argument: $[1] Try \`$[0] --help' for more information.]) ;; esac shift done if $lt_cl_silent; then exec AS_MESSAGE_FD>/dev/null fi _LTEOF cat >>"$CONFIG_LT" <<_LTEOF _LT_OUTPUT_LIBTOOL_COMMANDS_INIT _LTEOF cat >>"$CONFIG_LT" <<\_LTEOF AC_MSG_NOTICE([creating $ofile]) _LT_OUTPUT_LIBTOOL_COMMANDS AS_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. if test "$no_create" != yes; then lt_cl_success=: test "$silent" = yes && lt_config_lt_args="$lt_config_lt_args --quiet" exec AS_MESSAGE_LOG_FD>/dev/null $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false exec AS_MESSAGE_LOG_FD>>config.log $lt_cl_success || AS_EXIT(1) fi ])# LT_OUTPUT # _LT_CONFIG(TAG) # --------------- # If TAG is the built-in tag, create an initial libtool script with a # default configuration from the untagged config vars. Otherwise add code # to config.status for appending the configuration named by TAG from the # matching tagged config vars. m4_defun([_LT_CONFIG], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_CONFIG_SAVE_COMMANDS([ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl m4_if(_LT_TAG, [C], [ # See if we are running on zsh, and set the options which 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 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $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. # _LT_COPYING _LT_LIBTOOL_TAGS # ### BEGIN LIBTOOL CONFIG _LT_LIBTOOL_CONFIG_VARS _LT_LIBTOOL_TAG_VARS # ### END LIBTOOL CONFIG _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 "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi _LT_EOF ;; esac _LT_PROG_LTMAIN # 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 '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) _LT_PROG_XSI_SHELLFNS sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" ], [cat <<_LT_EOF >> "$ofile" dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded dnl in a comment (ie after a #). # ### BEGIN LIBTOOL TAG CONFIG: $1 _LT_LIBTOOL_TAG_VARS(_LT_TAG) # ### END LIBTOOL TAG CONFIG: $1 _LT_EOF ])dnl /m4_if ], [m4_if([$1], [], [ PACKAGE='$PACKAGE' VERSION='$VERSION' TIMESTAMP='$TIMESTAMP' RM='$RM' ofile='$ofile'], []) ])dnl /_LT_CONFIG_SAVE_COMMANDS ])# _LT_CONFIG # LT_SUPPORTED_TAG(TAG) # --------------------- # Trace this macro to discover what tags are supported by the libtool # --tag option, using: # autoconf --trace 'LT_SUPPORTED_TAG:$1' AC_DEFUN([LT_SUPPORTED_TAG], []) # C support is built-in for now m4_define([_LT_LANG_C_enabled], []) m4_define([_LT_TAGS], []) # LT_LANG(LANG) # ------------- # Enable libtool support for the given language if not already enabled. AC_DEFUN([LT_LANG], [AC_BEFORE([$0], [LT_OUTPUT])dnl m4_case([$1], [C], [_LT_LANG(C)], [C++], [_LT_LANG(CXX)], [Java], [_LT_LANG(GCJ)], [Fortran 77], [_LT_LANG(F77)], [Fortran], [_LT_LANG(FC)], [Windows Resource], [_LT_LANG(RC)], [m4_ifdef([_LT_LANG_]$1[_CONFIG], [_LT_LANG($1)], [m4_fatal([$0: unsupported language: "$1"])])])dnl ])# LT_LANG # _LT_LANG(LANGNAME) # ------------------ m4_defun([_LT_LANG], [m4_ifdef([_LT_LANG_]$1[_enabled], [], [LT_SUPPORTED_TAG([$1])dnl m4_append([_LT_TAGS], [$1 ])dnl m4_define([_LT_LANG_]$1[_enabled], [])dnl _LT_LANG_$1_CONFIG($1)])dnl ])# _LT_LANG # _LT_LANG_DEFAULT_CONFIG # ----------------------- m4_defun([_LT_LANG_DEFAULT_CONFIG], [AC_PROVIDE_IFELSE([AC_PROG_CXX], [LT_LANG(CXX)], [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) AC_PROVIDE_IFELSE([AC_PROG_F77], [LT_LANG(F77)], [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) AC_PROVIDE_IFELSE([AC_PROG_FC], [LT_LANG(FC)], [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal dnl pulling things in needlessly. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [LT_LANG(GCJ)], [AC_PROVIDE_IFELSE([LT_PROG_GCJ], [LT_LANG(GCJ)], [m4_ifdef([AC_PROG_GCJ], [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([A][M_PROG_GCJ], [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) m4_ifdef([LT_PROG_GCJ], [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) AC_PROVIDE_IFELSE([LT_PROG_RC], [LT_LANG(RC)], [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) ])# _LT_LANG_DEFAULT_CONFIG # Obsolete macros: AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_CXX], []) dnl AC_DEFUN([AC_LIBTOOL_F77], []) dnl AC_DEFUN([AC_LIBTOOL_FC], []) dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) # _LT_TAG_COMPILER # ---------------- m4_defun([_LT_TAG_COMPILER], [AC_REQUIRE([AC_PROG_CC])dnl _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl # 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 ])# _LT_TAG_COMPILER # _LT_COMPILER_BOILERPLATE # ------------------------ # Check for compiler boilerplate output or warnings with # the simple compiler test code. m4_defun([_LT_COMPILER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl 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* ])# _LT_COMPILER_BOILERPLATE # _LT_LINKER_BOILERPLATE # ---------------------- # Check for linker boilerplate output or warnings with # the simple link test code. m4_defun([_LT_LINKER_BOILERPLATE], [m4_require([_LT_DECL_SED])dnl 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* ])# _LT_LINKER_BOILERPLATE # _LT_REQUIRED_DARWIN_CHECKS # ------------------------- m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ case $host_os in rhapsody* | darwin*) AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) AC_CHECK_TOOL([LIPO], [lipo], [:]) AC_CHECK_TOOL([OTOOL], [otool], [:]) AC_CHECK_TOOL([OTOOL64], [otool64], [:]) _LT_DECL([], [DSYMUTIL], [1], [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) _LT_DECL([], [NMEDIT], [1], [Tool to change global to local symbols on Mac OS X]) _LT_DECL([], [LIPO], [1], [Tool to manipulate fat objects and archives on Mac OS X]) _LT_DECL([], [OTOOL], [1], [ldd/readelf like tool for Mach-O binaries on Mac OS X]) _LT_DECL([], [OTOOL64], [1], [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], [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" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err _lt_result=$? if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then lt_cv_apple_cc_single_mod=yes else cat conftest.err >&AS_MESSAGE_LOG_FD fi rm -rf libconftest.dylib* rm -f conftest.* fi]) AC_CACHE_CHECK([for -exported_symbols_list linker flag], [lt_cv_ld_exported_symbols_list], [lt_cv_ld_exported_symbols_list=no save_LDFLAGS=$LDFLAGS echo "_main" > conftest.sym LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [lt_cv_ld_exported_symbols_list=yes], [lt_cv_ld_exported_symbols_list=no]) LDFLAGS="$save_LDFLAGS" ]) 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 "$lt_cv_apple_cc_single_mod" = "yes"; then _lt_dar_single_mod='$single_module' fi if test "$lt_cv_ld_exported_symbols_list" = "yes"; 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" != ":"; then _lt_dsymutil='~$DSYMUTIL $lib || :' else _lt_dsymutil= fi ;; esac ]) # _LT_DARWIN_LINKER_FEATURES # -------------------------- # Checks for linker and compiler features on darwin m4_defun([_LT_DARWIN_LINKER_FEATURES], [ m4_require([_LT_REQUIRED_DARWIN_CHECKS]) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(whole_archive_flag_spec, $1)='' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" case $cc_basename in ifort*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test "$_lt_dar_can_shared" = "yes"; then output_verbose_link_cmd=echo _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="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}" _LT_TAGVAR(module_expsym_cmds, $1)="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}" m4_if([$1], [CXX], [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" fi ],[]) else _LT_TAGVAR(ld_shlibs, $1)=no fi ]) # _LT_SYS_MODULE_PATH_AIX # ----------------------- # Links a minimal program and checks the executable # for the system default hardcoded library path. In most cases, # this is /usr/lib:/lib, but when the MPI compilers are used # the location of the communication and MPI libs are included too. # If we don't find anything, use the default library path according # to the aix ld manual. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl AC_LINK_IFELSE(AC_LANG_PROGRAM,[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/ p } }' 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 "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_SYS_MODULE_PATH_AIX # _LT_SHELL_INIT(ARG) # ------------------- m4_define([_LT_SHELL_INIT], [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], [AC_DIVERT_PUSH(NOTICE)]) $1 AC_DIVERT_POP ])# _LT_SHELL_INIT # _LT_PROG_ECHO_BACKSLASH # ----------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. m4_defun([_LT_PROG_ECHO_BACKSLASH], [_LT_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} case X$lt_ECHO in X*--fallback-echo) # Remove one level of quotation (which was required for Make). ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` ;; esac ECHO=${lt_ECHO-echo} if test "X[$]1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then # Yippee, $ECHO works! : else # Restart under the correct shell. exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} fi if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat <<_LT_EOF [$]* _LT_EOF exit 0 fi # 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 if test -z "$lt_ECHO"; then if test "X${echo_test_string+set}" != Xset; then # find a string as large as possible, as long as the shell can cope with it for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... if { echo_test_string=`eval $cmd`; } 2>/dev/null && { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null then break fi done fi if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then : else # The Solaris, AIX, and Digital Unix default echo programs unquote # backslashes. This makes it impossible to quote backslashes using # echo "$something" | sed 's/\\/\\\\/g' # # So, first we look for a working echo in the user's PATH. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$dir/echo" break fi done IFS="$lt_save_ifs" if test "X$ECHO" = Xecho; then # We didn't find a better echo, so look for alternatives. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # This shell has a builtin print -r that does the trick. ECHO='print -r' elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && test "X$CONFIG_SHELL" != X/bin/ksh; then # If we have ksh, try running configure again with it. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} export ORIGINAL_CONFIG_SHELL CONFIG_SHELL=/bin/ksh export CONFIG_SHELL exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} else # Try using printf. ECHO='printf %s\n' if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then # Cool, printf works : elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL export CONFIG_SHELL SHELL="$CONFIG_SHELL" export SHELL ECHO="$CONFIG_SHELL [$]0 --fallback-echo" elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && test "X$echo_testing_string" = 'X\t' && echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && test "X$echo_testing_string" = "X$echo_test_string"; then ECHO="$CONFIG_SHELL [$]0 --fallback-echo" else # maybe with a smaller string... prev=: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null then break fi prev="$cmd" done if test "$prev" != 'sed 50q "[$]0"'; then echo_test_string=`eval $prev` export echo_test_string exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} else # Oops. We lost completely, so just stick with echo. ECHO=echo fi fi fi fi fi fi # Copy echo and quote the copy suitably for passing to libtool from # the Makefile, instead of quoting the original, which is used later. lt_ECHO=$ECHO if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" fi AC_SUBST(lt_ECHO) ]) _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) _LT_DECL([], [ECHO], [1], [An echo program that does not interpret backslashes]) ])# _LT_PROG_ECHO_BACKSLASH # _LT_ENABLE_LOCK # --------------- m4_defun([_LT_ENABLE_LOCK], [AC_ARG_ENABLE([libtool-lock], [AS_HELP_STRING([--disable-libtool-lock], [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && 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 which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); 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 which ABI we are using. echo '[#]line __oline__ "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test "$lt_cv_prog_gnu_ld" = yes; 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* ;; x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); 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*) LD="${LD-ld} -m elf_i386" ;; ppc64-*linux*|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" ;; ppc*-*linux*|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" AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, [AC_LANG_PUSH(C) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) AC_LANG_POP]) if test x"$lt_cv_cc_needs_belf" != x"yes"; then # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf CFLAGS="$SAVE_CFLAGS" fi ;; sparc*-*solaris*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then case `/usr/bin/file conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) LD="${LD-ld} -m elf64_sparc" ;; *) 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" ])# _LT_ENABLE_LOCK # _LT_CMD_OLD_ARCHIVE # ------------------- m4_defun([_LT_CMD_OLD_ARCHIVE], [AC_CHECK_TOOL(AR, ar, false) test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru _LT_DECL([], [AR], [1], [The archiver]) _LT_DECL([], [AR_FLAGS], [1]) AC_CHECK_TOOL(STRIP, strip, :) test -z "$STRIP" && STRIP=: _LT_DECL([], [STRIP], [1], [A symbol stripping program]) AC_CHECK_TOOL(RANLIB, ranlib, :) test -z "$RANLIB" && RANLIB=: _LT_DECL([], [RANLIB], [1], [Commands used to install an old-style archive]) # 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 openbsd*) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" ;; *) old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" ;; esac old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi _LT_DECL([], [old_postinstall_cmds], [2]) _LT_DECL([], [old_postuninstall_cmds], [2]) _LT_TAGDECL([], [old_archive_cmds], [2], [Commands used to build an old-style archive]) ])# _LT_CMD_OLD_ARCHIVE # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------------------- # Check whether the given compiler option works AC_DEFUN([_LT_COMPILER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) echo "$lt_simple_compile_test_code" > conftest.$ac_ext lt_compiler_flag="$3" # 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:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi fi $RM conftest* ]) if test x"[$]$2" = xyes; then m4_if([$5], , :, [$5]) else m4_if([$6], , :, [$6]) fi ])# _LT_COMPILER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, # [ACTION-SUCCESS], [ACTION-FAILURE]) # ---------------------------------------------------- # Check whether the given linker option works AC_DEFUN([_LT_LINKER_OPTION], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_SED])dnl AC_CACHE_CHECK([$1], [$2], [$2=no save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS $3" 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>&AS_MESSAGE_LOG_FD $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 if diff conftest.exp conftest.er2 >/dev/null; then $2=yes fi else $2=yes fi fi $RM -r conftest* LDFLAGS="$save_LDFLAGS" ]) if test x"[$]$2" = xyes; then m4_if([$4], , :, [$4]) else m4_if([$5], , :, [$5]) fi ])# _LT_LINKER_OPTION # Old name: AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) # LT_CMD_MAX_LEN #--------------- AC_DEFUN([LT_CMD_MAX_LEN], [AC_REQUIRE([AC_CANONICAL_HOST])dnl # find the maximum length of command line arguments AC_MSG_CHECKING([the maximum length of command line arguments]) AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 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; ;; 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; ;; netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # 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 ;; 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"; 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"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ = "XX$teststring$teststring"; } >/dev/null 2>&1 && test $i != 17 # 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 ]) if test -n $lt_cv_sys_max_cmd_len ; then AC_MSG_RESULT($lt_cv_sys_max_cmd_len) else AC_MSG_RESULT(none) fi max_cmd_len=$lt_cv_sys_max_cmd_len _LT_DECL([], [max_cmd_len], [0], [What is the maximum length of a command?]) ])# LT_CMD_MAX_LEN # Old name: AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) # _LT_HEADER_DLFCN # ---------------- m4_defun([_LT_HEADER_DLFCN], [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl ])# _LT_HEADER_DLFCN # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ---------------------------------------------------------------- m4_defun([_LT_TRY_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "$cross_compiling" = yes; then : [$4] else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF [#line __oline__ "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 void fnord() { int i=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; /* dlclose (self); */ } else puts (dlerror ()); return status; }] _LT_EOF if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null lt_status=$? case x$lt_status in x$lt_dlno_uscore) $1 ;; x$lt_dlneed_uscore) $2 ;; x$lt_dlunknown|x*) $3 ;; esac else : # compilation failed $3 fi fi rm -fr conftest* ])# _LT_TRY_DLOPEN_SELF # LT_SYS_DLOPEN_SELF # ------------------ AC_DEFUN([LT_SYS_DLOPEN_SELF], [m4_require([_LT_HEADER_DLFCN])dnl if test "x$enable_dlopen" != xyes; 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 AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ lt_cv_dlopen="dyld" lt_cv_dlopen_libs= lt_cv_dlopen_self=yes ]) ;; *) AC_CHECK_FUNC([shl_load], [lt_cv_dlopen="shl_load"], [AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], [AC_CHECK_FUNC([dlopen], [lt_cv_dlopen="dlopen"], [AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) ]) ]) ]) ]) ]) ;; esac if test "x$lt_cv_dlopen" != xno; then enable_dlopen=yes else enable_dlopen=no fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" test "x$ac_cv_header_dlfcn_h" = xyes && 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" AC_CACHE_CHECK([whether a program can dlopen itself], lt_cv_dlopen_self, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) ]) if test "x$lt_cv_dlopen_self" = xyes; then wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" AC_CACHE_CHECK([whether a statically linked program can dlopen itself], lt_cv_dlopen_self_static, [dnl _LT_TRY_DLOPEN_SELF( lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) ]) 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 _LT_DECL([dlopen_support], [enable_dlopen], [0], [Whether dlopen is supported]) _LT_DECL([dlopen_self], [enable_dlopen_self], [0], [Whether dlopen of programs is supported]) _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], [Whether dlopen of statically linked programs is supported]) ])# LT_SYS_DLOPEN_SELF # Old name: AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) # _LT_COMPILER_C_O([TAGNAME]) # --------------------------- # Check to see if options -c and -o are simultaneously supported by compiler. # This macro does not hard code the compiler like AC_PROG_CC_C_O. m4_defun([_LT_COMPILER_C_O], [m4_require([_LT_DECL_SED])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=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:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&AS_MESSAGE_LOG_FD echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 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 "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/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_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes fi fi chmod u+w . 2>&AS_MESSAGE_LOG_FD $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* ]) _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], [Does compiler simultaneously support -c and -o options?]) ])# _LT_COMPILER_C_O # _LT_COMPILER_FILE_LOCKS([TAGNAME]) # ---------------------------------- # Check to see if we can do hard links to lock some files if needed m4_defun([_LT_COMPILER_FILE_LOCKS], [m4_require([_LT_ENABLE_LOCK])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl _LT_COMPILER_C_O([$1]) hard_links="nottested" if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) 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 AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) ])# _LT_COMPILER_FILE_LOCKS # _LT_CHECK_OBJDIR # ---------------- m4_defun([_LT_CHECK_OBJDIR], [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], [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]) objdir=$lt_cv_objdir _LT_DECL([], [objdir], [0], [The name of the directory that contains temporary libtool files])dnl m4_pattern_allow([LT_OBJDIR])dnl AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", [Define to the sub-directory in which libtool stores uninstalled libraries.]) ])# _LT_CHECK_OBJDIR # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) # -------------------------------------- # Check hardcoding attributes. m4_defun([_LT_LINKER_HARDCODE_LIBPATH], [AC_MSG_CHECKING([how to hardcode library paths into programs]) _LT_TAGVAR(hardcode_action, $1)= if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || test -n "$_LT_TAGVAR(runpath_var, $1)" || test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existent directories. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && # 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 "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. _LT_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. _LT_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. _LT_TAGVAR(hardcode_action, $1)=unsupported fi AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then # Fast installation is not supported enable_fast_install=no elif test "$shlibpath_overrides_runpath" = yes || test "$enable_shared" = no; then # Fast installation is not necessary enable_fast_install=needless fi _LT_TAGDECL([], [hardcode_action], [0], [How to hardcode a shared library path into an executable]) ])# _LT_LINKER_HARDCODE_LIBPATH # _LT_CMD_STRIPLIB # ---------------- m4_defun([_LT_CMD_STRIPLIB], [m4_require([_LT_DECL_EGREP]) striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) 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" AC_MSG_RESULT([yes]) 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" AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi ;; *) AC_MSG_RESULT([no]) ;; esac fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) ])# _LT_CMD_STRIPLIB # _LT_SYS_DYNAMIC_LINKER([TAG]) # ----------------------------- # PORTME Fill in your ld.so characteristics m4_defun([_LT_SYS_DYNAMIC_LINKER], [AC_REQUIRE([AC_CANONICAL_HOST])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_OBJDUMP])dnl m4_require([_LT_DECL_SED])dnl AC_MSG_CHECKING([dynamic linker characteristics]) m4_if([$1], [], [ if test "$GCC" = yes; then case $host_os in darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; *) lt_awk_arg="/^libraries:/" ;; esac lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then # 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 -e 's/;/ /g'` else lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` fi # 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` 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" else 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; } }'` sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 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 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 need_lib_prefix=no need_version=no hardcode_into_libs=yes if test "$host_cpu" = ia64; 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 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct # soname into executable. Probably we can add versioning support to # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # 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}' else # 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' fi 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=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $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 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,$host_os in yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 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="/usr/lib /lib/w32api /lib /usr/local/lib" ;; mingw* | cegcc*) # MinGW DLLs use traditional 'lib' prefix soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then # It is most probably a Windows format PATH printed by # mingw gcc, but we are running on Cygwin. Gcc prints its search # path with ; separators, and with drive letters. We can handle the # drive letters (cygwin fileutils understands them), so leave them, # especially as we might pass files found there to a mingw objdump, # which wouldn't understand a cygwinified path. Ahh. 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 ;; 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 ;; *) library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' # 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`' m4_if([$1], [],[ 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 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 ;; freebsd1*) dynamic_linker=no ;; 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[[123]]*) 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} $libname${shared_ext}' 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 ;; gnu*) version_type=linux 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 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 "X$HPUX_IA64_MODE" = X32; then sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" else sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" fi sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec ;; 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' ;; interix[[3-9]]*) version_type=linux 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 "$lt_cv_prog_gnu_ld" = yes; then version_type=linux 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 ;; # This must be Linux ELF. linux* | k*bsd*-gnu) version_type=linux 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 save_LDFLAGS=$LDFLAGS save_libdir=$libdir eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], [shlibpath_overrides_runpath=yes])]) LDFLAGS=$save_LDFLAGS libdir=$save_libdir # 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 # Add ABI-specific directories to the system library path. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" # Append ld.so.conf contents 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;/^$/d' | tr '\n' ' '` sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $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 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*) version_type=sunos sys_lib_dlsearch_path_spec="/usr/lib" need_lib_prefix=no # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. case $host_os in openbsd3.3 | openbsd3.3.*) need_version=yes ;; *) need_version=no ;; esac 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 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then case $host_os in openbsd2.[[89]] | openbsd2.[[89]].*) shlibpath_overrides_runpath=no ;; *) shlibpath_overrides_runpath=yes ;; esac else shlibpath_overrides_runpath=yes fi ;; os2*) libname_spec='$name' shrext_cmds=".dll" need_lib_prefix=no library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; 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 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 "$with_gnu_ld" = yes; then need_lib_prefix=no fi need_version=yes ;; sysv4 | sysv4.3*) version_type=linux 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 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=freebsd-elf 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 "$with_gnu_ld" = yes; 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 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 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 AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no variables_saved_for_relink="PATH $shlibpath_var $runpath_var" if test "$GCC" = yes; then variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" fi if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" fi if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" fi _LT_DECL([], [variables_saved_for_relink], [1], [Variables whose values should be saved in libtool wrapper scripts and restored at link time]) _LT_DECL([], [need_lib_prefix], [0], [Do we need the "lib" prefix for modules?]) _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) _LT_DECL([], [version_type], [0], [Library versioning type]) _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) _LT_DECL([], [shlibpath_overrides_runpath], [0], [Is shlibpath searched before the hard-coded library search path?]) _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) _LT_DECL([], [library_names_spec], [1], [[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]]) _LT_DECL([], [soname_spec], [1], [[The coded name of the library, if different from the real name]]) _LT_DECL([], [postinstall_cmds], [2], [Command to use after installation of a shared archive]) _LT_DECL([], [postuninstall_cmds], [2], [Command to use after uninstallation of a shared archive]) _LT_DECL([], [finish_cmds], [2], [Commands used to finish a libtool library installation in a directory]) _LT_DECL([], [finish_eval], [1], [[As "finish_cmds", except a single script fragment to be evaled but not shown]]) _LT_DECL([], [hardcode_into_libs], [0], [Whether we should hardcode library paths into libraries]) _LT_DECL([], [sys_lib_search_path_spec], [2], [Compile-time system search path for libraries]) _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], [Run-time system search path for libraries]) ])# _LT_SYS_DYNAMIC_LINKER # _LT_PATH_TOOL_PREFIX(TOOL) # -------------------------- # find a file program which can recognize shared library AC_DEFUN([_LT_PATH_TOOL_PREFIX], [m4_require([_LT_DECL_EGREP])dnl AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, [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 dnl $ac_dummy forces splitting on constant user-supplied paths. dnl POSIX.2 word splitting is done only on the output of word expansions, dnl not every word. This closes a longstanding sh security hole. ac_dummy="m4_if([$2], , $PATH, [$2])" for ac_dir in $ac_dummy; do IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$1; then lt_cv_path_MAGIC_CMD="$ac_dir/$1" 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]) MAGIC_CMD="$lt_cv_path_MAGIC_CMD" if test -n "$MAGIC_CMD"; then AC_MSG_RESULT($MAGIC_CMD) else AC_MSG_RESULT(no) fi _LT_DECL([], [MAGIC_CMD], [0], [Used to examine libraries when file_magic_cmd begins with "file"])dnl ])# _LT_PATH_TOOL_PREFIX # Old name: AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) # _LT_PATH_MAGIC # -------------- # find a file program which can recognize a shared library m4_defun([_LT_PATH_MAGIC], [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) else MAGIC_CMD=: fi fi ])# _LT_PATH_MAGIC # LT_PATH_LD # ---------- # find the pathname to the GNU or non-GNU linker AC_DEFUN([LT_PATH_LD], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_CANONICAL_BUILD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl AC_ARG_WITH([gnu-ld], [AS_HELP_STRING([--with-gnu-ld], [assume the C compiler uses GNU ld @<:@default=no@:>@])], [test "$withval" = no || with_gnu_ld=yes], [with_gnu_ld=no])dnl ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by $CC]) 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 "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL(lt_cv_path_LD, [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 "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$lt_save_ifs" else lt_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$lt_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT($LD) else AC_MSG_RESULT(no) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) _LT_PATH_LD_GNU AC_SUBST([LD]) _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) ])# LT_PATH_LD # Old names: AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_LD], []) dnl AC_DEFUN([AC_PROG_LD], []) # _LT_PATH_LD_GNU #- -------------- m4_defun([_LT_PATH_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, [# 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]) with_gnu_ld=$lt_cv_prog_gnu_ld ])# _LT_PATH_LD_GNU # _LT_CMD_RELOAD # -------------- # find reload flag for linker # -- PORTME Some linkers may need a different reload flag. m4_defun([_LT_CMD_RELOAD], [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, [lt_cv_ld_reload_flag='-r']) 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 darwin*) if test "$GCC" = yes; then reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' else reload_cmds='$LD$reload_flag -o $output$reload_objs' fi ;; esac _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl _LT_DECL([], [reload_cmds], [2])dnl ])# _LT_CMD_RELOAD # _LT_CHECK_MAGIC_METHOD # ---------------------- # how to check for library dependencies # -- PORTME fill in with the dynamic library characteristics m4_defun([_LT_CHECK_MAGIC_METHOD], [m4_require([_LT_DECL_EGREP]) m4_require([_LT_DECL_OBJDUMP]) AC_CACHE_CHECK([how to recognize dependent libraries], lt_cv_deplibs_check_method, [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 # which 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 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 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 ;; gnu*) 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]) 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 Linux ELF. linux* | k*bsd*-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*) if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; 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 ;; esac ]) 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 _LT_DECL([], [deplibs_check_method], [1], [Method to check whether dependent libraries are shared objects]) _LT_DECL([], [file_magic_cmd], [1], [Command to use when deplibs_check_method == "file_magic"]) ])# _LT_CHECK_MAGIC_METHOD # LT_PATH_NM # ---------- # find the pathname to a BSD- or MS-compatible name lister AC_DEFUN([LT_PATH_NM], [AC_REQUIRE([AC_PROG_CC])dnl AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, [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 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break ;; *) case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break ;; *) 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]) if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" fi fi test -z "$NM" && NM=nm AC_SUBST([NM]) _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], [lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&AS_MESSAGE_LOG_FD (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) cat conftest.out >&AS_MESSAGE_LOG_FD if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" fi rm -f conftest*]) ])# LT_PATH_NM # Old names: AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_PROG_NM], []) dnl AC_DEFUN([AC_PROG_NM], []) # LT_LIB_M # -------- # check for math library AC_DEFUN([LT_LIB_M], [AC_REQUIRE([AC_CANONICAL_HOST])dnl LIBM= case $host in *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) # These system don't have libm, or don't need it ;; *-ncr-sysv4.3*) AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") ;; *) AC_CHECK_LIB(m, cos, LIBM="-lm") ;; esac AC_SUBST([LIBM]) ])# LT_LIB_M # Old name: AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_CHECK_LIBM], []) # _LT_COMPILER_NO_RTTI([TAGNAME]) # ------------------------------- m4_defun([_LT_COMPILER_NO_RTTI], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], lt_cv_prog_compiler_rtti_exceptions, [-fno-rtti -fno-exceptions], [], [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) fi _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], [Compiler flag to turn off builtin functions]) ])# _LT_COMPILER_NO_RTTI # _LT_CMD_GLOBAL_SYMBOLS # ---------------------- m4_defun([_LT_CMD_GLOBAL_SYMBOLS], [AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([LT_PATH_NM])dnl AC_REQUIRE([LT_PATH_LD])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_TAG_COMPILER])dnl # Check for command to grab the raw symbol name followed by C symbol from nm. AC_MSG_CHECKING([command to parse $NM output from $compiler object]) AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [ # 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 "$host_cpu" = ia64; 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 # 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 -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$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 -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/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 # and D for any global 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};"\ " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ " \$ 0!~/External *\|/{next};"\ " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ " {if(hide[section]) next};"\ " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ " s[1]~/^[@?]/{print s[1], s[1]; next};"\ " s[1]~prfx {split(s[1],t,\"@\"); print 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 # 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 AC_TRY_EVAL(ac_compile); then # Now try to grab the symbols. nlist=conftest.nm if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && 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 #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. */ const struct { const char *name; void *address; } lt__PROGRAM__LTX_preloaded_symbols[[]] = { { "@PROGRAM@", (void *) 0 }, _LT_EOF $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$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_save_LIBS="$LIBS" lt_save_CFLAGS="$CFLAGS" LIBS="conftstm.$ac_objext" CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then pipe_works=yes fi LIBS="$lt_save_LIBS" CFLAGS="$lt_save_CFLAGS" else echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD fi else echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD fi else echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD cat conftest.$ac_ext >&5 fi rm -rf conftest* conftst* # Do not use the global_symbol_pipe unless it works. if test "$pipe_works" = yes; then break else lt_cv_sys_global_symbol_pipe= fi done ]) 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 AC_MSG_RESULT(failed) else AC_MSG_RESULT(ok) fi _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], [Take the output of nm and produce a listing of raw symbols and C names]) _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], [Transform the output of nm in a proper C declaration]) _LT_DECL([global_symbol_to_c_name_address], [lt_cv_sys_global_symbol_to_c_name_address], [1], [Transform the output of nm in a C name address pair]) _LT_DECL([global_symbol_to_c_name_address_lib_prefix], [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], [Transform the output of nm in a C name address pair when lib prefix is needed]) ]) # _LT_CMD_GLOBAL_SYMBOLS # _LT_COMPILER_PIC([TAGNAME]) # --------------------------- m4_defun([_LT_COMPILER_PIC], [m4_require([_LT_TAG_COMPILER])dnl _LT_TAGVAR(lt_prog_compiler_wl, $1)= _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)= AC_MSG_CHECKING([for $compiler option to produce PIC]) m4_if([$1], [CXX], [ # C++ specific cases for pic, static, wl, etc. if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' ;; esac ;; beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; mingw* | cygwin* | os2* | pw32* | 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 m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; *djgpp*) # DJGPP does not support shared libraries at all _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. # Instead, we relocate shared libraries at runtime. ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; 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*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else case $host_os in aix[[4-9]]*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; chorus*) case $cc_basename in cxch68*) # Green Hills C++ Compiler # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" ;; esac ;; dgux*) case $cc_basename in ec++*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; ghcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; freebsd* | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' if test "$host_cpu" != ia64; then _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' fi ;; aCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' case $host_cpu in hppa*64*|ia64*) # +Z the default ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac ;; *) ;; esac ;; interix*) # This is c89, which is MS Visual C++ (no shared libs) # Anyone wants to do a port? ;; irix5* | irix6* | nonstopux*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' # CC pic flag -KPIC is the default. ;; *) ;; esac ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # KAI C++ Compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; ecpc* ) # old Intel C++ for x86_64 which still supported -KPIC. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; icpc* ) # Intel C++, used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgCC* | pgcpp*) # Portland Group C++ compiler _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; cxx*) # Compaq C++ # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xlc* | xlC*) # IBM XL 8.0 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; esac ;; esac ;; lynxos*) ;; m88k*) ;; mvs*) case $cc_basename in cxx*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' ;; *) ;; esac ;; netbsd*) ;; *qnx* | *nto*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' ;; RCC*) # Rational C++ 2.4.1 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; cxx*) # Digital/Compaq C++ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # Make sure the PIC flag is empty. It appears that all Alpha # Linux and Compaq Tru64 Unix objects are PIC. _LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; *) ;; esac ;; psos*) ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' ;; *) ;; esac ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; lcc*) # Lucid _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' ;; *) ;; esac ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) case $cc_basename in CC*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' ;; *) ;; esac ;; vxworks*) ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ], [ if test "$GCC" = yes; then _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' case $host_os in aix*) # All AIX code is PIC. if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='-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 m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' ;; 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_TAGVAR(lt_prog_compiler_pic, $1)='-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_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no enable_shared=no ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic fi ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' ;; esac else # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in aix*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' else _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' fi ;; 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). m4_if([$1], [GCJ], [], [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) ;; hpux9* | hpux10* | hpux11*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-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_TAGVAR(lt_prog_compiler_pic, $1)='+Z' ;; esac # Is there a better lt_prog_compiler_static that works with the bundled CC? _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; linux* | k*bsd*-gnu) case $cc_basename in # old Intel for x86_64 which still supported -KPIC. ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # icc used to be incompatible with GCC. # ICC 10 doesn't accept -KPIC any more. icc* | ifort*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; # Lahey Fortran 8.1. lf95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, # which looks to be a dead project) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; ccc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All Alpha code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; xl*) # IBM XL C 8.0/Fortran 10.1 on PPC _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' ;; *Sun\ F*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' _LT_TAGVAR(lt_prog_compiler_wl, $1)='' ;; esac ;; esac ;; newsos6) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *nto* | *qnx*) # QNX uses GNU C++, but need to define -shared option too, otherwise # it will coredump. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' ;; osf3* | osf4* | osf5*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' # All OSF/1 code is PIC. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; rdos*) _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; solaris*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' case $cc_basename in f77* | f90* | f95*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; *) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; esac ;; sunos4*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' fi ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; unicos*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; uts4*) _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' ;; *) _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no ;; esac fi ]) case $host_os in # For platforms which do not support PIC, -DPIC is meaningless: *djgpp*) _LT_TAGVAR(lt_prog_compiler_pic, $1)= ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" ;; esac AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], [How to pass a linker flag through the compiler]) # # Check to make sure the PIC flag actually works. # if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in "" | " "*) ;; *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; esac], [_LT_TAGVAR(lt_prog_compiler_pic, $1)= _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) fi _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], [Additional compiler flags for building library objects]) # # Check to make sure the static flag actually works. # wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), $lt_tmp_static_flag, [], [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], [Compiler flag to prevent dynamic linking]) ])# _LT_COMPILER_PIC # _LT_LINKER_SHLIBS([TAGNAME]) # ---------------------------- # See if the linker supports building shared libraries. m4_defun([_LT_LINKER_SHLIBS], [AC_REQUIRE([LT_PATH_LD])dnl AC_REQUIRE([LT_PATH_NM])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl m4_require([_LT_DECL_SED])dnl m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl m4_require([_LT_TAG_COMPILER])dnl AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) m4_if([$1], [CXX], [ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in aix[[4-9]]*) # If we're using GNU nm, then we don't want the "-C" option. # -C means demangle to AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' fi ;; pw32*) _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" ;; cygwin* | mingw* | cegcc*) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' ;; *) _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' ;; esac _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] ], [ runpath_var= _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_cmds, $1)= _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(old_archive_from_new_cmds, $1)= _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= _LT_TAGVAR(thread_safe_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= # include_expsyms should be a list of space-separated symbols to be *always* # included in the symbol list _LT_TAGVAR(include_expsyms, $1)= # 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'. _LT_TAGVAR(exclude_expsyms, $1)=['_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. dnl Note also adjust exclude_expsyms for C++ above. 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 "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac _LT_TAGVAR(ld_shlibs, $1)=yes if test "$with_gnu_ld" = yes; 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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no case `$LD -v 2>&1` in *\ [[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 "$host_cpu" != ia64; then _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: the GNU linker, at least up to release 2.9.1, 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 modify your PATH *** so that a non-GNU linker is found, and then restart. _LT_EOF fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$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)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach <jrb3@best.com> says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$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 (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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 _LT_TAGVAR(ld_shlibs, $1)=no fi ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='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) tmp_diet=no if test "$host_os" = linux-dietlibc; 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 "$tmp_diet" = no then tmp_addflag= tmp_sharedflag='-shared' case $cc_basename,$host_cpu in pgcc*) # Portland Group C compiler _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' tmp_addflag=' $pic_flag' ;; pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$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 _LT_TAGVAR(whole_archive_flag_spec, $1)= tmp_sharedflag='--shared' ;; xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) tmp_sharedflag='-qmkshrobj' tmp_addflag= ;; esac case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes tmp_sharedflag='-G' ;; *Sun\ F*) # Sun Fortran 8.3 tmp_sharedflag='-G' ;; esac _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='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 xlf*) # IBM XL Fortran 10.1 on PPC cannot create shared libs itself _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='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 $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi ;; esac else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' wlarc= else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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 _LT_TAGVAR(ld_shlibs, $1)=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 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) _LT_TAGVAR(ld_shlibs, $1)=no cat <<_LT_EOF 1>&2 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not *** 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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; sunos4*) _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' wlarc= _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then runpath_var= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else # PORTME fill in a description of your system's linker (not GNU ld) case $host_os in aix3*) _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes _LT_TAGVAR(archive_expsym_cmds, $1)='$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. _LT_TAGVAR(hardcode_minus_L, $1)=yes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. _LT_TAGVAR(hardcode_direct, $1)=unsupported fi ;; aix[[4-9]]*) if test "$host_cpu" = ia64; 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 AIX nm, but means don't demangle with GNU nm if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' else _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | 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 # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; 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. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GCC" = yes; 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 _LT_TAGVAR(hardcode_direct, $1)=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 _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi ;; esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an # empty executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$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. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${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. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; amigaos*) case $host_cpu in powerpc) # see comment about AmigaOS4 .so support _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='' ;; m68k) _LT_TAGVAR(archive_cmds, $1)='$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)' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac ;; bsdi[[45]]*) _LT_TAGVAR(export_dynamic_flag_spec, $1)=-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. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=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. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' # The linker will automatically build a .lib file if we build a DLL. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' # FIXME: Should let the user specify the lib program. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; freebsd1*) _LT_TAGVAR(ld_shlibs, $1)=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*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # Unfortunately, older versions of FreeBSD 2 do not have this feature. freebsd2*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. freebsd* | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; hpux9*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; hpux10*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes fi ;; hpux11*) if test "$GCC" = yes -a "$with_gnu_ld" = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac else case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' ;; esac fi if test "$with_gnu_ld" = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. _LT_TAGVAR(hardcode_minus_L, $1)=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${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. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" AC_LINK_IFELSE(int foo(void) {}, _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ) LDFLAGS="$save_LDFLAGS" else _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes _LT_TAGVAR(link_all_deplibs, $1)=yes ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out else _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; newsos6) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *nto* | *qnx*) ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' else case $host_os in openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' ;; esac fi else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; os2*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' ;; osf3*) if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; osf4* | osf5*) # as osf3* with the addition of -msym flag if test "$GCC" = yes; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' else _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' # Both c and cxx compiler support -rpath directly _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' fi _LT_TAGVAR(archive_cmds_need_lc, $1)='no' _LT_TAGVAR(hardcode_libdir_separator, $1)=: ;; solaris*) _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' if test "$GCC" = yes; then wlarc='${wl}' _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared ${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='' _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='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}' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='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 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=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 "$GCC" = yes; then _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' else _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' fi ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*) if test "x$host_vendor" = xsequent; then # Use $CC to link under sequent, because it throws in some extra .o # files that make .init and .fini sections work. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4) case $host_vendor in sni) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? ;; siemens) ## LD is ld it makes a PLAMLIB ## CC just makes a GrossModule. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' _LT_TAGVAR(hardcode_direct, $1)=no ;; motorola) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie ;; esac runpath_var='LD_RUN_PATH' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; sysv4.3*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' ;; sysv4*MP*) if test -d /usr/nec; then _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var=LD_RUN_PATH hardcode_runpath_var=yes _LT_TAGVAR(ld_shlibs, $1)=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT 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. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' if test "$GCC" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' else _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' fi ;; uts4*) _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(ld_shlibs, $1)=no ;; esac if test x$host_vendor = xsni; then case $host in sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' ;; esac fi fi ]) AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl _LT_DECL([], [extract_expsyms_cmds], [2], [The commands to extract the exported symbol list from a shared archive]) # # Do we need to explicitly link libc? # case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in x|xyes) # Assume -lc should be added _LT_TAGVAR(archive_cmds_need_lc, $1)=yes if test "$enable_shared" = yes && test "$GCC" = yes; then case $_LT_TAGVAR(archive_cmds, $1) 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. AC_MSG_CHECKING([whether -lc should be explicitly linked in]) $RM conftest* echo "$lt_simple_compile_test_code" > conftest.$ac_ext if AC_TRY_EVAL(ac_compile) 2>conftest.err; then soname=conftest lib=conftest libobjs=conftest.$ac_objext deplibs= wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) compiler_flags=-v linker_flags=-v verstring= output_objdir=. libname=conftest lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) _LT_TAGVAR(allow_undefined_flag, $1)= if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) then _LT_TAGVAR(archive_cmds_need_lc, $1)=no else _LT_TAGVAR(archive_cmds_need_lc, $1)=yes fi _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag else cat conftest.err 1>&5 fi $RM conftest* AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) ;; esac fi ;; esac _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], [Whether or not to add -lc for building shared libraries]) _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], [enable_shared_with_static_runtimes], [0], [Whether or not to disallow shared libs when runtime libs are static]) _LT_TAGDECL([], [export_dynamic_flag_spec], [1], [Compiler flag to allow reflexive dlopens]) _LT_TAGDECL([], [whole_archive_flag_spec], [1], [Compiler flag to generate shared objects directly from archives]) _LT_TAGDECL([], [compiler_needs_object], [1], [Whether the compiler copes with passing no objects directly]) _LT_TAGDECL([], [old_archive_from_new_cmds], [2], [Create an old-style archive from a shared archive]) _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], [Create a temporary old-style archive to link instead of a shared archive]) _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) _LT_TAGDECL([], [archive_expsym_cmds], [2]) _LT_TAGDECL([], [module_cmds], [2], [Commands used to build a loadable module if different from building a shared archive.]) _LT_TAGDECL([], [module_expsym_cmds], [2]) _LT_TAGDECL([], [with_gnu_ld], [1], [Whether we are building with GNU ld or not]) _LT_TAGDECL([], [allow_undefined_flag], [1], [Flag that allows shared libraries with undefined symbols to be built]) _LT_TAGDECL([], [no_undefined_flag], [1], [Flag that enforces no undefined symbols]) _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], [Flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]) _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], [[If ld is used when linking, flag to hardcode $libdir into a binary during linking. This must work even if $libdir does not exist]]) _LT_TAGDECL([], [hardcode_libdir_separator], [1], [Whether we need a single "-rpath" flag with a separated argument]) _LT_TAGDECL([], [hardcode_direct], [0], [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_direct_absolute], [0], [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]) _LT_TAGDECL([], [hardcode_minus_L], [0], [Set to "yes" if using the -LDIR flag during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_shlibpath_var], [0], [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into the resulting binary]) _LT_TAGDECL([], [hardcode_automatic], [0], [Set to "yes" if building a shared library automatically hardcodes DIR into the library and all subsequent libraries and executables linked against it]) _LT_TAGDECL([], [inherit_rpath], [0], [Set to yes if linker adds runtime paths of dependent libraries to runtime path list]) _LT_TAGDECL([], [link_all_deplibs], [0], [Whether libtool must link a program against all its dependency libraries]) _LT_TAGDECL([], [fix_srcfile_path], [1], [Fix the shell variable $srcfile for the compiler]) _LT_TAGDECL([], [always_export_symbols], [0], [Set to "yes" if exported symbols are required]) _LT_TAGDECL([], [export_symbols_cmds], [2], [The commands to list exported symbols]) _LT_TAGDECL([], [exclude_expsyms], [1], [Symbols that should not be listed in the preloaded symbols]) _LT_TAGDECL([], [include_expsyms], [1], [Symbols that must always be exported]) _LT_TAGDECL([], [prelink_cmds], [2], [Commands necessary for linking programs (against libraries) with templates]) _LT_TAGDECL([], [file_list_spec], [1], [Specify filename containing input files]) dnl FIXME: Not yet implemented dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], dnl [Compiler flag to generate thread safe objects]) ])# _LT_LINKER_SHLIBS # _LT_LANG_C_CONFIG([TAG]) # ------------------------ # Ensure that the configuration variables for a C compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_C_CONFIG], [m4_require([_LT_DECL_EGREP])dnl lt_save_CC="$CC" AC_LANG_PUSH(C) # Source file extension for C test sources. ac_ext=c # Object file extension for compiled C test sources. objext=o _LT_TAGVAR(objext, $1)=$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);}' _LT_TAG_COMPILER # 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 _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) LT_SYS_DLOPEN_SELF _LT_CMD_STRIPLIB # Report which library types will actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_CONFIG($1) fi AC_LANG_POP CC="$lt_save_CC" ])# _LT_LANG_C_CONFIG # _LT_PROG_CXX # ------------ # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ # compiler, we have our own version here. m4_defun([_LT_PROG_CXX], [ pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) AC_PROG_CXX if test -n "$CXX" && ( test "X$CXX" != "Xno" && ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || (test "X$CXX" != "Xg++"))) ; then AC_PROG_CXXCPP else _lt_caught_CXX_error=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_CXX dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_CXX], []) # _LT_LANG_CXX_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a C++ compiler are suitably # defined. These variables are subsequently used by _LT_CONFIG to write # the compiler configuration to `libtool'. m4_defun([_LT_LANG_CXX_CONFIG], [AC_REQUIRE([_LT_PROG_CXX])dnl m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_DECL_EGREP])dnl AC_LANG_PUSH(C++) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(compiler_needs_object, $1)=no _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for C++ test sources. ac_ext=cpp # Object file extension for compiled C++ test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the CXX compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_caught_CXX_error" != yes; then # 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(int, char *[[]]) { return(0); }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC=$CC lt_save_LD=$LD lt_save_GCC=$GCC GCC=$GXX lt_save_with_gnu_ld=$with_gnu_ld lt_save_path_LD=$lt_cv_path_LD if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx else $as_unset lt_cv_prog_gnu_ld fi if test -n "${lt_cv_path_LDCXX+set}"; then lt_cv_path_LD=$lt_cv_path_LDCXX else $as_unset lt_cv_path_LD fi test -z "${LDCXX+set}" || LD=$LDCXX CC=${CXX-"c++"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then # We don't want -fno-exception when compiling C++ code, so set the # no_builtin_flag separately if test "$GXX" = yes; then _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' else _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= fi if test "$GXX" = yes; then # Set up default GNU C++ configuration LT_PATH_LD # Check if GNU C++ uses GNU ld as the underlying linker, since the # archiving commands below assume that GNU ld is being used. if test "$with_gnu_ld" = yes; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # If archive_cmds runs LD, not CC, wlarc should be empty # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to # investigate it a little bit more. (MM) wlarc='${wl}' # ancient GNU ld didn't support --whole-archive et. al. if eval "`$CC -print-prog-name=ld` --help 2>&1" | $GREP 'no-whole-archive' > /dev/null; then _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' else _LT_TAGVAR(whole_archive_flag_spec, $1)= fi else with_gnu_ld=no wlarc= # A generic and very simple default shared library creation # command for GNU C++ for the case where it uses the native # linker, instead of GNU ld. If possible, this setting should # overridden to take advantage of the native linker features on # the platform it is being used on. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' fi # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else GXX=no with_gnu_ld=no wlarc= fi # PORTME: fill in a description of your system's C++ link characteristics AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) _LT_TAGVAR(ld_shlibs, $1)=yes case $host_os in aix3*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aix[[4-9]]*) if test "$host_cpu" = ia64; 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 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 # need to do runtime linking. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) for ld_flag in $LDFLAGS; do case $ld_flag in *-brtl*) aix_use_runtimelinking=yes break ;; esac done ;; 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. _LT_TAGVAR(archive_cmds, $1)='' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' if test "$GXX" = yes; 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 _LT_TAGVAR(hardcode_direct, $1)=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 _LT_TAGVAR(hardcode_minus_L, $1)=yes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)= fi esac shared_flag='-shared' if test "$aix_use_runtimelinking" = yes; then shared_flag="$shared_flag "'${wl}-G' fi else # not using gcc if test "$host_cpu" = ia64; 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 "$aix_use_runtimelinking" = yes; then shared_flag='${wl}-G' else shared_flag='${wl}-bM:SRE' fi fi fi _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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. _LT_TAGVAR(always_export_symbols, $1)=yes if test "$aix_use_runtimelinking" = yes; then # Warning - without using the other runtime loading flags (-brtl), # -berok will link without error, but may produce a broken library. _LT_TAGVAR(allow_undefined_flag, $1)='-berok' # Determine the default libpath from the value encoded in an empty # executable. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" else if test "$host_cpu" = ia64; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" _LT_TAGVAR(archive_expsym_cmds, $1)="\$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. _LT_SYS_MODULE_PATH_AIX _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${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. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' # Exported symbols can be pulled into shared objects from archives _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' _LT_TAGVAR(archive_cmds_need_lc, $1)=yes # This is similar to how AIX traditionally builds its shared # libraries. _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi ;; beos*) if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Joseph Beckenbach <jrb3@best.com> says some releases of gcc # support --undefined. This deserves some investigation. FIXME _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; chorus*) case $cc_basename in *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; cygwin* | mingw* | pw32* | cegcc*) # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, # as there is no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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 (1st line # is EXPORTS), use it as is; otherwise, prepend... _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; 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 -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; darwin* | rhapsody*) _LT_DARWIN_LINKER_FEATURES($1) ;; dgux*) case $cc_basename in ec++*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; ghcx*) # Green Hills C++ Compiler # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; freebsd[[12]]*) # C++ shared libraries reported to be fairly broken before # switch to ELF _LT_TAGVAR(ld_shlibs, $1)=no ;; freebsd-elf*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; freebsd* | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes ;; gnu*) ;; hpux9*) _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; hpux10*|hpux11*) if test $with_gnu_ld = no; then _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: case $host_cpu in hppa*64*|ia64*) ;; *) _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' ;; esac fi case $host_cpu in hppa*64*|ia64*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no ;; *) _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, # but as the default # location of the library. ;; esac case $cc_basename in CC*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; aCC*) case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes; then if test $with_gnu_ld = no; then case $host_cpu in hppa*64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; ia64*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' ;; esac fi else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; interix[[3-9]]*) _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${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. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='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' ;; irix5* | irix6*) case $cc_basename in CC*) # SGI C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' # Archives containing C++ object files must be created using # "CC -ar", where "CC" is the IRIX C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' ;; *) if test "$GXX" = yes; then if test "$with_gnu_ld" = no; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' else _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' fi fi _LT_TAGVAR(link_all_deplibs, $1)=yes ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: _LT_TAGVAR(inherit_rpath, $1)=yes ;; linux* | k*bsd*-gnu) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' # Archives containing C++ object files must be created using # "CC -Bstatic", where "CC" is the KAI C++ compiler. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; icpc* | ecpc* ) # Intel C++ with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and # earlier do not add the objects themselves. case `$CC -V 2>&1` in *"Version 7."*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; *) # Version 8.0 or newer tmp_idyn= case $host_cpu in ia64*) tmp_idyn=' -i_dynamic';; esac _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; esac _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' ;; pgCC* | pgcpp*) # Portland Group C++ compiler case `$CC -V` in *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ $RANLIB $oldlib' _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ rm -rf $tpldir~ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; *) # Version 6 will use weak symbols _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' ;; cxx*) # Compaq C++ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' runpath_var=LD_RUN_PATH _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; xl*) # IBM XL 8.0 on PPC, with GNU ld _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' if test "x$supports_anon_versioning" = xyes; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' fi ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes # Not sure whether something based on # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 # would be better. output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; esac ;; esac ;; lynxos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; m88k*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; mvs*) case $cc_basename in cxx*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; netbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' wlarc= _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no fi # Workaround some broken pre-1.5 toolchains output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' ;; *nto* | *qnx*) _LT_TAGVAR(ld_shlibs, $1)=yes ;; openbsd2*) # C++ shared libraries are fairly broken _LT_TAGVAR(ld_shlibs, $1)=no ;; openbsd*) if test -f /usr/libexec/ld.so; then _LT_TAGVAR(hardcode_direct, $1)=yes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=yes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' fi output_verbose_link_cmd=echo else _LT_TAGVAR(ld_shlibs, $1)=no fi ;; osf3* | osf4* | osf5*) case $cc_basename in KCC*) # Kuck and Associates, Inc. (KAI) C++ Compiler # KCC will only create a shared library if the output file # ends with ".so" (or ".sl" for HP-UX), so rename the library # to its proper name (with version) after linking. _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Archives containing C++ object files must be created using # the KAI C++ compiler. case $host in osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; esac ;; RCC*) # Rational C++ 2.4.1 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; cxx*) case $host in osf3*) _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' ;; *) _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ echo "-hidden">> $lib.exp~ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ $RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' ;; esac _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. # # There doesn't appear to be a way to prevent this compiler from # explicitly linking system object files so we need to strip them # from the output so that they don't get included in the library # dependencies. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' ;; *) if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' case $host in osf3*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' ;; esac _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=: # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no fi ;; esac ;; psos*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; sunos4*) case $cc_basename in CC*) # Sun C++ 4.x # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; lcc*) # Lucid # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; solaris*) case $cc_basename in CC*) # Sun C++ 4.2, 5.x and Centerline C++ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=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'. # Supported since Solaris 2.6 (maybe 2.5.1?) _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes output_verbose_link_cmd='echo' # Archives containing C++ object files must be created using # "CC -xar", where "CC" is the Sun C++ compiler. This is # necessary to make sure instantiated templates are included # in the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' ;; gcx*) # Green Hills C++ Compiler _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' # The C++ compiler must be used to create the archive. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' ;; *) # GNU C++ compiler with Solaris linker if test "$GXX" = yes && test "$with_gnu_ld" = no; then _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' if $CC --version | $GREP -v '^2\.7' > /dev/null; then _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' else # g++ 2.7 appears to require `-G' NOT `-shared' on this # platform. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' # Commands to make compiler produce verbose output that lists # what "hidden" libraries, object files and flags are used when # linking a shared library. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' fi _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac fi ;; esac ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; sysv5* | sco3.2v5* | sco5v6*) # Note: We can NOT 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. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(hardcode_shlibpath_var, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' _LT_TAGVAR(hardcode_libdir_separator, $1)=':' _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' runpath_var='LD_RUN_PATH' case $cc_basename in CC*) _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; *) _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' ;; esac ;; tandem*) case $cc_basename in NCC*) # NonStop-UX NCC 3.20 # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac ;; vxworks*) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; *) # FIXME: insert proper C++ library support _LT_TAGVAR(ld_shlibs, $1)=no ;; esac AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no _LT_TAGVAR(GCC, $1)="$GXX" _LT_TAGVAR(LD, $1)="$LD" ## 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... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" CC=$lt_save_CC LDCXX=$LD LD=$lt_save_LD GCC=$lt_save_GCC with_gnu_ld=$lt_save_with_gnu_ld lt_cv_path_LDCXX=$lt_cv_path_LD lt_cv_path_LD=$lt_save_path_LD lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld fi # test "$_lt_caught_CXX_error" != yes AC_LANG_POP ])# _LT_LANG_CXX_CONFIG # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) # --------------------------------- # Figure out "hidden" library dependencies from verbose # compiler output when linking a shared library. # Parse the compiler output and extract the necessary # objects, libraries and library flags. m4_defun([_LT_SYS_HIDDEN_LIBDEPS], [m4_require([_LT_FILEUTILS_DEFAULTS])dnl # Dependencies to place before and after the object being linked: _LT_TAGVAR(predep_objects, $1)= _LT_TAGVAR(postdep_objects, $1)= _LT_TAGVAR(predeps, $1)= _LT_TAGVAR(postdeps, $1)= _LT_TAGVAR(compiler_lib_search_path, $1)= dnl we can't use the lt_simple_compile_test_code here, dnl because it contains code intended for an executable, dnl not a library. It's possible we should let each dnl tag define a new lt_????_link_test_code variable, dnl but it's only used here... m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF int a; void foo (void) { a = 0; } _LT_EOF ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF class Foo { public: Foo (void) { a = 0; } private: int a; }; _LT_EOF ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer*4 a a=0 return end _LT_EOF ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF subroutine foo implicit none integer a a=0 return end _LT_EOF ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF public class foo { private int a; public void bar (void) { a = 0; } }; _LT_EOF ]) dnl Parse the compiler output and extract the necessary dnl objects, libraries and library flags. if AC_TRY_EVAL(ac_compile); then # Parse the compiler output and extract the necessary # objects, libraries and library flags. # Sentinel used to keep track of whether or not we are before # the conftest object file. pre_test_object_deps_done=no for p in `eval "$output_verbose_link_cmd"`; do case $p in -L* | -R* | -l*) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test $p = "-L" || test $p = "-R"; then prev=$p continue else prev= fi if test "$pre_test_object_deps_done" = no; then case $p in -L* | -R*) # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" else _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" fi ;; # The "-l" case would never come before the object being # linked, so don't bother handling this case. esac else if test -z "$_LT_TAGVAR(postdeps, $1)"; then _LT_TAGVAR(postdeps, $1)="${prev}${p}" else _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" fi fi ;; *.$objext) # This assumes that the test object file only shows up # once in the compiler output. if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue fi if test "$pre_test_object_deps_done" = no; then if test -z "$_LT_TAGVAR(predep_objects, $1)"; then _LT_TAGVAR(predep_objects, $1)="$p" else _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" fi else if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then _LT_TAGVAR(postdep_objects, $1)="$p" else _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" fi fi ;; *) ;; # Ignore the rest. esac done # Clean up. rm -f a.out a.exe else echo "libtool.m4: error: problem compiling $1 test program" fi $RM -f confest.$objext # PORTME: override above test on systems where it is broken m4_if([$1], [CXX], [case $host_os in interix[[3-9]]*) # Interix 3.5 installs completely hosed .la files for C++, so rather than # hack all around it, let's just trust "g++" to DTRT. _LT_TAGVAR(predep_objects,$1)= _LT_TAGVAR(postdep_objects,$1)= _LT_TAGVAR(postdeps,$1)= ;; linux*) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) # Sun C++ 5.9 # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; solaris*) case $cc_basename in CC*) # The more standards-conforming stlport4 library is # incompatible with the Cstd library. Avoid specifying # it if it's in CXXFLAGS. Ignore libCrun as # -library=stlport4 depends on it. case " $CXX $CXXFLAGS " in *" -library=stlport4 "*) solaris_use_stlport4=yes ;; esac # Adding this requires a known-good setup of shared libraries for # Sun compiler versions before 5.6, else PIC objects from an old # archive will be linked into the output, leading to subtle bugs. if test "$solaris_use_stlport4" != yes; then _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' fi ;; esac ;; esac ]) case " $_LT_TAGVAR(postdeps, $1) " in *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; esac _LT_TAGVAR(compiler_lib_search_dirs, $1)= if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` fi _LT_TAGDECL([], [compiler_lib_search_dirs], [1], [The directories searched by this compiler when creating a shared library]) _LT_TAGDECL([], [predep_objects], [1], [Dependencies to place before and after the objects being linked to create a shared library]) _LT_TAGDECL([], [postdep_objects], [1]) _LT_TAGDECL([], [predeps], [1]) _LT_TAGDECL([], [postdeps], [1]) _LT_TAGDECL([], [compiler_lib_search_path], [1], [The library search path used internally by the compiler when linking a shared library]) ])# _LT_SYS_HIDDEN_LIBDEPS # _LT_PROG_F77 # ------------ # Since AC_PROG_F77 is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_F77], [ pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) AC_PROG_F77 if test -z "$F77" || test "X$F77" = "Xno"; then _lt_disable_F77=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_F77 dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_F77], []) # _LT_LANG_F77_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for a Fortran 77 compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_F77_CONFIG], [AC_REQUIRE([_LT_PROG_F77])dnl AC_LANG_PUSH(Fortran 77) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for f77 test sources. ac_ext=f # Object file extension for compiled f77 test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the F77 compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_F77" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${F77-"f77"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) GCC=$G77 if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$G77" _LT_TAGVAR(LD, $1)="$LD" ## 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... _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_F77" != yes AC_LANG_POP ])# _LT_LANG_F77_CONFIG # _LT_PROG_FC # ----------- # Since AC_PROG_FC is broken, in that it returns the empty string # if there is no fortran compiler, we have our own version here. m4_defun([_LT_PROG_FC], [ pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) AC_PROG_FC if test -z "$FC" || test "X$FC" = "Xno"; then _lt_disable_FC=yes fi popdef([AC_MSG_ERROR]) ])# _LT_PROG_FC dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([_LT_PROG_FC], []) # _LT_LANG_FC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for a Fortran compiler are # suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_FC_CONFIG], [AC_REQUIRE([_LT_PROG_FC])dnl AC_LANG_PUSH(Fortran) _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(allow_undefined_flag, $1)= _LT_TAGVAR(always_export_symbols, $1)=no _LT_TAGVAR(archive_expsym_cmds, $1)= _LT_TAGVAR(export_dynamic_flag_spec, $1)= _LT_TAGVAR(hardcode_direct, $1)=no _LT_TAGVAR(hardcode_direct_absolute, $1)=no _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= _LT_TAGVAR(hardcode_libdir_separator, $1)= _LT_TAGVAR(hardcode_minus_L, $1)=no _LT_TAGVAR(hardcode_automatic, $1)=no _LT_TAGVAR(inherit_rpath, $1)=no _LT_TAGVAR(module_cmds, $1)= _LT_TAGVAR(module_expsym_cmds, $1)= _LT_TAGVAR(link_all_deplibs, $1)=unknown _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds _LT_TAGVAR(no_undefined_flag, $1)= _LT_TAGVAR(whole_archive_flag_spec, $1)= _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no # Source file extension for fc test sources. ac_ext=${ac_fc_srcext-f} # Object file extension for compiled fc test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # No sense in running all these tests if we already determined that # the FC compiler isn't working. Some variables (like enable_shared) # are currently assumed to apply to all compilers on this platform, # and will be corrupted by setting them based on a non-working compiler. if test "$_lt_disable_FC" != yes; then # Code to be used in simple compile tests lt_simple_compile_test_code="\ subroutine t return end " # Code to be used in simple link tests lt_simple_link_test_code="\ program t end " # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC CC=${FC-"f95"} compiler=$CC GCC=$ac_cv_fc_compiler_gnu _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) if test -n "$compiler"; then AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) AC_MSG_CHECKING([whether to build shared libraries]) test "$can_build_shared" = "no" && 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 "$enable_shared" = yes && enable_static=no if test -n "$RANLIB"; then archive_cmds="$archive_cmds~\$RANLIB \$lib" postinstall_cmds='$RANLIB $lib' fi ;; aix[[4-9]]*) if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then test "$enable_shared" = yes && enable_static=no fi ;; esac AC_MSG_RESULT([$enable_shared]) AC_MSG_CHECKING([whether to build static libraries]) # Make sure either enable_shared or enable_static is yes. test "$enable_shared" = yes || enable_static=yes AC_MSG_RESULT([$enable_static]) _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" _LT_TAGVAR(LD, $1)="$LD" ## 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... _LT_SYS_HIDDEN_LIBDEPS($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_SYS_DYNAMIC_LINKER($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi # test -n "$compiler" GCC=$lt_save_GCC CC="$lt_save_CC" fi # test "$_lt_disable_FC" != yes AC_LANG_POP ])# _LT_LANG_FC_CONFIG # _LT_LANG_GCJ_CONFIG([TAG]) # -------------------------- # Ensure that the configuration variables for the GNU Java Compiler compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_GCJ_CONFIG], [AC_REQUIRE([LT_PROG_GCJ])dnl AC_LANG_SAVE # Source file extension for Java test sources. ac_ext=java # Object file extension for compiled Java test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code="class foo {}" # Code to be used in simple link tests lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC=yes CC=${GCJ-"gcj"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_TAGVAR(LD, $1)="$LD" _LT_CC_BASENAME([$compiler]) # GCJ did not exist at the time GCC didn't implicitly link libc in. _LT_TAGVAR(archive_cmds_need_lc, $1)=no _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds if test -n "$compiler"; then _LT_COMPILER_NO_RTTI($1) _LT_COMPILER_PIC($1) _LT_COMPILER_C_O($1) _LT_COMPILER_FILE_LOCKS($1) _LT_LINKER_SHLIBS($1) _LT_LINKER_HARDCODE_LIBPATH($1) _LT_CONFIG($1) fi AC_LANG_RESTORE GCC=$lt_save_GCC CC="$lt_save_CC" ])# _LT_LANG_GCJ_CONFIG # _LT_LANG_RC_CONFIG([TAG]) # ------------------------- # Ensure that the configuration variables for the Windows resource compiler # are suitably defined. These variables are subsequently used by _LT_CONFIG # to write the compiler configuration to `libtool'. m4_defun([_LT_LANG_RC_CONFIG], [AC_REQUIRE([LT_PROG_RC])dnl AC_LANG_SAVE # Source file extension for RC test sources. ac_ext=rc # Object file extension for compiled RC test sources. objext=o _LT_TAGVAR(objext, $1)=$objext # Code to be used in simple compile tests lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' # Code to be used in simple link tests lt_simple_link_test_code="$lt_simple_compile_test_code" # ltmain only uses $CC for tagged configurations so make sure $CC is set. _LT_TAG_COMPILER # save warnings/boilerplate of simple test code _LT_COMPILER_BOILERPLATE _LT_LINKER_BOILERPLATE # Allow CC to be a program name with arguments. lt_save_CC="$CC" lt_save_GCC=$GCC GCC= CC=${RC-"windres"} compiler=$CC _LT_TAGVAR(compiler, $1)=$CC _LT_CC_BASENAME([$compiler]) _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes if test -n "$compiler"; then : _LT_CONFIG($1) fi GCC=$lt_save_GCC AC_LANG_RESTORE CC="$lt_save_CC" ])# _LT_LANG_RC_CONFIG # LT_PROG_GCJ # ----------- AC_DEFUN([LT_PROG_GCJ], [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], [AC_CHECK_TOOL(GCJ, gcj,) test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" AC_SUBST(GCJFLAGS)])])[]dnl ]) # Old name: AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_GCJ], []) # LT_PROG_RC # ---------- AC_DEFUN([LT_PROG_RC], [AC_CHECK_TOOL(RC, windres,) ]) # Old name: AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_RC], []) # _LT_DECL_EGREP # -------------- # If we don't have a new enough Autoconf to choose the best grep # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_EGREP], [AC_REQUIRE([AC_PROG_EGREP])dnl AC_REQUIRE([AC_PROG_FGREP])dnl test -z "$GREP" && GREP=grep _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) _LT_DECL([], [EGREP], [1], [An ERE matcher]) _LT_DECL([], [FGREP], [1], [A literal string matcher]) dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too AC_SUBST([GREP]) ]) # _LT_DECL_OBJDUMP # -------------- # If we don't have a new enough Autoconf to choose the best objdump # available, choose the one first in the user's PATH. m4_defun([_LT_DECL_OBJDUMP], [AC_CHECK_TOOL(OBJDUMP, objdump, false) test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) AC_SUBST([OBJDUMP]) ]) # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates # as few characters as possible. Prefer GNU sed if found. m4_defun([_LT_DECL_SED], [AC_PROG_SED test -z "$SED" && SED=sed Xsed="$SED -e 1s/^X//" _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], [Sed that helps us avoid accidentally triggering echo(1) options like -n]) ])# _LT_DECL_SED m4_ifndef([AC_PROG_SED], [ # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # # macro and use it instead. # m4_defun([AC_PROG_SED], [AC_MSG_CHECKING([for a sed that does not truncate output]) AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done IFS=$as_save_IFS lt_ac_max=0 lt_ac_count=0 # Add /usr/xpg4/bin/sed as it is typically found on Solaris # along with /bin/sed that truncates output. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do test ! -f $lt_ac_sed && continue cat /dev/null > conftest.in lt_ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >conftest.in # Check for GNU sed and select it if it is found. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then lt_cv_path_SED=$lt_ac_sed break fi while true; do cat conftest.in conftest.in >conftest.tmp mv conftest.tmp conftest.in cp conftest.in conftest.nl echo >>conftest.nl $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break cmp -s conftest.out conftest.nl || break # 10000 chars as input seems more than enough test $lt_ac_count -gt 10 && break lt_ac_count=`expr $lt_ac_count + 1` if test $lt_ac_count -gt $lt_ac_max; then lt_ac_max=$lt_ac_count lt_cv_path_SED=$lt_ac_sed fi done done ]) SED=$lt_cv_path_SED AC_SUBST([SED]) AC_MSG_RESULT([$SED]) ])#AC_PROG_SED ])#m4_ifndef # Old name: AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([LT_AC_PROG_SED], []) # _LT_CHECK_SHELL_FEATURES # ------------------------ # Find out whether the shell is Bourne or XSI compatible, # or has some other useful features. m4_defun([_LT_CHECK_SHELL_FEATURES], [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) # Try some XSI features xsi_shell=no ( _lt_dummy="a/b/c" test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ = c,a/b,, \ && eval 'test $(( 1 + 1 )) -eq 2 \ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ && xsi_shell=yes AC_MSG_RESULT([$xsi_shell]) _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) AC_MSG_CHECKING([whether the shell understands "+="]) lt_shell_append=no ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ >/dev/null 2>&1 \ && lt_shell_append=yes AC_MSG_RESULT([$lt_shell_append]) _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then lt_unset=unset else lt_unset=false fi _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl # 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 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl ])# _LT_CHECK_SHELL_FEATURES # _LT_PROG_XSI_SHELLFNS # --------------------- # Bourne and XSI compatible variants of some useful shell functions. m4_defun([_LT_PROG_XSI_SHELLFNS], [case $xsi_shell in yes) cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac } # func_basename file func_basename () { func_basename_result="${1##*/}" } # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { case ${1} in */*) func_dirname_result="${1%/*}${2}" ;; * ) func_dirname_result="${3}" ;; esac func_basename_result="${1##*/}" } # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). func_stripname () { # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are # positional parameters, so assign one to ordinary parameter first. func_stripname_result=${3} func_stripname_result=${func_stripname_result#"${1}"} func_stripname_result=${func_stripname_result%"${2}"} } # func_opt_split func_opt_split () { func_opt_split_opt=${1%%=*} func_opt_split_arg=${1#*=} } # func_lo2o object func_lo2o () { case ${1} in *.lo) func_lo2o_result=${1%.lo}.${objext} ;; *) func_lo2o_result=${1} ;; esac } # func_xform libobj-or-source func_xform () { func_xform_result=${1%.*}.lo } # func_arith arithmetic-term... func_arith () { func_arith_result=$(( $[*] )) } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=${#1} } _LT_EOF ;; *) # Bourne compatible functions. cat << \_LT_EOF >> "$cfgfile" # func_dirname file append nondir_replacement # Compute the dirname of FILE. If nonempty, add APPEND to the result, # otherwise set result to NONDIR_REPLACEMENT. func_dirname () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi } # func_basename file func_basename () { func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } dnl func_dirname_and_basename dnl A portable version of this function is already defined in general.m4sh dnl so there is no need for it here. # func_stripname prefix suffix name # strip PREFIX and SUFFIX off of NAME. # PREFIX and SUFFIX must not contain globbing or regex special # characters, hashes, percent signs, but SUFFIX may contain a leading # dot (in which case that matches only a dot). # func_strip_suffix prefix name func_stripname () { case ${2} in .*) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; *) func_stripname_result=`$ECHO "X${3}" \ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; esac } # sed scripts: my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' my_sed_long_arg='1s/^-[[^=]]*=//' # func_opt_split func_opt_split () { func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` } # func_lo2o object func_lo2o () { func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` } # func_xform libobj-or-source func_xform () { func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` } # func_arith arithmetic-term... func_arith () { func_arith_result=`expr "$[@]"` } # func_len string # STRING may not start with a hyphen. func_len () { func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` } _LT_EOF esac case $lt_shell_append in yes) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]+=\$[2]" } _LT_EOF ;; *) cat << \_LT_EOF >> "$cfgfile" # func_append var value # Append VALUE to the end of shell variable VAR. func_append () { eval "$[1]=\$$[1]\$[2]" } _LT_EOF ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltoptions.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) # ------------------------------------------ m4_define([_LT_MANGLE_OPTION], [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) # --------------------------------------- # Set option OPTION-NAME for macro MACRO-NAME, and if there is a # matching handler defined, dispatch to it. Other OPTION-NAMEs are # saved as a flag. m4_define([_LT_SET_OPTION], [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), _LT_MANGLE_DEFUN([$1], [$2]), [m4_warning([Unknown $1 option `$2'])])[]dnl ]) # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) # ------------------------------------------------------------ # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. m4_define([_LT_IF_OPTION], [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) # ------------------------------------------------------- # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME # are set. m4_define([_LT_UNLESS_OPTIONS], [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), [m4_define([$0_found])])])[]dnl m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 ])[]dnl ]) # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) # ---------------------------------------- # OPTION-LIST is a space-separated list of Libtool options associated # with MACRO-NAME. If any OPTION has a matching handler declared with # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about # the unknown option and exit. m4_defun([_LT_SET_OPTIONS], [# Set options m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), [_LT_SET_OPTION([$1], _LT_Option)]) m4_if([$1],[LT_INIT],[ dnl dnl Simply set some default values (i.e off) if boolean options were not dnl specified: _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no ]) _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no ]) dnl dnl If no reference was made to various pairs of opposing options, then dnl we run the default mode handler for the pair. For example, if neither dnl `shared' nor `disable-shared' was passed, we enable building of shared dnl archives by default: _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], [_LT_ENABLE_FAST_INSTALL]) ]) ])# _LT_SET_OPTIONS # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) # ----------------------------------------- m4_define([_LT_MANGLE_DEFUN], [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) # ----------------------------------------------- m4_define([LT_OPTION_DEFINE], [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl ])# LT_OPTION_DEFINE # dlopen # ------ LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes ]) AU_DEFUN([AC_LIBTOOL_DLOPEN], [_LT_SET_OPTION([LT_INIT], [dlopen]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `dlopen' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) # win32-dll # --------- # Declare package support for building win32 dll's. LT_OPTION_DEFINE([LT_INIT], [win32-dll], [enable_win32_dll=yes case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) AC_CHECK_TOOL(AS, as, false) AC_CHECK_TOOL(DLLTOOL, dlltool, false) AC_CHECK_TOOL(OBJDUMP, objdump, false) ;; esac test -z "$AS" && AS=as _LT_DECL([], [AS], [0], [Assembler program])dnl test -z "$DLLTOOL" && DLLTOOL=dlltool _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl test -z "$OBJDUMP" && OBJDUMP=objdump _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl ])# win32-dll AU_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_REQUIRE([AC_CANONICAL_HOST])dnl _LT_SET_OPTION([LT_INIT], [win32-dll]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `win32-dll' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) # _LT_ENABLE_SHARED([DEFAULT]) # ---------------------------- # implement the --enable-shared flag, and supports the `shared' and # `disable-shared' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_SHARED], [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([shared], [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], [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], [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) _LT_DECL([build_libtool_libs], [enable_shared], [0], [Whether or not to build shared libraries]) ])# _LT_ENABLE_SHARED LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) # Old names: AC_DEFUN([AC_ENABLE_SHARED], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) ]) AC_DEFUN([AC_DISABLE_SHARED], [_LT_SET_OPTION([LT_INIT], [disable-shared]) ]) AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_SHARED], []) dnl AC_DEFUN([AM_DISABLE_SHARED], []) # _LT_ENABLE_STATIC([DEFAULT]) # ---------------------------- # implement the --enable-static flag, and support the `static' and # `disable-static' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_STATIC], [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([static], [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], [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], [enable_static=]_LT_ENABLE_STATIC_DEFAULT) _LT_DECL([build_old_libs], [enable_static], [0], [Whether or not to build static libraries]) ])# _LT_ENABLE_STATIC LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) # Old names: AC_DEFUN([AC_ENABLE_STATIC], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) ]) AC_DEFUN([AC_DISABLE_STATIC], [_LT_SET_OPTION([LT_INIT], [disable-static]) ]) AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AM_ENABLE_STATIC], []) dnl AC_DEFUN([AM_DISABLE_STATIC], []) # _LT_ENABLE_FAST_INSTALL([DEFAULT]) # ---------------------------------- # implement the --enable-fast-install flag, and support the `fast-install' # and `disable-fast-install' LT_INIT options. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. m4_define([_LT_ENABLE_FAST_INSTALL], [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl AC_ARG_ENABLE([fast-install], [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], [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], [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) _LT_DECL([fast_install], [enable_fast_install], [0], [Whether or not to optimize for fast installation])dnl ])# _LT_ENABLE_FAST_INSTALL LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) # Old names: AU_DEFUN([AC_ENABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `fast-install' option into LT_INIT's first parameter.]) ]) AU_DEFUN([AC_DISABLE_FAST_INSTALL], [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `disable-fast-install' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) # _LT_WITH_PIC([MODE]) # -------------------- # implement the --with-pic flag, and support the `pic-only' and `no-pic' # LT_INIT options. # MODE is either `yes' or `no'. If omitted, it defaults to `both'. m4_define([_LT_WITH_PIC], [AC_ARG_WITH([pic], [AS_HELP_STRING([--with-pic], [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], [pic_mode="$withval"], [pic_mode=default]) test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl ])# _LT_WITH_PIC LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) # Old name: AU_DEFUN([AC_LIBTOOL_PICMODE], [_LT_SET_OPTION([LT_INIT], [pic-only]) AC_DIAGNOSE([obsolete], [$0: Remove this warning and the call to _LT_SET_OPTION when you put the `pic-only' option into LT_INIT's first parameter.]) ]) dnl aclocal-1.4 backwards compatibility: dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) m4_define([_LTDL_MODE], []) LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], [m4_define([_LTDL_MODE], [nonrecursive])]) LT_OPTION_DEFINE([LTDL_INIT], [recursive], [m4_define([_LTDL_MODE], [recursive])]) LT_OPTION_DEFINE([LTDL_INIT], [subproject], [m4_define([_LTDL_MODE], [subproject])]) m4_define([_LTDL_TYPE], []) LT_OPTION_DEFINE([LTDL_INIT], [installable], [m4_define([_LTDL_TYPE], [installable])]) LT_OPTION_DEFINE([LTDL_INIT], [convenience], [m4_define([_LTDL_TYPE], [convenience])]) # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 6 ltsugar.m4 # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) # lt_join(SEP, ARG1, [ARG2...]) # ----------------------------- # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their # associated separator. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier # versions in m4sugar had bugs. m4_define([lt_join], [m4_if([$#], [1], [], [$#], [2], [[$2]], [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) m4_define([_lt_join], [m4_if([$#$2], [2], [], [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) # lt_car(LIST) # lt_cdr(LIST) # ------------ # Manipulate m4 lists. # These macros are necessary as long as will still need to support # Autoconf-2.59 which quotes differently. m4_define([lt_car], [[$1]]) m4_define([lt_cdr], [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], [$#], 1, [], [m4_dquote(m4_shift($@))])]) m4_define([lt_unquote], $1) # lt_append(MACRO-NAME, STRING, [SEPARATOR]) # ------------------------------------------ # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. # Note that neither SEPARATOR nor STRING are expanded; they are appended # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). # No SEPARATOR is output if MACRO-NAME was previously undefined (different # than defined and empty). # # This macro is needed until we can rely on Autoconf 2.62, since earlier # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. m4_define([lt_append], [m4_define([$1], m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) # ---------------------------------------------------------- # Produce a SEP delimited list of all paired combinations of elements of # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list # has the form PREFIXmINFIXSUFFIXn. # Needed until we can rely on m4_combine added in Autoconf 2.62. m4_define([lt_combine], [m4_if(m4_eval([$# > 3]), [1], [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl [[m4_foreach([_Lt_prefix], [$2], [m4_foreach([_Lt_suffix], ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) # ----------------------------------------------------------------------- # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. m4_define([lt_if_append_uniq], [m4_ifdef([$1], [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], [lt_append([$1], [$2], [$3])$4], [$5])], [lt_append([$1], [$2], [$3])$4])]) # lt_dict_add(DICT, KEY, VALUE) # ----------------------------- m4_define([lt_dict_add], [m4_define([$1($2)], [$3])]) # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) # -------------------------------------------- m4_define([lt_dict_add_subkey], [m4_define([$1($2:$3)], [$4])]) # lt_dict_fetch(DICT, KEY, [SUBKEY]) # ---------------------------------- m4_define([lt_dict_fetch], [m4_ifval([$3], m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) # ----------------------------------------------------------------- m4_define([lt_if_dict_fetch], [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], [$5], [$6])]) # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) # -------------------------------------------------------------- m4_define([lt_dict_filter], [m4_if([$5], [], [], [lt_join(m4_quote(m4_default([$4], [[, ]])), lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl ]) # ltversion.m4 -- version numbers -*- Autoconf -*- # # Copyright (C) 2004 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004 # # 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. # Generated from ltversion.in. # serial 3017 ltversion.m4 # This file is part of GNU Libtool m4_define([LT_PACKAGE_VERSION], [2.2.6b]) m4_define([LT_PACKAGE_REVISION], [1.3017]) AC_DEFUN([LTVERSION_VERSION], [macro_version='2.2.6b' macro_revision='1.3017' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # serial 4 lt~obsolete.m4 # These exist entirely to fool aclocal when bootstrapping libtool. # # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) # which have later been changed to m4_define as they aren't part of the # exported API, or moved to Autoconf or Automake where they belong. # # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us # using a macro with the same name in our local m4/libtool.m4 it'll # pull the old libtool.m4 in (it doesn't see our shiny new m4_define # and doesn't know about Autoconf macros at all.) # # So we provide this file, which has a silly filename so it's always # included after everything else. This provides aclocal with the # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything # because those macros already exist, or will be overwritten later. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. # # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. # Yes, that means every name once taken will need to remain here until # we give up compatibility with versions before 1.7, at which point # we need to keep only those names which we still refer to. # This is to help aclocal find these macros, as it can't see m4_define. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # # Similar to PKG_CHECK_MODULES, make sure that the first instance of # this or PKG_CHECK_MODULES is called, or make sure to call # PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_ifval([$2], [$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD ifelse([$4], , [AC_MSG_ERROR(dnl [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT ])], [AC_MSG_RESULT([no]) $4]) elif test $pkg_failed = untried; then ifelse([$4], , [AC_MSG_FAILURE(dnl [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], [$4]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) ifelse([$3], , :, [$3]) fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 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.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11.1], [], [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.11.1])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, 2003, 2005 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], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$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, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 10 # 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", "GCJ", or "OBJC". # 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 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [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'. 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 8's {/usr,}/bin/sh. touch 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 ;; 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, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _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. FIXME. This creates each `.P' file that we will # 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" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 16 # 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. # 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.62])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], [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], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([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([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. 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)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # 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, 2003, 2005, 2008 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}" != 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, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # 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])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # 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 supports --run. # If it does, 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 case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006 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_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # _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])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # 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 ( 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 rm -f conftest.file 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 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)]) # Copyright (C) 2001, 2003, 2005 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, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _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, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _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. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. 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]) 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 ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/list.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000026715�11247156606�010254� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include "wv.h" int wvIsListEntry (PAP * apap, wvVersion ver) { if (ver == WORD8) { if (apap->ilfo) return (1); else return (0); } else { if (apap->nLvlAnm) { wvTrace (("old style pap, thats a list\n")); return (1); } else return (0); } return (0); } /* Paragraph List Formatting Given a paragraph and its corresponding PAP, the following process must be followed to find out the paragraph's list information: * Using the pap.ilfo, look up the LFO record in the pllfo with that (1-based) index. * Using the LFO, and the pap.ilvl, check to see if there are any overrides for this particular level. If so, and if the override pertains to both formatting and start-at value, use the LVL record from the correct LFOLVL in the LFO, and skip to step 5. * If the override does not pertain to either formatting or start-at value, we must look up the LST for this list. Using the LFO's List ID, search the rglst for the LST with that List ID. * Now, take from this LST any information (formatting or start-at value) we still need after consulting the LFO. * Once we've got the correct LVL record, apply the lvl.grpprlPapx to the PAP. It may adjust the indents and tab settings for the paragraph. * Use the other information in the LVL, such as the start at, number text, and grpprlChpx, to determine the appearance of the actual paragraph number text. */ int wvGetListEntryInfo (wvVersion ver, LVL ** finallvl, U32 ** nos, U8 ** nfcs, LVL * retlvl, LFO ** retlfo, PAP * apap, LFO ** lfo, LFOLVL * lfolvl, LVL * lvl, U32 * nolfo, LST ** lst, U16 * noofLST) { LST *alst = NULL; U32 i, number = 0; S32 j; U32 oldno; U32 fakeid; wvTrace (("given ilfo of %d %d\n", apap->ilfo, apap->ilvl)); if (apap->ilfo < 0) { apap->ilfo = abs (apap->ilfo); wvWarning ("Insane negative ilfo value, normalizing to %d and hoping for the best\n", apap->ilfo); } if ((apap->ilfo == 2047) || (ver != WORD8)) { retlvl->lvlf.iStartAt = apap->anld.iStartAt; retlvl->lvlf.nfc = apap->anld.nfc; wvTrace ( ("start %d,type is %d\n", apap->anld.iStartAt, apap->anld.nfc)); retlvl->lvlf.jc = apap->anld.jc; retlvl->lvlf.fLegal = 0; /*? */ retlvl->lvlf.fNoRestart = 0; /*? */ retlvl->lvlf.fPrev = apap->anld.fPrev; retlvl->lvlf.fPrevSpace = apap->anld.fPrevSpace; retlvl->lvlf.fWord6 = 1; retlvl->lvlf.rgbxchNums[0] = 0; /*wrong for now */ retlvl->lvlf.ixchFollow = 2; /*wrong for now */ retlvl->lvlf.dxaSpace = apap->anld.dxaSpace; retlvl->lvlf.dxaIndent = apap->anld.dxaIndent; retlvl->lvlf.cbGrpprlChpx = 0; /* wrong */ retlvl->lvlf.cbGrpprlPapx = 0; /* wrong */ retlvl->lvlf.reserved1 = 0; retlvl->lvlf.reserved2 = 0; retlvl->grpprlChpx = NULL; /* wrong */ retlvl->grpprlPapx = NULL; /* wrong */ /* wrong: begin of numbertext twiddling */ wvTrace (("before len %d\n", apap->anld.cxchTextBefore)); wvTrace (("after len %d\n", apap->anld.cxchTextAfter)); retlvl->numbertext = (XCHAR *) wvMalloc (sizeof (XCHAR) * 64); i = 0; for (; i < apap->anld.cxchTextBefore; i++) retlvl->numbertext[i] = apap->anld.rgxch[i]; retlvl->numbertext[i] = 2; for (i = apap->anld.cxchTextBefore; i < apap->anld.cxchTextAfter; i++) retlvl->numbertext[i + 1] = apap->anld.rgxch[i]; retlvl->numbertext[i + 1] = '\0'; /* end of numbertext twiddling */ /* temp test */ if (retlvl->lvlf.nfc > 5) retlvl->numbertext[0] = 0; /*word 6 anld, parse that instead */ fakeid = wvCheckSumANLD (&apap->anld); wvTrace (("creating a fake id of %x\n", fakeid)); for (i = 0; i < *nolfo; i++) { if (fakeid == (*lfo)[i].lsid) { wvTrace ( ("This is not the first time we've seen this list\n")); apap->ilfo = i + 1; if (apap->nLvlAnm >= 10) apap->nLvlAnm -= 10; if ((apap->nLvlAnm == 1) || (apap->nLvlAnm == 0)) apap->ilvl = 0; else apap->ilvl = apap->nLvlAnm - 1; if (apap->ilvl >= 10) apap->ilvl -= 10; for (i = 0; i < 9; i++) (*nos)[(apap->ilfo - 1) * 9 + i] = 0xffffffffL; for (i = 0; i < 9; i++) (*nfcs)[(apap->ilfo - 1) * 9 + i] = 0xff; wvTrace (("ilvl %d\n", apap->ilvl)); /* if this anld is a dodgy one 0x2e */ if ((apap->ilvl) && (apap->anld.fNumber1 == 0x2e)) { wvTrace (("Suspicious\n")); switch (apap->ilvl) { case 1: if (retlvl->lvlf.nfc == 0) retlvl->lvlf.nfc = 4; else if (retlvl->lvlf.nfc == 1) retlvl->lvlf.nfc = 3; break; case 2: if (retlvl->lvlf.nfc == 0) retlvl->lvlf.nfc = 2; else if (retlvl->lvlf.nfc == 1) retlvl->lvlf.nfc = 0; break; case 3: if (retlvl->lvlf.nfc == 0) retlvl->lvlf.nfc = 4; else if (retlvl->lvlf.nfc == 1) retlvl->lvlf.nfc = 4; break; case 4: if (retlvl->lvlf.nfc == 0) retlvl->lvlf.nfc = 0; else if (retlvl->lvlf.nfc == 1) retlvl->lvlf.nfc = 0; break; case 5: if (retlvl->lvlf.nfc == 0) retlvl->lvlf.nfc = 4; else if (retlvl->lvlf.nfc == 1) retlvl->lvlf.nfc = 4; break; case 6: if (retlvl->lvlf.nfc == 0) retlvl->lvlf.nfc = 2; else if (retlvl->lvlf.nfc == 1) retlvl->lvlf.nfc = 2; break; case 7: if (retlvl->lvlf.nfc == 0) retlvl->lvlf.nfc = 4; else if (retlvl->lvlf.nfc == 1) retlvl->lvlf.nfc = 4; break; case 8: if (retlvl->lvlf.nfc == 0) retlvl->lvlf.nfc = 2; else if (retlvl->lvlf.nfc == 1) retlvl->lvlf.nfc = 2; break; } } return (0); } } wvTrace (("This is the first time we've seen this list\n")); oldno = *nolfo; (*nolfo)++; /* realloc the lfo list to be one bigger, */ *lfo = (LFO *) realloc (*lfo, sizeof (LFO) * (*nolfo)); *nos = (U32 *) realloc (*nos, sizeof (U32) * 9 * (*nolfo)); *nfcs = (U8 *) realloc (*nfcs, 9 * (*nolfo)); wvTrace (("nos is now %d long\n", 9 * (*nolfo))); *finallvl = (LVL *) realloc (*finallvl, 9 * (*nolfo) * sizeof (LVL)); apap->ilfo = *nolfo; wvTrace (("ilvl is %d, nLvlAnm is %d\n", apap->ilvl, apap->nLvlAnm)); if (apap->nLvlAnm >= 10) apap->nLvlAnm -= 10; if ((apap->nLvlAnm == 1) || (apap->nLvlAnm == 0)) apap->ilvl = 0; else apap->ilvl = apap->nLvlAnm - 1; wvTrace (("ilfo set to %d\n", apap->ilfo)); /* begin new test */ (*noofLST)++; *lst = (LST *) realloc (*lst, sizeof (LST) * (*noofLST)); wvInitLST (&(((*lst)[(*noofLST) - 1]))); (*lst)[(*noofLST) - 1].lstf.lsid = fakeid; wvTrace (("ilvl is %d\n", apap->ilvl)); wvCopyLVL (&(((*lst)[(*noofLST) - 1]).lvl[apap->ilvl]), retlvl); /* end new test */ wvTrace (("End\n")); wvInitLFO (&((*lfo)[apap->ilfo - 1])); (*lfo)[apap->ilfo - 1].lsid = fakeid; /*how about this? */ *retlfo = &((*lfo)[apap->ilfo - 1]); for (i = 0; i < 9; i++) { (*nos)[(apap->ilfo - 1) * 9 + i] = 0xffffffffL; (*nfcs)[(apap->ilfo - 1) * 9 + i] = 0xff; wvInitLVL (&((*finallvl)[(apap->ilfo - 1) * 9 + i])); wvCopyLVL (&((*finallvl)[(apap->ilfo - 1) * 9 + i]), retlvl); } /* and set the ilfo and ilvl of the list to point to that fake entry instead and we'll have to repeat the procedure for the liststartnos */ return (0); } else if (apap->ilfo == 0) { /* no number */ return (0); } if (apap->ilfo > (S32) (*nolfo)) { wvWarning ("ilfo no %d, is greater than the number of existing lfo's (%d)\n", apap->ilfo, *nolfo); return (1); } /* Using the pap.ilfo, look up the LFO record in the pllfo with that (1-based) index. == (*lfo)[apap->ilfo] */ *retlfo = &((*lfo)[apap->ilfo - 1]); wvTrace (("looking for id %x\n", (*retlfo)->lsid)); if ((*lfo)[apap->ilfo - 1].clfolvl) { /* Using the LFO, and the pap.ilvl, check to see if there are any overrides for this particular level. If so, and if the override pertains to both formatting and start-at value, use the LVL record from the correct LFOLVL in the LFO, and skip to step 5. */ wvTrace (("some overridden levels, ilfo %d\n", apap->ilfo)); /* there are some levels overridden, find out if the level being overridden is the same as the level the paragraph wants */ for (j = 0; j < apap->ilfo - 1; j++) number += (*lfo)[j].clfolvl; for (i = 0; i < (*lfo)[apap->ilfo - 1].clfolvl; i++) { if (lfolvl[i + number].ilvl == apap->ilvl) { /* the requested level is overridden */ if ((lfolvl[i + number].fFormatting) && (lfolvl[i + number].fStartAt)) { /*save the existing lvl and swap in this new one instead */ alst = wvSearchLST ((*lfo)[apap->ilfo - 1].lsid, *lst, *noofLST); /*use the LVL record from the correct LFOLVL in the LFO */ wvCopyLVL (retlvl, &(lvl[i + number])); } else if (lfolvl[i + number].fStartAt) { alst = wvSearchLST ((*lfo)[apap->ilfo - 1].lsid, *lst, *noofLST); /* the lvl is the standard one with a new startat value */ wvCopyLVL (retlvl, &(alst->lvl[apap->ilvl])); retlvl->lvlf.iStartAt = lfolvl[i + number].iStartAt; } else if (lfolvl[i + number].fFormatting) { alst = wvSearchLST ((*lfo)[apap->ilfo - 1].lsid, *lst, *noofLST); /* the lvl is the overridden one, with the original startat */ wvCopyLVL (retlvl, &(lvl[i + number])); retlvl->lvlf.iStartAt = alst->lvl[apap->ilvl].lvlf.iStartAt; } } } } if (alst == NULL) { /* if there no overridden levels i assume that we search for the appropiate LST */ alst = wvSearchLST ((*lfo)[apap->ilfo - 1].lsid, *lst, *noofLST); if (alst != NULL) { wvTrace (("ilvl is %d\n", apap->ilvl)); if ((alst->lstf.fSimpleList) && (apap->ilvl)) { wvWarning ("Level %d requested from list with 1 level\n", apap->ilvl + 1); wvCopyLVL (retlvl, &(alst->lvl[0])); } else wvCopyLVL (retlvl, &(alst->lvl[apap->ilvl])); wvTrace (("string len is %d", retlvl->numbertext[0])); wvTrace (("offset is %d\n", retlvl->lvlf.rgbxchNums[0])); } } if (alst == NULL) { wvError (("No LST found for list\n")); return (1); } return (0); } ���������������������������������������������������wv-1.2.9/generic.c����������������������������������������������������������������������������������0000664�0000764�0000764�00000007177�11247156607�010717� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #ifdef HAVE_MALLOC_H #include <malloc.h> #endif #include "wv.h" #define SOME_ARBITRARY_LIMIT 1 int wvGetEmpty_PLCF (U32 ** cps, U32 * nocps, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *cps = NULL; *nocps = 0; } else { *nocps = len / 4; *cps = (U32 *) malloc (*nocps * sizeof (U32)); if (*cps == NULL) { wvError ( ("NO MEM 3, failed to alloc %d bytes\n", *nocps * sizeof (U32))); return (1); } wvStream_goto (fd, offset); for (i = 0; i < *nocps; i++) (*cps)[i] = read_32ubit (fd); } return (0); } void _wvFree (void* ptr) { g_free(ptr); } /** * Very simple malloc wrapper */ void * wvMalloc (U32 size) { void *p = NULL; int ntries = 0; if (size == 0) return NULL; /* loop trying to obtain memory */ do { p = (void *) g_try_malloc (size); if (p) break; ntries++; } while (ntries < SOME_ARBITRARY_LIMIT); if (!p) { wvError (("Could not allocate %d bytes\n", size)); exit (-1); } /* zero out the memory */ memset ( p, 0, size ) ; return p; } /* If the second most significant bit is clear, then this indicates the actual file offset of the unicode character (two bytes). If the second most significant bit is set, then the actual address of the codepage-1252 compressed version of the unicode character (one byte), is actually at the offset indicated by clearing this bit and dividing by two. */ /* flag = 1 means that this is a one byte char, 0 means that this is a type byte char */ U32 wvNormFC (U32 fc, int *flag) { if (fc & 0x40000000UL) { fc = fc & 0xbfffffffUL; fc = fc / 2; if (flag) *flag = 1; } else if (flag) *flag = 0; return (fc); } U16 wvGetChar (wvStream * fd, U8 chartype) { if (chartype == 1) return (read_8ubit (fd)); else return (read_16ubit (fd)); return (0); } int wvIncFC (U8 chartype) { if (chartype == 1) return (1); return (2); } int wvStrlen (const char *str) { if (str == NULL) return (0); return (strlen (str)); } char * wvStrcat (char *dest, const char *src) { if (src != NULL) return (strcat (dest, src)); else return (dest); } void wvAppendStr (char **orig, const char *add) { int pos; wvTrace (("got this far\n")); pos = wvStrlen (*orig); wvTrace (("len is %d %d\n", pos, wvStrlen (add))); (*orig) = (char *) realloc (*orig, pos + wvStrlen (add) + 1); (*orig)[pos] = '\0'; wvTrace (("3 test str of %s\n", *orig)); wvStrcat (*orig, add); wvTrace (("3 test str of %s\n", *orig)); } void wvStrToUpper (char *str) { int i; if (str == NULL) return; for (i = 0; i < wvStrlen (str); i++) str[i] = toupper (str[i]); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/getopt.h�����������������������������������������������������������������������������������0000664�0000764�0000764�00000010761�11247156607�010603� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Declarations for getopt. Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _GETOPT_H #define _GETOPT_H 1 #ifdef __cplusplus extern "C" { #endif /* For communication from `getopt' to the caller. When `getopt' finds an option that takes an argument, the argument value is returned here. Also, when `ordering' is RETURN_IN_ORDER, each non-option ARGV-element is returned here. */ extern char *optarg; /* Index in ARGV of the next element to be scanned. This is used for communication to and from the caller and for communication between successive calls to `getopt'. On entry to `getopt', zero means this is the first call; initialize. When `getopt' returns -1, this is the index of the first of the non-option elements that the caller should itself scan. Otherwise, `optind' communicates from one call to the next how much of ARGV has been scanned so far. */ extern int optind; /* Callers store zero here to inhibit the error message `getopt' prints for unrecognized options. */ extern int opterr; /* Set to an option character which was unrecognized. */ extern int optopt; /* Describe the long-named options requested by the application. The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector of `struct option' terminated by an element containing a name which is zero. The field `has_arg' is: no_argument (or 0) if the option does not take an argument, required_argument (or 1) if the option requires an argument, optional_argument (or 2) if the option takes an optional argument. If the field `flag' is not NULL, it points to a variable that is set to the value given in the field `val' when the option is found, but left unchanged if the option is not found. To have a long-named option do something other than set an `int' to a compiled-in constant, such as set a value from `optarg', set the option's `flag' field to zero and its `val' field to a nonzero value (the equivalent single-letter option character, if there is one). For long options that have a zero `flag' field, `getopt' returns the contents of the `val' field. */ struct option { #if defined (__STDC__) && __STDC__ const char *name; #else char *name; #endif /* has_arg can't be an enum because some compilers complain about type mismatches in all the code that assumes it is an int. */ int has_arg; int *flag; int val; }; /* Names for the values of the `has_arg' field of `struct option'. */ #define no_argument 0 #define required_argument 1 #define optional_argument 2 #if defined (__STDC__) && __STDC__ #ifdef __GNU_LIBRARY__ /* Many other libraries have conflicting prototypes for getopt, with differences in the consts, in stdlib.h. To avoid compilation errors, only prototype getopt for the GNU C library. */ extern int getopt (int argc, char *const *argv, const char *shortopts); #else /* not __GNU_LIBRARY__ */ extern int getopt (); #endif /* __GNU_LIBRARY__ */ extern int getopt_long (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind); extern int getopt_long_only (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind); /* Internal only. Users should not call this directly. */ extern int _getopt_internal (int argc, char *const *argv, const char *shortopts, const struct option *longopts, int *longind, int long_only); #else /* not __STDC__ */ extern int getopt (); extern int getopt_long (); extern int getopt_long_only (); extern int _getopt_internal (); #endif /* __STDC__ */ #ifdef __cplusplus } #endif #endif /* _GETOPT_H */ ���������������wv-1.2.9/isbidi.c�����������������������������������������������������������������������������������0000664�0000764�0000764�00000035152�11247156607�010540� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" /* This file contains implementation of wvIsBidiDocument() which can be used to determine if the document requires any bidi support. Please note, that for the function to work, the wvParseStruct must be already initialized; basically you should call this function from inside of your document callback procedure. As there is no simple way to determine this, we crawl over all the formatting records (section, paragraph, character) and look for the fBidi attribute being set. The bulk of the code was ripped from decode_simple.c and decode_complex.c, and stripped of the unnecessary bits and pieces. Tomas <tomas@frydrych.uklinux.net>, Feb 1, 2003 */ /* function prototypes */ int wvIsBidiDocumentSimple(wvParseStruct * ps, subdocument whichdoc); int wvIsBidiDocumentComplex(wvParseStruct * ps); int wvGetComplexParaBounds (wvVersion ver, PAPX_FKP * fkp, U32 * fcFirst, U32 * fcLim, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, wvStream * fd); int wvGetComplexCharBounds (wvVersion ver, CHPX_FKP * fkp, U32 * fcFirst, U32 * fcLim, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, wvStream * fd); void internal_wvReleasePAPX_FKP (PAPX_FKP * fkp); void internal_wvReleaseCHPX_FKP (CHPX_FKP * fkp); int wvIsBidiDocument(wvParseStruct * ps) { if (ps->fib.fComplex) return wvIsBidiDocumentComplex (ps); else return wvIsBidiDocumentSimple (ps, Dmain); } int wvIsBidiDocumentComplex (wvParseStruct * ps) { int ret = 0; U32 piececount = 0, i, j, spiece = 0; U32 beginfc, endfc; U32 stream_size; U32 begincp, endcp; int ichartype; U8 chartype; U32 para_fcFirst, para_fcLim = 0xffffffffL; U32 nextpara_fcLim = 0xffffffffL; U32 char_fcFirst, char_fcLim = 0xffffffffL; U32 section_fcFirst, section_fcLim = 0xffffffffL; BTE *btePapx = NULL, *bteChpx = NULL; U32 *posPapx = NULL, *posChpx = NULL; U32 para_intervals, char_intervals, section_intervals; int cpiece = 0, npiece = 0; PAPX_FKP para_fkp; PAP apap; CHPX_FKP char_fkp; CHP achp; int para_dirty = 0, char_dirty = 0, section_dirty = 0; SED *sed = NULL; SEP sep; U32 *posSedx = NULL; wvVersion ver = wvQuerySupported (&ps->fib, NULL); external_wvReleasePAPX_FKP (); external_wvReleaseCHPX_FKP (); para_fcFirst = char_fcFirst = section_fcFirst = wvConvertCPToFC (0, &ps->clx); /* we will need the paragraph and character bounds table to make decisions as to where a table begins and ends */ if ((ver == WORD6) || (ver == WORD7)) { wvGetBTE_PLCF6 (&btePapx, &posPapx, ¶_intervals, ps->fib.fcPlcfbtePapx, ps->fib.lcbPlcfbtePapx, ps->tablefd); wvGetBTE_PLCF6 (&bteChpx, &posChpx, &char_intervals, ps->fib.fcPlcfbteChpx, ps->fib.lcbPlcfbteChpx, ps->tablefd); } else { wvGetBTE_PLCF (&btePapx, &posPapx, ¶_intervals, ps->fib.fcPlcfbtePapx, ps->fib.lcbPlcfbtePapx, ps->tablefd); wvGetBTE_PLCF (&bteChpx, &posChpx, &char_intervals, ps->fib.fcPlcfbteChpx, ps->fib.lcbPlcfbteChpx, ps->tablefd); } wvGetSED_PLCF (&sed, &posSedx, §ion_intervals, ps->fib.fcPlcfsed, ps->fib.lcbPlcfsed, ps->tablefd); wvTrace (("section_intervals is %d\n", section_intervals)); wvInitPAPX_FKP (¶_fkp); wvInitCHPX_FKP (&char_fkp); /*get stream size for bounds checking*/ stream_size = wvStream_size(ps->mainfd); /*for each piece */ for (piececount = 0; piececount < ps->clx.nopcd; piececount++) { ichartype = wvGetPieceBoundsFC (&beginfc, &endfc, &ps->clx, piececount); if(ichartype==-1) break; chartype = (U8) ichartype; /*lvm007@aha.ru fix antiloop: check stream size */ if(beginfc>stream_size || endfc>stream_size){ wvError ( ("Piece Bounds out of range!, its a disaster\n")); continue; } wvStream_goto (ps->mainfd, beginfc); /*lvm007@aha.ru fix antiloop fix*/ if(wvGetPieceBoundsCP (&begincp, &endcp, &ps->clx, piececount)==-1) break; wvTrace ( ("piece begins at %x and ends just before %x. the char end is %x\n", beginfc, endfc, char_fcLim)); /* text that is not in the same piece is not guaranteed to have the same properties as the rest of the exception run, so force a stop and restart of these properties. */ char_fcLim = beginfc; for (i = begincp, j = beginfc; (i < endcp /*&& i<ps->fib.ccpText */ ); i++, j += wvIncFC (chartype)) { ps->currentcp = i; if ((section_fcLim == 0xffffffff) || (section_fcLim == j)) { section_dirty = wvGetSimpleSectionBounds (ver, ps, &sep, §ion_fcFirst, §ion_fcLim, i, &ps->clx, sed, &spiece, posSedx, section_intervals, &ps->stsh, ps->mainfd); section_dirty = (wvGetComplexSEP (ver, &sep, spiece, &ps->stsh, &ps->clx) ? 1 : section_dirty); if(sep.fBidi) { ret = 1; goto complex_return; } } if ((para_fcLim == 0xffffffffL) || (para_fcLim == j)) { wvReleasePAPX_FKP (¶_fkp); wvTrace ( ("cp and fc are %x(%d) %x\n", i, i, wvConvertCPToFC (i, &ps->clx))); cpiece = wvGetComplexParaBounds (ver, ¶_fkp, ¶_fcFirst, ¶_fcLim, wvConvertCPToFC (i, &ps->clx), &ps->clx, btePapx, posPapx, para_intervals, piececount, ps->mainfd); wvTrace ( ("para begin and end is %x %x\n", para_fcFirst, para_fcLim)); } if (j == para_fcFirst) { para_dirty = wvAssembleSimplePAP (ver, &apap, para_fcLim, ¶_fkp, ps); para_dirty = (wvAssembleComplexPAP (ver, &apap, cpiece,ps) ? 1 : para_dirty); #if 0 /* not sure what this is about, Tomas*/ /* test section */ wvReleasePAPX_FKP (¶_fkp); wvTrace ( ("cp and fc are %x(%d) %x\n", i, i, wvConvertCPToFC (i, &ps->clx))); npiece = wvGetComplexParaBounds (ver, ¶_fkp, &dummy, &nextpara_fcLim, para_fcLim, &ps->clx, btePapx, posPapx, para_intervals, piececount, ps->mainfd); wvTrace ( ("para begin and end is %x %x\n", para_fcFirst, para_fcLim)); if (npiece > -1) { wvAssembleSimplePAP (ver, &ps->nextpap, nextpara_fcLim, ¶_fkp, &ps->stsh, ps->data); wvAssembleComplexPAP (ver, &ps->nextpap, npiece, &ps->stsh, &ps->clx, ps->data); } else wvInitPAP (&ps->nextpap); /* end test section */ #endif if(apap.fBidi) { ret = 1; goto complex_return; } } if ((char_fcLim == 0xffffffffL) || (char_fcLim == j)) { wvReleaseCHPX_FKP (&char_fkp); /*try this without using the piece of the end char for anything */ wvGetComplexCharBounds (ver, &char_fkp, &char_fcFirst, &char_fcLim, wvConvertCPToFC (i, &ps->clx), &ps->clx, bteChpx, posChpx, char_intervals, piececount, ps->mainfd); wvTrace ( ("Bounds from %x to %x\n", char_fcFirst, char_fcLim)); if (char_fcLim == char_fcFirst) wvError ( ("I believe that this is an error, and you might see incorrect character properties\n")); } if (j == char_fcFirst) { /* a CHP's base style is in the para style */ /* achp.istd = apap.istd; */ wvTrace (("getting chp\n")); char_dirty = wvAssembleSimpleCHP (ver, &achp, &apap, char_fcLim, &char_fkp, &ps->stsh); wvTrace (("getting complex chp\n")); char_dirty = (wvAssembleComplexCHP (ver, &achp, cpiece, &ps->stsh, &ps->clx) ? 1 : char_dirty); if(achp.fBidi) { ret = 1; goto complex_return; } } } } complex_return: wvReleasePAPX_FKP (¶_fkp); wvReleaseCHPX_FKP (&char_fkp); wvFree (posSedx); wvFree (sed); wvFree (btePapx); wvFree (posPapx); wvFree (bteChpx); wvFree (posChpx); return ret; } int wvIsBidiDocumentSimple(wvParseStruct * ps, subdocument whichdoc) { int ret = 0; PAPX_FKP para_fkp; CHPX_FKP char_fkp; PAP apap; CHP achp; U32 piececount = 0, i, j = 0, spiece; U32 beginfc, endfc; U32 stream_size; U32 begincp, endcp; int ichartype; U8 chartype; U32 para_fcFirst, para_fcLim = 0xffffffff; U32 /*dummy,*/ nextpara_fcLim = 0xffffffff; U32 char_fcFirst, char_fcLim = 0xffffffff; U32 section_fcFirst, section_fcLim = 0xffffffff; BTE *btePapx = NULL, *bteChpx = NULL; U32 *posPapx = NULL, *posChpx = NULL; U32 para_intervals, char_intervals, section_intervals; int para_dirty = 0, char_dirty = 0, section_dirty = 0; SED *sed = NULL; SEP sep; U32 *posSedx = NULL; wvVersion ver; external_wvReleasePAPX_FKP (); external_wvReleaseCHPX_FKP (); ver = wvQuerySupported (&ps->fib, NULL); para_fcFirst = char_fcFirst = section_fcFirst = wvGetBeginFC (ps, whichdoc); /* we will need the paragraph and character bounds table to make decisions as to where a para/char run begins and ends */ if ((ver == WORD6) || (ver == WORD7)) { wvGetBTE_PLCF6 (&btePapx, &posPapx, ¶_intervals, ps->fib.fcPlcfbtePapx, ps->fib.lcbPlcfbtePapx, ps->tablefd); wvGetBTE_PLCF6 (&bteChpx, &posChpx, &char_intervals, ps->fib.fcPlcfbteChpx, ps->fib.lcbPlcfbteChpx, ps->tablefd); } else /* word 97 */ { wvGetBTE_PLCF (&btePapx, &posPapx, ¶_intervals, ps->fib.fcPlcfbtePapx, ps->fib.lcbPlcfbtePapx, ps->tablefd); wvGetBTE_PLCF (&bteChpx, &posChpx, &char_intervals, ps->fib.fcPlcfbteChpx, ps->fib.lcbPlcfbteChpx, ps->tablefd); } wvGetSED_PLCF (&sed, &posSedx, §ion_intervals, ps->fib.fcPlcfsed, ps->fib.lcbPlcfsed, ps->tablefd); wvTrace (("section_intervals is %d\n", section_intervals)); /* The text of the file starts at fib.fcMin, but we will use the piecetable records rather than this basic seek. fseek(ps->mainfd,ps->fib.fcMin,SEEK_SET); */ /* If !fib.fComplex, the document text stream is represented by the text beginning at fib.fcMin up to (but not including) fib.fcMac. */ if ((ver == WORD2) && !ps->fib.fComplex) { /* the formatting handler is not implemented, assume LTR (there will not be many of these around anyway)*/ goto simple_return; } wvInitPAPX_FKP (¶_fkp); wvInitCHPX_FKP (&char_fkp); /*get stream size for bounds checking*/ stream_size = wvStream_size(ps->mainfd); /*for each piece */ for (piececount = 0; piececount < ps->clx.nopcd; piececount++) { ichartype = wvGetPieceBoundsFC (&beginfc, &endfc, &ps->clx, piececount); if(ichartype==-1) break; chartype = (U8) ichartype; /*lvm007@aha.ru fix antiloop: check stream size */ if(beginfc>stream_size || endfc>stream_size){ wvError ( ("Piece Bounds out of range!, its a disaster\n")); continue; } wvStream_goto (ps->mainfd, beginfc); wvTrace (("SEEK %x\n", beginfc)); /*lvm007@aha.ru fix antiloop fix*/ if(wvGetPieceBoundsCP (&begincp, &endcp, &ps->clx, piececount)==-1) break; /* text that is not in the same piece is not guaranteed to have the same properties as the rest of the exception run, so force a stop and restart of these properties. */ char_fcLim = beginfc; wvTrace (("%d %d %d\n", begincp, endcp, ps->fib.ccpText)); for (i = begincp, j = beginfc; (i < endcp /*&& i<ps->fib.ccpText */ ); i++, j += wvIncFC (chartype)) { if ((section_fcLim == 0xffffffff) || (section_fcLim == j)) { wvTrace (("j i is %x %d\n", j, i)); /* the following call inits sep */ section_dirty = wvGetSimpleSectionBounds (ver, ps, &sep, §ion_fcFirst, §ion_fcLim, i, &ps->clx, sed, &spiece, posSedx, section_intervals, &ps->stsh, ps->mainfd); wvTrace ( ("section begins at %x ends %x\n", section_fcFirst, section_fcLim)); if(sep.fBidi) { ret = 1; goto simple_return; } } if ((para_fcLim == 0xffffffff) || (para_fcLim == j)) { wvReleasePAPX_FKP (¶_fkp); wvGetSimpleParaBounds (ver, ¶_fkp, ¶_fcFirst, ¶_fcLim, wvConvertCPToFC (i, &ps->clx), btePapx, posPapx, para_intervals, ps->mainfd); wvTrace ( ("Para from %x to %x, j is %x\n", para_fcFirst, para_fcLim, j)); } if (j == para_fcFirst) { para_dirty = wvAssembleSimplePAP (ver, &apap, para_fcLim, ¶_fkp, ps); if(apap.fBidi) { ret = 1; goto simple_return; } } if ((char_fcLim == 0xffffffff) || (char_fcLim == j)) { wvTrace (("j i is %x %d\n", j, i)); wvReleaseCHPX_FKP (&char_fkp); wvGetSimpleCharBounds (ver, &char_fkp, &char_fcFirst, &char_fcLim, i, &ps->clx, bteChpx, posChpx, char_intervals, ps->mainfd); wvTrace ( ("char begins at %x ends %x, j is %x\n", char_fcFirst, char_fcLim, j)); } if (j == char_fcFirst) { wvTrace (("assembling CHP...\n")); /* a CHP's base style is in the para style */ /* achp.istd = apap.istd; */ char_dirty = wvAssembleSimpleCHP (ver, &achp, &apap, char_fcLim, &char_fkp, &ps->stsh); wvTrace (("CHP assembled.\n")); if(achp.fBidi) { ret = 1; goto simple_return; } } } } simple_return: internal_wvReleasePAPX_FKP (¶_fkp); internal_wvReleaseCHPX_FKP (&char_fkp); wvFree (posSedx); wvFree (sed); #if defined(WIN32) wvReleasePAPX_FKP (¶_fkp); wvReleaseCHPX_FKP (&char_fkp); external_wvReleasePAPX_FKP (); external_wvReleaseCHPX_FKP(); #endif wvFree (btePapx); wvFree (posPapx); wvFree (bteChpx); wvFree (posChpx); return ret; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvHtml.in����������������������������������������������������������������������������������0000664�0000764�0000764�00000005636�11247156607�010746� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh wv_script_name="$0" prefix=@prefix@ exec_prefix= datadir= t_dir=. wv_opts= i_file= o_file= print_help=no while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg ;; --exec-prefix=*) exec_prefix=$optarg ;; --datadir=*) datadir=$optarg ;; --targetdir=*) t_dir=$optarg ;; --charset=* | --password=*) wv_opts="$wv_opts $1" ;; -1) wv_opts="$wv_opts $1" ;; -v | --version) echo @VERSION@ exit 0 ;; -\? | -h | --help) cat << EOF Usage: $wv_script_name [OPTIONS] <input-file> <output-file> Options: --prefix=<DIR> Set prefix (default is @prefix@) --exec-prefix=<DIR> Set exec_prefix (default is @exec_prefix@) --datadir=<DIR> Set datadir (default is @datadir@) --targetdir=<DIR> Target directory (target is <DIR>/<output-file>) --charset=<charset> Specify an iconv charset encoding --password=<password> Specify password for encrypted -v, --version Print version info and exit Authors: Dom Lachowicz (dominicl@seas.upenn.edu) Caolan McNamara (original author) Visit http://www.wvware.com/ EOF exit 0 ;; -?*) echo "Option '$1' not recognized." exit 1 ;; *) if test "x$i_file" = "x"; then i_file=$1 elif test "x$o_file" = "x"; then o_file=$1 else echo "Option '$1' not recognized." exit 1 fi ;; esac shift done if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as input" exit 1 fi if test -r "$i_file"; then okay=yes else echo "error: '$i_file' unreadable" exit 1 fi if test "x$o_file" = "x"; then echo "Usage: $1 [OPTIONS] <input-file> <output-file>" exit 1 fi name=`basename "$o_file"` if test "x$o_file" != "x$name"; then t_dir=`dirname "$o_file"` o_file=$name fi name=`echo $name | sed 's/\.[^\.]*$//'` if test "x$exec_prefix" = "x"; then exec_prefix=@exec_prefix@ fi wv_exec="$exec_prefix/bin/wvWare" if test -x "$wv_exec"; then okay=yes else wv_version=`wvWare -v 2>&1 | cut -f 2 -d " "` if test "x$wv_version" = "x@VERSION@"; then wv_exec="wvWare" else echo "error: no executable at '$wv_exec' or in path" exit 1 fi fi if test "x$datadir" = "x"; then datadir=@datadir@ fi xmlcfg="$datadir/wv/wvHtml.xml" if test -r "$xmlcfg"; then okay=yes else echo "error: '$xmlcfg' unreadable" exit 1 fi if test -d "$t_dir"; then if test -w "$t_dir"; then okay=yes else echo "error: '$t_dir' is not writable" exit 1 fi else echo "error: '$t_dir' is not a directory" exit 1 fi if test "x$o_file" = "x-"; then "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" else "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" > "$t_dir"/"$o_file" fi ��������������������������������������������������������������������������������������������������wv-1.2.9/patterns/����������������������������������������������������������������������������������0000775�0000764�0000764�00000000000�11454157202�011033� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/columnbreak.gif�������������������������������������������������������������������0000664�0000764�0000764�00000002014�11247156575�013755� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89aU �ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!þMade with GIMP�!ù����,����U ��×�H° Áƒ*\Ȱ¡Ã‡#JœH±¢Å‹3jÜȱ£G…×B†48²¢ÈkQ~\ɲ¥Ë—0c&, @eA›Uâœ)³§O–'ƒ J´¨Ñ£H“*]ÊTçAšNkÖYRäM(³bÍÕfÓ¯`ÊKvèϳh î”ʶk[¬oZÝ*ÕkÝ´xó6,Ë·¯ß¿QÕ«õm`ÂtéÎÝ ¸±ãÇdõJ~ ±áÁ…qºe{÷ðäÏ C‹Î¹¸ªé©\Q§VÍX1ÕÄ£cËžM»¶íÛ¸sëÞÍûe@�;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/96.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011712� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/147.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156576�011772� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/wmf.jpg���������������������������������������������������������������������������0000664�0000764�0000764�00000001460�11247156576�012264� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ�� �K"�ÿÄ���������������ÿÄ�)��������!1"Q2AaqÿÄ�����������������ÿÄ�����������������ÿÚ� ��?�v½w~Újnõ«ÍnfØ.ÿ�±ç)2TÜóöy7d…3(òG´Ÿz>–.þ⥷ÅvhcÜ)Û¼ü¾rFVHV0ä(ã)Êã^¿4•9�ä`ÿ�z©†&“ÜhиyÇÖ~´ì>ªÞ$Ûý+q®@NóZÀ™#ŒqVJï"Ér|§a²>_Ƙ½§ ¶¼Íco¯<Ò9Híå˜'Çg³ŽÉÑÓR±TS^( ¨à0 ùë:³W‰«5mD,¥ /C¬uãA§«¬\Œ<­Iw ­K¸VIÔl¢ª¨]yü³ÐààUw˳Á¶Á&ç ·sk;ƒÈ±Å1'Ër`Äà’pü»ÀÆ£f«^Þ÷Wo± rTÚ£Ò—>Ö�ˆwå¾üùÏœh ƦøÆAAÀañ­¦}_¸ï›m™î[‚­ˆ6š÷½¤Œ 3«ò'–O  ë¢>ûWtÝ}g¿«¡Úª]jÍ!eK”~@œ0qƒç½2lõà?ä?R d$TÂŽ# Å\Œ}]»þôÒjVc!jñ'æJŸýûÐgµ}M¸~ðžŠ*W©wt†)¬ô}®TU_—\™€@qàc éË•¤,£vÀb2Õ²G~ RGƈ~’°W_Óʼn�8–<gï]UUQ*¨À�` ÿÙ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/58.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156575�011712� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/200.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156576�011756� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/130.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156576�011762� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/154.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156576�011770� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/104.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156576�011761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/114.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156575�011761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/50.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156575�011702� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/186.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156576�011773� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/21.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156576�011673� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/46.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156575�011707� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/42.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156575�011701� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/185.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011771� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/36.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/159.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156576�011775� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/edeleted.jpg����������������������������������������������������������������������0000664�0000764�0000764�00000001054�11247156575�013244� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ���9"�ÿÄ���������������ÿÄ�*���������!1"#A2QU”ÒÿÄ�����������������ÿÄ�����������������ÿÚ� ��?�ìþ°Ü²ÛÅPj¤0O4¬Eû FÌHÎEÏNsÒH886õҲ﹮5’u➤tÊØ\÷æ\yÆqdŸËqÀi ‡mÜ·©®~¢9`Ap’%i' R2 …Â"|´Ò~ÜGɆÖK~é¿‘EU8'/ ifÄîŒïŸ�!•—É?là6A 4î[¾úÖ«™M L ¹Dœ§È2Ý¥ðN2ÜŽ5Wp]®{{Ûá –9R \Òœ&tí,sœ*™þN�'†š µû¦öÔUIu:Læ:ˆéóó A$~”–É^J¶=#°÷Cü7õ$ÿ�Zi ÿÙ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/documentend.gif�������������������������������������������������������������������0000664�0000764�0000764�00000002175�11247156576�013771� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a^�ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!þMade with GIMP�!ù����,����^��þ�H° Áƒ*\Ȱ¡Ã‡¬˜xÐÊŠˆ3jÜȱ£Ç CŠùq«@VUIˆÒ •—O¦´H²¦Í›8sêÜÉsa ‹YZ1ØRàO&yêÉ´)ÎkP£JJµªÕ«X³jÝʵkT�‚†^\qí%«‰(YYD©2ÀI až]Á¶ÊÌŸjœH-ʙٰâWIJ�¼*^̸±ãÇŒJî(­ÀkF gn™´(ß¡Uié–•À¡-S^ªZuË¿K_žL»vFȸsëÎý@€ÙŸ1.ŠÙó*r邆J05ëç«ùþ.»úîëØ³k¯j»ûHÑH«I§½Èvh�k½3 tÛÛä٠Σ·^Zt…jëÞóëßÏŸ£IØdÅTÞ^å¹ÛvÑ4ÜKÓÝuV_ôE×{j¡6×5©T6�;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/sectionendcontinous.gif�����������������������������������������������������������0000664�0000764�0000764�00000002107�11247156576�015554� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89aU �ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!þMade with GIMP�!ù����,����U ��þ�H° Áƒ*\Ȱ¡Ã‡#JœH±¢Å‹3jÜȱcÄk ^k2$I„#”4)’bJ0cÊœI³æÀ”/æl©ò¤Aœ/wêÌ(ԦѣW*]Ê´©Ó§P£JúTeN“!KZˆ•%ׯ#níIökY‚]†]'X¬7©ÊK·®]¹Hóz„íM²}ÏjåÚ7hÏ«“‚5kØ­ãÅ~õJ6z·²åËuýÂM|2bÀ„ãZý|–1è²SŸf©³ë×°¥Nž]ñ±ÙÛªÝ&ÖÝø4êÞ}çö̹(íãÈ“Û<–uj±iÕ†Ö*7ó®Í ¯»uåmåàË¿—¶qòèÓ«__úèyöé�;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/GNUmakefile.am��������������������������������������������������������������������0000664�0000764�0000764�00000004352�11247156576�013442� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ptndir = $(pkgdatadir)/patterns IMAGEFILES = \ 100.gif 131.gif 160.gif 189.gif 32.gif 63.gif 94.gif \ 101.gif 132.gif 161.gif 18.gif 33.gif 64.gif 95.gif \ 102.gif 133.gif 162.gif 190.gif 34.gif 65.gif 96.gif \ 103.gif 134.gif 163.gif 191.gif 35.gif 66.gif 97.gif \ 104.gif 135.gif 164.gif 192.gif 36.gif 67.gif 98.gif \ 105.gif 136.gif 165.gif 193.gif 37.gif 68.gif 99.gif \ 106.gif 137.gif 166.gif 194.gif 38.gif 69.gif battributes.jpg \ 107.gif 138.gif 167.gif 195.gif 39.gif 70.gif bdeleted.jpg \ 108.gif 139.gif 168.gif 196.gif 40.gif 71.gif bnewlytyped.jpg \ 109.gif 140.gif 169.gif 197.gif 41.gif 72.gif clear.gif \ 110.gif 141.gif 16.gif 198.gif 42.gif 73.gif columnbreak.gif \ 111.gif 142.gif 170.gif 199.gif 43.gif 74.gif commentbegin.gif \ 112.gif 143.gif 171.gif 19.gif 44.gif 75.gif commentend.gif \ 113.gif 144.gif 172.gif 200.gif 45.gif 76.gif deleted.jpg \ 114.gif 145.gif 173.gif 201.gif 46.gif 77.gif doccommentb.jpg \ 115.gif 146.gif 174.gif 202.gif 47.gif 78.gif doccommente.jpg \ 116.gif 147.gif 175.gif 203.gif 48.gif 79.gif documentend.gif \ 117.gif 148.gif 176.gif 204.gif 49.gif 80.gif eattributes.jpg \ 118.gif 149.gif 177.gif 205.gif 50.gif 81.gif edeleted.jpg \ 119.gif 14.gif 178.gif 20.gif 51.gif 82.gif endnotebegin.gif \ 120.gif 150.gif 179.gif 21.gif 52.gif 83.gif endnoteend.gif \ 121.gif 151.gif 17.gif 22.gif 53.gif 84.gif enewlytyped.jpg \ 122.gif 152.gif 180.gif 23.gif 54.gif 85.gif footnotebegin.gif \ 123.gif 153.gif 181.gif 24.gif 55.gif 86.gif footnoteend.gif \ 124.gif 154.gif 182.gif 25.gif 56.gif 87.gif pagebreak.gif \ 125.gif 155.gif 183.gif 26.gif 57.gif 88.gif sectionendcolumn.gif \ 126.gif 156.gif 184.gif 27.gif 58.gif 89.gif sectionendcontinous.gif \ 127.gif 157.gif 185.gif 28.gif 59.gif 90.gif sectionendeven.gif \ 128.gif 158.gif 186.gif 29.gif 60.gif 91.gif sectionendnewpage.gif \ 129.gif 159.gif 187.gif 30.gif 61.gif 92.gif sectionendodd.gif \ 130.gif 15.gif 188.gif 31.gif 62.gif 93.gif wmf.jpg ptn_DATA = $(IMAGEFILES) EXTRA_DIST = $(IMAGEFILES) ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/37.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156575�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/144.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011763� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/141.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156576�011756� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/191.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/27.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156576�011707� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/162.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156576�011765� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/GNUmakefile.in��������������������������������������������������������������������0000664�0000764�0000764�00000033441�11454157061�013442� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# GNUmakefile.in generated by automake 1.11.1 from GNUmakefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 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@ 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@ subdir = patterns DIST_COMMON = $(srcdir)/GNUmakefile.am $(srcdir)/GNUmakefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = 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__installdirs = "$(DESTDIR)$(ptndir)" DATA = $(ptn_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ANSI_CFLAGS = @ANSI_CFLAGS@ AR = @AR@ 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@ DEPS_CFLAGS = @DEPS_CFLAGS@ DEPS_LIBS = @DEPS_LIBS@ DEPS_PKGS = @DEPS_PKGS@ DLLWRAP = @DLLWRAP@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ HAVE_LIBXML2 = @HAVE_LIBXML2@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBWMF_CONFIG = @LIBWMF_CONFIG@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPT_CFLAGS = @OPT_CFLAGS@ OPT_LIBS = @OPT_LIBS@ 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@ WV_BINARY_AGE = @WV_BINARY_AGE@ WV_INTERFACE_AGE = @WV_INTERFACE_AGE@ WV_MAJOR_VERSION = @WV_MAJOR_VERSION@ WV_MICRO_VERSION = @WV_MICRO_VERSION@ WV_MINOR_VERSION = @WV_MINOR_VERSION@ WV_VERSION = @WV_VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_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@ lt_ECHO = @lt_ECHO@ 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@ ptndir = $(pkgdatadir)/patterns IMAGEFILES = \ 100.gif 131.gif 160.gif 189.gif 32.gif 63.gif 94.gif \ 101.gif 132.gif 161.gif 18.gif 33.gif 64.gif 95.gif \ 102.gif 133.gif 162.gif 190.gif 34.gif 65.gif 96.gif \ 103.gif 134.gif 163.gif 191.gif 35.gif 66.gif 97.gif \ 104.gif 135.gif 164.gif 192.gif 36.gif 67.gif 98.gif \ 105.gif 136.gif 165.gif 193.gif 37.gif 68.gif 99.gif \ 106.gif 137.gif 166.gif 194.gif 38.gif 69.gif battributes.jpg \ 107.gif 138.gif 167.gif 195.gif 39.gif 70.gif bdeleted.jpg \ 108.gif 139.gif 168.gif 196.gif 40.gif 71.gif bnewlytyped.jpg \ 109.gif 140.gif 169.gif 197.gif 41.gif 72.gif clear.gif \ 110.gif 141.gif 16.gif 198.gif 42.gif 73.gif columnbreak.gif \ 111.gif 142.gif 170.gif 199.gif 43.gif 74.gif commentbegin.gif \ 112.gif 143.gif 171.gif 19.gif 44.gif 75.gif commentend.gif \ 113.gif 144.gif 172.gif 200.gif 45.gif 76.gif deleted.jpg \ 114.gif 145.gif 173.gif 201.gif 46.gif 77.gif doccommentb.jpg \ 115.gif 146.gif 174.gif 202.gif 47.gif 78.gif doccommente.jpg \ 116.gif 147.gif 175.gif 203.gif 48.gif 79.gif documentend.gif \ 117.gif 148.gif 176.gif 204.gif 49.gif 80.gif eattributes.jpg \ 118.gif 149.gif 177.gif 205.gif 50.gif 81.gif edeleted.jpg \ 119.gif 14.gif 178.gif 20.gif 51.gif 82.gif endnotebegin.gif \ 120.gif 150.gif 179.gif 21.gif 52.gif 83.gif endnoteend.gif \ 121.gif 151.gif 17.gif 22.gif 53.gif 84.gif enewlytyped.jpg \ 122.gif 152.gif 180.gif 23.gif 54.gif 85.gif footnotebegin.gif \ 123.gif 153.gif 181.gif 24.gif 55.gif 86.gif footnoteend.gif \ 124.gif 154.gif 182.gif 25.gif 56.gif 87.gif pagebreak.gif \ 125.gif 155.gif 183.gif 26.gif 57.gif 88.gif sectionendcolumn.gif \ 126.gif 156.gif 184.gif 27.gif 58.gif 89.gif sectionendcontinous.gif \ 127.gif 157.gif 185.gif 28.gif 59.gif 90.gif sectionendeven.gif \ 128.gif 158.gif 186.gif 29.gif 60.gif 91.gif sectionendnewpage.gif \ 129.gif 159.gif 187.gif 30.gif 61.gif 92.gif sectionendodd.gif \ 130.gif 15.gif 188.gif 31.gif 62.gif 93.gif wmf.jpg ptn_DATA = $(IMAGEFILES) EXTRA_DIST = $(IMAGEFILES) all: all-am .SUFFIXES: $(srcdir)/GNUmakefile.in: $(srcdir)/GNUmakefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign patterns/GNUmakefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign patterns/GNUmakefile .PRECIOUS: GNUmakefile GNUmakefile: $(srcdir)/GNUmakefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-ptnDATA: $(ptn_DATA) @$(NORMAL_INSTALL) test -z "$(ptndir)" || $(MKDIR_P) "$(DESTDIR)$(ptndir)" @list='$(ptn_DATA)'; test -n "$(ptndir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(ptndir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(ptndir)" || exit $$?; \ done uninstall-ptnDATA: @$(NORMAL_UNINSTALL) @list='$(ptn_DATA)'; test -n "$(ptndir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(ptndir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(ptndir)" && rm -f $$files tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: GNUmakefile $(DATA) installdirs: for dir in "$(DESTDIR)$(ptndir)"; 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f GNUmakefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-ptnDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: 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 GNUmakefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-ptnDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-ptnDATA \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-ptnDATA # 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: �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/108.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/97.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156575�011711� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/86.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156576�011714� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/103.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156575�011755� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/clear.gif�������������������������������������������������������������������������0000664�0000764�0000764�00000000075�11247156575�012546� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��€�����ÿÿÿ!þMade with GIMP�!ù���,�������L�;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/83.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011705� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/endnoteend.gif��������������������������������������������������������������������0000664�0000764�0000764�00000002034�11247156576�013601� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a¾��ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿ!þMade with GIMP�!ù����,����¾���ç�H° Áƒ*T¸"++²:h%PÃ*,¬ |¸°£Ç CŠIrd ž4(HàÊ”WhL8³¤Í›8sê,x2â V4´2€Ãž¬"¶úó¡Æ£ö<èäQ£wjy­«×¯`ÊK¶lY�R]x¸ò$‹*k5®ri¥ÊSºß`·m]¬ª$MºÂ¬áÈÝÊá˽WE<Éã^�s¸ìP£{?û};sòÊÆ¨S«.øó­EVMŠéŠ�@+þ\ñ€ *U{[·ÕŒ29®V�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/179.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011774� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/107.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011762� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/94.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156576�011713� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/174.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156575�011767� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/184.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011771� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/73.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156576�011704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/99.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156575�011717� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/61.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156575�011700� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/endnotebegin.gif������������������������������������������������������������������0000664�0000764�0000764�00000002066�11247156575�014123� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a½��ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿ!þMade with GIMP�!ù����,����½���þ�H° Áƒ*D¸"+ !.´€Ã‡1.Üȱ£Ç CŠTXQãÁY ¬�åA+.OÆI³¦Í›5+® `±J YYQÈ!K£-Y¡d¹"€PŒFa ¤"@ ŸE­ú´ §×׊K¶¬Ù³hÓž0µÊPJ!V¬X……E�]¡ êö®EŒuï² ¸ÒŠ[VpW(]¡¶±ãÇ¿JFx”E•Oз$D lW \Z¢^Ûÿ½ÜÒ"ËɰcË=U.F¥Tqrº´ÊfÅäb1QŠ€¯¸Óhÿ0JœM½zlÐ&­kßÎýúÅîàe�;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/121.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156576�011756� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/56.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156575�011706� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/201.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156575�011752� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/101.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011755� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/153.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156576�011761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/80.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156576�011704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/54.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156575�011704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/32.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156576�011701� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/197.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011774� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/126.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156575�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/28.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011705� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/60.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011701� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/112.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011757� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/deleted.jpg�����������������������������������������������������������������������0000664�0000764�0000764�00000000756�11247156575�013107� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ�� �$"�ÿÄ����������������ÿÄ�'���������!1A"#$qÑÿÄ�����������������ÿÄ�����������������ÿÚ� ��?�º=q¸þ¯4Ðâ4KqÃŽ#H_ù LŒÀS ¾ Ïo)u¼A‹¼xð’yàù3Æg˜( ÓÑE[�"Bxõ'=´Nº^Ië\ÅÈšÁ‰bŠ_ŒÙ[üéO“° ì ½]]%ßøíÛó7úWdÎy#uŸ#$ßfPÌ=�*Éî®+Ÿz©ÒB©Ìv¡Ü#P sVÁ Ã·F™øk‘’ÆYØŸ 6¾6ûJú¯\ÿ�z4­ÑTe‚�CÙçFƒÿÙ������������������wv-1.2.9/patterns/183.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156575�011771� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/192.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011767� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/128.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156575�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/45.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156576�011701� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/19.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156575�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/198.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156576�011776� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/92.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156576�011707� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/204.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/25.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156576�011701� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/202.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156576�011762� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/53.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/30.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156576�011677� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/133.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156575�011760� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/51.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156576�011704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/18.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156576�011705� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/140.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156575�011760� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/138.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156576�011770� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/eattributes.jpg�������������������������������������������������������������������0000664�0000764�0000764�00000001164�11247156575�014026� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ���J"�ÿÄ��������������ÿÄ�)����������!1"#3ABa‚±ÿÄ�����������������ÿÄ�����������������ÿÚ� ��?�ô*Äò™s5°EVL¯¡ÄEWÔí¢›u¨©$óêzâúPR|Ïïæõõë͉–DÓ©t¼…nª¢Þ¢ I¿mk¤0ÀO–‡ÉÅ>ªÖYV ”ŒÅ4K±U‰¿,^À3r¿Ð‹|êVH]jš:³jv–4 DJÞ@ –i@ì�A7 :a€âÊrß å0eô_b š`QgšFA*®äzØ’§Ò%?ÜrH¶4 ƒÈpÐȳÍyö£.ðÉyœÈ}¸_U&0�6²žî�a€ìÎé~g]•ÁEI3@óeâ9ê#’-I;¬o`lŠX‚€mÕ¬eÁKäºxRZ™!Š9£„3DOû:Æž®böµÇ8a€Ç1ªòM5t0ÍNòÎòìJv@`»†ìºxV+�oø†íǛ溎šéBßINM¿“aþa†ÿÙ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/commentbegin.gif������������������������������������������������������������������0000664�0000764�0000764�00000001771�11247156575�014133� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a½��ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿ!þMade with GIMP�!ù����,����½���Ä�H° Áƒ¸Æ¡B‚׌¢Ä‹+bÜȱ£Ç 5j™ñàÈŽ'¦$ɲ¥K"UŠl¸°bÓ4kâ\(ӡΙÒ ´çÌ—$o*]Ê´©S¥oªœj3ªUžS³¦Ì‰µ*Ϙ^)^٫ѧhÓ6E ìКWËf•7¬V³b{âk×,Û¿€MZÝiñ.ß¹‡åV{—¬ãÄ#†ª÷§ÎË>/kÆ µsP 9)‡ÊU²éÓuQ«^í1 �;�������wv-1.2.9/patterns/102.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156576�011757� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/89.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011714� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/76.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011710� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/74.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156575�011710� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/14.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156576�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/70.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156575�011704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/173.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011767� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/189.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156575�011771� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/79.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156576�011712� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/143.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011763� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/178.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156575�011775� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/87.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156575�011714� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/16.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/139.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156575�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/195.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156575�011774� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/43.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156576�011701� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/116.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156576�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/136.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/26.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156575�011705� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/63.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156575�011706� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/77.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011712� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/172.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011765� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/57.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156576�011704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/67.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156575�011706� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/battributes.jpg�������������������������������������������������������������������0000664�0000764�0000764�00000001200�11247156575�014012� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ���P"�ÿÄ���������������ÿÄ�&���������!"12$BRÿÄ�����������������ÿÄ�����������������ÿÚ� ��?�÷]*‡T´e•ÓñìÍ%©#g¤‹î9Êmb ŽWÇÇÞ ½.ÏȽBçßx’Ì*®ñª­•DUýG²ùLÞ§8 ¾ÄòZh;Ë1÷ÒvÓ¥ikËÕÉq#˜Óøà>ÂÒ ± ÁÎ7°ÆDÐïïÊYd¹+(³äe3BªcX08 /<~ŽßÛM4]S¥÷å¸"©ùT’½o4ë$q””9y€A€Èv"rs‡o°N7b·ÉÕ·LÏ H¬Öxãfba\€Tí�yÛ?|ÆZh/‰{奯åu@לf¾çVÆIÚc'#’­¹‹¸úw|u;R5)ZëÙ’zȯÇ »b<Ÿf.Cqè-4xþMd´ÂZ±¹;¢Pbq§h%A¿rr±çëSÖµò®¿f™–4†©b†Ho&¹_¼,lÙÿ�d�?«MÿÙ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/sectionendeven.gif����������������������������������������������������������������0000664�0000764�0000764�00000002113�11247156576�014465� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89aU �ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!þMade with GIMP�!ù����,����U ��þ�H° Áƒ*\Ȱ¡Ã‡#JœH±¢Å‹3jÜȱ£Äk ^k2$I„#Kš|¨’¥Ç—0cÊœIóàH�7Q~˜SaÏ9oþ<‰ÓeÍ£Hª\Ê´©Ó§P£JJ5*Ξ&C–¼ÊSèJž`SvåZ´,سcµ¦üZv-ЬB»VK·®Ý»t“ê}™µ(V m¿ *6¨_‚Xûköê_ÆŒïL¯å˘ï"&û7¬çÆqÛv¼ðf·‚Ѧ}:³ë×°óRž]1®aÓ‡swm2nÁŠSƒNýs(íãÈ“'Ý:–,W¯i½Â…¾úÙ¥¸Õr^Éœ{håàÃ‹ÓøÆï¿É«_Ͼ½Íòl%»Ÿ �;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/sectionendodd.gif�����������������������������������������������������������������0000664�0000764�0000764�00000002111�11247156576�014274� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89aU �ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!þMade with GIMP�!ù����,����U ��þ�H° Áƒ*\Ȱ¡Ã‡#JœH±¢Å‹3jÜȱ#Åk ^k2$I„#”L)ФJ–+²ôH³¦Í›8sL9Ó`Ï“*äI”àÌ£-eê\Ê”äʧP£JJµªÕ«X©tù²åÈ’]Â5šô«W±I·¦M;v,Û°/‹õšµ®Ý»xóÚmÊצI³HË žKw+`µfÕ® ÊsîQ®‡+îK™©Þ˘3çõ‰vrâÏdŸ=ë–0ÒÆ'“vX³ë×°ïVžµj˜¢S¿-X7Ì¢¶ ½X8íãÈ“Ïvû÷7kÒD›)×4sÀŸ]¶un\¹÷ïàÃû¥©[µøóèÓ«Wø³6×âëã �;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/176.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156575�011771� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/125.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/17.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/113.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/187.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156575�011771� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/163.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156575�011763� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/177.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156576�011767� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/93.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156575�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/160.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011763� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/39.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156575�011711� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/40.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011677� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/119.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/20.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156575�011675� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/91.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156575�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/156.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/194.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156576�011774� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/footnotebegin.gif�����������������������������������������������������������������0000664�0000764�0000764�00000001734�11247156575�014325� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a½��ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿ!þMade with GIMP�!ù����,����½���§�H° Áƒ*,x­á5…h(Ð!E‰3jÜȱ£Ç#F9rbÅ…%C‚\ɲ¥KŒ"'Rœi±¤C™#мx³&Oš:-¾zЧѣH“*=Z(O“:Æ4)uæÉ©1£R *çÒ¯`Ã^$Jv«Í¬T·ž”ÊêZ´XÓ®-K·nË®=}ʬ”¯_œMiÞ«×®áÃ.§"^̸±á±Ž#Û �;������������������������������������wv-1.2.9/patterns/203.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011757� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/footnoteend.gif�������������������������������������������������������������������0000664�0000764�0000764�00000001713�11247156575�014004� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a¾��ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿ!þMade with GIMP�!ù����,����¾���–�H° Áƒ*<x­aC„×>àpâ‹3jÜȱ£Ç#R„(‘ H‘%¢ɲ¥Ë—#ÊtÒ"Ň4C޼ygʼn4ƒV„ITåÏ£H“*]Êt(O2uJ=i'Ô©W©Ž<Z³©×¯`‘[peT­;ÑîLË–mT·eÉÊ;W¬O‹Bæ|ÊwèÝš<÷Ò%�;�����������������������������������������������������wv-1.2.9/patterns/167.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011770� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/72.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/bnewlytyped.jpg�������������������������������������������������������������������0000664�0000764�0000764�00000001033�11247156575�014034� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ���4"�ÿÄ����������������ÿÄ�%���������!1$2AaÿÄ�����������������ÿÄ�����������������ÿÚ� ��?�î©Þæ¡X"¨©^y%Ù·ŽÕäwšB„K òˆÐÀeò„ŸnLÒÅΕÞY„u«Ì€…Ì]‚FìP®r8=+MèïrAÇ6鈠€ŠÄ)Võ«><°@c!È8�5%·Þm$w [r#WÑ«T“ÊÈò|ð ãÖ;oÓtC­4Wpå’ñ}òÔô㯸GñÒ‚(Ë"¼¡äù)_N:ÎCvµ¥Þy\Ml¥"é„…I¦E(K“Ч· IÉA€A ÓAOfŸ{ûﯲIJÅç·¸ÊAè1 ØÉü¿ÀÓMÿÙ�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/150.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156576�011762� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/82.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156576�011710� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/95.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011710� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/64.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011706� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/188.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156576�011775� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/124.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011762� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/55.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156576�011704� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/29.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011707� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/120.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011755� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/129.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156576�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/146.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156575�011770� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/enewlytyped.jpg�������������������������������������������������������������������0000664�0000764�0000764�00000000775�11247156576�014054� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ���."�ÿÄ����������������ÿÄ�%���������!�#1"AQÿÄ�����������������ÿÄ�����������������ÿÚ� ��?�Ùýá¹eÓÅ Ô"Á<ÒB±ô(˜‘œ4‹ž9ÏAÁÀ±·õk:®åÔnØ‘’*ÔÊ,#<ß™~3Ù dÿ�X㮃Ç"¦ðÜ’[£Fv¡ Ö#‰ä’H›»Gú`)<²daœíž×"ÆÔ×7.±}SQ­V É^9YeŸ—1úcŒ²ä|ô;ìôñàJ¥»µ•’¼V¬WXŸœ¯#DZF-4ƒÒUE Ù ~C¶âCQÛújè/Ü‚!ôä‘묊Ì]–E6[è}g¼<xÿÙ���wv-1.2.9/patterns/33.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156575�011675� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/71.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/164.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156576�011767� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/47.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011706� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/81.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156575�011700� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/169.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156575�011771� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/199.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156575�011774� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/44.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156575�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/180.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/sectionendcolumn.gif��������������������������������������������������������������0000664�0000764�0000764�00000002124�11247156575�015026� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89aU �ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!þMade with GIMP�!ù����,����U ��þ�H° Áƒ*\Ȱ¡Ã‡#JœH±¢Å‹3jÜȱãÂk ^k2$I„#KPù°¤I‚/#ŽôH³¦Í›87Μ‰RâΓyšäIRèA¢2s*]zÔ¥Ó§P£JJµªÕ«*cMr«@–¦üÊõ«Ù°hÇ’]YvhS´+ÍfÝù’.Ö»xóêÝ+•©_nÕž+v0[¡c Ž›–qâ³F þt,2eÃ3{ä˹³g«0ÙV\™±eLj‡†ëµ2Q¤—'«-lšëçÛ¸sGÕÌ;)a¸ƒg_>=ùwñ×kM‹ÖJ:viÚ‘{KŸNÝ&ØÖË“wµkwmÖä¨ 7‡y½ûòí‡ÛV_Ͼ½ûŒ°ÝÇO¿¾ýöó«ç¿ß> �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/41.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011701� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/sectionendnewpage.gif�������������������������������������������������������������0000664�0000764�0000764�00000002114�11247156575�015156� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89aU �ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!þMade with GIMP�!ù����,����U ��þ�H° Áƒ*\Ȱ¡Ã‡#JœH±¢Å‹3jÜȱ£Äk ^k2$I„#KP)’åI0cÊœI³¦Á‘+℈s§Îƒ;Mú|9ô§Í£H–\Ê´©Ó§P£JJµêÓ•>…¦ ©U K¯`SzÝ 6çÀ 9ƒ’åŠ6­Úž=ÇZK·®Ý»t“ê…)4-A´qãž5‰ÕoX³e6+Xî_Ãbïl¯å˘ï>î{¶óbÄŒËf›õqáÓ~‡ª wsæ×°cç¥L»âgЀã˜uoӜǢ–¹mçÚÈ“+§í²«ðÖ…µJÎU¸èà£Ac}kýtÑåàËßñûÆÆÇÉ«_Ͼ}Bó¿JvO_`@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/170.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156575�011765� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/23.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011700� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/151.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156576�011761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/171.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156576�011767� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/49.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156576�011707� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/181.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156575�011763� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/85.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156575�011706� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/48.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011706� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/68.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156576�011712� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/117.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156576�011761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/193.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156575�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/196.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011774� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/152.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000152�11247156576�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��/Œ©Ëíc´Ú‹³•¼û†b¨•æ5¦ê榄 —îL×¶çèÍ÷¾¨ ~Ä¢¤��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/131.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011757� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/59.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011711� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/168.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011772� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/132.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/34.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156576�011705� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/123.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156576�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/75.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156576�011712� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/118.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156576�011770� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/100.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011755� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/157.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156576�011767� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/137.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/doccommente.jpg�������������������������������������������������������������������0000664�0000764�0000764�00000001002�11247156576�013760� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ���0"�ÿÄ����������������ÿÄ�%��������!�1QA"bÿÄ����������������ÿÄ� �������������‘!1AQÁÿÚ� ��?�ègä‰*`Xê•LnÊQJáI%F³Ž‘y9׎X—/‘xšá IÛ`§²0”NÇ€óôãšç €Ä *Ò{QýÍí–Jä(Í€Ëå2‘`œF¾¼ŸYåµw ãÍS­TI$è‹¶JÈù*wÒ¯¿ô5®8áC* "Ln³îwšÜ+)éj#J" ¡‡Scú:Ï–溚ºñ]s¢§©©SLj2áRÊRÂïHšÏÑÎs§ŒnY1lj‰2¿ÿÙ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/31.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156575�011675� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/bdeleted.jpg����������������������������������������������������������������������0000664�0000764�0000764�00000001106�11247156575�013237� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ���@"�ÿÄ����������������ÿÄ�%����������!"#2AQÿÄ�����������������ÿÄ�����������������ÿÚ� ��?�½S½Ì)B°EQR¼òK!³n)«Èï4…–AÚ ƒ—°ðˆAÉùäÍ,Q¬é]å˜GZ¼Á˜\Åè 4nÅ ç €sƒâ´ÐX+n<‚=–ãZ¬e½¨¡B•Ùm¾5yä÷êL€} ªâ^^Ü~æÜ+Y„K ¤HñÈÓ³NÒCÆÎ˜ÈI ¥Zh:qÌœCi6þˆŸ;Š+]òÅ@‘3¶?‘1à2¤öÁ 2=žM¸ØÛê[†E‹òkNóÖ‚HÕ€‘™•‹`€>4è”B–-4;¦åÊ Þ¯%ýª´é M%wẽ¨%³!èοׄ¢Ü95­Öš:ËO°ë!4Xv¯ñ;«“Œ¹Dǘêr}i ÿÙ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/pagebreak.gif���������������������������������������������������������������������0000664�0000764�0000764�00000002143�11247156576�013400� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89aU �ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!þMade with GIMP�!ù����,����U ��þ�H° Áƒ*\Ȱ¡Ã‡#J\heÅÄ‹3jÜȱ£Ç C \Á*•@’4‰òáI‘0cÊœI³¦MŒ&¼„¨ŠÎ@.ÞJ”æµ£H“*]Ê´©Ó§P£JJµ*R�9O®0ÉJ +‚V±P!¨Š ‚¬`U[’ÕŠ*&Õ²T«Õ­Õ»xóêÝËwjÑ¿€b `…\µ×&ÎÉxîZ­cýùSmà˘#öÝ̹³g§Grekèà*–sèšÀµ¯>OÖyMèçÛ¸sçÎÌûoëÇY+ Tm±¬äÖ¬~ù²JI¡½£KŸNæÊVXÉÆ:èj+>W/ž¬Xҫɬ}½ PòUЫ˟O¿>Äg°òi¿¿ÿÿ�n´‚5Å¥àÒ�;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/175.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156576�011767� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/134.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156576�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/111.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156576�011761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/158.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156575�011773� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/35.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011702� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/182.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156576�011771� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/109.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156575�011763� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/69.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156575�011706� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/122.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156575�011762� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/66.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156576�011710� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/165.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156575�011763� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/78.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156575�011712� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/148.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011770� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/52.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011702� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/142.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156575�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/62.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156576�011706� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/98.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156576�011717� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/90.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000233�11247156576�011705� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��`Œv©¨á{qÑ q•·óŸ!âH–扦'˜yûÆ-»ÉÛ­avîΡ U4^ñ±ëá¾ææ4&êUxÌʦÜf÷¹*¥×²Ù¤CÁê0û­kË+çú9 gæÓ_©¯��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/115.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156576�011761� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/135.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156575�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/205.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156575�011760� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÓÓÓÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/106.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156576�011765� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/166.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156576�011773� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/190.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156576�011770� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��©©©ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/commentend.gif��������������������������������������������������������������������0000664�0000764�0000764�00000001764�11247156576�013620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a½��ç��ÿÿÿÿÿÌÿÿ™ÿÿfÿÿ3ÿÿ�ÿÌÿÿÌÌÿÌ™ÿÌfÿÌ3ÿÌ�ÿ™ÿÿ™Ìÿ™™ÿ™fÿ™3ÿ™�ÿfÿÿfÌÿf™ÿffÿf3ÿf�ÿ3ÿÿ3Ìÿ3™ÿ3fÿ33ÿ3�ÿ�ÿÿ�Ìÿ�™ÿ�fÿ�3ÿ��ÌÿÿÌÿÌÌÿ™ÌÿfÌÿ3Ìÿ�ÌÌÿÌÌÌÌÌ™ÌÌfÌÌ3ÌÌ�Ì™ÿÌ™ÌÌ™™Ì™fÌ™3Ì™�ÌfÿÌfÌÌf™ÌffÌf3Ìf�Ì3ÿÌ3ÌÌ3™Ì3fÌ33Ì3�Ì�ÿÌ�ÌÌ�™Ì�fÌ�3Ì��™ÿÿ™ÿÌ™ÿ™™ÿf™ÿ3™ÿ�™Ìÿ™Ì̙̙™Ìf™Ì3™Ì�™™ÿ™™Ì™™™™™f™™3™™�™fÿ™fÌ™f™™ff™f3™f�™3ÿ™3Ì™3™™3f™33™3�™�ÿ™�Ì™�™™�f™�3™��fÿÿfÿÌfÿ™fÿffÿ3fÿ�fÌÿfÌÌfÌ™fÌffÌ3fÌ�f™ÿf™Ìf™™f™ff™3f™�ffÿffÌff™fffff3ff�f3ÿf3Ìf3™f3ff33f3�f�ÿf�Ìf�™f�ff�3f��3ÿÿ3ÿÌ3ÿ™3ÿf3ÿ33ÿ�3Ìÿ3ÌÌ3Ì™3Ìf3Ì33Ì�3™ÿ3™Ì3™™3™f3™33™�3fÿ3fÌ3f™3ff3f33f�33ÿ33Ì33™33f33333�3�ÿ3�Ì3�™3�f3�33���ÿÿ�ÿÌ�ÿ™�ÿf�ÿ3�ÿ��Ìÿ�ÌÌ�Ì™�Ìf�Ì3�Ì��™ÿ�™Ì�™™�™f�™3�™��fÿ�fÌ�f™�ff�f3�f��3ÿ�3Ì�3™�3f�33�3���ÿ��Ì��™��f��3���ÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿÿ�ÿ!þMade with GIMP�!ù����,����½���¿�H° Áƒ¼Æ¡B�×FŒHâË-bÜȱ£Ç RÔx¤È’!!¢Lɲ¥Ë—+6ØPãLˆ+ªÄ™³&M‡3ƒµxÓ§Àœ0[Ö\Ê´©Ó§PG"¹³*Ñ£ §bÝ9‘&W¬W­níz4ªÙ³h“º$I5¬Øª[¿Ê%«’(P¯o©ÂUË·/F½mËâ•;ðX±†Ã*ŽkÒ¯ãÇKyâœ<µg剑3c¶k4²dÉF‹Mº´i˜�;������������wv-1.2.9/patterns/161.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011763� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡��ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/22.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156575�011701� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��bDކ§Ûé“áMùl¥ºGÌ… 4~&u)‰®îVªÌÖ^üfâ|ç{½êi(¡¯uä!“Ɔí=Ña'›þ^³k×J}‚·Ðn˜«Å*Òj[Ùz7‘r&¶L“Åø"Y¯V��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/105.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000220�11247156575�011755� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��UŒa‰«Üàn²%Þ´kÿ\ H†¦5f§Š–- c/çÂsJãz}×¹¿[õV?bð5LÚbÇeñ)ayR#:mbµMå6ë~«`²“{E ÍãpÙmU' �;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/15.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000226�11247156575�011703� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��[Œv©¨á{qÑ q•·óïY`ŽÛ©aâJšjË¢eœ–m×ÌË#îšõtÀœñ7<²ŠI¤ykB_O)oª j—ÖjÔK¼vÃ_²y7Îb·l0ÚÍ^3åVzÕN,��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/65.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156575�011706� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ�ÿÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/38.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156576�011711� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���ÿÿÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/doccommentb.jpg�������������������������������������������������������������������0000664�0000764�0000764�00000001026�11247156575�013762� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ÿØÿà�JFIF������ÿÛ�C�    $.' ",#(7),01444'9=82<.342ÿÛ�C  2!!22222222222222222222222222222222222222222222222222ÿÀ���5"�ÿÄ����������������ÿÄ�'����������!Q1"2ABabÿÄ��������������ÿÄ�������������!a‘bQÿÚ� ��?�êÏêÆ–2šQI,àöÊuô»iÛ››Ü ª©pÃbaf1­¡,Èý‹™ ¸ÍéJïßå4C2YS6‡`ó!Fm™V0P^OØ›øù/SŠƒ5Jø”IÕ"‘­‘J/uG’ý°Æÿ�ÐÚâ”§|òÔÐfKu6an·&+ʰªG «²Kù2ßÃ{¾Æú5–YsL½EðhêFŽnȺ”²)$u;Jv<�>Ê•T^‰¥!>§&Ô‹3¾&c&"4ˆ’c a­ì>&þІûnO¥*÷”Ñ­ÉÿÙ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/149.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011772� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��gŒo�˜ËúX“ð¹SQÆ—[ÚMŸ›HŽ©ê­nûšå)ƒ¬<ç·¢ï!]óÝP0bpxJ–ŽE¦ÓèTFhүהbU›õ·Œ‚‡Üq,kΖ…©îº~·âbrý+‘ëñ|ÌÞ](¸0ÈV��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/24.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156575�011700� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€�����ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/88.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000242�11247156576�011714� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿÿ�ÿÿÿ!þMade with GIMP�!ù���,���� � ��g‚h©Çû\€‰66åÝUgl}Ü(v`za˜¶è«¸&Ì­ê-Û2IétYÃýVCá sä‘À¦o‚|*IÎ¥ˆ%­R³Ä­••œþÆ\ùë0cÑÍvÙ­þz£Ö0|w¦ãíëývhö7T��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/84.gif����������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011707� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��ÿ��ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œg©|¾Ô“Ñ+mÃsç rÑ”扦ªéuîøÆa Óš,âöœóõ½ Q»^îç»ýF³èTJ“Ž¡5ÕÅžÚå´¹ýf½TðõLìŠÃ屺 æ’ãk´—¿ézx�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/110.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000154�11247156575�011757� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€����‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��1Œ©Ëíc´Ú‹³Þ|ˆâH6݉¦iɶî©ò,Ãö‹ôÎgù zÄžðh+��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/145.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000312�11247156576�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡�ÿÿÿ!þMade with GIMP�!ù���,���� � ��DŽ`¶·^l¬½TmUz|i ŽõI':†ŽznLg¬ÊR×›¸ù”ê(j›Y±#;¶”Á…Ûùv¿Ür“!fW¼d + 7¡¤k qÐŒæ4*†Ÿ:˜ÝV~¯öíú× †#7DÅv¶”ǧȨ†Euã4çx‡h†—5uéù%úçvu¨'r¶ö˜U��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/155.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000232�11247156576�011766� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€��‡�‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��_Œo€§`tÊd³»uëÅqø1¥é‘©Ê¢­;½H¯p,‡Ôˆß|ïÓ0¹]­8ü)uGàRùD…Π8½B±VY×)¤~Qb®¹SŽVÏi[ëV¥s4ü.«Úø@�;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/patterns/127.gif���������������������������������������������������������������������������0000664�0000764�0000764�00000000321�11247156576�011764� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a � �€���‡‡ÿÿÿ!þMade with GIMP�!ù���,���� � ��–‚h—Ëa ‹'6{“Ârzyq‹6nõE>f{–°+oØàkõ8a/’¡l»Ž ‚;¤óEL UZ0†=B3­'“ý‰L^ôLýÖÖ×ZGù4–uf* ›´ï®Ÿ{Ó·7&çUW„XUW¸%h¤vÄfÕ4ˆ65TdWÉHèˆdøéHIIx©xGWv¥Äú×èÙ†GT��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/shd.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000003056�11247156606�010050� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" void wvGetSHD_internal (SHD * item, wvStream * fd, U8 * pointer) { U16 temp16; #ifdef PURIFY wvInitSHD (item); #endif temp16 = dread_16ubit (fd, &pointer); item->icoFore = temp16 & 0x001F; item->icoBack = (temp16 & 0x03E0) >> 5; item->ipat = (temp16 & 0xFC00) >> 10; } void wvGetSHD (SHD * item, wvStream * fd) { wvGetSHD_internal (item, fd, NULL); } void wvGetSHDFromBucket (SHD * item, U8 * pointer) { wvGetSHD_internal (item, NULL, pointer); } void wvInitSHD (SHD * item) { item->icoFore = 0; item->icoBack = 0; item->ipat = 0; } void wvCopySHD (SHD * dest, SHD * src) { memcpy (dest, src, sizeof (SHD)); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/config.sub���������������������������������������������������������������������������������0000755�0000764�0000764�00000102240�11265376463�011107� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-17' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to <config-patches@gnu.org>. Submit a context # diff and a properly formatted ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to <config-patches@gnu.org>." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xml/���������������������������������������������������������������������������������������0000775�0000764�0000764�00000000000�11454157201�007772� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xml/wvWml.xml������������������������������������������������������������������������������0000664�0000764�0000764�00000026657�11247156606�011600� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������<main> <charentity> <begin>ABW</begin> </charentity> <document> <begin><!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" "http://www.phone.com/dtd/wml11.dtd" > <!--created with <version/>--> <wml> <card title="<title/>"> </begin> <end> </card> </wml> </end> </document> <section> <begin> </begin> <end> </end> </section> <justification> <left> align="left"</left> <right> align="right"</right> <center> align="center"</center> <!-- wml has no equivalents for these two --> <block></block> <asian></asian> </justification> <numbering> <Arabic>type="1"</Arabic> <UpperRoman>type="I"</UpperRoman> <LowerRoman>type="i"</LowerRoman> <UpperCaseN>type="A"</UpperCaseN> <LowerCaseN>type="a"</LowerCaseN> </numbering> <border> <noned>none</noned> <singled>solid</singled> <thickd>solid</thickd> <doubled>double</doubled> <number4d>double</number4d> <hairlined>solid</hairlined> <dotd>dotted</dotd> <dashlargegapd>dashed</dashlargegapd> <dotdashd>dotted</dotdashd> <dotdotdashd>dotted</dotdotdashd> <tripled>double</tripled> <thin-thicksmallgapd>dashed</thin-thicksmallgapd> <thick-thinsmallgapd>dashed</thick-thinsmallgapd> <thin-thick-thinsmallgapd>dashed</thin-thick-thinsmallgapd> <thin-thickmediumgapd>dashed</thin-thickmediumgapd> <thick-thinmediumgapd>dashed</thick-thinmediumgapd> <thin-thick-thinmediumgapd>dashed</thin-thick-thinmediumgapd> <thin-thicklargegapd>dashed</thin-thicklargegapd> <thick-thinlargegapd>dashed</thick-thinlargegapd> <thin-thick-thinlargegapd>dashed</thin-thick-thinlargegapd> <waved>solid</waved> <doublewaved>double</doublewaved> <dashsmallgapd>sashed</dashsmallgapd> <dashdotstrokedd>dashed</dashdotstrokedd> <emboss3Dd>ridge</emboss3Dd> <engrave3Dd>groove</engrave3Dd> <defaultd>ridge</defaultd> </border> <!-- WML doesn't support lists --> <olist> <begin> </begin> <end></end> </olist> <ulist> <begin> </begin> <end></end> </ulist> <entry> <begin></begin> <end></end> </entry> <!-- change mode to "wrap" to allow wrapping of text --> <text> <begin><p<just/>></begin> <end></p> </end> </text> <!-- this tableoverride option can be used to turn off handling of these tags in tables, which I find is necessary for at least netscape --> <tableoverrides> <ParaBefore>0</ParaBefore> <ParaRight>0</ParaRight> <ParaAfter>0</ParaAfter> <ParaLeft>0</ParaLeft> <ParaLeft1>0</ParaLeft1> <VertMergedCells>0</VertMergedCells> </tableoverrides> <table> <begin><table></begin> <end></table></end> </table> <row> <begin><tr></begin> <end></tr></end> </row> <cell> <begin><td></begin> <end><td></end> </cell> <paragraph> <begin><text.begin/></begin> <!--<p<just/>>--> <end><text.end/></end> <!--</p>--> </paragraph> <!-- these are all the character properties that can show up in word --> <bold><begin><b></begin><end></b></end></bold> <italic><begin><i></begin><end></i></end></italic> <!-- text that has been deleted and will be displayed with strikethrough when revision marked text is to be displayed use either this line... --> <!-- <RMarkDel><begin><c props="text-decoration:line-through"></begin> <end></c></end> </RMarkDel> --> <!-- or uncomment below to make deleted text dissappear (well, become commented out) --> <RMarkDel><begin><!--</begin><end>--></end></RMarkDel> <!-- I don't even know what outline means --> <outline><begin></begin><end></end></outline> <smallcaps><begin></begin><end></end></smallcaps> <caps><begin></begin><end></end></caps> <vanish><begin></begin><end></end></vanish> <!--If you uncomment this then the annotation text links will become commented out by html tags--> <!-- <vanish><begin><!--</begin><end>--></end></vanish> --> <!-- text that has been newly typed since the last time revision marks have been accepted and will be displayed with underline when revision marked text is to be displayed use either this line... --> <RMark><begin><u></begin><end></u></end></RMark> <!-- or uncomment below to make the underline dissappear --> <!-- <RMark><begin></begin><end></end></RMark> --> <!-- forgive me for calling strike-through emphasis --> <strike><begin><em></begin><end></em></end></strike> <shadow><begin></begin><end></end></shadow> <lowercase><begin></begin><end></end></lowercase> <emboss><begin></begin><end></end></emboss> <imprint><begin></begin><end></end></imprint> <!--double strike--> <dstrike><begin><em></begin><end></em></end></dstrike> <!-- ftc's & hps keep them for font face and do that later. --> <!-- I'm doing superscript as "big" and subscript as "small" --> <super><begin><big></begin><end></big></end></super> <sub><begin><small></begin><end></small></end></sub> <singleu><begin><u></begin><end></u></end></singleu> <wordu><begin><u></begin><end></u></end></wordu> <doubleu><begin><u></begin><end></u></end></doubleu> <dottedu><begin><u></begin><end></u></end></dottedu> <hiddenu><begin><u></begin><end></u></end></hiddenu> <thicku><begin><u></begin><end></u></end></thicku> <dashu><begin><u></begin><end></u></end></dashu> <dotu><begin><u></begin><end></u></end></dotu> <dotdashu><begin><u></begin><end></u></end></dotdashu> <dotdotdashu><begin><u></begin><end></u></end></dotdotdashu> <waveu><begin><u></begin><end></u></end></waveu> <!-- text whose properties have been changed since the last time revision marks have been accepted and will be displayed with a note showing the change points. use either this line (which admit it a bit scary looking, but harmless)... --> <PropRMark><begin><!-- author<ibstPropRMark/>--></begin><end></end></PropRMark> <!-- or uncomment below to make the notes dissappear --> <!-- <PropRMark><begin></begin><end></end></PropRMark> --> <!-- <color> --> <Black><begin>000000</begin><end></end></Black> <Blue><begin>0000ff</begin><end></end></Blue> <Cyan><begin>008080</begin><end></end></Cyan> <Green><begin>008000</begin><end></end></Green> <Magenta><begin>ff00ff</begin><end></end></Magenta> <Red><begin>ff0000</begin><end></end></Red> <Yellow><begin>ffff00</begin><end></end></Yellow> <White><begin>ffffff</begin><end></end></White> <DkBlue><begin>000080</begin><end></end></DkBlue> <DkCyan><begin>008080</begin><end></end></DkCyan> <DkGreen><begin>008000</begin><end></end></DkGreen> <DkMagenta><begin>ff00ff</begin><end></end></DkMagenta> <DkRed><begin>800000</begin><end></end></DkRed> <DkYellow><begin>8b8b00</begin><end></end></DkYellow> <DkGray><begin>808080</begin><end></end></DkGray> <LtGray><begin>c0c0c0</begin><end></end></LtGray> <!-- </color> --> <!-- <animation> --> <LasVegas><begin></begin><end></end></LasVegas> <BackgroundBlink><begin></begin><end></end></BackgroundBlink> <SparkleText><begin></begin><end></end></SparkleText> <MarchingAnts><begin></begin><end></end></MarchingAnts> <MarchingRedAnts><begin></begin><end></end></MarchingRedAnts> <Shimmer><begin></begin><end></end></Shimmer> <!-- </animation> --> <!-- I dont understand what this one is, and ive never come across it use this sample line (which admit it a bit scary looking, but harmless)... --> <DispFldRMark><begin></begin><end></end></DispFldRMark> <!-- or uncomment below to ignore it, the previous might even crash wv ? --> <!-- <DispFldRMark><begin></begin><end></end></DispFldRMark> --> <animation> <begin><LasVegas.begin/><BackgroundBlink.begin/><SparkleText.begin/><MarchingAnts.begin/><MarchingRedAnts.begin/><Shimmer.begin/></begin> <end><Shimmer.end/><MarchingRedAnts.end/><MarchingAnts.end/><SparkleText.end/><BackgroundBlink.end/><LasVegas.end/></end> </animation> <!-- nothing resembling fonts in WML :) --> <fontstr> <begin><black.begin/><blue.begin/><cyan.begin/><green.begin/><magenta.begin/><red.begin/><yellow.begin/><white.begin/><dkblue.begin/><dkcyan.begin/><dkgreen.begin/><dkmagenta.begin/><dkred.begin/><dkyellow.begin/><dkgray.begin/><ltgray.begin/></begin> <end><ltgray.end/><dkgray.end/><dkyellow.end/><dkred.end/><dkmagenta.end/><dkgreen.end/><dkcyan.end/><dkblue.end/><white.end/><yellow.end/><red.end/><magenta.end/><green.end/><cyan.end/><blue.end/><black.end/></end> </fontstr> <comment> <begin> <!--#comment<ibstAnno/>--> </begin> <end> </end> </comment> <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <!-- Netscape does handle this correctly yet, here is how each different side of the border should work. border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> <pmargin> <begin><!-- <mmParaBefore/> <mmParaRight/> <mmParaAfter/> <mmParaLeft/>;--></begin> </pmargin> <pborder> <begin> <!-- border: thin <borderleftstyle/> <borderleftcolor/>; border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> </begin> </pborder> <picture> <begin> </begin> <!-- images are lacking for now --> </picture> </style> <!--we need to be override the character properties--> <!-- <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <text> <begin> <p<just/>></begin> <end></p></end> </text> </style> <style name="Heading 1"> <character> <begin></begin> <end></end> </character> <text> <begin><p<just/>></begin> <end></p> </end> </text> </style> --> </main> ���������������������������������������������������������������������������������wv-1.2.9/xml/wvDocbook.xml��������������������������������������������������������������������������0000664�0000764�0000764�00000032406�11247156606�012406� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������<main> <charentity> <begin>HTML</begin> </charentity> <document> <begin><?xml version="1.0" encoding="<charset/>"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" > <!-- wvWare <version/> --> <article> <articleinfo> <title><title/></title> </articleinfo> </begin> <end> </article> </end> </document> <section> <begin> <!--Section Begins--> </begin> <end> <!--Section Ends--> </end> </section> <justification> <left>left</left> <right>right</right> <center>center</center> <block>left</block> <asian><!--Could Someone who sees this tag tell me what was is this type of justification, asian languages only i thing--></asian> </justification> <numbering> <Arabic>type="arabic"</Arabic> <UpperRoman>type="upperroman"</UpperRoman> <LowerRoman>type="lowerroman"</LowerRoman> <UpperCaseN>type="upperalpha"</UpperCaseN> <LowerCaseN>type="loweralpha"</LowerCaseN> </numbering> <border> <noned>none</noned> <singled>solid</singled> <thickd>solid</thickd> <doubled>double</doubled> <number4d>double</number4d> <hairlined>solid</hairlined> <dotd>dotted</dotd> <dashlargegapd>dashed</dashlargegapd> <dotdashd>dotted</dotdashd> <dotdotdashd>dotted</dotdotdashd> <tripled>double</tripled> <thin-thicksmallgapd>dashed</thin-thicksmallgapd> <thick-thinsmallgapd>dashed</thick-thinsmallgapd> <thin-thick-thinsmallgapd>dashed</thin-thick-thinsmallgapd> <thin-thickmediumgapd>dashed</thin-thickmediumgapd> <thick-thinmediumgapd>dashed</thick-thinmediumgapd> <thin-thick-thinmediumgapd>dashed</thin-thick-thinmediumgapd> <thin-thicklargegapd>dashed</thin-thicklargegapd> <thick-thinlargegapd>dashed</thick-thinlargegapd> <thin-thick-thinlargegapd>dashed</thin-thick-thinlargegapd> <waved>solid</waved> <doublewaved>double</doublewaved> <dashsmallgapd>sashed</dashsmallgapd> <dashdotstrokedd>dashed</dashdotstrokedd> <emboss3Dd>ridge</emboss3Dd> <engrave3Dd>groove</engrave3Dd> <defaultd>ridge</defaultd> </border> <!-- <begin><ol <nfc/> start="<start/>"> --> <olist> <begin><orderedlist <nfc/>> </begin> <end></orderedlist></end> </olist> <ulist> <begin><itemizedlist> </begin> <end></itemizedlist></end> </ulist> <entry> <begin><listitem value="<start/>"></begin> <end></listitem></end> </entry> <!-- this tableoverride option can be used to turn off handling of these tags in tables, which I find is necessary for at least netscape --> <tableoverrides> <ParaBefore>0</ParaBefore> <ParaRight>0</ParaRight> <ParaAfter>0</ParaAfter> <ParaLeft>0</ParaLeft> <ParaLeft1>0</ParaLeft1> <VertMergedCells>0</VertMergedCells> </tableoverrides> <table> <begin><informaltable frame="all"> <tgroup cols="<no_cols/>"> <tbody></begin> <end></tbody> </tgroup> </informaltable></end> </table> <row> <begin><row></begin> <end></row></end> </row> <cell> <begin><entry></begin> <end></entry></end> </cell> <paragraph> <begin> <table.end/> <table.begin/> <row.begin/><cell.begin/><olist.end/><olist.begin/><ulist.end/><ulist.begin/><entry.begin/><text.begin/> </begin> <end> <text.end/><entry.end/><olist.end/><ulist.end/><cell.end/><row.end/> </end> </paragraph> <!-- these are all the character properties that can show up in word --> <bold><begin><emphasis role="bold"></begin><end></emphasis></end></bold> <italic><begin><emphasis></begin><end></emphasis></end></italic> <!-- text that has been deleted and will be displayed with strikethrough when revision marked text is to be displayed use either this line... --> <RMarkDel><begin><s></begin><end></s><ulink url="#author<ibstRMarkDel/>">[Author ID<ibstRMarkDel/>: at <dttmRMarkDel/> ]</ulink></end></RMarkDel> <!-- or uncomment below to make deleted text dissappear (well, become commented out) --> <RMarkDel><begin><!--</begin><end>--></end></RMarkDel> --> <!-- Overwriting char props. like CaPs->CAPS SmallCaps->smallcaps --> <outline><begin></begin><end></end></outline> <smallcaps><begin></begin><end></end></smallcaps> <caps><begin></begin><end></end></caps> <vanish><begin></begin><end></end></vanish> <!--If you uncomment this then the annotation text links will become commented out by html tags--> <!-- <vanish><begin><!--</begin><end>--></end></vanish> --> <!-- text that has been newly typed since the last time revision marks have been accepted and will be displayed with underline when revision marked text is to be displayed --> <RMark><begin></begin><end></end></RMark> <strike><begin></begin><end></end></strike> <shadow><begin></begin><end></end></shadow> <lowercase><begin></begin><end></end></lowercase> <emboss><begin></begin><end></end></emboss> <imprint><begin></begin><end></end></imprint> <!--double strike--> <dstrike><begin><emphasis role="dstrike"></begin><end></emphasis></end></dstrike> <!-- ftc's & hps keep them for font face and do that later. --> <super><begin><superscript></begin><end></superscript></end></super> <sub><begin><subscript></begin><end></subscript></end></sub> <singleu><begin><emphasis role="singleu"></begin><end></emphasis></end></singleu> <wordu><begin><emphasis role="wordu"></begin><end></emphasis></end></wordu> <doubleu><begin><emphasis role="doubleu"></begin><end></emphasis></end></doubleu> <dottedu><begin><emphasis role="dottedu"></begin><end></emphasis></end></dottedu> <hiddenu><begin><emphasis role="hiddenu"></begin><end></emphasis></end></hiddenu> <thicku><begin><emphasis role="thicku"></begin><end></emphasis></end></thicku> <dashu><begin><emphasis role="dashu"></begin><end></emphasis></end></dashu> <dotu><begin><emphasis role="dotu"></begin><end></emphasis></end></dotu> <dotdashu><begin><emphasis role="dotdashu"></begin><end></emphasis></end></dotdashu> <dotdotdashu><begin><emphasis role="dotdotdashu"></begin><end></emphasis></end></dotdotdashu> <waveu><begin><emphasis role="waveu"></begin><end></emphasis></end></waveu> <!-- text whose properties have been changed since the last time revision marks have been accepted and will be displayed with a note showing the change points. --> <PropRMark><begin></begin><end></end></PropRMark> <!-- <color> --> <Black><begin>Black</begin><end></end></Black> <Blue><begin>Blue</begin><end></end></Blue> <Cyan><begin>Cyan</begin><end></end></Cyan> <Green><begin>Green</begin><end></end></Green> <Magenta><begin>Magenta</begin><end></end></Magenta> <Red><begin>Red</begin><end></end></Red> <Yellow><begin>Yellow</begin><end></end></Yellow> <White><begin>White</begin><end></end></White> <DkBlue><begin>DarkBlue</begin><end></end></DkBlue> <DkCyan><begin>DarkCyan</begin><end></end></DkCyan> <DkGreen><begin>DarkGreen</begin><end></end></DkGreen> <DkMagenta><begin>DarkMagenta</begin><end></end></DkMagenta> <DkRed><begin>DarkRed</begin><end></end></DkRed> <DkYellow><begin>#8b8b00</begin><end></end></DkYellow> <DkGray><begin>DarkGray</begin><end></end></DkGray> <LtGray><begin>LightGrey</begin><end></end></LtGray> <!-- </color> --> <!-- <animation> --> <LasVegas><begin><emphasis role="LasVegas"></begin><end></emphasis></end></LasVegas> <BackgroundBlink><begin><emphasis role="BackgroundBlink"></begin><end></emphasis></end></BackgroundBlink> <SparkleText><begin><emphasis role="SparkleText"></begin><end></emphasis></end></SparkleText> <MarchingAnts><begin><emphasis role="MarchingAnts"></begin><end></emphasis></end></MarchingAnts> <MarchingRedAnts><begin><emphasis role="MarchingRedAnts"></begin><end></emphasis></end></MarchingRedAnts> <Shimmer><begin><emphasis role="Shimmer"></begin><end></emphasis></end></Shimmer> <!-- </animation> --> <!-- I dont understand what this one is, and ive never come across it use this sample line (which admit it a bit scary looking, but harmless)... --> <DispFldRMark><begin><ulink url="#author<ibstDispFldRMark/>">--&gt;</ulink></begin><end><ulink url="#author<ibstDispFldRMark/>">[Author ID<ibstDispFldRMark/>: at <dttmDispFldRMark/> (<xstDispFldRMark/>)]</ulink></end></DispFldRMark> <!-- or uncomment below to ignore it, the previous might even crash wv ? --> <!-- <DispFldRMark><begin></begin><end></end></DispFldRMark> --> <animation> <begin><LasVegas.begin/><BackgroundBlink.begin/><SparkleText.begin/><MarchingAnts.begin/><MarchingRedAnts.begin/><Shimmer.begin/></begin> <end><Shimmer.end/><MarchingRedAnts.end/><MarchingAnts.end/><SparkleText.end/><BackgroundBlink.end/><LasVegas.end/></end> </animation> <fontstr> <begin></begin> <end></end> </fontstr> <comment> <begin> <ulink url="#comment<ibstAnno/> ">--&gt;</ulink> </begin> <end><ulink url="#comment<ibstAnno/> ">[Author:<xstUsrInitl/>]</ulink> </end> </comment> <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <!-- Netscape does handle this correctly yet, here is how each different side of the border should work. border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> <pmargin> <begin></begin> </pmargin> <pborder> <begin> <!-- border: thin <borderleftstyle/> <borderleftcolor/>; border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> </begin> </pborder> <text> <begin><para role="<stylename/>"></begin> <end></para></end> </text> <picture> <begin> <img <htmlAlignGuess/> width="<pixPicWidth/>" height="<pixPicHeight/>" alt="0x01 graphic" src="placeholder.png"><htmlNextLineGuess/> </begin> </picture> </style> <!--we need to be override the character properties--> <!-- <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <text> <begin><para></begin> <end></para></end> </text> </style> <style name="Header"> <character> <begin></begin> <end></end> </character> <text> <begin><bridgehead renderas="other"></begin> <end></bridgehead></end> </text> </style> <style name="Heading 1"> <character> <begin></begin> <end></end> </character> <text> <begin><bridgehead renderas="sect1"></begin> <end></bridgehead></end> </text> </style> <style name="Heading 2"> <character> <begin></begin> <end></end> </character> <text> <begin><bridgehead renderas="sect2"></begin> <end></bridgehead></end> </text> </style> <style name="Preformatted"> <character> <begin></begin> <end></end> </character> <text> <begin><literallayout class="monospaced">></begin> <end></literallayout></end> </text> </style> <style name="Footnote Text"> <character> <begin></begin> <end></end> </character> <text> <begin><footnote></begin> <end></footnote></end> </text> </style> --> </main> ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xml/wvConfig.xml���������������������������������������������������������������������������0000664�0000764�0000764�00000001045�11247156606�012226� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������<main> <document> <begin><awml> </begin> <end> </awml> </end> </document> <section> <begin> <section></begin> <end></section></end> </section> <justification> <left>left</left> <right>right</right> <center>center</center> <block>justify</block> <asian><!--Could Someone who sees this tag tell me what was is this type of justification, asian languages only i thing--></asian> </justification> <paragraph> <begin> <p PROPS="text-align:<just/>"> </begin> <end> </p> </end> </paragraph> </main> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xml/GNUmakefile.am�������������������������������������������������������������������������0000664�0000764�0000764�00000000267�11247156606�012375� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������XMLFILES = wvText.xml wvHtml.xml wvDocbook.xml wvLaTeX.xml wvAbw.xml wvWml.xml wvCleanLaTeX.xml wvConfig.xml wvXml.xml wvXml.dtd pkgdata_DATA = $(XMLFILES) EXTRA_DIST = $(XMLFILES) �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xml/wvText.xml�����������������������������������������������������������������������������0000664�0000764�0000764�00000023034�11247156606�011747� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������<main> <charentity> <begin>ABW</begin> </charentity> <document> <begin> </begin> <end> </end> </document> <section> <begin> </begin> <end> </end> </section> <justification> <left></left> <right></right> <center></center> <block></block> <asian></asian> </justification> <numbering> <Arabic>type="1"</Arabic> <UpperRoman>type="I"</UpperRoman> <LowerRoman>type="i"</LowerRoman> <UpperCaseN>type="A"</UpperCaseN> <LowerCaseN>type="a"</LowerCaseN> </numbering> <border> <noned></noned> <singled></singled> <thickd></thickd> <doubled></doubled> <number4d></number4d> <hairlined></hairlined> <dotd></dotd> <dashlargegapd></dashlargegapd> <dotdashd></dotdashd> <dotdotdashd></dotdotdashd> <tripled></tripled> <thin-thicksmallgapd></thin-thicksmallgapd> <thick-thinsmallgapd></thick-thinsmallgapd> <thin-thick-thinsmallgapd></thin-thick-thinsmallgapd> <thin-thickmediumgapd></thin-thickmediumgapd> <thick-thinmediumgapd></thick-thinmediumgapd> <thin-thick-thinmediumgapd></thin-thick-thinmediumgapd> <thin-thicklargegapd></thin-thicklargegapd> <thick-thinlargegapd></thick-thinlargegapd> <thin-thick-thinlargegapd></thin-thick-thinlargegapd> <waved></waved> <doublewaved></doublewaved> <dashsmallgapd></dashsmallgapd> <dashdotstrokedd></dashdotstrokedd> <emboss3Dd></emboss3Dd> <engrave3Dd></engrave3Dd> <defaultd></defaultd> </border> <olist> <begin></begin> <end></end> </olist> <ulist> <begin></begin> <end></end> </ulist> <entry> <begin></begin> <end></end> </entry> <!-- the only thing of significance --> <text> <begin></begin> <end> </end> </text> <!-- this tableoverride option can be used to turn off handling of these tags in tables, which I find is necessary for at least netscape --> <tableoverrides> <ParaBefore>0</ParaBefore> <ParaRight>0</ParaRight> <ParaAfter>0</ParaAfter> <ParaLeft>0</ParaLeft> <ParaLeft1>0</ParaLeft1> <VertMergedCells>0</VertMergedCells> </tableoverrides> <table> <begin></begin> <end></end> </table> <row> <begin></begin> <end></end> </row> <cell> <begin></begin> <end></end> </cell> <paragraph> <begin><text.begin/></begin> <end><text.end/></end> </paragraph> <!-- these are all the character properties that can show up in word --> <bold><begin></begin><end></end></bold> <italic><begin></begin><end></end></italic> <!-- text that has been deleted and will be displayed with strikethrough when revision marked text is to be displayed use either this line... --> <RMarkDel><begin></begin> <end></end> </RMarkDel> <!-- or uncomment below to make deleted text dissappear (well, become commented out) --> <!-- <RMarkDel><begin><!--</begin><end>--></end></RMarkDel> --> <!-- I don't even know what outline means --> <outline><begin></begin><end></end></outline> <smallcaps><begin></begin><end></end></smallcaps> <caps><begin></begin><end></end></caps> <vanish><begin></begin><end></end></vanish> <!--If you uncomment this then the annotation text links will become commented out by html tags--> <!-- <vanish><begin><!--</begin><end>--></end></vanish> --> <!-- text that has been newly typed since the last time revision marks have been accepted and will be displayed with underline when revision marked text is to be displayed use either this line... --> <RMark><begin></begin><end></end></RMark> <!-- or uncomment below to make the underline dissappear --> <!-- <RMark><begin></begin><end></end></RMark> --> <strike><begin></begin><end></end></strike> <shadow><begin></begin><end></end></shadow> <lowercase><begin></begin><end></end></lowercase> <emboss><begin></begin><end></end></emboss> <imprint><begin></begin><end></end></imprint> <!--double strike--> <dstrike><begin></begin><end></end></dstrike> <!-- ftc's & hps keep them for font face and do that later. --> <super><begin></begin><end></end></super> <sub><begin></begin><end></end></sub> <singleu><begin></begin><end></end></singleu> <wordu><begin></begin><end></end></wordu> <doubleu><begin></begin><end></end></doubleu> <dottedu><begin></begin><end></end></dottedu> <hiddenu><begin></begin><end></end></hiddenu> <thicku><begin></begin><end></end></thicku> <dashu><begin></begin><end></end></dashu> <dotu><begin></begin><end></end></dotu> <dotdashu><begin></begin><end></end></dotdashu> <dotdotdashu><begin></begin><end></end></dotdotdashu> <waveu><begin></begin><end></end></waveu> <!-- text whose properties have been changed since the last time revision marks have been accepted and will be displayed with a note showing the change points. use either this line (which admit it a bit scary looking, but harmless)... --> <PropRMark><begin><ibstPropRMark/></begin><end></end></PropRMark> <!-- or uncomment below to make the notes dissappear --> <!-- <PropRMark><begin></begin><end></end></PropRMark> --> <!-- <color> --> <Black><begin></begin><end></end></Black> <Blue><begin></begin><end></end></Blue> <Cyan><begin></begin><end></end></Cyan> <Green><begin></begin><end></end></Green> <Magenta><begin></begin><end></end></Magenta> <Red><begin></begin><end></end></Red> <Yellow><begin></begin><end></end></Yellow> <White><begin></begin><end></end></White> <DkBlue><begin></begin><end></end></DkBlue> <DkCyan><begin></begin><end></end></DkCyan> <DkGreen><begin></begin><end></end></DkGreen> <DkMagenta><begin></begin><end></end></DkMagenta> <DkRed><begin></begin><end></end></DkRed> <DkYellow><begin></begin><end></end></DkYellow> <DkGray><begin></begin><end></end></DkGray> <LtGray><begin></begin><end></end></LtGray> <!-- </color> --> <!-- <animation> --> <LasVegas><begin></begin><end></end></LasVegas> <BackgroundBlink><begin></begin><end></end></BackgroundBlink> <SparkleText><begin></begin><end></end></SparkleText> <MarchingAnts><begin></begin><end></end></MarchingAnts> <MarchingRedAnts><begin></begin><end></end></MarchingRedAnts> <Shimmer><begin></begin><end></end></Shimmer> <!-- </animation> --> <!-- I dont understand what this one is, and ive never come across it use this sample line (which admit it a bit scary looking, but harmless)... --> <DispFldRMark><begin></begin><end></end></DispFldRMark> <!-- or uncomment below to ignore it, the previous might even crash wv ? --> <!-- <DispFldRMark><begin></begin><end></end></DispFldRMark> --> <animation> <begin><LasVegas.begin/><BackgroundBlink.begin/><SparkleText.begin/><MarchingAnts.begin/><MarchingRedAnts.begin/><Shimmer.begin/></begin> <end><Shimmer.end/><MarchingRedAnts.end/><MarchingAnts.end/><SparkleText.end/><BackgroundBlink.end/><LasVegas.end/></end> </animation> <fontstr> <begin></begin> <end></end> </fontstr> <comment> <begin> </begin> <end> </end> </comment> <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <!-- Netscape does handle this correctly yet, here is how each different side of the border should work. border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> <pmargin> <begin><!-- <mmParaBefore/> <mmParaRight/> <mmParaAfter/> <mmParaLeft/>;--></begin> </pmargin> <pborder> <begin> <!-- border: thin <borderleftstyle/> <borderleftcolor/>; border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> </begin> </pborder> <picture> <begin> </begin> <!-- images are lacking for now --> </picture> </style> <!--we need to be override the character properties--> <!-- <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <text> <begin></begin> <end> </end> </text> </style> <style name="Heading 1"> <character> <begin></begin> <end></end> </character> <text> <begin></begin> <end> </end> </text> </style> --> </main> ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xml/GNUmakefile.in�������������������������������������������������������������������������0000664�0000764�0000764�00000027457�11454157061�012414� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# GNUmakefile.in generated by automake 1.11.1 from GNUmakefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 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@ 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@ subdir = xml DIST_COMMON = $(srcdir)/GNUmakefile.am $(srcdir)/GNUmakefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = 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__installdirs = "$(DESTDIR)$(pkgdatadir)" DATA = $(pkgdata_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ANSI_CFLAGS = @ANSI_CFLAGS@ AR = @AR@ 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@ DEPS_CFLAGS = @DEPS_CFLAGS@ DEPS_LIBS = @DEPS_LIBS@ DEPS_PKGS = @DEPS_PKGS@ DLLWRAP = @DLLWRAP@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ HAVE_LIBXML2 = @HAVE_LIBXML2@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBWMF_CONFIG = @LIBWMF_CONFIG@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPT_CFLAGS = @OPT_CFLAGS@ OPT_LIBS = @OPT_LIBS@ 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@ WV_BINARY_AGE = @WV_BINARY_AGE@ WV_INTERFACE_AGE = @WV_INTERFACE_AGE@ WV_MAJOR_VERSION = @WV_MAJOR_VERSION@ WV_MICRO_VERSION = @WV_MICRO_VERSION@ WV_MINOR_VERSION = @WV_MINOR_VERSION@ WV_VERSION = @WV_VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_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@ lt_ECHO = @lt_ECHO@ 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@ XMLFILES = wvText.xml wvHtml.xml wvDocbook.xml wvLaTeX.xml wvAbw.xml wvWml.xml wvCleanLaTeX.xml wvConfig.xml wvXml.xml wvXml.dtd pkgdata_DATA = $(XMLFILES) EXTRA_DIST = $(XMLFILES) all: all-am .SUFFIXES: $(srcdir)/GNUmakefile.in: $(srcdir)/GNUmakefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign xml/GNUmakefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign xml/GNUmakefile .PRECIOUS: GNUmakefile GNUmakefile: $(srcdir)/GNUmakefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgdatadir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ done uninstall-pkgdataDATA: @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: GNUmakefile $(DATA) installdirs: for dir in "$(DESTDIR)$(pkgdatadir)"; 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f GNUmakefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-pkgdataDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: 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 GNUmakefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-pkgdataDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-pkgdataDATA install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-pkgdataDATA # 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: �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xml/wvXml.dtd������������������������������������������������������������������������������0000664�0000764�0000764�00000001702�11247156606�011534� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������<!-- DTD for wvXml pages --> <!ELEMENT doc (table | p)* > <!ELEMENT p (#PCDATA | img | a | b | i | u | sup | sub | br)* > <!ATTLIST p class CDATA #REQUIRED style CDATA #REQUIRED> <!ELEMENT img EMPTY> <!ATTLIST img width CDATA #REQUIRED height CDATA #REQUIRED alt CDATA #REQUIRED src CDATA #REQUIRED> <!ELEMENT a (#PCDATA | img | b | i | u | sup | sub | br)* > <!ATTLIST a href CDATA #REQUIRED> <!ELEMENT b (#PCDATA)> <!ELEMENT i (#PCDATA)> <!ELEMENT u (#PCDATA)> <!ELEMENT sup (#PCDATA)> <!ELEMENT sub (#PCDATA)> <!ELEMENT br EMPTY> <!ELEMENT table (tr)+ > <!ATTLIST table width CDATA #REQUIRED border CDATA #REQUIRED cols CDATA #REQUIRED rows CDATA #REQUIRED> <!ELEMENT tr (td)+ > <!ELEMENT td (p)+ > <!ATTLIST td bgcolor CDATA #REQUIRED width CDATA #REQUIRED rowspan CDATA #REQUIRED colspan CDATA #REQUIRED> ��������������������������������������������������������������wv-1.2.9/xml/wvHtml.xml�����������������������������������������������������������������������������0000664�0000764�0000764�00000034335�11247156606�011735� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������<main> <charentity> <begin>HTML</begin> </charentity> <document> <begin><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=<charset/>"> <META NAME="GENERATOR" CONTENT="wvWare/<version/>"> <title> <title/> </title> </head> <body bgcolor="#FFFFFF" text="#000000" link="#0000ee" vlink="#551a8b"> </begin> <end> <!-- <hr> <address> <a href="http://wvware.sourceforge.net/"><img src="wvSmall.gif" height=31 width=47 align=left border=0 alt="wvWare"></a> <a href="http://validator.w3.org/check/referer"><img src="vh40.gif" height=31 width=88 align=right border=0 alt="Valid HTML 4.0!"></a> Document created with <a href="http://wvware.sourceforge.net/">wvWare/<version/></a><br> </address> --> </body> </html> </end> </document> <section> <begin> <!--Section Begins--><br> </begin> <end> <!--Section Ends--> </end> </section> <justification> <left>left</left> <right>right</right> <center>center</center> <block>left</block> <asian><!--Could Someone who sees this tag tell me what was is this type of justification, asian languages only i thing--></asian> </justification> <numbering> <Arabic>type="1"</Arabic> <UpperRoman>type="I"</UpperRoman> <LowerRoman>type="i"</LowerRoman> <UpperCaseN>type="A"</UpperCaseN> <LowerCaseN>type="a"</LowerCaseN> </numbering> <border> <noned>none</noned> <singled>solid</singled> <thickd>solid</thickd> <doubled>double</doubled> <number4d>double</number4d> <hairlined>solid</hairlined> <dotd>dotted</dotd> <dashlargegapd>dashed</dashlargegapd> <dotdashd>dotted</dotdashd> <dotdotdashd>dotted</dotdotdashd> <tripled>double</tripled> <thin-thicksmallgapd>dashed</thin-thicksmallgapd> <thick-thinsmallgapd>dashed</thick-thinsmallgapd> <thin-thick-thinsmallgapd>dashed</thin-thick-thinsmallgapd> <thin-thickmediumgapd>dashed</thin-thickmediumgapd> <thick-thinmediumgapd>dashed</thick-thinmediumgapd> <thin-thick-thinmediumgapd>dashed</thin-thick-thinmediumgapd> <thin-thicklargegapd>dashed</thin-thicklargegapd> <thick-thinlargegapd>dashed</thick-thinlargegapd> <thin-thick-thinlargegapd>dashed</thin-thick-thinlargegapd> <waved>solid</waved> <doublewaved>double</doublewaved> <dashsmallgapd>sashed</dashsmallgapd> <dashdotstrokedd>dashed</dashdotstrokedd> <emboss3Dd>ridge</emboss3Dd> <engrave3Dd>groove</engrave3Dd> <defaultd>ridge</defaultd> </border> <!-- <begin><ol <nfc/> start="<start/>"> --> <olist> <begin><ol <nfc/>> </begin> <end></ol></end> </olist> <ulist> <begin><ul> </begin> <end></ul></end> </ulist> <!-- <begin><li></begin> --> <entry> <begin><li value="<start/>"></begin> <end></li></end> </entry> <!-- this tableoverride option can be used to turn off handling of these tags in tables, which I find is necessary for at least netscape --> <tableoverrides> <ParaBefore>0</ParaBefore> <ParaRight>0</ParaRight> <ParaAfter>0</ParaAfter> <ParaLeft>0</ParaLeft> <ParaLeft1>0</ParaLeft1> <VertMergedCells>0</VertMergedCells> </tableoverrides> <table> <begin><table width="<tablerelwidth/>%" border="1" cols="<no_cols/>" rows="<no_rows/>"></begin> <end></table></end> </table> <row> <begin><tr></begin> <end></tr></end> </row> <cell> <begin><td bgcolor="<cellbgcolor/>" width="<cellrelwidth/>%" rowspan="<rowspan/>" colspan="<colspan/>"></begin> <end></td></end> </cell> <paragraph> <begin> <table.end/> <table.begin/> <row.begin/><cell.begin/><olist.end/><olist.begin/><ulist.end/><ulist.begin/><entry.begin/><text.begin/> </begin> <end> <text.end/><entry.end/><olist.end/><ulist.end/><cell.end/><row.end/> </end> </paragraph> <!-- these are all the character properties that can show up in word --> <bold><begin><b></begin><end></b></end></bold> <italic><begin><i></begin><end></i></end></italic> <!-- text that has been deleted and will be displayed with strikethrough when revision marked text is to be displayed use either this line... --> <RMarkDel><begin><s></begin><end></s><a href="#author<ibstRMarkDel/>">[Author ID<ibstRMarkDel/>: at <dttmRMarkDel/> ]</a></end></RMarkDel> <!-- or uncomment below to make deleted text dissappear (well, become commented out) --> <!-- <RMarkDel><begin><!--</begin><end>--></end></RMarkDel> --> <!-- Overwriting char props. like CaPs->CAPS SmallCaps->smallcaps --> <outline><begin></begin><end></end></outline> <smallcaps><begin><span style="text-transform:lowercase"></begin><end></span></end></smallcaps> <caps><begin><span style="text-transform:uppercase"></begin><end></span></end></caps> <vanish><begin></begin><end></end></vanish> <!--If you uncomment this then the annotation text links will become commented out by html tags--> <!-- <vanish><begin><!--</begin><end>--></end></vanish> --> <!-- text that has been newly typed since the last time revision marks have been accepted and will be displayed with underline when revision marked text is to be displayed use either this line... --> <RMark><begin><u></begin><end></u><a href="#author<ibstRMark/>">[Author ID<ibstRMark/>: at <dttmRMark/>]</a></end></RMark> <!-- or uncomment below to make the underline dissappear --> <!-- <RMark><begin></begin><end></end></RMark> --> <strike><begin><s></begin><end></s></end></strike> <shadow><begin></begin><end></end></shadow> <lowercase><begin></begin><end></end></lowercase> <emboss><begin></begin><end></end></emboss> <imprint><begin></begin><end></end></imprint> <!--double strike--> <dstrike><begin><s></begin><end></s></end></dstrike> <!-- ftc's & hps keep them for font face and do that later. --> <super><begin><sup></begin><end></sup></end></super> <sub><begin><sub></begin><end></sub></end></sub> <singleu><begin><u></begin><end></u></end></singleu> <wordu><begin><u></begin><end></u></end></wordu> <doubleu><begin><u></begin><end></u></end></doubleu> <dottedu><begin><u></begin><end></u></end></dottedu> <hiddenu><begin><u></begin><end></u></end></hiddenu> <thicku><begin><u></begin><end></u></end></thicku> <dashu><begin><u></begin><end></u></end></dashu> <dotu><begin><u></begin><end></u></end></dotu> <dotdashu><begin><u></begin><end></u></end></dotdashu> <dotdotdashu><begin><u></begin><end></u></end></dotdotdashu> <waveu><begin><u></begin><end></u></end></waveu> <!-- text whose properties have been changed since the last time revision marks have been accepted and will be displayed with a note showing the change points. use either this line (which admit it a bit scary looking, but harmless)... --> <PropRMark><begin><a href="#author<ibstPropRMark/>">--&gt;</a></begin><end><a href="#author<ibstPropRMark/>">[Author ID<ibstPropRMark/>: at <dttmPropRMark/>]</a></end></PropRMark> <!-- or uncomment below to make the notes dissappear --> <!-- <PropRMark><begin></begin><end></end></PropRMark> --> <!-- <color> --> <Black><begin>Black</begin><end></end></Black> <Blue><begin>Blue</begin><end></end></Blue> <Cyan><begin>Cyan</begin><end></end></Cyan> <Green><begin>Green</begin><end></end></Green> <Magenta><begin>Magenta</begin><end></end></Magenta> <Red><begin>Red</begin><end></end></Red> <Yellow><begin>Yellow</begin><end></end></Yellow> <White><begin>White</begin><end></end></White> <DkBlue><begin>DarkBlue</begin><end></end></DkBlue> <DkCyan><begin>DarkCyan</begin><end></end></DkCyan> <DkGreen><begin>DarkGreen</begin><end></end></DkGreen> <DkMagenta><begin>DarkMagenta</begin><end></end></DkMagenta> <DkRed><begin>DarkRed</begin><end></end></DkRed> <DkYellow><begin>#8b8b00</begin><end></end></DkYellow> <DkGray><begin>DarkGray</begin><end></end></DkGray> <LtGray><begin>LightGrey</begin><end></end></LtGray> <!-- </color> --> <!-- <animation> --> <LasVegas><begin><blink></begin><end></blink></end></LasVegas> <BackgroundBlink><begin><blink></begin><end></blink></end></BackgroundBlink> <SparkleText><begin><blink></begin><end></blink></end></SparkleText> <MarchingAnts><begin><blink></begin><end></blink></end></MarchingAnts> <MarchingRedAnts><begin><blink></begin><end></blink></end></MarchingRedAnts> <Shimmer><begin><blink></begin><end></blink></end></Shimmer> <!-- </animation> --> <!-- I dont understand what this one is, and ive never come across it use this sample line (which admit it a bit scary looking, but harmless)... --> <DispFldRMark><begin><a href="#author<ibstDispFldRMark/>">--&gt;</a></begin><end><a href="#author<ibstDispFldRMark/>">[Author ID<ibstDispFldRMark/>: at <dttmDispFldRMark/> (<xstDispFldRMark/>)]</a></end></DispFldRMark> <!-- or uncomment below to ignore it, the previous might even crash wv ? --> <!-- <DispFldRMark><begin></begin><end></end></DispFldRMark> --> <animation> <begin><LasVegas.begin/><BackgroundBlink.begin/><SparkleText.begin/><MarchingAnts.begin/><MarchingRedAnts.begin/><Shimmer.begin/></begin> <end><Shimmer.end/><MarchingRedAnts.end/><MarchingAnts.end/><SparkleText.end/><BackgroundBlink.end/><LasVegas.end/></end> </animation> <fontstr> <begin><font color="<black.begin/><blue.begin/><cyan.begin/><green.begin/><magenta.begin/><red.begin/><yellow.begin/><white.begin/><dkblue.begin/><dkcyan.begin/><dkgreen.begin/><dkmagenta.begin/><dkred.begin/><dkyellow.begin/><dkgray.begin/><ltgray.begin/>"></begin> <end><ltgray.end/><dkgray.end/><dkyellow.end/><dkred.end/><dkmagenta.end/><dkgreen.end/><dkcyan.end/><dkblue.end/><white.end/><yellow.end/><red.end/><magenta.end/><green.end/><cyan.end/><blue.end/><black.end/></font></end> </fontstr> <comment> <begin> <a href="#comment<ibstAnno/> ">--&gt;</a> </begin> <end><a href="#comment<ibstAnno/> ">[Author:<xstUsrInitl/>]</a> </end> </comment> <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <!-- Netscape does handle this correctly yet, here is how each different side of the border should work. border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> <pmargin> <begin>margin: <mmParaBefore/> <mmParaRight/> <mmParaAfter/> <mmParaLeft/>;</begin> </pmargin> <pborder> <begin> border: thin <borderleftstyle/> <borderleftcolor/>; <!-- border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> </begin> </pborder> <text> <begin><p><div name="<stylename/>" align="<just/>" style="<paramargin/> <paraborder/> padding: <mmPadTop/> <mmPadRight/> <mmPadBottom/> <mmPadLeft/>; "> <p style="text-indent: <mmParaLeft1/>; text-align: <just/>; line-height: <mmLineHeight/>; color: <parafgcolor/>; background-color: <parabgcolor/>; "></begin> <end></p></div></end> </text> <picture> <begin> <img <htmlAlignGuess/> width="<pixPicWidth/>" height="<pixPicHeight/>" alt="0x01 graphic" src="placeholder.png"><htmlNextLineGuess/> </begin> </picture> </style> <!--we need to be override the character properties--> <!-- <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <text> <begin><div name="<stylename/>" align="<just/>"><p></begin> <end></p></div></end> </text> </style> <style name="Heading 1"> <character> <begin></begin> <end></end> </character> <text> <begin><div name="<stylename/>" align="<just/>"><H1></begin> <end></H1></div></end> </text> </style> --> </main> ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xml/wvCleanLaTeX.xml�����������������������������������������������������������������������0000664�0000764�0000764�00000026663�11247156606�012756� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������<main> <charentity> <begin>LaTeX</begin> </charentity> <document> <begin>%Document generated by wvWare/<version/> %wvWare written by Caolan.McNamara@ul.ie %http://wvware.sourceforge.net % \documentclass[10pt]{article} \usepackage[dvips]{color} \usepackage[dvips]{graphics} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{longtable} \usepackage{times} <!-- \usepackage{multirow} --> \usepackage[normalem]{ulem} \usepackage{geometry} \geometry{lmargin=2cm,rmargin=2cm} \newcommand\suppress[1]{} \newcommand\deleted[1]{\xout{#1}} \newcommand\revised[1]{\uline{#1}} \newlength\wvtextpercent \setlength\wvtextpercent{0.009\textwidth} \newbox\strikebox \def\strike#1{\setbox\strikebox \hbox{<#1>}\hbox{\raise0.5ex\hbox to 0pt{\vrule height 0.4pt width \wd\strikebox\hss}\copy\strikebox}} \setlength\parindent{0pt} \setlength{\parskip}{\smallskipamount} \begin{document} \sloppy </begin> <end> \end{document} </end> </document> <section> <begin> </begin> <end> </end> </section> <justification> <left></left> <right>\raggedleft</right> <center>\centering</center> <block></block> <asian><!--Could Someone who sees this tag tell me what was is this type of justification, asian languages only i think--></asian> </justification> <numbering> <Arabic>type="1"</Arabic> <UpperRoman>type="I"</UpperRoman> <LowerRoman>type="i"</LowerRoman> <UpperCaseN>type="A"</UpperCaseN> <LowerCaseN>type="a"</LowerCaseN> </numbering> <border> <noned>none</noned> <singled>solid</singled> <thickd>solid</thickd> <doubled>double</doubled> <number4d>double</number4d> <hairlined>solid</hairlined> <dotd>dotted</dotd> <dashlargegapd>dashed</dashlargegapd> <dotdashd>dotted</dotdashd> <dotdotdashd>dotted</dotdotdashd> <tripled>double</tripled> <thin-thicksmallgapd>dashed</thin-thicksmallgapd> <thick-thinsmallgapd>dashed</thick-thinsmallgapd> <thin-thick-thinsmallgapd>dashed</thin-thick-thinsmallgapd> <thin-thickmediumgapd>dashed</thin-thickmediumgapd> <thick-thinmediumgapd>dashed</thick-thinmediumgapd> <thin-thick-thinmediumgapd>dashed</thin-thick-thinmediumgapd> <thin-thicklargegapd>dashed</thin-thicklargegapd> <thick-thinlargegapd>dashed</thick-thinlargegapd> <thin-thick-thinlargegapd>dashed</thin-thick-thinlargegapd> <waved>solid</waved> <doublewaved>double</doublewaved> <dashsmallgapd>sashed</dashsmallgapd> <dashdotstrokedd>dashed</dashdotstrokedd> <emboss3Dd>ridge</emboss3Dd> <engrave3Dd>groove</engrave3Dd> <defaultd>ridge</defaultd> </border> <olist> <begin> \begin{enumerate} <!-- only for one-level lists \setcounter{enumi}{<start/>}\addtocounter{enumi}{-1} --> </begin> <end> \end{enumerate}</end> </olist> <ulist> <begin> \begin{itemize} </begin> <end> \end{itemize}</end> </ulist> <entry> <begin> \item</begin> <end></end> </entry> <!-- this tableoverride option can be used to turn off handling of certain tags in tables and other miscellaneous table behaviour, which I find is necessary for html in netscape --> <tableoverrides> <!-- <ParaBefore>0</ParaBefore> <ParaRight>0</ParaRight> <ParaAfter>0</ParaAfter> <ParaLeft>0</ParaLeft> <ParaLeft1>0</ParaLeft1> <VertMergedCells>0</VertMergedCells> --> </tableoverrides> <table> <begin> <!-- reLyX handles tabular, not longtable --> \begin{longtable}{*{<no_cols/>}{p{<cellrelpagewidth/>\wvtextpercent}}} \hline </begin> <end> \hline \end{longtable} </end> </table> <row> <begin></begin> <end> </end> </row> <!-- <cell> <begin>\multicolumn{<colspan/>}{|p{<cellrelpagewidth/>\wvtextpercent}|}{\multirow{<rowspan/>}{<cellrelpagewidth/>\wvtextpercent}{</begin> <end>}}&</end> </cell> <lastcell> <begin></begin> <end>\\</end> </lastcell> --> <cell> <begin> \multicolumn{<colspan/>}{c}{\parbox{<cellrelpagewidth/>\wvtextpercent}{ </begin> <end>}}& </end> </cell> <lastcell> <begin> \multicolumn{<colspan/>}{c}{\parbox{<cellrelpagewidth/>\wvtextpercent}{ </begin> <end>}}\\</end> </lastcell> <paragraph> <begin><table.end/><table.begin/><row.begin/><lastcell.begin/><cell.begin/><olist.end/><olist.begin/><ulist.end/><ulist.begin/><entry.begin/><text.begin/></begin> <end><text.end/><entry.end/><olist.end/><ulist.end/><lastcell.end/><cell.end/><row.end/></end> </paragraph> <!-- these are all the character properties that can show up in word --> <bold><begin>\textbf{</begin><end>}</end></bold> <italic><begin>\textit{</begin><end>}</end></italic> <!-- text that has been deleted and will be displayed with strikethrough when revision marked text is to be displayed --> <RMarkDel><begin>\deleted{</begin><end>}\suppress{[Del-author=<ibstRMarkDel/> Author ID=<ibstRMarkDel/> at <dttmRMarkDel/>]}</end></RMarkDel> <!-- I don't even know what outline means --> <outline><begin></begin><end></end></outline> <smallcaps><begin>\textsc{</begin><end>}</end></smallcaps> <caps><begin>\MakeUppercase{</begin><end>}</end></caps> <vanish><begin></begin><end></end></vanish> <!-- Text that has been newly typed since the last time revision marks have been accepted and will be displayed with underline when revision marked text is to be displayed use either this line... --> <RMark><begin>\suppress{[author=<ibstRMark/> Author ID=<ibstRMark/> at <dttmRMark/>]}\revised{</begin><end>}</end></RMark> <!-- or uncomment below to make the underline dissappear --> <!-- <RMark><begin></begin><end></end></RMark> --> <strike><begin>\sout{</begin><end>}\\</end></strike> <shadow><begin></begin><end></end></shadow> <lowercase><begin></begin><end></end></lowercase> <emboss><begin></begin><end></end></emboss> <imprint><begin></begin><end></end></imprint> <!--double strike--> <dstrike><begin>\sout{</begin><end>}\\</end></dstrike> <!-- ftc's & hps keep them for font face and do that later. --> <super><begin>$^{</begin><end>}$</end></super> <sub><begin>$_{</begin><end>}$</end></sub> <singleu><begin>\uline{</begin><end>}</end></singleu> <wordu><begin>\uline{</begin><end>}</end></wordu> <doubleu><begin>\uline{</begin><end>}</end></doubleu> <dottedu><begin>\uline{</begin><end>}</end></dottedu> <hiddenu><begin>\uline{</begin><end>}</end></hiddenu> <thicku><begin>\uline{</begin><end>}</end></thicku> <dashu><begin>\uline{</begin><end>}</end></dashu> <dotu><begin>\uline{</begin><end>}</end></dotu> <dotdashu><begin>\uline{</begin><end>}</end></dotdashu> <dotdotdashu><begin>\uline{</begin><end>}</end></dotdotdashu> <waveu><begin>\uline{</begin><end>}</end></waveu> <!-- text whose properties have been changed since the last time revision marks have been accepted and will be displayed with a note showing the change points. use either this line (which admit it a bit scary looking, but harmless)... --> <PropRMark><begin>\suppress{[Prop-author=<ibstPropRMark/> Author ID=<ibstPropRMark/> at <dttmPropRMark/>]}\revised{</begin><end>}</end></PropRMark> <!-- or uncomment below to make the notes dissappear --> <!-- <PropRMark><begin></begin><end></end></PropRMark> --> <!-- <color> --> <Black><begin></begin><end></end></Black> <Blue><begin>\textcolor{blue}{{</begin><end>}}</end></Blue> <Cyan><begin>\textcolor{cyan}{{</begin><end>}}</end></Cyan> <Green><begin>\textcolor{green}{{</begin><end>}}</end></Green> <Magenta><begin>\textcolor{magenta}{{</begin><end>}}</end></Magenta> <Red><begin>\textcolor{red}{{</begin><end>}}</end></Red> <Yellow><begin>\textcolor{yellow}{{</begin><end>}}</end></Yellow> <White><begin>\textcolor{white}{{</begin><end>}}</end></White> <DkBlue><begin>\textcolor{blue}{{</begin><end>}}</end></DkBlue> <DkCyan><begin>\textcolor{cyan}{{</begin><end>}}</end></DkCyan> <DkGreen><begin>\textcolor{green}{{</begin><end>}}</end></DkGreen> <DkMagenta><begin>\textcolor{magenta}{{</begin><end>}}</end></DkMagenta> <DkRed><begin>\textcolor{red}{{</begin><end>}}</end></DkRed> <DkYellow><begin>\textcolor[rgb]{0.54,0.54,0.54}{{</begin><end>}}</end></DkYellow> <DkGray><begin>\textcolor{gray}{{</begin><end>}}</end></DkGray> <LtGray><begin>\textcolor{gray}{{</begin><end>}}</end></LtGray> <!-- </color> --> <!-- <animation> --> <LasVegas><begin><blink></begin><end></blink></end></LasVegas> <BackgroundBlink><begin><blink></begin><end></blink></end></BackgroundBlink> <SparkleText><begin><blink></begin><end></blink></end></SparkleText> <MarchingAnts><begin><blink></begin><end></blink></end></MarchingAnts> <MarchingRedAnts><begin><blink></begin><end></blink></end></MarchingRedAnts> <Shimmer><begin><blink></begin><end></blink></end></Shimmer> <!-- </animation> --> <!-- I dont understand what this one is, and ive never come across it use this sample line (which admit it a bit scary looking, but harmless)... MV: I suppose this is "Display Field Revision Mark". C: Well whatdy'a know, I bet it is. --> <DispFldRMark><begin>\suppress{[DispFld-author=<ibstDispFldRMark/> Author ID=<ibstDispFldRMark/> at <dttmDispFldRMark/> (<xstDispFldRMark/>)]}\revised{</begin><end>}</end></DispFldRMark> <!-- or uncomment below to ignore it, the previous might even crash wv ? --> <!-- <DispFldRMark><begin></begin><end></end></DispFldRMark> --> <animation> <begin><LasVegas.begin/><BackgroundBlink.begin/><SparkleText.begin/><MarchingAnts.begin/><MarchingRedAnts.begin/><Shimmer.begin/></begin> <end><Shimmer.end/><MarchingRedAnts.end/><MarchingAnts.end/><SparkleText.end/><BackgroundBlink.end/><LasVegas.end/></end> </animation> <fontstr> <begin><black.begin/><blue.begin/><cyan.begin/><green.begin/><magenta.begin/><red.begin/><yellow.begin/><white.begin/><dkblue.begin/><dkcyan.begin/><dkgreen.begin/><dkmagenta.begin/><dkred.begin/><dkyellow.begin/><dkgray.begin/><ltgray.begin/></begin> <end><ltgray.end/><dkgray.end/><dkyellow.end/><dkred.end/><dkmagenta.end/><dkgreen.end/><dkcyan.end/><dkblue.end/><white.end/><yellow.end/><red.end/><magenta.end/><green.end/><cyan.end/><blue.end/><black.end/></end> </fontstr> <comment> <begin>{\suppress{[comment:<ibstAnno/></begin><end>comment:<ibstAnno/> Author=<xstUsrInitl/>]}</end> </comment> <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <!-- Netscape does handle this correctly yet, here is how each different side of the border should work. border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> <!-- in HTML these are called by paramargin and paraborder (I think). Not working here --> <pmargin> <begin>margin: <mmParaBefore/> <mmParaRight/> <mmParaAfter/> <mmParaLeft/>;</begin> </pmargin> <pborder> <begin>border: thin <borderleftstyle/> <borderleftcolor/>;</begin> </pborder> <text> <begin> </begin><end></end> </text> <picture> <begin>\includegraphics{placeholder.png}</begin> </picture> </style> </main> �����������������������������������������������������������������������������wv-1.2.9/xml/wvXml.xml������������������������������������������������������������������������������0000664�0000764�0000764�00000026104�11247156606�011564� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������<main> <charentity> <begin>XML</begin> </charentity> <document> <begin><?xml version="1.0" ?> <!DOCTYPE doc SYSTEM "wvXml.dtd"> <doc> </begin> <end> </doc> </end> </document> <section> <begin><!--Section Begins--></begin> <end><!--Section Ends--></end> </section> <justification> <left>left</left> <right>right</right> <center>center</center> <block>left</block> <asian><!--Could Someone who sees this tag tell me what was is this type of justification, asian languages only i thing--></asian> </justification> <numbering> <Arabic>type="1"</Arabic> <UpperRoman>type="I"</UpperRoman> <LowerRoman>type="i"</LowerRoman> <UpperCaseN>type="A"</UpperCaseN> <LowerCaseN>type="a"</LowerCaseN> </numbering> <border> <noned>none</noned> <singled>solid</singled> <thickd>solid</thickd> <doubled>double</doubled> <number4d>double</number4d> <hairlined>solid</hairlined> <dotd>dotted</dotd> <dashlargegapd>dashed</dashlargegapd> <dotdashd>dotted</dotdashd> <dotdotdashd>dotted</dotdotdashd> <tripled>double</tripled> <thin-thicksmallgapd>dashed</thin-thicksmallgapd> <thick-thinsmallgapd>dashed</thick-thinsmallgapd> <thin-thick-thinsmallgapd>dashed</thin-thick-thinsmallgapd> <thin-thickmediumgapd>dashed</thin-thickmediumgapd> <thick-thinmediumgapd>dashed</thick-thinmediumgapd> <thin-thick-thinmediumgapd>dashed</thin-thick-thinmediumgapd> <thin-thicklargegapd>dashed</thin-thicklargegapd> <thick-thinlargegapd>dashed</thick-thinlargegapd> <thin-thick-thinlargegapd>dashed</thin-thick-thinlargegapd> <waved>solid</waved> <doublewaved>double</doublewaved> <dashsmallgapd>sashed</dashsmallgapd> <dashdotstrokedd>dashed</dashdotstrokedd> <emboss3Dd>ridge</emboss3Dd> <engrave3Dd>groove</engrave3Dd> <defaultd>ridge</defaultd> </border> <!-- <begin><ol <nfc/> start="<start/>"> --> <olist> <begin></begin> <end></end> </olist> <ulist> <begin></begin> <end></end> </ulist> <!-- <begin><li></begin> --> <entry> <begin></begin> <end></end> </entry> <!-- this tableoverride option can be used to turn off handling of these tags in tables, which I find is necessary for at least netscape --> <tableoverrides> <ParaBefore>0</ParaBefore> <ParaRight>0</ParaRight> <ParaAfter>0</ParaAfter> <ParaLeft>0</ParaLeft> <ParaLeft1>0</ParaLeft1> <VertMergedCells>0</VertMergedCells> </tableoverrides> <table> <begin><table width="<tablerelwidth/>%" border="1" cols="<no_cols/>" rows="<no_rows/>"></begin> <end></table></end> </table> <row> <begin><tr> </begin> <end></tr></end> </row> <cell> <begin><td bgcolor="<cellbgcolor/>" width="<cellrelwidth/>%" rowspan="<rowspan/>" colspan="<colspan/>"> </begin> <end> </td></end> </cell> <paragraph> <begin> <table.end/> <table.begin/> <row.begin/><cell.begin/><olist.end/><olist.begin/><ulist.end/><ulist.begin/><entry.begin/><text.begin/> </begin> <end> <text.end/><entry.end/><olist.end/><ulist.end/><cell.end/><row.end/> </end> </paragraph> <!-- these are all the character properties that can show up in word --> <bold><begin><b></begin><end></b></end></bold> <italic><begin><i></begin><end></i></end></italic> <!-- text that has been deleted and will be displayed with strikethrough when revision marked text is to be displayed use either this line... --> <RMarkDel><begin><s></begin><end></s><a href="#author<ibstRMarkDel/>">[Author ID<ibstRMarkDel/>: at <dttmRMarkDel/> ]</a></end></RMarkDel> <!-- or uncomment below to make deleted text dissappear (well, become commented out) --> <!-- <RMarkDel><begin><!--</begin><end>--></end></RMarkDel> --> <!-- I don't even know what outline means --> <outline><begin></begin><end></end></outline> <smallcaps><begin></begin><end></end></smallcaps> <caps><begin></begin><end></end></caps> <vanish><begin></begin><end></end></vanish> <!--If you uncomment this then the annotation text links will become commented out by html tags--> <!-- <vanish><begin><!--</begin><end>--></end></vanish> --> <!-- text that has been newly typed since the last time revision marks have been accepted and will be displayed with underline when revision marked text is to be displayed use either this line... --> <RMark><begin><u></begin><end></u><a href="#author<ibstRMark/>">[Author ID<ibstRMark/>: at <dttmRMark/>]</a></end></RMark> <!-- or uncomment below to make the underline dissappear --> <!-- <RMark><begin></begin><end></end></RMark> --> <strike><begin><s></begin><end></s></end></strike> <shadow><begin></begin><end></end></shadow> <lowercase><begin></begin><end></end></lowercase> <emboss><begin></begin><end></end></emboss> <imprint><begin></begin><end></end></imprint> <!--double strike--> <dstrike><begin><s></begin><end></s></end></dstrike> <!-- ftc's & hps keep them for font face and do that later. --> <super><begin><sup></begin><end></sup></end></super> <sub><begin><sub></begin><end></sub></end></sub> <singleu><begin><u></begin><end></u></end></singleu> <wordu><begin><u></begin><end></u></end></wordu> <doubleu><begin><u></begin><end></u></end></doubleu> <dottedu><begin><u></begin><end></u></end></dottedu> <hiddenu><begin><u></begin><end></u></end></hiddenu> <thicku><begin><u></begin><end></u></end></thicku> <dashu><begin><u></begin><end></u></end></dashu> <dotu><begin><u></begin><end></u></end></dotu> <dotdashu><begin><u></begin><end></u></end></dotdashu> <dotdotdashu><begin><u></begin><end></u></end></dotdotdashu> <waveu><begin><u></begin><end></u></end></waveu> <!-- text whose properties have been changed since the last time revision marks have been accepted and will be displayed with a note showing the change points. use either this line (which admit it a bit scary looking, but harmless)... --> <PropRMark><begin><a href="#author<ibstPropRMark/>">--&gt;</a></begin><end><a href="#author<ibstPropRMark/>">[Author ID<ibstPropRMark/>: at <dttmPropRMark/>]</a></end></PropRMark> <!-- or uncomment below to make the notes dissappear --> <!-- <PropRMark><begin></begin><end></end></PropRMark> --> <!-- <color> --> <Black><begin>Black</begin><end></end></Black> <Blue><begin>Blue</begin><end></end></Blue> <Cyan><begin>Cyan</begin><end></end></Cyan> <Green><begin>Green</begin><end></end></Green> <Magenta><begin>Magenta</begin><end></end></Magenta> <Red><begin>Red</begin><end></end></Red> <Yellow><begin>Yellow</begin><end></end></Yellow> <White><begin>White</begin><end></end></White> <DkBlue><begin>DarkBlue</begin><end></end></DkBlue> <DkCyan><begin>DarkCyan</begin><end></end></DkCyan> <DkGreen><begin>DarkGreen</begin><end></end></DkGreen> <DkMagenta><begin>DarkMagenta</begin><end></end></DkMagenta> <DkRed><begin>DarkRed</begin><end></end></DkRed> <DkYellow><begin>#8b8b00</begin><end></end></DkYellow> <DkGray><begin>DarkGray</begin><end></end></DkGray> <LtGray><begin>LightGrey</begin><end></end></LtGray> <!-- </color> --> <!-- <animation> --> <LasVegas><begin><blink></begin><end></blink></end></LasVegas> <BackgroundBlink><begin><blink></begin><end></blink></end></BackgroundBlink> <SparkleText><begin><blink></begin><end></blink></end></SparkleText> <MarchingAnts><begin><blink></begin><end></blink></end></MarchingAnts> <MarchingRedAnts><begin><blink></begin><end></blink></end></MarchingRedAnts> <Shimmer><begin><blink></begin><end></blink></end></Shimmer> <!-- </animation> --> <!-- I dont understand what this one is, and ive never come across it use this sample line (which admit it a bit scary looking, but harmless)... --> <DispFldRMark><begin><a href="#author<ibstDispFldRMark/>">--&gt;</a></begin><end><a href="#author<ibstDispFldRMark/>">[Author ID<ibstDispFldRMark/>: at <dttmDispFldRMark/> (<xstDispFldRMark/>)]</a></end></DispFldRMark> <!-- or uncomment below to ignore it, the previous might even crash wv ? --> <!-- <DispFldRMark><begin></begin><end></end></DispFldRMark> --> <animation> <begin><LasVegas.begin/><BackgroundBlink.begin/><SparkleText.begin/><MarchingAnts.begin/><MarchingRedAnts.begin/><Shimmer.begin/></begin> <end><Shimmer.end/><MarchingRedAnts.end/><MarchingAnts.end/><SparkleText.end/><BackgroundBlink.end/><LasVegas.end/></end> </animation> <fontstr> <begin></begin> <end></end> </fontstr> <comment> <begin> <a href="#comment<ibstAnno/> ">--&gt;</a> </begin> <end><a href="#comment<ibstAnno/> ">[Author:<xstUsrInitl/>]</a> </end> </comment> <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <!-- Netscape does handle this correctly yet, here is how each different side of the border should work. border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> <pmargin> <begin>margin: <mmParaBefore/> <mmParaRight/> <mmParaAfter/> <mmParaLeft/>;</begin> </pmargin> <pborder> <begin> border: thin <borderleftstyle/> <borderleftcolor/>; <!-- border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> </begin> </pborder> <text> <begin><p class="<stylename/>" style="<paramargin/> <paraborder/> padding: <mmPadTop/> <mmPadRight/> <mmPadBottom/> <mmPadLeft/>; text-indent: <mmParaLeft1/>; text-align: <just/>; line-height: <mmLineHeight/>; color: <parafgcolor/>; background-color: <parabgcolor/>; "></begin> <end></p></end> </text> <picture> <begin> <img <htmlAlignGuess/> width="<pixPicWidth/>" height="<pixPicHeight/>" alt="0x01 graphic" src="placeholder.png" /><htmlNextLineGuess/> </begin> </picture> </style> </main> ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xml/wvLaTeX.xml����������������������������������������������������������������������������0000664�0000764�0000764�00000027132�11247156606�012003� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������<main> <charentity> <begin>LaTeX</begin> </charentity> <document> <begin>%Document generated by wvWare/<version/> %wvWare written by Caolan.McNamara@ul.ie %http://wvware.sourceforge.net/ % \documentclass[12pt]{article} \usepackage[dvips]{color} \usepackage[dvips]{graphics} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{longtable} \usepackage{times} \usepackage{enumerate} <!-- \usepackage{multirow} --> \usepackage[normalem]{ulem} \usepackage{geometry} \geometry{lmargin=2cm,rmargin=2cm} \newcommand\suppress[1]{} \newcommand\deleted[1]{\xout{#1}} \newcommand\revised[1]{\uline{#1}} \newlength\wvtextpercent \setlength\wvtextpercent{0.009\textwidth} \newbox\strikebox \def\strike#1{\setbox\strikebox \hbox{<#1>}\hbox{\raise0.5ex\hbox to 0pt{\vrule height 0.4pt width \wd\strikebox\hss}\copy\strikebox}} \setlength\parindent{0pt} \setlength{\parskip}{\smallskipamount} \begin{document} \sloppy </begin> <end> \end{document} </end> </document> <section> <begin> </begin> <end> </end> </section> <justification> <left>\raggedright</left> <right>\raggedleft</right> <center>\centering</center> <block></block> <asian><!--Could Someone who sees this tag tell me what was is this type of justification, asian languages only i think--></asian> </justification> <numbering> <Arabic>~[1.]</Arabic> <UpperRoman>~[I.]</UpperRoman> <LowerRoman>~[i.]</LowerRoman> <UpperCaseN>~[A.]</UpperCaseN> <LowerCaseN>~[a.]</LowerCaseN> </numbering> <border> <noned>none</noned> <singled>solid</singled> <thickd>solid</thickd> <doubled>double</doubled> <number4d>double</number4d> <hairlined>solid</hairlined> <dotd>dotted</dotd> <dashlargegapd>dashed</dashlargegapd> <dotdashd>dotted</dotdashd> <dotdotdashd>dotted</dotdotdashd> <tripled>double</tripled> <thin-thicksmallgapd>dashed</thin-thicksmallgapd> <thick-thinsmallgapd>dashed</thick-thinsmallgapd> <thin-thick-thinsmallgapd>dashed</thin-thick-thinsmallgapd> <thin-thickmediumgapd>dashed</thin-thickmediumgapd> <thick-thinmediumgapd>dashed</thick-thinmediumgapd> <thin-thick-thinmediumgapd>dashed</thin-thick-thinmediumgapd> <thin-thicklargegapd>dashed</thin-thicklargegapd> <thick-thinlargegapd>dashed</thick-thinlargegapd> <thin-thick-thinlargegapd>dashed</thin-thick-thinlargegapd> <waved>solid</waved> <doublewaved>double</doublewaved> <dashsmallgapd>sashed</dashsmallgapd> <dashdotstrokedd>dashed</dashdotstrokedd> <emboss3Dd>ridge</emboss3Dd> <engrave3Dd>groove</engrave3Dd> <defaultd>ridge</defaultd> </border> <olist> <begin>\begin{enumerate}<nfc/> <!-- only for one-level lists \setcounter{enumi}{<start/>}\addtocounter{enumi}{-1} --> </begin> <end> \end{enumerate}</end> </olist> <ulist> <begin>\begin{itemize} </begin> <end> \end{itemize}</end> </ulist> <entry> <begin> \item</begin> <end></end> </entry> <!-- this tableoverride option can be used to turn off handling of certain tags in tables and other miscellaneous table behaviour, which I find is necessary for html in netscape --> <tableoverrides> <!-- <ParaBefore>0</ParaBefore> <ParaRight>0</ParaRight> <ParaAfter>0</ParaAfter> <ParaLeft>0</ParaLeft> <ParaLeft1>0</ParaLeft1> <VertMergedCells>0</VertMergedCells> --> </tableoverrides> <table> <begin> \begin{longtable}{|*{<no_cols/>}{p{<cellrelpagewidth/>\wvtextpercent}|}} \hline </begin> <end> \hline \end{longtable} </end> </table> <row> <begin></begin> <end> </end> </row> <!-- <cell> <begin>\multicolumn{<colspan/>}{|p{<cellrelpagewidth/>\wvtextpercent}|}{\multirow{<rowspan/>}{<cellrelpagewidth/>\wvtextpercent}{</begin> <end>}}&</end> </cell> <lastcell> <begin></begin> <end>\\</end> </lastcell> --> <cell> <begin> \multicolumn{<colspan/>}{c}{\parbox{<cellrelpagewidth/>\wvtextpercent}{\raggedright\strut </begin> <end>\strut}}& </end> </cell> <lastcell> <begin> \multicolumn{<colspan/>}{c}{\parbox{<cellrelpagewidth/>\wvtextpercent}{\raggedright\strut </begin> <end>\strut}}\\</end> </lastcell> <paragraph> <begin><table.end/><table.begin/><row.begin/><lastcell.begin/><cell.begin/><olist.end/><olist.begin/><ulist.end/><ulist.begin/><entry.begin/><text.begin/></begin> <end><text.end/><entry.end/><olist.end/><ulist.end/><lastcell.end/><cell.end/><row.end/></end> </paragraph> <!-- these are all the character properties that can show up in word --> <bold><begin>\textbf{</begin><end>}</end></bold> <italic><begin>\textit{</begin><end>}</end></italic> <!-- text that has been deleted and will be displayed with strikethrough when revision marked text is to be displayed --> <RMarkDel><begin>\deleted{</begin><end>}\suppress{[Del-author=<ibstRMarkDel/> Author ID=<ibstRMarkDel/> at <dttmRMarkDel/>]}</end></RMarkDel> <!-- I don't even know what outline means --> <outline><begin></begin><end></end></outline> <smallcaps><begin>\textsc{</begin><end>}</end></smallcaps> <caps><begin>\MakeUppercase{</begin><end>}</end></caps> <vanish><begin></begin><end></end></vanish> <!-- Text that has been newly typed since the last time revision marks have been accepted and will be displayed with underline when revision marked text is to be displayed use either this line... --> <RMark><begin>\suppress{[author=<ibstRMark/> Author ID=<ibstRMark/> at <dttmRMark/>]}\revised{</begin><end>}</end></RMark> <!-- or uncomment below to make the underline dissappear --> <!-- <RMark><begin></begin><end></end></RMark> --> <strike><begin>\sout{</begin><end>}\\</end></strike> <shadow><begin></begin><end></end></shadow> <lowercase><begin></begin><end></end></lowercase> <emboss><begin></begin><end></end></emboss> <imprint><begin></begin><end></end></imprint> <!--double strike--> <dstrike><begin>\sout{</begin><end>}\\</end></dstrike> <!-- ftc's & hps keep them for font face and do that later. --> <super><begin>$^{</begin><end>}$</end></super> <sub><begin>$_{</begin><end>}$</end></sub> <singleu><begin>\uline{</begin><end>}</end></singleu> <wordu><begin>\uline{</begin><end>}</end></wordu> <doubleu><begin>\uline{</begin><end>}</end></doubleu> <dottedu><begin>\uline{</begin><end>}</end></dottedu> <hiddenu><begin>\uline{</begin><end>}</end></hiddenu> <thicku><begin>\uline{</begin><end>}</end></thicku> <dashu><begin>\uline{</begin><end>}</end></dashu> <dotu><begin>\uline{</begin><end>}</end></dotu> <dotdashu><begin>\uline{</begin><end>}</end></dotdashu> <dotdotdashu><begin>\uline{</begin><end>}</end></dotdotdashu> <waveu><begin>\uline{</begin><end>}</end></waveu> <!-- text whose properties have been changed since the last time revision marks have been accepted and will be displayed with a note showing the change points. use either this line (which admit it a bit scary looking, but harmless)... --> <PropRMark><begin>\suppress{[Prop-author=<ibstPropRMark/> Author ID=<ibstPropRMark/> at <dttmPropRMark/>]}\revised{</begin><end>}</end></PropRMark> <!-- or uncomment below to make the notes dissappear --> <!-- <PropRMark><begin></begin><end></end></PropRMark> --> <!-- <color> --> <Black><begin></begin><end></end></Black> <Blue><begin>\textcolor{blue}{{</begin><end>}}</end></Blue> <Cyan><begin>\textcolor{cyan}{{</begin><end>}}</end></Cyan> <Green><begin>\textcolor{green}{{</begin><end>}}</end></Green> <Magenta><begin>\textcolor{magenta}{{</begin><end>}}</end></Magenta> <Red><begin>\textcolor{red}{{</begin><end>}}</end></Red> <Yellow><begin>\textcolor{yellow}{{</begin><end>}}</end></Yellow> <White><begin>\textcolor{white}{{</begin><end>}}</end></White> <DkBlue><begin>\textcolor{blue}{{</begin><end>}}</end></DkBlue> <DkCyan><begin>\textcolor{cyan}{{</begin><end>}}</end></DkCyan> <DkGreen><begin>\textcolor{green}{{</begin><end>}}</end></DkGreen> <DkMagenta><begin>\textcolor{magenta}{{</begin><end>}}</end></DkMagenta> <DkRed><begin>\textcolor{red}{{</begin><end>}}</end></DkRed> <DkYellow><begin>\textcolor[rgb]{0.54,0.54,0.54}{{</begin><end>}}</end></DkYellow> <DkGray><begin>\textcolor{gray}{{</begin><end>}}</end></DkGray> <LtGray><begin>\textcolor{gray}{{</begin><end>}}</end></LtGray> <!-- </color> --> <!-- <animation> --> <LasVegas><begin><blink></begin><end></blink></end></LasVegas> <BackgroundBlink><begin><blink></begin><end></blink></end></BackgroundBlink> <SparkleText><begin><blink></begin><end></blink></end></SparkleText> <MarchingAnts><begin><blink></begin><end></blink></end></MarchingAnts> <MarchingRedAnts><begin><blink></begin><end></blink></end></MarchingRedAnts> <Shimmer><begin><blink></begin><end></blink></end></Shimmer> <!-- </animation> --> <!-- I dont understand what this one is, and ive never come across it use this sample line (which admit it a bit scary looking, but harmless)... MV: I suppose this is "Display Field Revision Mark". C: Well whatdy'a know, I bet it is. --> <DispFldRMark><begin>\suppress{[DispFld-author=<ibstDispFldRMark/> Author ID=<ibstDispFldRMark/> at <dttmDispFldRMark/> (<xstDispFldRMark/>)]}\revised{</begin><end>}</end></DispFldRMark> <!-- or uncomment below to ignore it, the previous might even crash wv ? --> <!-- <DispFldRMark><begin></begin><end></end></DispFldRMark> --> <animation> <begin><LasVegas.begin/><BackgroundBlink.begin/><SparkleText.begin/><MarchingAnts.begin/><MarchingRedAnts.begin/><Shimmer.begin/></begin> <end><Shimmer.end/><MarchingRedAnts.end/><MarchingAnts.end/><SparkleText.end/><BackgroundBlink.end/><LasVegas.end/></end> </animation> <fontstr> <begin><black.begin/><blue.begin/><cyan.begin/><green.begin/><magenta.begin/><red.begin/><yellow.begin/><white.begin/><dkblue.begin/><dkcyan.begin/><dkgreen.begin/><dkmagenta.begin/><dkred.begin/><dkyellow.begin/><dkgray.begin/><ltgray.begin/></begin> <end><ltgray.end/><dkgray.end/><dkyellow.end/><dkred.end/><dkmagenta.end/><dkgreen.end/><dkcyan.end/><dkblue.end/><white.end/><yellow.end/><red.end/><magenta.end/><green.end/><cyan.end/><blue.end/><black.end/></end> </fontstr> <comment> <begin>{\suppress{[comment:<ibstAnno/></begin><end>comment:<ibstAnno/> Author=<xstUsrInitl/>]}}</end> </comment> <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <!-- Netscape does handle this correctly yet, here is how each different side of the border should work. border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> <!-- in HTML these are called by paramargin and paraborder (I think). Not working here --> <pmargin> <begin>margin: <mmParaBefore/> <mmParaRight/> <mmParaAfter/> <mmParaLeft/>;</begin> </pmargin> <pborder> <begin>border: thin <borderleftstyle/> <borderleftcolor/>;</begin> </pborder> <text> <begin> \vspace{<mmParaBefore/>} \setlength{\parindent}{<mmParaLeft1/>} \setlength{\leftskip}{<mmParaLeft/>} \setlength{\rightskip}{<mmParaRight/>} <parafgcolor/><just/> </begin> <end> \vspace{<mmParaAfter/>} </end> </text> <picture> <begin>\includegraphics{placeholder.png}</begin> </picture> </style> </main> ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/xml/wvAbw.xml������������������������������������������������������������������������������0000664�0000764�0000764�00000032307�11247156606�011537� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������<main> <charentity> <begin>ABW</begin> </charentity> <document> <begin><?xml version="1.0"?> <abiword version="0.7.11"> <!-- ===================================================================== --> <!-- This file is an AbiWord document. --> <!-- AbiWord is a free, Open Source word processor. --> <!-- You may obtain more information about AbiWord at www.abisource.com --> <!-- You should not edit this file by hand. --> <!-- ===================================================================== --> <!-- Build_ID = (none) --> <!-- Build_Version = 0.7.11 --> <!-- Build_Options = LicensedTrademarks:On Debug:Off --> <!-- Build_Target = /Builds/Builds/0968796595/tmp/abi-0.7.11/src/WIN32_1.1.2_i386_OBJ/obj --> <!-- Build_CompileTime = 17:41:55 --> <!-- Build_CompileDate = Sep 12 2000 --> <!-- Created with wvWare by Dom Lachowicz. See http://wvware.sourceforge.net --> </begin> <end> </abiword> </end> </document> <section> <begin> <section> </begin> <end></section> </end> </section> <justification> <left></left> <right> props="text-align:right"</right> <center> props="text-align:center"</center> <block> props="text-align:justify"</block> <asian><!--Could Someone who sees this tag tell me what was is this type of justification, asian languages only i thing--></asian> </justification> <numbering> <Arabic>type="1"</Arabic> <UpperRoman>type="I"</UpperRoman> <LowerRoman>type="i"</LowerRoman> <UpperCaseN>type="A"</UpperCaseN> <LowerCaseN>type="a"</LowerCaseN> </numbering> <border> <noned>none</noned> <singled>solid</singled> <thickd>solid</thickd> <doubled>double</doubled> <number4d>double</number4d> <hairlined>solid</hairlined> <dotd>dotted</dotd> <dashlargegapd>dashed</dashlargegapd> <dotdashd>dotted</dotdashd> <dotdotdashd>dotted</dotdotdashd> <tripled>double</tripled> <thin-thicksmallgapd>dashed</thin-thicksmallgapd> <thick-thinsmallgapd>dashed</thick-thinsmallgapd> <thin-thick-thinsmallgapd>dashed</thin-thick-thinsmallgapd> <thin-thickmediumgapd>dashed</thin-thickmediumgapd> <thick-thinmediumgapd>dashed</thick-thinmediumgapd> <thin-thick-thinmediumgapd>dashed</thin-thick-thinmediumgapd> <thin-thicklargegapd>dashed</thin-thicklargegapd> <thick-thinlargegapd>dashed</thick-thinlargegapd> <thin-thick-thinlargegapd>dashed</thin-thick-thinlargegapd> <waved>solid</waved> <doublewaved>double</doublewaved> <dashsmallgapd>sashed</dashsmallgapd> <dashdotstrokedd>dashed</dashdotstrokedd> <emboss3Dd>ridge</emboss3Dd> <engrave3Dd>groove</engrave3Dd> <defaultd>ridge</defaultd> </border> <olist> <begin><!--TODO: begin ordered lists--> </begin> <end><!--TODO: end ordered lists--></end> </olist> <ulist> <begin><!--TODO: begin unordered lists--> </begin> <end><!--TODO: end unordered lists--></end> </ulist> <entry> <begin><!--TODO: list entries--></begin> <end></end> </entry> <text> <begin><p<just/>></begin> <end></p> </end> </text> <!-- this tableoverride option can be used to turn off handling of these tags in tables, which I find is necessary for at least netscape --> <tableoverrides> <ParaBefore>0</ParaBefore> <ParaRight>0</ParaRight> <ParaAfter>0</ParaAfter> <ParaLeft>0</ParaLeft> <ParaLeft1>0</ParaLeft1> <VertMergedCells>0</VertMergedCells> </tableoverrides> <table> <begin><!--TODO: ABW doesn?t support tables--></begin> <end></end> </table> <row> <begin><!--TODO: ABW doesn?t support tables--></begin> <end></end> </row> <cell> <begin><!--TODO: ABW doesn?t support tables--></begin> <end></end> </cell> <paragraph> <begin><text.begin/></begin> <!--<p<just/>>--> <end><text.end/></end> <!--</p>--> </paragraph> <!-- these are all the character properties that can show up in word --> <bold><begin><c props="font-weight:bold"></begin><end></c></end></bold> <italic><begin><c props="font-style:italic"></begin><end></c></end></italic> <!-- text that has been deleted and will be displayed with strikethrough when revision marked text is to be displayed use either this line... --> <RMarkDel><begin><c props="text-decoration:line-through"></begin> <end></c></end> </RMarkDel> <!-- or uncomment below to make deleted text dissappear (well, become commented out) --> <!-- <RMarkDel><begin><!--</begin><end>--></end></RMarkDel> --> <!-- I don't even know what outline means --> <outline><begin></begin><end></end></outline> <smallcaps><begin></begin><end></end></smallcaps> <caps><begin></begin><end></end></caps> <vanish><begin></begin><end></end></vanish> <!--If you uncomment this then the annotation text links will become commented out by html tags--> <!-- <vanish><begin><!--</begin><end>--></end></vanish> --> <!-- text that has been newly typed since the last time revision marks have been accepted and will be displayed with underline when revision marked text is to be displayed use either this line... --> <RMark><begin><c props="text-decoration:underline"></begin><end></c></end></RMark> <!-- or uncomment below to make the underline dissappear --> <!-- <RMark><begin></begin><end></end></RMark> --> <strike><begin><c props="text-decoration:line-through"></begin><end></c></end></strike> <shadow><begin></begin><end></end></shadow> <lowercase><begin></begin><end></end></lowercase> <emboss><begin></begin><end></end></emboss> <imprint><begin></begin><end></end></imprint> <!--double strike--> <dstrike><begin><c props="text-decoration:line-through"></begin><end></c></end></dstrike> <!-- ftc's & hps keep them for font face and do that later. --> <super><begin><c props="text-position:superscript"></begin><end></c></end></super> <sub><begin><c props="text-position:subscript"></begin><end></c></end></sub> <singleu><begin><c props="text-decoration:underline"></begin><end></c></end></singleu> <wordu><begin><c props="text-decoration:underline"></begin><end></c></end></wordu> <doubleu><begin><c props="text-decoration:underline"></begin><end></c></end></doubleu> <dottedu><begin><c props="text-decoration:underline"></begin><end></c></end></dottedu> <hiddenu><begin><c props="text-decoration:underline"></begin><end></c></end></hiddenu> <thicku><begin><c props="text-decoration:underline"></begin><end></c></end></thicku> <dashu><begin><c props="text-decoration:underline"></begin><end></c></end></dashu> <dotu><begin><c props="text-decoration:underline"></begin><end></c></end></dotu> <dotdashu><begin><c props="text-decoration:underline"></begin><end></c></end></dotdashu> <dotdotdashu><begin><c props="text-decoration:underline"></begin><end></c></end></dotdotdashu> <waveu><begin><c props="text-decoration:underline"></begin><end></c></end></waveu> <!-- text whose properties have been changed since the last time revision marks have been accepted and will be displayed with a note showing the change points. use either this line (which admit it a bit scary looking, but harmless)... --> <PropRMark><begin><!-- author<ibstPropRMark/>--></begin><end></end></PropRMark> <!-- or uncomment below to make the notes dissappear --> <!-- <PropRMark><begin></begin><end></end></PropRMark> --> <!-- <color> --> <Black><begin>000000</begin><end></end></Black> <Blue><begin>0000ff</begin><end></end></Blue> <Cyan><begin>008080</begin><end></end></Cyan> <Green><begin>008000</begin><end></end></Green> <Magenta><begin>ff00ff</begin><end></end></Magenta> <Red><begin>ff0000</begin><end></end></Red> <Yellow><begin>ffff00</begin><end></end></Yellow> <White><begin>ffffff</begin><end></end></White> <DkBlue><begin>000080</begin><end></end></DkBlue> <DkCyan><begin>008080</begin><end></end></DkCyan> <DkGreen><begin>008000</begin><end></end></DkGreen> <DkMagenta><begin>ff00ff</begin><end></end></DkMagenta> <DkRed><begin>800000</begin><end></end></DkRed> <DkYellow><begin>8b8b00</begin><end></end></DkYellow> <DkGray><begin>808080</begin><end></end></DkGray> <LtGray><begin>c0c0c0</begin><end></end></LtGray> <!-- </color> --> <!-- <animation> --> <LasVegas><begin></begin><end></end></LasVegas> <BackgroundBlink><begin></begin><end></end></BackgroundBlink> <SparkleText><begin></begin><end></end></SparkleText> <MarchingAnts><begin></begin><end></end></MarchingAnts> <MarchingRedAnts><begin></begin><end></end></MarchingRedAnts> <Shimmer><begin></begin><end></end></Shimmer> <!-- </animation> --> <!-- I dont understand what this one is, and ive never come across it use this sample line (which admit it a bit scary looking, but harmless)... --> <DispFldRMark><begin></begin><end></end></DispFldRMark> <!-- or uncomment below to ignore it, the previous might even crash wv ? --> <!-- <DispFldRMark><begin></begin><end></end></DispFldRMark> --> <animation> <begin><LasVegas.begin/><BackgroundBlink.begin/><SparkleText.begin/><MarchingAnts.begin/><MarchingRedAnts.begin/><Shimmer.begin/></begin> <end><Shimmer.end/><MarchingRedAnts.end/><MarchingAnts.end/><SparkleText.end/><BackgroundBlink.end/><LasVegas.end/></end> </animation> <fontstr> <begin><c props="color:<black.begin/><blue.begin/><cyan.begin/><green.begin/><magenta.begin/><red.begin/><yellow.begin/><white.begin/><dkblue.begin/><dkcyan.begin/><dkgreen.begin/><dkmagenta.begin/><dkred.begin/><dkyellow.begin/><dkgray.begin/><ltgray.begin/>"></begin> <end><ltgray.end/><dkgray.end/><dkyellow.end/><dkred.end/><dkmagenta.end/><dkgreen.end/><dkcyan.end/><dkblue.end/><white.end/><yellow.end/><red.end/><magenta.end/><green.end/><cyan.end/><blue.end/><black.end/></c></end> </fontstr> <comment> <begin> <!--#comment<ibstAnno/>--> </begin> <end> </end> </comment> <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <!-- Netscape does handle this correctly yet, here is how each different side of the border should work. border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> <pmargin> <begin><!-- <mmParaBefore/> <mmParaRight/> <mmParaAfter/> <mmParaLeft/>;--></begin> </pmargin> <pborder> <begin> <!-- border: thin <borderleftstyle/> <borderleftcolor/>; border-top: thin <bordertopstyle/> <bordertopcolor/>; border-left: thin <borderleftstyle/> <borderleftcolor/>; border-right: thin <borderrightstyle/> <borderrightcolor/>; border-bottom: thin <borderbottomstyle/> <borderbottomcolor/> --> </begin> </pborder> <picture> <begin> </begin> <!-- images are lacking for now --> </picture> </style> <!--we need to be override the character properties--> <!-- <style name="Normal"> <character> <begin><PropRMark.begin/><DispFldRMark.begin/><animation.begin/><fontstr.begin/><bold.begin/><italic.begin/><strike.begin/><RMarkDel.begin/><outline.begin/><smallcaps.begin/><caps.begin/><vanish.begin/><RMark.begin/><shadow.begin/><lowercase.begin/><emboss.begin/><imprint.begin/><dstrike.begin/><super.begin/><sub.begin/><singleu.begin/><wordu.begin/><doubleu.begin/><dottedu.begin/><hiddenu.begin/><thicku.begin/><dashu.begin/><dotu.begin/><dotdashu.begin/><dotdotdashu.begin/><waveu.begin/></begin> <end><waveu.end/><dotdotdashu.end/><dotdashu.end/><dotu.end/><dashu.end/><thicku.end/><hiddenu.end/><dottedu.end/><doubleu.end/><wordu.end/><singleu.end/><sub.end/><super.end/><dstrike.end/><imprint.end/><emboss.end/><lowercase.end/><shadow.end/><RMark.end/><vanish.end/><caps.end/><smallcaps.end/><outline.end/><RMarkDel.end/><strike.end/><italic.end/><bold.end/><fontstr.end/><animation.end/><DispFldRMark.end/><PropRMark.end/></end> </character> <text> <begin> <p<just/>></begin> <end></p></end> </text> </style> <style name="Heading 1"> <character> <begin></begin> <end></end> </character> <text> <begin><p<just/> style="Heading 1"></begin> <end></p> </end> </text> </style> --> </main> �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/decompresswmf.c����������������������������������������������������������������������������0000664�0000764�0000764�00000007244�11247156607�012154� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include "wv.h" #if defined WIN32 #define HAVE_MMAP 1 /* have mmap replacement in winmmap.[ch] */ #endif #if defined(HAVE_ZLIB) && defined(HAVE_MMAP) #include <zlib.h> #if defined WIN32 /*lvm007@aha.ru fix for mmap realization in Win*/ #include "winmmap.h" #include <io.h> #else #include <sys/mman.h> #endif #endif /*lvm007@aha.ru fix */ #ifndef WIN32 #include <sys/types.h> #endif #include <sys/stat.h> #include <fcntl.h> /* * written by thisguy@somewhere.com who doesnt want his name in the source */ /* * there's some notes in the notes dir on compression */ int setdecom (void) { #ifdef HAVE_ZLIB return (1); #else wvError ( ("libwv was not compiled against zlib, so wmf files cannot be decompressed\n")); return (0); #endif } int decompress (FILE * inputfile, FILE * outputfile, U32 inlen, U32 outlen) { #if defined(HAVE_ZLIB) && defined(HAVE_MMAP) unsigned char *compr; unsigned char *uncompr; int err; unsigned long uncomprLen, comprLen; unsigned char *input, *output; int out; int in; if (inputfile == NULL) { wvError (("danger, file to decompress is NULL\n")); return (-1); } in = fileno (inputfile); input = mmap (0, inlen, PROT_READ | PROT_WRITE, MAP_SHARED, in, 0); if (input == (unsigned char *) -1) { wvError (("unable to mmap inputfile\n")); return (-1); } out = fileno (outputfile); lseek (out, outlen, SEEK_SET); if (out == -1) { wvError (("unable to create outputfile\n")); munmap (input, inlen); return (-1); } if (-1 == write (out, "0", 1)) { wvError (("unable to write to outputfile\n")); munmap (input, inlen); close (out); return (-1); } lseek (out, 0, SEEK_SET); output = mmap (0, outlen, PROT_READ | PROT_WRITE, MAP_SHARED, out, 0); if (output == (unsigned char *) -1) { wvError (("map out failed\n")); munmap (input, inlen); close (out); return (-1); } /* set the size of the file */ comprLen = inlen; /* Read in the file contents */ compr = input; uncompr = output; if (compr == NULL) { wvError (("no mem to decompress wmf files\n")); return (-1); } if (uncompr == NULL) { wvError (("no mem to decompress wmf files\n")); return (-1); } uncomprLen = outlen; /* This was the trick :( */ wvTrace (("len is %d %d\n", uncomprLen, comprLen)); err = uncompress (uncompr, &uncomprLen, compr, comprLen); munmap (input, inlen); munmap (output, outlen); if (err != Z_OK) { wvError (("decompress error: %d\n", err)); return (-1); } #else wvError ( ("System does not have mmap, if you are so inclined rewrite decompresswmf to not require this\n")); #endif return 0; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvSummary.c��������������������������������������������������������������������������������0000664�0000764�0000764�00000016261�11247156607�011307� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Dom Lachowicz and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" #include <gsf/gsf-input-stdio.h> #include <gsf/gsf-input-memory.h> #include <gsf/gsf-utils.h> #include <gsf/gsf-infile.h> #include <gsf/gsf-infile-msole.h> #include <gsf/gsf-msole-utils.h> #include <gsf/gsf-docprop-vector.h> #include <gsf/gsf-meta-names.h> #include <stdio.h> #include <stdlib.h> #include <ctype.h> /* prepare for i18n */ #define N_(X) (X) #define _(X) (X) static const struct { char * metadata_key; char * human_readable_key; } metadata_names[] = { { GSF_META_NAME_TITLE, N_("Title") }, { GSF_META_NAME_DESCRIPTION, N_("Description") }, { GSF_META_NAME_SUBJECT, N_("Subject") }, { GSF_META_NAME_DATE_MODIFIED, N_("Last Modified") }, { GSF_META_NAME_DATE_CREATED, N_("Created") }, { GSF_META_NAME_KEYWORDS, N_("Keywords") }, { GSF_META_NAME_LANGUAGE, N_("Language") }, { GSF_META_NAME_REVISION_COUNT, N_("Revision") }, { GSF_META_NAME_EDITING_DURATION, N_("Editing Duration") }, { GSF_META_NAME_TABLE_COUNT, N_("Number of Tables") }, { GSF_META_NAME_IMAGE_COUNT, N_("Number of Images") }, { GSF_META_NAME_OBJECT_COUNT, N_("Number of Objects") }, { GSF_META_NAME_PAGE_COUNT, N_("Number of Pages") }, { GSF_META_NAME_PARAGRAPH_COUNT, N_("Number of Paragraphs") }, { GSF_META_NAME_WORD_COUNT, N_("Number of Words") }, { GSF_META_NAME_CHARACTER_COUNT, N_("Number of Characters") }, { GSF_META_NAME_CELL_COUNT, N_("Number of Spreadsheet Cells") }, { GSF_META_NAME_SPREADSHEET_COUNT, N_("Number of Sheets") }, { GSF_META_NAME_CREATOR, N_("Creator") }, { GSF_META_NAME_TEMPLATE, N_("Template") }, { GSF_META_NAME_LAST_SAVED_BY, N_("Last Saved by") }, { GSF_META_NAME_LAST_PRINTED, N_("Last Printed") }, { GSF_META_NAME_SECURITY, N_("Security Level") }, { GSF_META_NAME_CATEGORY, N_("Category") }, { GSF_META_NAME_PRESENTATION_FORMAT, N_("") }, { GSF_META_NAME_THUMBNAIL, N_("Thumbnail") }, { GSF_META_NAME_GENERATOR, N_("Generator") }, { GSF_META_NAME_LINE_COUNT, N_("Number of Lines") }, { GSF_META_NAME_SLIDE_COUNT, N_("Number of Slides") }, { GSF_META_NAME_NOTE_COUNT, N_("Number of Notes") }, { GSF_META_NAME_HIDDEN_SLIDE_COUNT, N_("Number of Hidden Slides") }, { GSF_META_NAME_MM_CLIP_COUNT, N_("Number of 'Multi-Media' Clips") }, { GSF_META_NAME_BYTE_COUNT, N_("Number of Bytes in the Document") }, { GSF_META_NAME_SCALE, N_("Scale") }, { GSF_META_NAME_HEADING_PAIRS, N_("Document Pairs") }, { GSF_META_NAME_DOCUMENT_PARTS, N_("Document Parts") }, { GSF_META_NAME_MANAGER, N_("Manager") }, { GSF_META_NAME_COMPANY, N_("Company") }, { GSF_META_NAME_LINKS_DIRTY, N_("Links Dirty") }, { GSF_META_NAME_MSOLE_UNKNOWN_17, N_("Unknown1") }, { GSF_META_NAME_MSOLE_UNKNOWN_18, N_("Unknown2") }, { GSF_META_NAME_MSOLE_UNKNOWN_19, N_("Unknown3") }, { GSF_META_NAME_MSOLE_UNKNOWN_20, N_("Unknown4") }, { GSF_META_NAME_MSOLE_UNKNOWN_21, N_("Unknown5") }, { GSF_META_NAME_MSOLE_UNKNOWN_22, N_("Unknown6") }, { GSF_META_NAME_MSOLE_UNKNOWN_23, N_("Unknown7") }, { GSF_META_NAME_DICTIONARY, N_("Dictionary") }, { GSF_META_NAME_LOCALE_SYSTEM_DEFAULT, N_("Default Locale") }, { GSF_META_NAME_CASE_SENSITIVE, N_("Case Sensitive") } }; static const gsize nr_metadata_names = G_N_ELEMENTS(metadata_names); static void cb_print_property (char const *name, GsfDocProp const *prop, GHashTable * human_readable_names) { GValue const *val = gsf_doc_prop_get_val (prop); char *tmp; char const * _name; if((_name = g_hash_table_lookup(human_readable_names, name)) == NULL) _name = name; if (gsf_doc_prop_get_link (prop) != NULL) fprintf (stdout, "\t%s LINKED TO -> '%s'\n", _name, gsf_doc_prop_get_link (prop)); else fprintf (stdout, "\t%s = ", _name); if (VAL_IS_GSF_DOCPROP_VECTOR ((GValue *)val)) { GValueArray *va = gsf_value_get_docprop_varray (val); unsigned i; fprintf(stdout, "["); for (i = 0 ; i < va->n_values; i++) { tmp = g_strdup_value_contents (g_value_array_get_nth (va, i)); if(i != 0) fprintf(stdout, ", "); fprintf (stdout, "(%u, %s)", i, tmp); g_free (tmp); } fprintf(stdout, "]"); } else { tmp = g_strdup_value_contents (val); fprintf (stdout, "%s", tmp); g_free (tmp); } fprintf (stdout, "\n"); } static void print_summary_stream (GsfInfile * msole, const char * file_name, const char * stream_name, GHashTable * human_readable_names) { GsfInput * stream = gsf_infile_child_by_name (msole, stream_name); if (stream != NULL) { GsfDocMetaData *meta_data = gsf_doc_meta_data_new (); GError *err = NULL; err = gsf_msole_metadata_read (stream, meta_data); if (err != NULL) { g_warning ("Error getting metadata for %s->%s: %s", file_name, stream_name, err->message); g_error_free (err); err = NULL; } else gsf_doc_meta_data_foreach (meta_data, (GHFunc) cb_print_property, human_readable_names); g_object_unref (meta_data); g_object_unref (G_OBJECT (stream)); } } int main (int argc, char *argv[]) { GHashTable * human_readable_keys; int i; if (argc < 2) { fprintf (stderr, _("Usage: wvSummary doc1 [... docN]\n")); return 1; } wvInit(); human_readable_keys = g_hash_table_new (g_str_hash, g_str_equal); for (i = 0; i < nr_metadata_names; i++) g_hash_table_insert (human_readable_keys, metadata_names[i].metadata_key, _(metadata_names[i].human_readable_key)); for (i = 1 ; i < argc ; i++) { GsfInput *input; GsfInfile *msole; GError *err = NULL; input = gsf_input_stdio_new (argv[i], &err); if(!input) { fprintf (stderr, _("Problem with getting metadata from %s:%s\n"), argv[i], err ? err->message : ""); g_error_free (err); continue; } input = gsf_input_uncompress (input); msole = gsf_infile_msole_new (input, &err); if(!msole) { fprintf (stderr, _("Problem with getting metadata from %s:%s\n"), argv[i], err ? err->message : ""); g_error_free (err); continue; } fprintf (stdout, _("Metadata for %s:\n"), argv[i]); print_summary_stream (msole, argv[i], "\05SummaryInformation", human_readable_keys); print_summary_stream (msole, argv[i], "\05DocumentSummaryInformation", human_readable_keys); g_object_unref (G_OBJECT (msole)); g_object_unref (G_OBJECT (input)); } g_hash_table_destroy (human_readable_keys); wvShutdown(); return 0; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/escher.c�����������������������������������������������������������������������������������0000664�0000764�0000764�00000042232�11247156607�010543� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <string.h> #include <stdio.h> #include <errno.h> #include "wv.h" void wvReleaseEscher (escherstruct * item) { wvReleaseDggContainer (&item->dggcontainer); wvReleaseDgContainer (&item->dgcontainer); } void wvInitEscher (escherstruct * item) { wvInitDggContainer (&item->dggcontainer); wvInitDgContainer (&item->dgcontainer); } void wvGetEscher (escherstruct * item, U32 offset, U32 len, wvStream * fd, wvStream * delay) { U32 count = 0; MSOFBH amsofbh; wvStream_goto (fd, offset); wvTrace (("offset %x, len %d\n", offset, len)); wvInitEscher (item); while (count < len) { count += wvGetMSOFBH (&amsofbh, fd); wvTrace ( ("count is %x,len is %x, next len is %x\n", count, len, amsofbh.cbLength)); wvTrace (("type is %x\n ", amsofbh.fbt)); switch (amsofbh.fbt) { case msofbtDggContainer: count += wvGetDggContainer (&item->dggcontainer, &amsofbh, fd, delay); break; case msofbtDgContainer: count += wvGetDgContainer (&item->dgcontainer, &amsofbh, fd); break; default: wvError (("Not a container, panic (%x)\n", amsofbh.fbt)); return; break; } } wvTrace (("offset %x, len %d (pos %x)\n", offset, len, wvStream_tell (fd))); } void wvReleaseDggContainer (DggContainer * item) { wvReleaseSplitMenuColors (&item->splitmenucolors); wvReleaseDgg (&item->dgg); wvReleaseBstoreContainer (&item->bstorecontainer); } void wvInitDggContainer (DggContainer * item) { wvInitSplitMenuColors (&item->splitmenucolors); wvInitDgg (&item->dgg); wvInitBstoreContainer (&item->bstorecontainer); } U32 wvGetDggContainer (DggContainer * item, MSOFBH * msofbh, wvStream * fd, wvStream * delay) { MSOFBH amsofbh; U32 count = 0; while (count < msofbh->cbLength) { count += wvGetMSOFBH (&amsofbh, fd); wvTrace ( ("len is %x, type is %x, count %x,fullen %x\n", amsofbh.cbLength, amsofbh.fbt, count, msofbh->cbLength)); wvTrace (("type is %x\n ", amsofbh.fbt)); switch (amsofbh.fbt) { case msofbtDgg: count += wvGetDgg (&item->dgg, &amsofbh, fd); break; case msofbtSplitMenuColors: count += wvGetSplitMenuColors (&item->splitmenucolors, &amsofbh, fd); break; case msofbtBstoreContainer: count += wvGetBstoreContainer (&item->bstorecontainer, &amsofbh, fd, delay); wvTrace ( ("type is %d (number is %d\n", item->bstorecontainer.blip[item->bstorecontainer. no_fbse - 1].type, item->bstorecontainer.no_fbse)); break; default: count += wvEatmsofbt (&amsofbh, fd); wvError (("Eating type 0x%x\n", amsofbh.fbt)); break; } } /* For some reason I appear to have an extra byte associated either with this or its wrapper, I will investigate further. */ read_8ubit (fd); count++; return (count); } void wvReleaseDgContainer (DgContainer * item) { U32 i; for (i = 0; i < item->no_spgrcontainer; i++) wvReleaseSpgrContainer (&(item->spgrcontainer[i])); wvFree (item->spgrcontainer); for (i = 0; i < item->no_spcontainer; i++) wvReleaseFSPContainer (&(item->spcontainer[i])); wvFree (item->spcontainer); } void wvInitDgContainer (DgContainer * item) { item->no_spgrcontainer = 0; item->spgrcontainer = NULL; } void wvReleaseBstoreContainer (BstoreContainer * item) { U32 i; for (i = 0; i < item->no_fbse; i++) wvReleaseBlip (&item->blip[i]); wvFree (item->blip); } void wvInitBstoreContainer (BstoreContainer * item) { item->no_fbse = 0; item->blip = NULL; } U32 wvGetBstoreContainer (BstoreContainer * item, MSOFBH * msofbh, wvStream * fd, wvStream * delay) { MSOFBH amsofbh; U32 count = 0; while (count < msofbh->cbLength) { count += wvGetMSOFBH (&amsofbh, fd); wvTrace (("type is %x\n ", amsofbh.fbt)); switch (amsofbh.fbt) { case msofbtBSE: wvTrace (("Blip at %x\n", wvStream_tell (fd))); item->no_fbse++; item->blip = (Blip *) realloc (item->blip, sizeof (Blip) * item->no_fbse); count += wvGetBlip ((&item->blip[item->no_fbse - 1]), fd, delay); wvTrace ( ("type is %d (number is %d\n", item->blip[item->no_fbse - 1].type, item->no_fbse)); break; default: count += wvEatmsofbt (&amsofbh, fd); wvError (("Eating type 0x%x\n", amsofbh.fbt)); break; } } return (count); } U32 wvGetDgContainer (DgContainer * item, MSOFBH * msofbh, wvStream * fd) { MSOFBH amsofbh; U32 count = 0; item->spcontainer = NULL; item->no_spcontainer = 0; while (count < msofbh->cbLength) { count += wvGetMSOFBH (&amsofbh, fd); wvTrace ( ("len is %x, type is %x, count %x,fullen %x\n", amsofbh.cbLength, amsofbh.fbt, count, msofbh->cbLength)); wvTrace (("type is %x\n ", amsofbh.fbt)); switch (amsofbh.fbt) { case msofbtDg: count += wvGetFDG (&item->fdg, fd); break; case msofbtSpgrContainer: item->no_spgrcontainer++; item->spgrcontainer = (SpgrContainer *) realloc (item->spgrcontainer, sizeof (SpgrContainer) * item->no_spgrcontainer); count += wvGetSpgrContainer (& (item->spgrcontainer [item->no_spgrcontainer - 1]), &amsofbh, fd); break; case msofbtSpContainer: item->no_spcontainer++; item->spcontainer = (FSPContainer *) realloc (item->spcontainer, sizeof (FSPContainer) * item->no_spcontainer); count += wvGetFSPContainer (& (item->spcontainer [item->no_spcontainer - 1]), &amsofbh, fd); break; default: count += wvEatmsofbt (&amsofbh, fd); wvError (("Eating type 0x%x\n", amsofbh.fbt)); break; } } return (count); } FSPContainer * wvFindSPID (SpgrContainer * item, S32 spid) { U32 i; FSPContainer *t; for (i = 0; i < item->no_spcontainer; i++) { /* FIXME: Cast below is to avoid compiler warnings, but having to have it could be a sign of something wrong. */ if (item->spcontainer[i].fsp.spid == (U32) spid) { wvTrace (("FOUND IT\n")); return (&(item->spcontainer[i])); } } for (i = 0; i < item->no_spgrcontainer; i++) { t = wvFindSPID (&(item->spgrcontainer[i]), spid); if (t) return (t); } return (NULL); } void wvReleaseSpgrContainer (SpgrContainer * item) { U32 i; for (i = 0; i < item->no_spcontainer; i++) wvReleaseFSPContainer (&(item->spcontainer[i])); wvFree (item->spcontainer); for (i = 0; i < item->no_spgrcontainer; i++) wvReleaseSpgrContainer (&(item->spgrcontainer[i])); wvFree (item->spgrcontainer); } U32 wvGetSpgrContainer (SpgrContainer * item, MSOFBH * msofbh, wvStream * fd) { MSOFBH amsofbh; U32 count = 0; item->spgrcontainer = NULL; item->no_spgrcontainer = 0; item->spcontainer = NULL; item->no_spcontainer = 0; while (count < msofbh->cbLength) { count += wvGetMSOFBH (&amsofbh, fd); wvTrace ( ("len is %x, type is %x, count %x,fullen %x\n", amsofbh.cbLength, amsofbh.fbt, count, msofbh->cbLength)); wvTrace (("type is %x\n ", amsofbh.fbt)); switch (amsofbh.fbt) { case msofbtSpContainer: item->no_spcontainer++; item->spcontainer = realloc (item->spcontainer, sizeof (FSPContainer) * item->no_spcontainer); count += wvGetFSPContainer (& (item->spcontainer[item->no_spcontainer - 1]), &amsofbh, fd); break; case msofbtSpgrContainer: item->no_spgrcontainer++; item->spgrcontainer = realloc (item->spgrcontainer, sizeof (SpgrContainer) * item->no_spgrcontainer); count += wvGetSpgrContainer (& (item->spgrcontainer [item->no_spgrcontainer - 1]), &amsofbh, fd); break; default: count += wvEatmsofbt (&amsofbh, fd); wvError (("Eating type 0x%x\n", amsofbh.fbt)); break; } } return (count); } U32 wvGetFDG (FDG * afdg, wvStream * fd) { afdg->csp = read_32ubit (fd); afdg->spidCur = read_32ubit (fd); wvTrace ( ("there are %d shapes here, the last is %x\n", afdg->csp, afdg->spidCur)); return (8); } void wvInitSplitMenuColors (SplitMenuColors * splitmenucolors) { splitmenucolors->noofcolors = 0; splitmenucolors->colors = NULL; } void wvReleaseSplitMenuColors (SplitMenuColors * splitmenucolors) { wvFree (splitmenucolors->colors); } U32 wvGetSplitMenuColors (SplitMenuColors * splitmenucolors, MSOFBH * amsofbh, wvStream * fd) { U32 i = 0; splitmenucolors->noofcolors = amsofbh->cbLength / 4; if (splitmenucolors->noofcolors) { splitmenucolors->colors = (U32 *) wvMalloc (sizeof (U32) * splitmenucolors->noofcolors); for (i = 0; i < splitmenucolors->noofcolors; i++) splitmenucolors->colors[i] = read_32ubit (fd); } return (i * 4); } void wvReleaseDgg (Dgg * dgg) { wvFree (dgg->fidcl); } void wvInitDgg (Dgg * dgg) { dgg->fidcl = NULL; } U32 wvGetDgg (Dgg * dgg, MSOFBH * amsofbh, wvStream * fd) { U32 count = 0; U32 no; U32 i; count += wvGetFDGG (&dgg->fdgg, fd); if (dgg->fdgg.cidcl != 0) { wvTrace (("There are %d bytes left\n", amsofbh->cbLength - count)); no = (amsofbh->cbLength - count) / 8; if (no != dgg->fdgg.cidcl) { wvWarning ("Must be %d, not %d as specs, test algor gives %d\n", no, dgg->fdgg.cidcl, dgg->fdgg.cspSaved - dgg->fdgg.cidcl); } if (no) { dgg->fidcl = (FIDCL *) wvMalloc (sizeof (FIDCL) * no); for (i = 0; i < no; i++) count += wvGetFIDCL (&(dgg->fidcl[i]), fd); } } return (count); } U32 wvGetFIDCL (FIDCL * afidcl, wvStream * fd) { afidcl->dgid = read_32ubit (fd); afidcl->cspidCur = read_32ubit (fd); wvTrace (("dgid %d cspidCur %d\n", afidcl->dgid, afidcl->cspidCur)); return (8); } U32 wvGetFDGG (FDGG * afdgg, wvStream * fd) { afdgg->spidMax = read_32ubit (fd); afdgg->cidcl = read_32ubit (fd); afdgg->cspSaved = read_32ubit (fd); afdgg->cdgSaved = read_32ubit (fd); wvTrace ( ("spidMax %d cidcl %d cspSaved %d cdgSaved %d\n", afdgg->spidMax, afdgg->cidcl, afdgg->cspSaved, afdgg->cdgSaved)); return (16); } int wv0x08 (Blip * blip, S32 spid, wvParseStruct * ps) { int ret = 0; U32 i; escherstruct item; FSPContainer *answer = NULL; wvTrace (("spid is %x\n", spid)); wvGetEscher (&item, ps->fib.fcDggInfo, ps->fib.lcbDggInfo, ps->tablefd, ps->mainfd); for (i = 0; i < item.dgcontainer.no_spgrcontainer; i++) { answer = wvFindSPID (&(item.dgcontainer.spgrcontainer[i]), spid); if (answer) break; } i = 0; if (answer == NULL) wvError (("Damn found nothing\n")); else if (answer->fopte) { while (answer->fopte[i].pid != 0) { if (answer->fopte[i].pid == 260) { wvTrace ( ("has a blip reference of %d\n", answer->fopte[i].op)); wvTrace ( ("no blips is %d\n", item.dggcontainer.bstorecontainer.no_fbse)); wvTrace ( ("type is %d (number is %d\n", item.dggcontainer.bstorecontainer.blip[item. dggcontainer. bstorecontainer. no_fbse - 1].type, item.dggcontainer.bstorecontainer.no_fbse)); if (answer->fopte[i].op <= item.dggcontainer.bstorecontainer.no_fbse) { wvTrace (("Copied Blip\n")); wvCopyBlip (blip, &(item.dggcontainer.bstorecontainer. blip[answer->fopte[i].op - 1])); wvTrace (("type is %d\n", blip->type)); ret = 1; break; } } i++; } } wvTrace (("spid is %x\n", spid)); wvReleaseEscher (&item); return (ret); } int wv0x01 (Blip * blip, wvStream * fd, U32 len) { MSOFBH amsofbh; FSPContainer item; U32 count = 0; /* char test[3];*/ int ret = 0; if (fd == NULL) return (0); /*lvm007@aha.ru fix hack as outdated look picf*/ /* temp hack to test older included bmps in word 6 and 7, should be wrapped in a modern escher strucure before getting to here, and then handled as normal */ /*test[2] = '\0'; test[0] = read_8ubit (fd); test[1] = read_8ubit (fd); wvStream_rewind (fd); if (!(strcmp (test, "BM"))) { blip->blip.bitmap.m_pvBits = fd; blip->type = msoblipDIB; return (1); } */ while (count < len) { wvTrace (("count is %x,len is %x\n", count, len)); count += wvGetMSOFBH (&amsofbh, fd); wvTrace (("type is %x\n ", amsofbh.fbt)); switch (amsofbh.fbt) { case msofbtSpContainer: wvTrace (("Container at %x\n", wvStream_tell (fd))); count += wvGetFSPContainer (&item, &amsofbh, fd); wvReleaseFSPContainer (&item); break; case msofbtBSE: wvTrace (("Blip at %x\n", wvStream_tell (fd))); count += wvGetBlip (blip, fd, NULL); ret = 1; break; default: wvError (("Not a shape container\n")); return (0); break; } } return (ret); } U32 wvGetFSP (FSP * fsp, wvStream * fd) { fsp->spid = read_32ubit (fd); wvTrace (("SPID is %x\n", fsp->spid)); fsp->grfPersistent = read_32ubit (fd); return (8); } U32 wvGetFSPGR (FSPGR * item, wvStream * fd) { /* It is supposed to be a RECT, but its only 4 long so... */ item->rcgBounds.left = read_32ubit (fd); item->rcgBounds.right = read_32ubit (fd); item->rcgBounds.top = read_32ubit (fd); item->rcgBounds.bottom = read_32ubit (fd); return (16); } void wvReleaseFSPContainer (FSPContainer * item) { wvReleaseClientTextbox (&item->clienttextbox); wvReleaseClientData (&item->clientdata); wvReleaseFOPTEArray (&item->fopte); } void wvInitFSPContainer (FSPContainer * item) { wvInitFOPTEArray (&item->fopte); wvInitClientData (&item->clientdata); wvInitClientTextbox (&item->clienttextbox); } U32 wvGetFSPContainer (FSPContainer * item, MSOFBH * msofbh, wvStream * fd) { MSOFBH amsofbh; U32 count = 0; wvInitFSPContainer (item); while (count < msofbh->cbLength) { count += wvGetMSOFBH (&amsofbh, fd); wvTrace ( ("len is %x, type is %x, count %x,fullen %x\n", amsofbh.cbLength, amsofbh.fbt, count, msofbh->cbLength)); wvTrace (("type is %x\n ", amsofbh.fbt)); switch (amsofbh.fbt) { case msofbtSpgr: count += wvGetFSPGR (&item->fspgr, fd); break; case msofbtSp: wvTrace (("Getting an fsp\n")); count += wvGetFSP (&item->fsp, fd); break; case msofbtOPT: count += wvGetFOPTEArray (&item->fopte, &amsofbh, fd); break; case msofbtAnchor: case msofbtChildAnchor: case msofbtClientAnchor: count += wvGetFAnchor (&item->fanchor, fd); break; case msofbtClientData: count += wvGetClientData (&item->clientdata, &amsofbh, fd); break; case msofbtClientTextbox: count += wvGetClientTextbox (&item->clienttextbox, &amsofbh, fd); break; case msofbtTextbox: wvError (("unimp\n")); break; case msofbtOleObject: wvError (("unimp\n")); break; case msofbtDeletedPspl: wvError (("unimp\n")); break; default: count += wvEatmsofbt (&amsofbh, fd); wvError (("Eating type 0x%x\n", amsofbh.fbt)); break; } } return (count); } void wvInitClientData (ClientData * item) { item->data = NULL; } void wvReleaseClientData (ClientData * item) { wvFree (item->data); } U32 wvGetClientData (ClientData * item, MSOFBH * msofbh, wvStream * fd) { U32 i; if (msofbh->cbLength) { item->data = (U8 *) wvMalloc (msofbh->cbLength); for (i = 0; i < msofbh->cbLength; i++) item->data[i] = read_8ubit (fd); } else item->data = NULL; return (msofbh->cbLength); } U32 wvGetMSOFBH (MSOFBH * amsofbh, wvStream * fd) { U16 dtemp = 0; dtemp = read_16ubit (fd); #ifdef PURIFY amsofbh->ver = 0; amsofbh->inst = 0; #endif amsofbh->ver = dtemp & 0x000F; amsofbh->inst = dtemp >> 4; amsofbh->fbt = read_16ubit (fd); amsofbh->cbLength = read_32ubit (fd); return (8); } U32 wvEatmsofbt (MSOFBH * amsofbh, wvStream * fd) { wvStream_offset(fd, amsofbh->cbLength); return amsofbh->cbLength; } void wvInitClientTextbox (ClientTextbox * item) { item->textid = NULL; } void wvReleaseClientTextbox (ClientTextbox * item) { wvFree (item->textid); } U32 wvGetClientTextbox (ClientTextbox * item, MSOFBH * amsofbh, wvStream * fd) { item->textid = (U32 *) wvMalloc (amsofbh->cbLength); *item->textid = read_32ubit (fd); return (amsofbh->cbLength); } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/basename.c���������������������������������������������������������������������������������0000664�0000764�0000764�00000006107�11247156607�011046� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" /* basename -- strip directory and suffix from filenames Copyright (C) 1990-1997, 1999 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Remove SUFFIX from the end of NAME if it is there, unless NAME consists entirely of SUFFIX. */ void remove_suffix (char *name, const char *suffix) { char *np; const char *sp; /*lvm007@aha.ru fix for filename case insencetivity in Win*/ #ifdef _WIN32 _strlwr(name); #endif np = name + strlen (name); sp = suffix + strlen (suffix); while (np > name && sp > suffix) if (*--np != *--sp) return; if (np > name) *np = '\0'; } #ifndef FILESYSTEM_PREFIX_LEN # define FILESYSTEM_PREFIX_LEN(Filename) 0 #endif /*lvm007@aha.ru fix for filename back splashes*/ #ifndef ISSLASH #ifndef _WIN32 # define ISSLASH(C) ((C) == '/') #else # define ISSLASH(C) ((C) == '/'||(C) == '\\') #endif #endif /* In general, we can't use the builtin `basename' function if available, since it has different meanings in different environments. In some environments the builtin `basename' modifies its argument. If NAME is all slashes, be sure to return `/'. */ char * base_name (char const *name) { char const *base = name += FILESYSTEM_PREFIX_LEN (name); int all_slashes = 1; char const *p; for (p = name; *p; p++) { if (ISSLASH (*p)) base = p + 1; else all_slashes = 0; } /* If NAME is all slashes, arrange to return `/'. */ if (*base == '\0' && ISSLASH (*name) && all_slashes) --base; return (char *) base; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvDocBook.in�������������������������������������������������������������������������������0000664�0000764�0000764�00000005644�11247156607�011361� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh wv_script_name="$0" prefix=@prefix@ exec_prefix= datadir= t_dir=. wv_opts= i_file= o_file= print_help=no while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg ;; --exec-prefix=*) exec_prefix=$optarg ;; --datadir=*) datadir=$optarg ;; --targetdir=*) t_dir=$optarg ;; --charset=* | --password=*) wv_opts="$wv_opts $1" ;; -v | --version) echo @VERSION@ exit 0 ;; -\? | -h | --help) cat << EOF Usage: $wv_script_name [OPTIONS] <input-file> <output-file> Options: --prefix=<DIR> Set prefix (default is @prefix@) --exec-prefix=<DIR> Set exec_prefix (default is @exec_prefix@) --datadir=<DIR> Set datadir (default is @datadir@) --targetdir=<DIR> Target directory (target is <DIR>/<output-file>) --charset=<charset> Specify an iconv charset encoding --password=<password> Specify password for encrypted -v, --version Print version info and exit Authors: Dom Lachowicz (dominicl@seas.upenn.edu) Caolan McNamara (original author) Visit http://www.wvware.com/ EOF exit 0 ;; -?*) echo "Option '$1' not recognized." exit 1 ;; *) if test "x$i_file" = "x"; then i_file=$1 elif test "x$o_file" = "x"; then o_file=$1 else echo "Option '$1' not recognized." exit 1 fi ;; esac shift done if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as input" exit 1 fi if test -r "$i_file"; then okay=yes else echo "error: '$i_file' unreadable" exit 1 fi if test "x$o_file" = "x"; then echo "Usage: $1 [OPTIONS] <input-file> <output-file>" exit 1 fi name=`basename "$o_file"` if test "x$o_file" != "x$name"; then echo "* * * Better to use '--targetdir' for writing in another directory * * *" exit 1 fi name=`echo $name | sed 's/\.[^\.]*$//'` if test "x$exec_prefix" = "x"; then exec_prefix=@exec_prefix@ fi wv_exec="$exec_prefix/bin/wvWare" if test -x "$wv_exec"; then okay=yes else wv_version=`wvWare -v 2>&1 | cut -f 2 -d " "` if test "x$wv_version" = "x@VERSION@"; then wv_exec="wvWare" else echo "error: no executable at '$wv_exec' or in path" exit 1 fi fi if test "x$datadir" = "x"; then datadir=@datadir@ fi xmlcfg="$datadir/wv/wvDocbook.xml" if test -r "$xmlcfg"; then okay=yes else echo "error: '$xmlcfg' unreadable" exit 1 fi if test -d "$t_dir"; then if test -w "$t_dir"; then okay=yes else echo "error: '$t_dir' is not writable" exit 1 fi else echo "error: '$t_dir' is not a directory" exit 1 fi if test "x$o_file" = "x-"; then "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" else "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" > "$t_dir"/"$o_file" fi ��������������������������������������������������������������������������������������������wv-1.2.9/fspa.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000006520�11247156607�010223� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvInitFSPA (FSPA * item) { item->spid = 0; item->xaLeft = 0; item->yaTop = 0; item->xaRight = 0; item->yaBottom = 0; item->fHdr = 0; item->bx = 0; item->by = 0; item->wr = 0; item->wrk = 0; item->fRcaSimple = 0; item->fBelowText = 0; item->fAnchorLock = 0; item->cTxbx = 0; } void wvGetFSPA (FSPA * item, wvStream * fd) { U16 temp16; #ifdef PURIFY wvInitFSPA (item); #endif item->spid = read_32ubit (fd);; item->xaLeft = (S32) read_32ubit (fd); item->yaTop = (S32) read_32ubit (fd); item->xaRight = (S32) read_32ubit (fd); item->yaBottom = (S32) read_32ubit (fd); temp16 = read_16ubit (fd); item->fHdr = temp16 & 0x0001; item->bx = (temp16 & 0x0006) >> 1; item->by = (temp16 & 0x0018) >> 3; item->wr = (temp16 & 0x01E0) >> 5; item->wrk = (temp16 & 0x1E00) >> 9; item->fRcaSimple = (temp16 & 0x2000) >> 13; item->fBelowText = (temp16 & 0x4000) >> 14; item->fAnchorLock = (temp16 & 0x8000) >> 15; item->cTxbx = (S32) read_32ubit (fd); } int wvGetFSPA_PLCF (FSPA ** fspa, U32 ** pos, U32 * nofspa, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *fspa = NULL; *pos = NULL; *nofspa = 0; } else { *nofspa = (len - 4) / 30; *pos = (U32 *) wvMalloc ((*nofspa + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nofspa + 1) * sizeof (U32))); return (1); } *fspa = (FSPA *) wvMalloc (*nofspa * sizeof (FSPA)); if (*fspa == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nofspa * sizeof (FSPA))); /* I believe it is not always right to free this. Sometimes len == 4 and * although *nofspa == 0, the data structure is needed. * (Wild guesswork by MV 20.12.2000 -- correct me if I'm wrong) */ /* wvFree(pos); */ return (1); } wvStream_goto (fd, offset); for (i = 0; i <= *nofspa; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *nofspa; i++) wvGetFSPA (&((*fspa)[i]), fd); } return (0); } FSPA * wvGetFSPAFromCP (U32 currentcp, FSPA * fspa, U32 * pos, U32 nofspa) { U32 i; wvTrace (("nofspa is %d\n", nofspa)); for (i = 0; i < nofspa; i++) { wvTrace (("compare %x %d\n", currentcp, pos[i])); if (pos[i] == currentcp) return (&(fspa[i])); } wvError (("found no fspa, panic\n")); return (NULL); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/blip.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000006545�11247156607�010227� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <errno.h> #include "wv.h" U32 twvGetFOPTE (FOPTE * afopte, wvStream * infd) { U32 ret = 0; U16 dtemp; dtemp = read_16ubit (infd); #ifdef PURIFY afopte->pid = 0; afopte->fBid = 0; afopte->fComplex = 0; #endif afopte->pid = (dtemp & 0x3fff); afopte->fBid = ((dtemp & 0x4000) >> 14); afopte->fComplex = ((dtemp & 0x8000) >> 15); afopte->op = read_32ubit (infd); if (afopte->fComplex) { wvTrace (("1 complex len is %d (%x)\n", afopte->op, afopte->op)); ret = afopte->op; } #if 0 else if (afopte->fBid) wvTrace ( ("great including graphic number %d %d\n", afopte->op, afopte->op)); #endif wvTrace ( ("orig %x,pid is %x, val is %x\n", dtemp, afopte->pid, afopte->op)); return (ret); } fbse_list * wvGetSPID (U32 spid, fsp_list * afsp_list, fbse_list * afbse_list) { fopte_list *temp; U32 i; while (afsp_list != NULL) { if (afsp_list->afsp.spid == spid) { wvTrace (("found the correct spid\n")); temp = afsp_list->afopte_list; while (temp != NULL) { if ((temp->afopte.fBid) && (!(temp->afopte.fComplex))) { wvTrace ( ("found a graphic to go with the spid, no %d\n", temp->afopte.op)); for (i = 1; i < temp->afopte.op; i++) afbse_list = afbse_list->next; return (afbse_list); break; } temp = temp->next; } break; } afsp_list = afsp_list->next; } return (NULL); } U32 wvGetSPIDfromCP (U32 cp, textportions * portions) { U32 i; for (i = 0; i < portions->noofficedraw; i++) if (cp == portions->officedrawcps[i]) return (portions->fspas[i].spid); return (0xffffffffL); } void wvGetBITMAP (BITMAP * bmp, wvStream * infd) { int i; for (i = 0; i < 14; i++) bmp->bm[i] = read_8ubit (infd); } void wvGetrc (rc * arc, wvStream * infd) { int i; for (i = 0; i < 14; i++) arc->bm[i] = read_8ubit (infd); } U32 twvGetFBSE (FBSE * afbse, wvStream * infd) { int i; afbse->btWin32 = read_8ubit (infd); afbse->btMacOS = read_8ubit (infd); for (i = 0; i < 16; i++) afbse->rgbUid[i] = read_8ubit (infd); afbse->tag = read_16ubit (infd); afbse->size = read_32ubit (infd); afbse->cRef = read_32ubit (infd); afbse->foDelay = read_32ubit (infd); afbse->usage = read_8ubit (infd); afbse->cbName = read_8ubit (infd); afbse->unused2 = read_8ubit (infd); afbse->unused3 = read_8ubit (infd); return (36); } �����������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvparse.c����������������������������������������������������������������������������������0000664�0000764�0000764�00000044347�11247156607�010772� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include "wv.h" #include "utf.h" #ifdef HAVE_LIBXML2 #include <libxml/parser.h> #endif #include <gsf/gsf-input-stdio.h> #include <gsf/gsf-utils.h> int wvInit (void) { gsf_init (); #ifdef HAVE_LIBXML2 xmlInitParser (); #endif return 1; } void wvShutdown (void) { gsf_shutdown (); #ifdef HAVE_LIBXML2 xmlCleanupParser (); #endif } static int wvOpenPreOLE (GsfInput *path, wvStream ** mainfd, wvStream ** tablefd0, wvStream ** tablefd1, wvStream ** data, wvStream ** summary) { int ret = -1; U16 magic; if (path == NULL) { wvError (("Cannot open file $s\n", path)); return (-1); } wvStream_gsf_create (mainfd, path); /* what's the lifecycle on these look like? */ *tablefd0 = *mainfd; *tablefd1 = *mainfd; *data = *mainfd; *summary = *mainfd; magic = read_16ubit (*mainfd); if (0xa5db == magic) { wvError ( ("Theres a good chance that this is a word 2 doc of nFib %d\n", read_16ubit (*mainfd))); wvStream_rewind (*mainfd); /* return(-1); */ return (0); } else if (0x37fe == magic) { wvError ( ("Theres a good chance that this is a word 5 doc of nFib %d\n", read_16ubit (*mainfd))); wvStream_rewind (*mainfd); return (0); } return (ret); } static void tokenTreeInit (void); wvParseStruct * wvCreateParser (void) { return (wvParseStruct *)calloc (1, sizeof (wvParseStruct)); } void wvDeleteParser (wvParseStruct * ps) { if (ps) free (ps); } int wvInitParser_gsf (wvParseStruct * ps, GsfInput *path) { int ret = 0, reason = 0; memset ( ps, 0, sizeof ( wvParseStruct ) ) ; ps->userData = NULL; ps->lst = NULL; ps->intable = 0; ps->endcell = 0; ps->vmerges = NULL; ps->norows = 0; ps->cellbounds = NULL; ps->nocellbounds = 0; ps->fieldstate = 0; ps->fieldmiddle = 0; ps->charhandler = 0; ps->scharhandler = 0; ps->elehandler = 0; ps->dochandler = 0; ps->password[0] = 0; /* set up the token table tree for faster lookups */ tokenTreeInit (); ret = wvOLEDecode_gsf (ps, path, &ps->mainfd, &ps->tablefd0, &ps->tablefd1, &ps->data, &ps->summary); switch (ret) { case 0: break; case 2: ret = wvOpenPreOLE (path, &ps->mainfd, &ps->tablefd0, &ps->tablefd1, &ps->data, &ps->summary); if (ret) return (ret); break; case 3: case 5: wvError (("Bad Ole\n")); return (3); default: return (-1); } if (ps->mainfd == NULL) { ret = 4; wvOLEFree (ps); wvError (("Not a word document\n")); return (-1); } wvGetFIB (&ps->fib, ps->mainfd); ps->tablefd = wvWhichTableStream (&ps->fib, ps); /* Check the validity of the table stream. */ if (ps->tablefd == NULL) { wvOLEFree(ps); wvError(("Data Stream Corrupt or Not Readable\n")); return (-1); } /* When the data stream is null, it is highly probable that the document is corrupt */ if (ps->data == NULL) { /* checking for the validity of the Clx data from the table stream for not encrypted files */ if (!ps->fib.fEncrypted && wvStream_goto(ps->tablefd, ps->fib.fcClx)==-1) { wvOLEFree(ps); wvError(("Data Stream Corrupt or Not Readable\n")); return (-1); } /* Reset the stream to the begining */ wvStream_rewind(ps->tablefd); } ret = wvQuerySupported (&ps->fib, &reason); if ((ret & 0x7fff) != WORD8) ps->data = ps->mainfd; if ((ret != WORD8) && (ret != WORD7) && (ret != WORD6) && (ret != WORD2)) /* WORD2 test */ { /* return the errors and the encrypted files */ if (!(ret & 0x8000)) wvError (("%s\n", wvReason (reason))); return (ret); } ret = 0; return ret; } int wvInitParser (wvParseStruct * ps, char *path) { GsfInput *input; int rval; input = gsf_input_stdio_new (path, NULL); rval = wvInitParser_gsf (ps, input); if (rval == 0) ps->filename = path; ps->input = input; return rval; } void wvSetPassword (const char *pass, wvParseStruct * ps) { int i = 0, len; char * password = (char *)pass; /* causes no harm */ /* at this stage we are passing in an utf-8 password and later converting it to unicode, we should use the generic available mb to wide char stuff, but that isnt very prevalent yet, and this is the only time i think i go from utf to unicode */ while (*password) { len = our_mbtowc (&(ps->password[i]), password, 5); i++; password += len; if (i == 16) break; } ps->password[i] = 0; } static Tokenptr tokenTreeRoot = NULL; static const TokenTable s_Tokens[] = { {"*", TT_OTHER}, /* must be FIRST */ {"begin", TT_BEGIN}, {"end", TT_END}, {"title", TT_TITLE}, {"charset", TT_CHARSET}, {"version", TT_VERSION}, {"filename", TT_FILENAME}, {"htmlgraphic", TT_htmlgraphic}, {"colspan", TT_COLSPAN}, {"cellrelwidth", TT_CELLRELWIDTH}, {"cellrelpagewidth", TT_CELLRELPAGEWIDTH}, {"rowspan", TT_ROWSPAN}, {"cellbgcolor", TT_CELLBGCOLOR}, {"parabgcolor", TT_PARABGCOLOR}, {"parafgcolor", TT_PARAFGCOLOR}, {"tablerelwidth", TT_TABLERELWIDTH}, {"no_rows", TT_no_rows}, {"no_cols", TT_no_cols}, {"style", TT_STYLE}, {"comment", TT_COMMENT}, {"ibstanno", TT_IBSTANNO}, {"xstUsrInitl", TT_xstUsrInitl}, {"mmParaBefore", TT_mmParaBefore}, {"mmParaAfter", TT_mmParaAfter}, {"mmParaLeft", TT_mmParaLeft}, {"mmParaRight", TT_mmParaRight}, {"mmParaLeft1", TT_mmParaLeft1}, /* >>---------- PATCH */ {"stylename", TT_stylename}, /* << ---------------- */ {"bordertopstyle", TT_BORDERTopSTYLE}, {"bordertopcolor", TT_BORDERTopCOLOR}, {"borderleftstyle", TT_BORDERLeftSTYLE}, {"borderleftcolor", TT_BORDERLeftCOLOR}, {"borderrightstyle", TT_BORDERRightSTYLE}, {"borderrightcolor", TT_BORDERRightCOLOR}, {"borderbottomstyle", TT_BORDERBottomSTYLE}, {"borderbottomcolor", TT_BORDERBottomCOLOR}, {"mmPadTop", TT_mmPadTop}, {"mmPadRight", TT_mmPadRight}, {"mmPadBottom", TT_mmPadBottom}, {"mmPadLeft", TT_mmPadLeft}, {"mmLineHeight", TT_mmLineHeight}, {"document", TT_DOCUMENT}, {"picture", TT_PICTURE}, {"charentity", TT_CHARENTITY}, {"pixPicWidth", TT_pixPicWidth}, {"pixPicHeight", TT_pixPicHeight}, {"htmlAlignGuess", TT_htmlAlignGuess}, {"htmlNextLineGuess", TT_htmlNextLineGuess}, {"section", TT_SECTION}, {"paragraph", TT_PARA}, {"table", TT_TABLE}, {"table.begin", TT_TABLEB}, {"table.end", TT_TABLEE}, {"row", TT_ROW}, {"row.begin", TT_ROWB}, {"row.end", TT_ROWE}, {"cell", TT_CELL}, {"cell.begin", TT_CELLB}, {"cell.end", TT_CELLE}, {"lastcell", TT_LASTCELL}, {"lastcell.begin", TT_LASTCELLB}, {"lastcell.end", TT_LASTCELLE}, {"tableoverrides", TT_TABLEOVERRIDES}, {"ParaBefore", TT_ParaBefore}, {"ParaAfter", TT_ParaAfter}, {"ParaLeft", TT_ParaLeft}, {"ParaRight", TT_ParaRight}, {"ParaLeft1", TT_ParaLeft1}, {"VertMergedCells", TT_VertMergedCells}, {"block", TT_BLOCK}, {"justification", TT_JUSTIFICATION}, {"just", TT_JUST}, {"left", TT_LEFT}, {"right", TT_RIGHT}, {"center", TT_CENTER}, {"asian", TT_ASIAN}, {"pmargin", TT_PMARGIN}, {"pborder", TT_PBORDER}, {"paramargin", TT_PARAMARGIN}, {"paraborder", TT_PARABORDER}, {"nfc", TT_nfc}, {"start", TT_START}, {"numbering", TT_numbering}, {"arabic", TT_Arabic}, {"upperroman", TT_UpperRoman}, {"lowerroman", TT_LowerRoman}, {"uppercasen", TT_UpperCaseN}, {"lowercasen", TT_LowerCaseN}, {"text", TT_TEXT,}, {"text.begin", TT_TEXTB,}, {"text.end", TT_TEXTE,}, {"olist", TT_OLIST,}, {"olist.begin", TT_OLISTB,}, {"olist.end", TT_OLISTE,}, {"ulist", TT_ULIST,}, {"ulist.begin", TT_ULISTB,}, {"ulist.end", TT_ULISTE,}, {"entry", TT_ENTRY,}, {"entry.begin", TT_ENTRYB,}, {"entry.end", TT_ENTRYE,}, {"character", TT_CHAR}, {"bold", TT_BOLD}, {"bold.begin", TT_BOLDB}, {"bold.end", TT_BOLDE}, {"italic", TT_ITALIC}, {"italic.begin", TT_ITALICB}, {"italic.end", TT_ITALICE,}, {"strike", TT_STRIKE}, {"strike.begin", TT_STRIKEB}, {"strike.end", TT_STRIKEE,}, {"rmarkdel", TT_RMarkDel,}, {"rmarkdel.begin", TT_RMarkDelB,}, {"rmarkdel.end", TT_RMarkDelE,}, {"outline", TT_OUTLINE,}, {"outline.begin", TT_OUTLINEB,}, {"outline.end", TT_OUTLINEE,}, {"smallcaps", TT_SMALLCAPS,}, {"smallcaps.begin", TT_SMALLCAPSB,}, {"smallcaps.end", TT_SMALLCAPSE,}, {"caps", TT_CAPS,}, {"caps.begin", TT_CAPSB,}, {"caps.end", TT_CAPSE,}, {"vanish", TT_VANISH,}, {"vanish.begin", TT_VANISHB,}, {"vanish.end", TT_VANISHE,}, {"rmark", TT_RMark,}, {"rmark.begin", TT_RMarkB,}, {"rmark.end", TT_RMarkE,}, {"shadow", TT_SHADOW,}, {"shadow.begin", TT_SHADOWB,}, {"shadow.end", TT_SHADOWE,}, {"lowercase", TT_LOWERCASE,}, {"lowercase.begin", TT_LOWERCASEB,}, {"lowercase.end", TT_LOWERCASEE,}, {"emboss", TT_EMBOSS,}, {"emboss.begin", TT_EMBOSSB,}, {"emboss.end", TT_EMBOSSE,}, {"imprint", TT_IMPRINT,}, {"imprint.begin", TT_IMPRINTB,}, {"imprint.end", TT_IMPRINTE,}, {"dstrike", TT_DSTRIKE,}, {"dstrike.begin", TT_DSTRIKEB,}, {"dstrike.end", TT_DSTRIKEE,}, {"super", TT_SUPER,}, {"super.begin", TT_SUPERB,}, {"super.end", TT_SUPERE,}, {"sub", TT_SUB,}, {"sub.begin", TT_SUBB,}, {"sub.end", TT_SUBE,}, {"singleu", TT_SINGLEU,}, {"singleu.begin", TT_SINGLEUB,}, {"singleu.end", TT_SINGLEUE,}, {"wordu", TT_WORDU,}, {"wordu.begin", TT_WORDUB,}, {"wordu.end", TT_WORDUE,}, {"doubleu", TT_DOUBLEU,}, {"doubleu.begin", TT_DOUBLEUB,}, {"doubleu.end", TT_DOUBLEUE,}, {"dottedu", TT_DOTTEDU,}, {"dottedu.begin", TT_DOTTEDUB,}, {"dottedu.end", TT_DOTTEDUE,}, {"hiddenu", TT_HIDDENU,}, {"hiddenu.begin", TT_HIDDENUB,}, {"hiddenu.end", TT_HIDDENUE,}, {"thicku", TT_THICKU,}, {"thicku.begin", TT_THICKUB,}, {"thicku.end", TT_THICKUE,}, {"dashu", TT_DASHU,}, {"dashu.begin", TT_DASHUB,}, {"dashu.end", TT_DASHUE,}, {"dotu", TT_DOTU,}, {"dotu.begin", TT_DOTUB,}, {"dotu.end", TT_DOTUE,}, {"dotdashu", TT_DOTDASHU,}, {"dotdashu.begin", TT_DOTDASHUB,}, {"dotdashu.end", TT_DOTDASHUE,}, {"dotdotdashu", TT_DOTDOTDASHU,}, {"dotdotdashu.begin", TT_DOTDOTDASHUB,}, {"dotdotdashu.end", TT_DOTDOTDASHUE,}, {"waveu", TT_WAVEU,}, {"waveu.begin", TT_WAVEUB,}, {"waveu.end", TT_WAVEUE,}, {"black", TT_BLACK,}, {"black.begin", TT_BLACKB,}, {"black.end", TT_BLACKE,}, {"blue", TT_BLUE,}, {"blue.begin", TT_BLUEB,}, {"blue.end", TT_BLUEE,}, {"cyan", TT_CYAN,}, {"cyan.begin", TT_CYANB,}, {"cyan.end", TT_CYANE,}, {"green", TT_GREEN,}, {"green.begin", TT_GREENB,}, {"green.end", TT_GREENE,}, {"magenta", TT_MAGENTA,}, {"magenta.begin", TT_MAGENTAB,}, {"magenta.end", TT_MAGENTAE,}, {"red", TT_RED,}, {"red.begin", TT_REDB,}, {"red.end", TT_REDE,}, {"yellow", TT_YELLOW,}, {"yellow.begin", TT_YELLOWB,}, {"yellow.end", TT_YELLOWE,}, {"white", TT_WHITE,}, {"white.begin", TT_WHITEB,}, {"white.end", TT_WHITEE,}, {"dkblue", TT_DKBLUE,}, {"dkblue.begin", TT_DKBLUEB,}, {"dkblue.end", TT_DKBLUEE,}, {"dkcyan", TT_DKCYAN,}, {"dkcyan.begin", TT_DKCYANB,}, {"dkcyan.end", TT_DKCYANE,}, {"dkgreen", TT_DKGREEN,}, {"dkgreen.begin", TT_DKGREENB,}, {"dkgreen.end", TT_DKGREENE,}, {"dkmagenta", TT_DKMAGENTA,}, {"dkmagenta.begin", TT_DKMAGENTAB,}, {"dkmagenta.end", TT_DKMAGENTAE,}, {"dkred", TT_DKRED,}, {"dkred.begin", TT_DKREDB,}, {"dkred.end", TT_DKREDE,}, {"dkyellow", TT_DKYELLOW,}, {"dkyellow.begin", TT_DKYELLOWB,}, {"dkyellow.end", TT_DKYELLOWE,}, {"dkgray", TT_DKGRAY,}, {"dkgray.begin", TT_DKGRAYB,}, {"dkgray.end", TT_DKGRAYE,}, {"ltgray", TT_LTGRAY,}, {"ltgray.begin", TT_LTGRAYB,}, {"ltgray.end", TT_LTGRAYE,}, {"fontstr", TT_FONTSTR,}, {"fontstr.begin", TT_FONTSTRB,}, {"fontstr.end", TT_FONTSTRE,}, {"color", TT_COLOR,}, {"color.begin", TT_COLORB,}, {"color.end", TT_COLORE,}, {"ibstrmark", TT_ibstRMark,}, {"ibstrmarkdel", TT_ibstRMarkDel,}, {"dttmRMark", TT_dttmRMark,}, {"dttmRMarkDel", TT_dttmRMarkDel,}, {"proprmark", TT_PropRMark,}, {"proprmark.begin", TT_PropRMarkB,}, {"proprmark.end", TT_PropRMarkE,}, {"ibstPropRMark", TT_ibstPropRMark,}, {"dttmPropRMark", TT_dttmPropRMark,}, {"LasVegas", TT_LasVegas,}, {"LasVegas.begin", TT_LasVegasB,}, {"LasVegas.end", TT_LasVegasE,}, {"BackgroundBlink", TT_BackgroundBlink,}, {"BackgroundBlink.begin", TT_BackgroundBlinkB,}, {"BackgroundBlink.end", TT_BackgroundBlinkE,}, {"SparkleText", TT_SparkleText,}, {"SparkleText.begin", TT_SparkleTextB,}, {"SparkleText.end", TT_SparkleTextE,}, {"MarchingAnts", TT_MarchingAnts,}, {"MarchingAnts.begin", TT_MarchingAntsB,}, {"MarchingAnts.end", TT_MarchingAntsE,}, {"MarchingRedAnts", TT_MarchingRedAnts,}, {"MarchingRedAnts.begin", TT_MarchingRedAntsB,}, {"MarchingRedAnts.end", TT_MarchingRedAntsE,}, {"Shimmer", TT_Shimmer,}, {"Shimmer.begin", TT_ShimmerB,}, {"Shimmer.end", TT_ShimmerE,}, {"ANIMATION", TT_ANIMATION,}, {"ANIMATION.begin", TT_ANIMATIONB,}, {"ANIMATION.end", TT_ANIMATIONE,}, {"DispFldRMark", TT_DispFldRMark,}, {"DispFldRMark.begin", TT_DispFldRMarkB,}, {"DispFldRMark.end", TT_DispFldRMarkE,}, {"ibstDispFldRMark", TT_ibstDispFldRMark,}, {"dttmDispFldRMark", TT_dttmDispFldRMark,}, {"xstDispFldRMark", TT_xstDispFldRMark,}, {"border", TT_BORDER,}, {"noned", TT_NONED,}, {"singled", TT_SINGLED,}, {"thickd", TT_THICKD,}, {"doubled", TT_DOUBLED,}, {"number4d", TT_NUMBER4D,}, {"hairlined", TT_HAIRLINED,}, {"dotd", TT_DOTD,}, {"dashlargegapd", TT_DASHLARGEGAPD,}, {"dotdashd", TT_DOTDASHD,}, {"dotdotdashd", TT_DOTDOTDASHD,}, {"tripled", TT_TRIPLED,}, {"thin-thicksmallgapd", TT_thin_thicksmallgapD,}, {"thick-thinsmallgapd", TT_thick_thinsmallgapD,}, {"thin-thick-thinsmallgapd", TT_thin_thick_thinsmallgapD,}, {"thin-thickmediumgapd", TT_thin_thickmediumgapD,}, {"thick-thinmediumgapd", TT_thick_thinmediumgapD,}, {"thin-thick-thinmediumgapd", TT_thin_thick_thinmediumgapD,}, {"thin-thicklargegapd", TT_thin_thicklargegapD,}, {"thick-thinlargegapd", TT_thick_thinlargegapD,}, {"thin-thick-thinlargegapd", TT_thin_thick_thinlargegapD,}, {"waved", TT_WAVED,}, {"doublewaved", TT_DOUBLEWAVED,}, {"dashsmallgapd", TT_DASHSMALLGAPD,}, {"dashdotstrokedd", TT_DASHDOTSTROKEDD,}, {"emboss3Dd", TT_EMBOSS3DD,}, {"engrave3Dd", TT_ENGRAVE3DD,}, {"direction", TT_DIRECTION,}, {"dir", TT_DIR,}, {"defaultd", TT_DEFAULTD,} }; #define TOKEN_BUFSIZE 1000 static Tokenptr tokenbuf; static int tokenbufn = 0, tokenfreen = 0; static void *tokenfreearr[10000]; static void tokenTreeInsert (int token) { int pos; int d; const char *s; char ch; Tokenptr pp, *p; /* start at one - TT_OTHER is the zero element. */ p = &tokenTreeRoot; s = s_Tokens[token].m_name; pos = 0; for (;;) { ch = toupper (s[pos]); pp = *p; while (pp != NULL) { d = ch - pp->splitchar; if (d == 0) { if (s[pos] == 0) break; pos++; ch = toupper (s[pos]); p = &(pp->eqkid); } else if (d < 0) p = &(pp->lokid); else p = &(pp->hikid); pp = *p; } if (tokenbufn == 0) { tokenbuf = (Tokenptr) wvMalloc (TOKEN_BUFSIZE * sizeof (Tokennode)); tokenfreearr[tokenfreen++] = (void *) tokenbuf; tokenbufn = TOKEN_BUFSIZE; } tokenbufn--; *p = &(tokenbuf[tokenbufn]); pp = *p; pp->splitchar = ch; pp->lokid = pp->eqkid = pp->hikid = 0; pp->token = 0; if (s[pos] == 0) { pp->token = token; break; } pos++; p = &(pp->eqkid); } } /* this routine will insert the tokens in a balanced way as long as the token table is sorted. */ static void tokenTreeRecursiveInsert (int min, int max) { int token; if (min > max) return; token = (min + max) / 2; tokenTreeInsert (token); tokenTreeRecursiveInsert (token + 1, max); tokenTreeRecursiveInsert (min, token - 1); } static void tokenTreeInit (void) { tokenTreeRecursiveInsert (1, TokenTableSize - 1); } void tokenTreeFreeAll (void) { int i; for (i = 0; i < tokenfreen; i++) wvFree (tokenfreearr[i]); tokenfreen = 0; tokenbufn = 0; tokenbuf = NULL; tokenTreeRoot = NULL; } /* this loop is called *a lot* so I've made it a binary search */ static unsigned int s_mapNameToToken (const char *name) { Tokenptr p; int i = 0; char ch; p = tokenTreeRoot; ch = toupper (name[i]); while (p) { if (ch < p->splitchar) p = p->lokid; else if (ch == p->splitchar) { if (name[i] == 0) return p->token; p = p->eqkid; i++; ch = toupper (name[i]); } else p = p->hikid; } /* this is one of several lines of code that rely on TT_OTHER being first in the token table. */ return 0; } unsigned int wvMapNameToTokenType (const char * name) { unsigned int tokenIndex = s_mapNameToToken (name); return s_Tokens[tokenIndex].m_type; } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/roman.c������������������������������������������������������������������������������������0000664�0000764�0000764�00000020253�11247156607�010405� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ /* roman.c by Adam Rogoyski (apoc@laker.net) Temperanc on EFNet irc * Copyright (C) 1998 Adam Rogoyski * Converts Decimal numbers to Roman Numerals and Roman Numberals to * Decimals on the command line or in Interactive mode. * Uses an expanded Roman Numeral set to handle numbers up to 999999999 * compile: gcc -o roman roman.c -O2 * --- GNU General Public License Disclamer --- * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" #define I 1 #define V 5 #define X 10 #define L 50 #define C 100 #define D 500 #define M 1000 #define P 5000 #define Q 10000 #define R 50000 #define S 100000 #define T 500000 #define U 1000000 #define B 5000000 #define W 10000000 #define N 50000000 #define Y 100000000 #define Z 500000000 #define LARGEST 999999999 #include "roman.h" long formString (char **r, long v, char a, char b) { *(*r)++ = a; if (b) *(*r)++ = b; return v; } char * decimalToRoman (long decimal, char *roman) { char *r = roman; memset (roman, 0, 81); r = roman; if (decimal > LARGEST || decimal < 1) { *r = '\0'; wvError (("roman broke\n")); return roman; } if (decimal >= Z) decimal -= formString (&r, Z, 'Z', '\0'); if (decimal >= Z - Y) decimal -= formString (&r, Z - Y, 'Y', 'Z'); while (decimal >= Y) decimal -= formString (&r, Y, 'Y', '\0'); if (decimal >= Y - W) decimal -= formString (&r, Y - W, 'W', 'Y'); if (decimal >= N) decimal -= formString (&r, N, 'N', '\0'); if (decimal >= N - W) decimal -= formString (&r, N - W, 'W', 'N'); while (decimal >= W) decimal -= formString (&r, W, 'W', '\0'); if (decimal >= W - U) decimal -= formString (&r, W - U, 'U', 'W'); if (decimal >= B) decimal -= formString (&r, B, 'B', '\0'); if (decimal >= B - U) decimal -= formString (&r, B - U, 'U', 'B'); while (decimal >= U) decimal -= formString (&r, U, 'U', '\0'); if (decimal >= U - S) decimal -= formString (&r, U - S, 'S', 'U'); if (decimal >= T) decimal -= formString (&r, T, 'T', '\0'); if (decimal >= T - S) decimal -= formString (&r, T - S, 'S', 'T'); while (decimal >= S) decimal -= formString (&r, S, 'S', '\0'); if (decimal >= S - Q) decimal -= formString (&r, S - Q, 'Q', 'S'); if (decimal >= R) decimal -= formString (&r, R, 'R', '\0'); if (decimal >= R - Q) decimal -= formString (&r, R - Q, 'Q', 'R'); while (decimal >= Q) decimal -= formString (&r, Q, 'Q', '\0'); if (decimal >= Q - M) decimal -= formString (&r, Q - M, 'M', 'Q'); if (decimal >= P) decimal -= formString (&r, P, 'P', '\0'); if (decimal >= P - M) decimal -= formString (&r, P - M, 'M', 'P'); while (decimal >= M) decimal -= formString (&r, M, 'M', '\0'); if (decimal >= M - C) decimal -= formString (&r, M - C, 'C', 'M'); if (decimal >= D) decimal -= formString (&r, D, 'D', '\0'); if (decimal >= D - C) decimal -= formString (&r, D - C, 'C', 'D'); while (decimal >= C) decimal -= formString (&r, C, 'C', '\0'); if (decimal >= C - X) decimal -= formString (&r, C - X, 'X', 'C'); if (decimal >= L) decimal -= formString (&r, L, 'L', '\0'); if (decimal >= L - X) decimal -= formString (&r, L - X, 'X', 'L'); while (decimal >= X) decimal -= formString (&r, X, 'X', '\0'); switch ((int) decimal) { case 9: *r++ = 'I'; *r++ = 'X'; break; case 8: *r++ = 'V'; *r++ = 'I'; *r++ = 'I'; *r++ = 'I'; break; case 7: *r++ = 'V'; *r++ = 'I'; *r++ = 'I'; break; case 6: *r++ = 'V'; *r++ = 'I'; break; case 4: *r++ = 'I'; case 5: *r++ = 'V'; break; case 3: *r++ = 'I'; case 2: *r++ = 'I'; case 1: *r++ = 'I'; break; } return roman; } long romanToDecimal (char *roman) { long decimal = 0; for (; *roman; roman++) { /* Check for four of a letter in a fow */ if ((*(roman + 1) && *(roman + 2) && *(roman + 3)) && (*roman == *(roman + 1)) && (*roman == *(roman + 2)) && (*roman == *(roman + 3))) return 0; /* Check for two five type numbers */ if (((*roman == 'V') && (*(roman + 1) == 'V')) || ((*roman == 'L') && (*(roman + 1) == 'L')) || ((*roman == 'D') && (*(roman + 1) == 'D')) || ((*roman == 'P') && (*(roman + 1) == 'P')) || ((*roman == 'R') && (*(roman + 1) == 'R')) || ((*roman == 'T') && (*(roman + 1) == 'T')) || ((*roman == 'B') && (*(roman + 1) == 'B')) || ((*roman == 'N') && (*(roman + 1) == 'N')) || ((*roman == 'Z') && (*(roman + 1) == 'Z'))) return 0; /* Check for two lower characters before a larger one */ if ((value (*roman) == value (*(roman + 1))) && (*(roman + 2)) && (value (*(roman + 1)) < value (*(roman + 2)))) return 0; /* Check for the same character on either side of a larger one */ if ((*(roman + 1) && *(roman + 2)) && (value (*roman) == value (*(roman + 2))) && (value (*roman) < value (*(roman + 1)))) return 0; /* Check for illegal nine type numbers */ if (!strncmp (roman, "LXL", 3) || !strncmp (roman, "DCD", 3) || !strncmp (roman, "PMP", 3) || !strncmp (roman, "RQR", 3) || !strncmp (roman, "TST", 3) || !strncmp (roman, "BUB", 3) || !strncmp (roman, "NWN", 3) || !strncmp (roman, "VIV", 3)) return 0; if (value (*roman) < value (*(roman + 1))) { /* check that subtracted value is at least 10% larger, i.e. 1990 is not MXM, but MCMXC */ if ((10 * value (*roman)) < value (*(roman + 1))) return 0; /* check for double subtraction, i.e. IVX */ if (value (*(roman + 1)) <= value (*(roman + 2))) return 0; /* check for subtracting by a number starting with a 5 ie. VX, LD LM */ if (*roman == 'V' || *roman == 'L' || *roman == 'D' || *roman == 'P' || *roman == 'R' || *roman == 'T' || *roman == 'B' || *roman == 'N') return 0; decimal += value (*(roman + 1)) - value (*roman); roman++; } else { decimal += value (*roman); } } return decimal; } long value (char c) { switch (c) { case 'I': return I; case 'V': return V; case 'X': return X; case 'L': return L; case 'C': return C; case 'D': return D; case 'M': return M; case 'P': return P; case 'Q': return Q; case 'R': return R; case 'S': return S; case 'T': return T; case 'U': return U; case 'B': return B; case 'W': return W; case 'N': return N; case 'Y': return Y; case 'Z': return Z; default: return 0; } } /* chomp carriage return off end of string */ char * chomp (char *str) { int i = 0; while (*(str + i)) { if ((*(str + i) == '\n') || (*(str + i) == '\r') || (*(str + i) == '\0')) { *(str + i) = 0; break; } else i++; } return (str - i); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/������������������������������������������������������������������������������0000775�0000764�0000764�00000000000�11454157202�011670� 5����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/96.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012543� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 96.pbm�!ù���,������@ÔLB�„B€AAAA��AAA���@ @ ����@ ��@ �@ ��@ @ @ �����������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/147.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012621� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 147.pbm�!ù���,������@ÔLB������AAAA�@A�@A�������@ ����@ ���������@ �������@ @ ��������������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/58.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000464�11247156604�012544� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 58.pbm�!ù���,������@æLB!„B „�AAAAAA�����@ ��� @��@ �€@�����€@ � �@ ���������������������� @€���;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/200.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012607� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 200.pbm�!ù���,������@ÔLB!€����„AAAAA@@A���@ @ ��� � �€@ ����@ �@ ��������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/130.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012611� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 130.pbm�!ù���,������@ÔLB „!AAAA�A@@A����@ ����@ �@ �@ �� �@ @ ���������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/154.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012617� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 154.pbm�!ù���,������@ÔLB�„B!�AAAA��A��@A�������@ ����@ ��@ �@ ��@ ��@ @ ������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/104.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000465�11247156605�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 104.pbm�!ù���,������@æLB!��€AA��@A�A��A�������@ � ��@ �€@ ��@�€��@ �������������������������������������@€���;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/114.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000275�11247156605�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 114.pbm�!ù���,������@nLB!„B!��AA������A@ @ ���������€�����€@ @ @ P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/50.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000556�11247156604�012536� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 50.pbm�!ù���,������@þLB!„�B!„A@AAAAA�������������� @ €@ �����@ �@ @ ����������� �€� @€�� @€���������!��������€� @€� @€�(��;��������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/186.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012624� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 186.pbm�!ù���,������@ÔLB��B��AAAA�����@A�������@ ����@ �@ @ ��@ ��@ @ ��������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/46.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000601�11247156605�012533� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 46.pbm�!ù���,������@þLB!„@��„������AAAAAA��€@ � �@ ��� @ @����@ �� ���������������������� @€���������� @€�� @€4��� @������������ @€� @€� @€�P��;�������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/251.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000422�11247156604�012611� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 251.pbm�!ù���,���� ��@ÃLB „„AAAA@AA@ ������@�� €� @ @ @ �����������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/240.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012612� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 240.pbm�!ù���,������@ÔLB����!„AAAA�������AA���@ @ ���� @ ������@ @ ��������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/42.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000533�11247156605�012533� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 42.pbm�!ù���,������@þLB!„�€��AAAAAA����A���� ��������@ �������@ ������������@�������������������������������������������������������������� @€������������ @€� @€� @€���;���������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/185.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 185.pbm�!ù���,������@ÔLB�„B!�AAAA��AA���@ @ ��@ �€�����€@ ��@ ��@ @ �����������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/36.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000556�11247156605�012543� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 36.pbm�!ù���,������@þLB!„B���AAAAAAA�@���� �@ ��@ ���@ @ �� ��€@ ��������������������������� �€�� @€���� @€����� @€!� @€� @€� @€�(��;��������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/208.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012612� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 208.pbm�!ù���,������@ùLB!„�@���A�@AA�����A�������� ����@ ������ ��@ ����@������������������������������������������������������ �€����� @€���@�� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/159.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000465�11247156605�012630� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 159.pbm�!ù���,������@æLB„B!�AAAAA��A��A€@ �@ ����@ �@ ��@�@ �@ ������������������������� @€���;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/250.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000422�11247156605�012611� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 250.pbm�!ù���,���� ��@ÃLB�!€B „AAA�A@AAA@������@ €@ �@ � �@ @ @ �����������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/GNUmakefile.am����������������������������������������������������������������0000664�0000764�0000764�00000004064�11247156605�014270� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������wdfdir = $(pkgdatadir)/wingdingfont IMAGEFILES = \ 100.gif 125.gif 150.gif 175.gif 200.gif 225.gif 250.gif 54.gif 79.gif \ 101.gif 126.gif 151.gif 176.gif 201.gif 226.gif 251.gif 55.gif 80.gif \ 102.gif 127.gif 152.gif 177.gif 202.gif 227.gif 252.gif 56.gif 81.gif \ 103.gif 128.gif 153.gif 178.gif 203.gif 228.gif 253.gif 57.gif 82.gif \ 104.gif 129.gif 154.gif 179.gif 204.gif 229.gif 254.gif 58.gif 83.gif \ 105.gif 130.gif 155.gif 180.gif 205.gif 230.gif 255.gif 59.gif 84.gif \ 106.gif 131.gif 156.gif 181.gif 206.gif 231.gif 35.gif 60.gif 85.gif \ 107.gif 132.gif 157.gif 182.gif 207.gif 232.gif 36.gif 61.gif 86.gif \ 108.gif 133.gif 158.gif 183.gif 208.gif 233.gif 37.gif 62.gif 87.gif \ 109.gif 134.gif 159.gif 184.gif 209.gif 234.gif 38.gif 63.gif 88.gif \ 110.gif 135.gif 160.gif 185.gif 210.gif 235.gif 39.gif 64.gif 89.gif \ 111.gif 136.gif 161.gif 186.gif 211.gif 236.gif 40.gif 65.gif 90.gif \ 112.gif 137.gif 162.gif 187.gif 212.gif 237.gif 41.gif 66.gif 91.gif \ 113.gif 138.gif 163.gif 188.gif 213.gif 238.gif 42.gif 67.gif 92.gif \ 114.gif 139.gif 164.gif 189.gif 214.gif 239.gif 43.gif 68.gif 93.gif \ 115.gif 140.gif 165.gif 190.gif 215.gif 240.gif 44.gif 69.gif 94.gif \ 116.gif 141.gif 166.gif 191.gif 216.gif 241.gif 45.gif 70.gif 95.gif \ 117.gif 142.gif 167.gif 192.gif 217.gif 242.gif 46.gif 71.gif 96.gif \ 118.gif 143.gif 168.gif 193.gif 218.gif 243.gif 47.gif 72.gif 97.gif \ 119.gif 144.gif 169.gif 194.gif 219.gif 244.gif 48.gif 73.gif 98.gif \ 120.gif 145.gif 170.gif 195.gif 220.gif 245.gif 49.gif 74.gif 99.gif \ 121.gif 146.gif 171.gif 196.gif 221.gif 246.gif 50.gif 75.gif \ 122.gif 147.gif 172.gif 197.gif 222.gif 247.gif 51.gif 76.gif \ 123.gif 148.gif 173.gif 198.gif 223.gif 248.gif 52.gif 77.gif \ 124.gif 149.gif 174.gif 199.gif 224.gif 249.gif 53.gif 78.gif wdf_DATA = $(IMAGEFILES) EXTRA_DIST = $(IMAGEFILES) ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/37.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000647�11247156605�012545� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 37.pbm�!ù���,������@þLB!„B!„����������AAAAA@ ��€@ @ ��� €@ @ ��@ @ ���������� @€��@€� �€����Z��������€� @€����@€��� @€� @€� @��� @€� @€� @€� @�;�����������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/144.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 144.pbm�!ù���,������@ÔLB�€���AAAA����@��@A�������@ ����@ ���� ����@ ����� ���@ @ ���������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/141.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 141.pbm�!ù���,������@ÔLB���B���AAAA�����@A�������@ ����@ ���� ����@ ���€@����@ @ �����������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/191.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 191.pbm�!ù���,������@ÔLB „�!„�AAAA�A@A��€@������ �@ �� �@ �@ @ ������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/162.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000254�11247156605�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 162.pbm�!ù���,������@]L��@!„B!„AAAA�������A@ @ @ ���� ����@ @ @ �;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/GNUmakefile.in����������������������������������������������������������������0000664�0000764�0000764�00000033167�11454157061�014304� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# GNUmakefile.in generated by automake 1.11.1 from GNUmakefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009 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@ 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@ subdir = wingdingfont DIST_COMMON = $(srcdir)/GNUmakefile.am $(srcdir)/GNUmakefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = 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__installdirs = "$(DESTDIR)$(wdfdir)" DATA = $(wdf_DATA) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ ANSI_CFLAGS = @ANSI_CFLAGS@ AR = @AR@ 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@ DEPS_CFLAGS = @DEPS_CFLAGS@ DEPS_LIBS = @DEPS_LIBS@ DEPS_PKGS = @DEPS_PKGS@ DLLWRAP = @DLLWRAP@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ GREP = @GREP@ HAVE_LIBXML2 = @HAVE_LIBXML2@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LD = @LD@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LIBTOOL = @LIBTOOL@ LIBWMF_CONFIG = @LIBWMF_CONFIG@ LIPO = @LIPO@ LN_S = @LN_S@ LTLIBOBJS = @LTLIBOBJS@ LT_AGE = @LT_AGE@ LT_CURRENT = @LT_CURRENT@ LT_RELEASE = @LT_RELEASE@ LT_REVISION = @LT_REVISION@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ OBJEXT = @OBJEXT@ OPT_CFLAGS = @OPT_CFLAGS@ OPT_LIBS = @OPT_LIBS@ 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@ WV_BINARY_AGE = @WV_BINARY_AGE@ WV_INTERFACE_AGE = @WV_INTERFACE_AGE@ WV_MAJOR_VERSION = @WV_MAJOR_VERSION@ WV_MICRO_VERSION = @WV_MICRO_VERSION@ WV_MINOR_VERSION = @WV_MINOR_VERSION@ WV_VERSION = @WV_VERSION@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_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@ lt_ECHO = @lt_ECHO@ 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@ wdfdir = $(pkgdatadir)/wingdingfont IMAGEFILES = \ 100.gif 125.gif 150.gif 175.gif 200.gif 225.gif 250.gif 54.gif 79.gif \ 101.gif 126.gif 151.gif 176.gif 201.gif 226.gif 251.gif 55.gif 80.gif \ 102.gif 127.gif 152.gif 177.gif 202.gif 227.gif 252.gif 56.gif 81.gif \ 103.gif 128.gif 153.gif 178.gif 203.gif 228.gif 253.gif 57.gif 82.gif \ 104.gif 129.gif 154.gif 179.gif 204.gif 229.gif 254.gif 58.gif 83.gif \ 105.gif 130.gif 155.gif 180.gif 205.gif 230.gif 255.gif 59.gif 84.gif \ 106.gif 131.gif 156.gif 181.gif 206.gif 231.gif 35.gif 60.gif 85.gif \ 107.gif 132.gif 157.gif 182.gif 207.gif 232.gif 36.gif 61.gif 86.gif \ 108.gif 133.gif 158.gif 183.gif 208.gif 233.gif 37.gif 62.gif 87.gif \ 109.gif 134.gif 159.gif 184.gif 209.gif 234.gif 38.gif 63.gif 88.gif \ 110.gif 135.gif 160.gif 185.gif 210.gif 235.gif 39.gif 64.gif 89.gif \ 111.gif 136.gif 161.gif 186.gif 211.gif 236.gif 40.gif 65.gif 90.gif \ 112.gif 137.gif 162.gif 187.gif 212.gif 237.gif 41.gif 66.gif 91.gif \ 113.gif 138.gif 163.gif 188.gif 213.gif 238.gif 42.gif 67.gif 92.gif \ 114.gif 139.gif 164.gif 189.gif 214.gif 239.gif 43.gif 68.gif 93.gif \ 115.gif 140.gif 165.gif 190.gif 215.gif 240.gif 44.gif 69.gif 94.gif \ 116.gif 141.gif 166.gif 191.gif 216.gif 241.gif 45.gif 70.gif 95.gif \ 117.gif 142.gif 167.gif 192.gif 217.gif 242.gif 46.gif 71.gif 96.gif \ 118.gif 143.gif 168.gif 193.gif 218.gif 243.gif 47.gif 72.gif 97.gif \ 119.gif 144.gif 169.gif 194.gif 219.gif 244.gif 48.gif 73.gif 98.gif \ 120.gif 145.gif 170.gif 195.gif 220.gif 245.gif 49.gif 74.gif 99.gif \ 121.gif 146.gif 171.gif 196.gif 221.gif 246.gif 50.gif 75.gif \ 122.gif 147.gif 172.gif 197.gif 222.gif 247.gif 51.gif 76.gif \ 123.gif 148.gif 173.gif 198.gif 223.gif 248.gif 52.gif 77.gif \ 124.gif 149.gif 174.gif 199.gif 224.gif 249.gif 53.gif 78.gif wdf_DATA = $(IMAGEFILES) EXTRA_DIST = $(IMAGEFILES) all: all-am .SUFFIXES: $(srcdir)/GNUmakefile.in: $(srcdir)/GNUmakefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign wingdingfont/GNUmakefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign wingdingfont/GNUmakefile .PRECIOUS: GNUmakefile GNUmakefile: $(srcdir)/GNUmakefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): mostlyclean-libtool: -rm -f *.lo clean-libtool: -rm -rf .libs _libs install-wdfDATA: $(wdf_DATA) @$(NORMAL_INSTALL) test -z "$(wdfdir)" || $(MKDIR_P) "$(DESTDIR)$(wdfdir)" @list='$(wdf_DATA)'; test -n "$(wdfdir)" || list=; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(wdfdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(wdfdir)" || exit $$?; \ done uninstall-wdfDATA: @$(NORMAL_UNINSTALL) @list='$(wdf_DATA)'; test -n "$(wdfdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ test -n "$$files" || exit 0; \ echo " ( cd '$(DESTDIR)$(wdfdir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(wdfdir)" && rm -f $$files tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: GNUmakefile $(DATA) installdirs: for dir in "$(DESTDIR)$(wdfdir)"; 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: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-am -rm -f GNUmakefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-wdfDATA install-dvi: install-dvi-am install-dvi-am: install-exec-am: 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 GNUmakefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic mostlyclean-libtool pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-wdfDATA .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ install-wdfDATA installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ uninstall uninstall-am uninstall-wdfDATA # 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: ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/209.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156604�012612� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 209.pbm�!ù���,������@ù�������������������������������@�A��@��� ���� ���@���������������������@���������������������������������������������������������������������������������� �€��������������@�� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/108.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000465�11247156605�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 108.pbm�!ù���,������@æLB!�!„AAAAAAA��A�@ �@ @���@ @��@ ��€@ @ ���������������� @€���;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/97.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156604�012543� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 97.pbm�!ù���,������@ÔLB�€�@AAAA�AA�@A�������@ ����@ ���� @ ����� �@ @ �������������������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/86.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000421�11247156605�012537� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 86.pbm�!ù���,���� ��@ÃLB�!�@„AAA���AA����@ €@ �����@ ���� ���@ @ @ ������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/103.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156605�012612� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 103.pbm�!ù���,������@þLB!�B� „�A�AAAAA��A������������ @������@ €@ �����@ �������������������������������������@€�������� @€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/83.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012537� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 83.pbm�!ù���,������@ÔLB�����€AAAAA�@AA�@ @ ��@ @ ���@ ��@ @ ����������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/237.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156604�012621� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 237.pbm�!ù���,������@þLB!„����������AAAAAAA����@ @ ���€@ @ @ @ ���@ ������������������������������������������ @€� @����� @€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/228.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012614� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 228.pbm�!ù���,������@ùLB!��������@AAAAA�@A@ ��@ @ �€@ @���@ @ ��@ ������������������������ @€� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/179.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012626� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 179.pbm�!ù���,������@ÔLB„���€AAAA��@��AA�€@ @ @ €� ���@ ��@���@ @ ������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/107.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012610� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 107.pbm�!ù���,������@ùLB!�B� �AAAA@����@���€������� @���€��@���€������������������������������������������� @€� @€������� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/94.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000357�11247156605�012546� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 94.pbm�!ù���,���� ��@¡L�����B!„AA���AAAAA@ ��€@���@ @ @ @ @ �����������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/174.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012621� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 174.pbm�!ù���,������@ÔLB!�����„AAAAA�@AA�@ @ @ ����@ � @ @ ������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/184.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 184.pbm�!ù���,������@ÔLB��B��AAAAA���AA���@ @ ��@ �€@ �€@ � @ @ ������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/73.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000315�11247156605�012535� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 73.pbm�!ù���,���� ��@L�� „B!„A�@@A�A�� ��@ ��@ @ �@ � ������� ������P��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/99.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156604�012545� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 99.pbm�!ù���,������@ÔLB���B���AAAA�������@����@��@ ��@ �€�����€@ ��� ��@ @ ��������������������������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/242.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012614� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 242.pbm�!ù���,������@ÔLB�€���!„AAAA@A��A������� @ @ ��€@ ����@ �����@ @ @ ��������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/61.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156604�012532� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 61.pbm�!ù���,������@ÔLB!„B!„AAAAAAA@�@ �@ @ @ @ ���������@ @ ����������������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/121.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012604� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 121.pbm�!ù���,������@ùLB€B!�AAAAAAA���@���@ @ @�����@ ��@ �� �������������������������������� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/56.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000336�11247156604�012540� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 56.pbm�!ù���,���� ��@LB�!„B!„A�����@�����A����A�����@ ��@����@ @ �@ �€@ �@ ����������P��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/229.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012615� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 229.pbm�!ù���,������@ùLB!��������AAAAAA�@ ��@ � @ @ ���@ @ �������������������������� @€� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/201.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012607� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 201.pbm�!ù���,������@ÔLB��� „AAAA�A�AAA�� �@��@ �� �@ �€@ ��@ €@ ��������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/101.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156605�012610� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 101.pbm�!ù���,������@þLB!„�!„��AAA���AA�A�€@ €@ @ �€@ @��@��� @�������������������� @€�� @€�� @€� �€�� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/223.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012614� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 223.pbm�!ù���,������@ÔLB!� „AAAA�AAA�€@ @ @ ��@ ��€@ €��@ @ �������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/153.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000401�11247156605�012610� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 153.pbm�!ù���,���� ��@²L�����!„AAA����AA����A@ �������� ��������@ @ @ @ ��������������������������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/80.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000357�11247156605�012541� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 80.pbm�!ù���,���� ��@¡LB„B!„AA����AA���AA���@ �@ ��� ���@ @ @ �����@ �������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/54.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156604�012534� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 54.pbm�!ù���,������@ÔLB ����������AA������@�����@��@ ��������@ ��@ �@���� �����������������������������������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/220.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000422�11247156605�012606� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 220.pbm�!ù���,���� ��@ÃLB���@!„AAAA��AAA��@ @ ����@ ���@ @ @ �����������������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/197.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012625� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 197.pbm�!ù���,������@ÔLB�!„@!AAAA�A�A@����� ��@ ���@ �@ �@ @ �����������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/126.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156604�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 126.pbm�!ù���,������@þLB!�B€�AAAAA�@A� �������������������������@ ���@ ��� ����������������������������������������������@€����������������€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/60.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000464�11247156605�012536� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 60.pbm�!ù���,������@æLB!������AAAAA�@A�@�€� ��€� ��������€@ ��@ ��@ ���������@ ����������������������������������������������� @€���;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/112.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156605�012612� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 112.pbm�!ù���,������@þLB!„�@������AAAAAAA@ ��€@ ��€@ @ @ @���@ �������������������������� @€���������� @€� @€�� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/248.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156604�012623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 248.pbm�!ù���,������@þLB!B!„A�AAAAAA��A��@ � �@ @ @ @ �����@ �@������������������������ @€� @€� @€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/241.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012614� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 241.pbm�!ù���,������@ÔLB!„����AAAA������A���@�@ @ @ ����@ ��� ���@ @ ��������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/255.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000235�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 255.pbm�!ù���,������@NLB!„B!„AA���@����AAA@ � �€@ �@ @  �;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/183.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012621� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 183.pbm�!ù���,������@ÔLB!„�B „AAAA@A@A�@ �@ @ @����@ ����@ @ ������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/192.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012621� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 192.pbm�!ù���,������@ÔLB „!„�AAAA�A@A��€@������ �@ �� �@ �@ @ ������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/128.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012617� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 128.pbm�!ù���,������@ÔLB�����„AAAA�����@������������@ ���������€@ ���€����@ @ ����������������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/252.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000422�11247156605�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 252.pbm�!ù���,���� ��@ÃLB��„B�!„AAAAAA@@@ @ @ ���@ �@�@ @ @ ��������������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/45.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000556�11247156605�012543� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 45.pbm�!ù���,������@þLB!„�B���A@AAAAA�A@���� @ €@ ������������� ������@ ������������������ �€� @€�� @€���������!��������€� @€� @€�(��;��������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/198.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012627� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 198.pbm�!ù���,������@ÔLB�!„@!AAAA�A�A@����� ��@ ���@ �@ �@ @ ������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/231.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 231.pbm�!ù���,������@ÔLB�„�!�AAAAA�@AA���@ @ ��@ @��@ �������@ @ ������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/92.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000400�11247156605�012531� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 92.pbm�!ù���,���� ��@²LB„���!„AAA�A�AA���A���� @�@ �@ @ @ @ �������������������������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/204.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156605�012614� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 204.pbm�!ù���,������@þLB!„B� ������AAAAAA��A�@ @ �����@ �@ �����@ @ �����������������@€� @€� @€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/202.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012611� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 202.pbm�!ù���,������@ÔLB!���€AAAA��AAA@ �@ �@ �€@ ��@ @��@ � ����������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/53.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000357�11247156605�012541� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 53.pbm�!ù���,���� ��@¡L@���@!„A����@A@�������@ �@ ��@ �@ @ @ €@ €@�������������������������������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/133.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 133.pbm�!ù���,������@ÔLB !AAAA�A@@A����@ ����@ �@��@ �� �@ @ ��������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/236.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156605�012621� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 236.pbm�!ù���,������@þLB!���������AAAAAA���@ ����@ @ @ ����@ @������������������������������������������ @€� ����� @€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/51.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000672�11247156605�012537� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 51.pbm�!ù���,������@þLB!„B AAA�AAAAA@ ���@������� � @ @ ������@ �������������������������€���@€� @€m�� @€��� @€� @€�� ��� @€��@€������������������ @€� @€� @€� @€�;����������������������������������������������������������������������wv-1.2.9/wingdingfont/140.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012612� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 140.pbm�!ù���,������@ÔLB�€��AAAA��A��@A�������@ ����@ ��€@����@ ���� ���@ @ ������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/138.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012621� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 138.pbm�!ù���,������@ÔLB „� AAAA�A��@A����@ ����@ �� �@ �@��@ @ �������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/102.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000465�11247156605�012614� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 102.pbm�!ù���,������@æLB!„�@€AAAAA��A� ��@ ���������€@ �€@ ��@ ��@��������������������������������������� @€���;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/89.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012545� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 89.pbm�!ù���,������@ÔLB�„�!�AAAA��AA������������������������ ����@ ���€@����@ @ ������������������������������������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/76.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012541� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 76.pbm�!ù���,������@ÔLB €BAAAA�AA@A����@ ����@ �� ��@ ��@ ��@ @ ��������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/74.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000315�11247156605�012536� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 74.pbm�!ù���,���� ��@L��„B!„@�AA�A������@��@ @ �@ �@������@������P��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/70.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000357�11247156605�012540� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 70.pbm�!ù���,���� ��@¡L!@!„AA��AA@�AA@ �€���� ��@ €@ @ @ @ �����������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/173.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 173.pbm�!ù���,������@ÔLB!„��� „AAAAA�@AA@ @ @ @��@ �@ ��@ @ �������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/189.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012627� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 189.pbm�!ù���,������@ÔLB „!„�AAAA�A@A��€@������ �@ ���� �@ �@ @ �����������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/79.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000556�11247156605�012552� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 79.pbm�!ù���,������@þLB!„������@AAAAAAA����@������@ @ @ �� ����@ ������������������������������������ ����������€� @€������€!� @€� @€� @€�(��;��������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/143.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012615� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 143.pbm�!ù���,������@ÔLB�����AAAA��A��@A�������@ ����@ ��������@ ����� ��@ @ ���������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/178.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012625� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 178.pbm�!ù���,������@ÔLB�����€AAAA����AA��€� @ @ �������@ ���������@ @ ��������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/87.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000336�11247156605�012545� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 87.pbm�!ù���,���� ��@L��„B!„AAAAAAAA�€@���������@ @ @ @ � @��������������P��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/139.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 139.pbm�!ù���,������@ÔLB „�AAAA���@A����@ ����@ �� ��@ �€� ��@ @ ����������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/195.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 195.pbm�!ù���,������@ÔLB�!„�@!AAAA�A�A@����� ��@ �@�@ �@ �@ @ ������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/43.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012533� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 43.pbm�!ù���,������@ÔLB „�!AAAA�A��@@A���€��@ ����@ �@ ��@ ����@ @ �������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/116.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012615� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 116.pbm�!ù���,������@ÔLB „��!„�AAAA��A�AA�€@�@ @ �@ �@ �� �@ @ ��������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/136.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012617� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 136.pbm�!ù���,������@ÔLB „@!AAAA�AA@A����@ ����@ �@ �@ �€@ �@ @ �����������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/216.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156604�012610� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 216.pbm�!ù���,������@ùLB!�@!�AAAAA���A�A�����@ ����€@������ ��@�@���������������������������������������������������� @€�� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/63.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156604�012534� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 63.pbm�!ù���,������@ÔLB��B��AAAA�AA�@����������������������������@ ����€@�����@ @ �������������������������������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/77.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012542� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 77.pbm�!ù���,������@ÔLB „B!„�AAAA�@A�A��@��@ ����€@ ������ �@ �@ @ ������������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/172.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000401�11247156604�012610� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 172.pbm�!ù���,���� ��@²L�����!„AAA��AA��A� @������@ ������@ �@ @ @ ������������������������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/57.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000533�11247156605�012541� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 57.pbm�!ù���,������@þLB!@���AAAAAA�����@ �@ @ �@ €@ �������������@�������������������������� �€������������������ @€� @€���;���������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/67.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000315�11247156604�012537� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 67.pbm�!ù���,���� ��@L „B!„��@A��A��A���� �@ @ �@ ��€� ��€� ������� �����P��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/210.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156604�012602� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 210.pbm�!ù���,������@ùLB!�!�A�@AAA�A��������������@ ����@ ������@ @��@������������������������������������������� @€���� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/176.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 176.pbm�!ù���,������@ÔLB!��� „AAAAA�@AA�@ @ @ �������@ ��� ��@ @ �����������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/125.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012610� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 125.pbm�!ù���,������@ùLB!���!���AAAAAAA@ ���€@ @ @ @�������@ ������ ��������������������������������� @€� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/113.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000625�11247156605�012614� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 113.pbm�!ù���,������@þLB!„B�€�������@AAA�����A� ��@ ����€@�@��@ @ @ ��������������������������������������� @������@€�� @€G��� @��� @€��� �������€� @��� @€�����@€��� ��;�����������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/187.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012625� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 187.pbm�!ù���,������@ÔLB„B„AAAAA�@AA���€� @ @ � ��@ �@��@ @ ���������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/206.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156605�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 206.pbm�!ù���,������@þLB!„���!��AAAAAAA�@ @�@ @ �����@ ���������@ ����������������� @€� @€� @€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/253.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000422�11247156604�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 253.pbm�!ù���,���� ��@ÃLB„�„AAAAAAA€@ @ @��@ @ �@ @ @ ��������������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/163.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000401�11247156604�012610� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 163.pbm�!ù���,���� ��@²L�����!„AA������@������@@ �������� ��������@ @ @ @ ������������������������������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/177.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012624� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 177.pbm�!ù���,������@ÔLB�����€AAAA��@��AA�€@ @ @ �����@ �������@ @ ��������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/93.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000400�11247156604�012531� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 93.pbm�!ù���,���� ��@²LB� ��!„AAA�����AA�A�������������@ @ @ @ ������������������������������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/160.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000465�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 160.pbm�!ù���,������@æLB„B!�AAAAA�AA��A������@ ���@ �@ ��@ �@ ���@ �������������������� @€���;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/39.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012540� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 39.pbm�!ù���,������@ÔLB!€B„AAAA@A�A@@ �@ ��@ €@ �@ ���€@ ��@ ����� �������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/226.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012617� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 226.pbm�!ù���,������@ÔLB��B��AAAA��A��@A�� @�����€@ ���@ ���@ ���@ ���@ @ ��������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/40.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000601�11247156605�012525� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 40.pbm�!ù���,������@þLB!„��!„�A��AAAAA��@������������������@�€� �@ ���@ ������������������������������������������������� @€�� @������������@€4���� @�������������������� @€� @€�P��;�������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/119.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 119.pbm�!ù���,������@ùLB!�„AAAAAAA� �����@ @ @ ���€@ ��@ ��@ ������������������������������� @€� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/91.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000400�11247156604�012527� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 91.pbm�!ù���,���� ��@²L����!„AAA�AA�A@ ������� @�@ @ @ @ ��������������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/156.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 156.pbm�!ù���,������@ÔLB�€B�AAAA�������@A�������@ ����@ ��€@ ��@ ���@ ���@ @ ����������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/194.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 194.pbm�!ù���,������@ÔLB�!„@!AAAA�A�A@����� ��@ �@�@ �@ �@ @ ������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/211.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012604� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 211.pbm�!ù���,������@ùLB!„�@!�@AAAAAA����@ ���€@ ����������@ �� ��@ ���� ������������������������������������������������ @€� �€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/203.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012611� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 203.pbm�!ù���,������@ÔLB!����„AAAAA��A�@ @ �@ ���@ �@�@����@ ��������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/167.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 167.pbm�!ù���,������@ÔLB „B!�AAAA�AA�@@ ������������@ �@ �@ ��@ @ �����������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/239.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 239.pbm�!ù���,������@ÔL�B������AAAAA��AA��@ @ ���@ �€@����@ ������@ @ �����������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/233.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000401�11247156605�012607� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 233.pbm�!ù���,���� ��@²LB€�!„AA�������@A@@ @ �€���€@ ��@ @ @ @�������������������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/72.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000464�11247156605�012541� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 72.pbm�!ù���,������@æLB„�� „AAAAAAAA@ @ @ @ ��@����€@ ���@ @ ��������������������� @€���;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/150.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 150.pbm�!ù���,������@ÔLB�€@ AAAA�@�@@A�������@ ����@ ��€@��@ ��� ��@ @ ����������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/227.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 227.pbm�!ù���,������@ÔLB��B��AAAA�A��AA�����@ @ ���@ ���@ ���@ ���@ @ ������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/82.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000533�11247156605�012537� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 82.pbm�!ù���,������@þLB!B „�AAAAA�A@ �@ @ ����@ €@ �@ @ �������������������������������� @€�� @€� @€� @€� @€���;���������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/95.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000421�11247156604�012536� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 95.pbm�!ù���,���� ��@ÃLB�„�!„AAAA�@AA�@ @ � �€@ ���������@ @ @ �����������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/64.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012536� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 64.pbm�!ù���,������@ÔLB „��!€AAAA�A�A�AA��� @�����@ �@ €@ ��@ ���@ @ ���������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/188.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012626� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 188.pbm�!ù���,������@ÔLB „!„�AAAA�A@A��€@������ �@ ��� �@ �@ @ ������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/124.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156604�012606� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 124.pbm�!ù���,������@ùLB€��!���AAAAAAA@ ���@ @ @ ���������������������������������������������� @€� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/55.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000315�11247156605�012535� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 55.pbm�!ù���,���� ��@L�„B!„�A@A��@�A�A�@ �@ @������@ ���� �@��������� �����������P��;�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/247.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000422�11247156605�012617� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 247.pbm�!ù���,���� ��@ÃL��„�� „AAAAA�@ ����@ � �@ �@ �@ @ @ �����������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/120.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156604�012602� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 120.pbm�!ù���,������@ùLB!€�!„�AAAAAAA� ���@ ��@ @ �������@���� ������������������������������€� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/129.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012621� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 129.pbm�!ù���,������@ÔLB B AAAA�A���@A����@ ����@ �@ �@ �€@��@ @ ��������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/146.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 146.pbm�!ù���,������@ÔLB�€��AAAA���A�@A�������@ ����@ ��€@������@ ���� ��@ @ �����������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/244.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 244.pbm�!ù���,������@ÔLB„B!AAAA�AAA�@ @ �@ �@ @ �@ @ @ ����������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/234.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000401�11247156605�012610� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 234.pbm�!ù���,���� ��@²L€B!„AA@A��������@@ � �€@ ��€@ @ @ @ @ ��������������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/71.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000464�11247156605�012540� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 71.pbm�!ù���,������@æLB!„��„�AAAAAAAA@ @ @ @ ����€@ ���@ ���@ �������������������� @€���;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/164.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 164.pbm�!ù���,������@ÔLB�„B!�AAAA��AA�����������������������@ �@ ��@ ��@ @ ����������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/47.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000601�11247156605�012534� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 47.pbm�!ù���,������@þLB!„@��„��AA�AAAAAA������� �@ ��� @ ������@ ���������������������������� @€��� @€��� @€�� @€4��� @������������ @€� @€� @€�P��;�������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/246.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000422�11247156604�012615� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 246.pbm�!ù���,���� ��@ÃLB!B�!„AAAA�A�AA@�@ @ � � @ �@ @ @ ���������������������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/214.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156604�012606� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 214.pbm�!ù���,������@ùLB!�B!�AA���A�@��AA����@ � @ ���������������������������������������������������� @€�������������� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/243.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 243.pbm�!ù���,������@ÔLB!„����AAAA�A�AA��������@ @ �����@ ������@ @ ��������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/81.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012535� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 81.pbm�!ù���,������@ÔLB „!€AAAA��@@A@�@ �€@ @ �@ �€@ ��� �� @ ����������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/169.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000316�11247156604�012623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 169.pbm�!ù���,���� ��@L�� „B!„A�AAAAAA����@ �@ @ @ @ ��@ ��������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/199.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012627� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 199.pbm�!ù���,������@ÔLB „!„�AAAA�A@A��€@������ �@ �� �@ �@ @ �����������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/249.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000422�11247156605�012621� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 249.pbm�!ù���,���� ��@ÃLB!!„AAAA�A�AA�A�@ �@ ������ @ �@ �@ @ ��������������������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/230.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012612� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 230.pbm�!ù���,������@ÔLB „�!AAAA����AA�€@ @ ��@ �€@���€@ � @ �€@ ������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/44.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000556�11247156605�012542� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 44.pbm�!ù���,������@þLB!„�B €��A@AAAAA�@@ ����@ �€@ ������������� �� €@ ���������������������� �€�� @€��� @€���������!��������€� @€� @€�(��;��������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/180.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 180.pbm�!ù���,������@ÔLB!€B!€AAAA@@@A€@ @ �@ €@ €@ �� �@ @ ������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/217.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012612� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 217.pbm�!ù���,������@ùLB!„�!�AAA�A�����A��@ ���������@������@ �� ��@ ��@ ����������������������������������������� ��� @€� ���� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/41.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000253�11247156605�012531� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 41.pbm�!ù���,������@]L��!„BA�A����A�A�A���@ � �@��@��� �@ �€@ �;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/170.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156604�012607� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 170.pbm�!ù���,������@ùLB!��������@AAAAA���@@ ���� @ €@ @ ��������@ ��������������������������������������������������� @€� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/151.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000217�11247156605�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 151.pbm�!ù���,������@@L�B!„B!„AAAAAAAA��@ @ @ ��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/171.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000254�11247156605�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 171.pbm�!ù���,������@]L�B!„B„AAAA��A�AA@ @ �� ���� ��€@ @ @ �;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/49.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000716�11247156605�012545� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 49.pbm�!ù���,������@þLB!„B��AA����AAAA@ @ ��@ � �@ �€@�����@ @ ��������������������� @€������ @€�� @€�� @€�� @€���@€��� @������������@€�� �€� ��� ������������ @€� @€� @€� @€���;��������������������������������������������������wv-1.2.9/wingdingfont/181.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012617� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 181.pbm�!ù���,������@ÔLB!€B!€AAAA@�AA€@ @ �@ €@ €@ �� �@ @ ����������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/85.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000336�11247156605�012543� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 85.pbm�!ù���,���� ��@L����B!„A�A����AAA����������@ @ @ @ @��@��������������������������P��;��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/48.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000716�11247156605�012544� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 48.pbm�!ù���,������@þLB!„B„����@A�AAAA@ @ �������� @ ��€@�����@ @ ��������������������������� @€����€���� @€�� @�����@€���� @€���@€����@���� @€�� �€�� �€� ��� @����������� @€� @€� @€� @€���;��������������������������������������������������wv-1.2.9/wingdingfont/68.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000421�11247156605�012537� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 68.pbm�!ù���,���� ��@ÃLB �!„AAA���AA���€@ ��@ @���@ ��€� �@ ��@ ����������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/215.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012610� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 215.pbm�!ù���,������@ùLB!„�!„��@��AAAAAA��€@ ��@ �€@ @ �@ ���� ���@ ��@�����������������������������������������������������€������@€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/117.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 117.pbm�!ù���,������@ÔLB������€AAAA���AA����� @ @ ��������@ ��������@ @ ���������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/193.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012621� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 193.pbm�!ù���,������@ÔLB „!„�AAAA�A@A��€@������ �@ �� �� �@ @ ������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/196.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012625� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 196.pbm�!ù���,������@ÔLB�!„@!AAAA�A�A@����� ��@ �@�@ �@ �@ @ ���������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/152.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000254�11247156605�012615� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 152.pbm�!ù���,������@]L��@!„B!„AAAA��A��@A@ @ @ ���� ����@ @ @ �;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/131.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012611� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 131.pbm�!ù���,������@ÔLB „!AAAA�A��@@A����@ ����@ �@ �@ �€@ �@ @ �����������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/59.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000533�11247156605�012543� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 59.pbm�!ù���,������@þLB!„!����AAAAA�A@ @ �@ �@ @ @�€@ �@ �������������������������������� �€� @€���������� @€� @€���;���������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/168.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012624� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 168.pbm�!ù���,������@ÔLB „B!�AAAA�AA�������������������� �@ �@ �@ ��@ @ ��������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/132.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 132.pbm�!ù���,������@ÔLB „B�!AAAA�A���@A����@ ����@ �@ �@ �@��@ @ �����������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/254.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000275�11247156605�012623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 254.pbm�!ù���,������@nLB�!„B!„AAAAA���������@ @ @ @ � �� �@ @ P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/123.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012606� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 123.pbm�!ù���,������@ùLB!�@���@AAAAAAA@ ������@ @ @ ��������€����������������������������������� @€� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/75.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012540� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 75.pbm�!ù���,������@ÔLB!€B� AAAA�����AA�€@ ����€@ �€� ��@ �@ �@ @ ��������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/213.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012606� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 213.pbm�!ù���,������@ùLB!„�!„�@�A���AAAA��€@ �� ��@ @ �€@ ���������@ ��@�����������������������������������������������€�������€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/118.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156605�012612� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 118.pbm�!ù���,������@ùLB!€B �AAAAAAA@ ����€@��€@ @ @��� ��€��@��������������������������������� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/232.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000401�11247156605�012606� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 232.pbm�!ù���,���� ��@²L�!�B!„AA�������A@ ����@ ��@ ��@ @ @ �������������������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/100.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000602�11247156605�012603� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 100.pbm�!ù���,������@þLB!„�!@�AA�AA��€@ �� @ ��@ ���@ ���@ ��� ���������������������������� @����� @€� @€��� @€4� @€� ��� @€� @€��� @€�P��;������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/157.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 157.pbm�!ù���,������@ÔLB�„���!�AAAA��A��@A�������@ ����@ ��@���@ ��@ ��@ @ ������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/245.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 245.pbm�!ù���,������@ÔLB „B!€AAAAA@�AA€@ @ �@ �@ €@ � �@ @ ����������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/137.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 137.pbm�!ù���,������@ÔLB „��!AAAA�A��@A����@ ����@ �� �@ �€@��@ @ ������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/219.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000625�11247156605�012623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 219.pbm�!ù���,������@þLB!„B� „�@A��AAAAA�€@ @��@������������@ ���������� @����������������������������������������� @€���� @����������€G��� @€� @��� @�������������� @€� @€� @€� ��;�����������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/212.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156604�012604� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 212.pbm�!ù���,������@ùLB!„��!„��AAAA����AA��@��@�@ @�����������@ ��������������������������������������������� @€������������� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/175.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 175.pbm�!ù���,������@ÔLB!����„AAAAA@AA�@�@ @ @���@ ����@ @ ������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/225.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 225.pbm�!ù���,������@ÔLB!„B!AAAA������@A������@ ����€@ @ �@ ���������@ @ ����������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/134.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012615� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 134.pbm�!ù���,������@ÔLB „B�!AAAA�AA@A����@ ����@ �� @ �@��@ @ ��������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/111.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000401�11247156605�012602� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 111.pbm�!ù���,���� ��@²LB��B!„AAA��A��A�A�@�@ �@ ���€@ @ �@ @ @ @����������������������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/158.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 158.pbm�!ù���,������@ÔLB��B� �AAAA��A��@A�������@ ����@ ��������@ �������@ @ ��������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/35.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000507�11247156605�012536� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 35.pbm�!ù���,������@ùLB!„ AAAAAAAA��€@��@ @ @ ��@ �����@ ��€@ ���������������������� @€� @€� @€� ��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/182.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 182.pbm�!ù���,������@ÔLB�€B!��AAAAA@AA€@ @ @ ����@ �@��@ @ ������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/109.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000557�11247156605�012625� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 109.pbm�!ù���,������@þLB!„B� „���AAAAAA��€@ @ ����€@ �����@ � �@ ��������������������� @€� @��� @€� @€!�����@€� @���� @€�(��;�������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/69.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000357�11247156604�012547� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 69.pbm�!ù���,���� ��@¡L�� „�B!„AA�AAAA@ �� �� ��@ @ �@ ��@ ��������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/122.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000510�11247156604�012604� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 122.pbm�!ù���,������@ùLB!��� „��@AAAAAAA������@ @ @ @ ����@ ������������������������������������� @€� @€� @€� ��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/66.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000464�11247156605�012544� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 66.pbm�!ù���,������@æLB!„�!€AAAAAAAA€@ ����@ @ @ ��@ @ ����@ ����������������������� @€���;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/165.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 165.pbm�!ù���,������@ÔLB „B!AAAA�AA���������������������@ @ �@ �@ @ ��������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/78.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012543� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 78.pbm�!ù���,������@ÔLB „���!AAAA�AA@A����@ ����@ �� ��@ ��@ ��@ @ ����������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/148.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 148.pbm�!ù���,������@ÔLB��@��AAAA��A��@A�������@ ����@ ��€@�����@ ��������@ @ �����������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/52.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000357�11247156604�012537� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 52.pbm�!ù���,���� ��@¡L@���@!„A�@��@A@������@ �@ ��@ �@ @ @ €@ ���@�������������������������������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/222.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 222.pbm�!ù���,������@ÔLB!����„AAAAA���AA@ @ @ ���@ ��@ ��@ @ �����������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/142.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012614� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 142.pbm�!ù���,������@ÔLB���@���AAAA�@A��@A�������@ ����@ ��������@ �������@ @ ���������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/62.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012534� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 62.pbm�!ù���,������@ÔLB �����AAAA�@A�@��� ������������€@ �@ �������@ @ �������������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/98.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012545� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 98.pbm�!ù���,������@ÔLB ��� AAAAA���AA����€@ @ �@ ������@ �� ����@ @ �������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/207.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156604�012616� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 207.pbm�!ù���,������@þLB!„B!€�AAAAAA@�@ @ ��€@ @ @ @ �@ @ �������������������������������� @€� @€�� @€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/90.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012535� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 90.pbm�!ù���,������@ÔLB���!�AAAA��AA������������������������@ ��@ ���@ ��@ @ ����������������������������������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/115.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000275�11247156605�012617� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 115.pbm�!ù���,������@nLB!„B!����AA������A@ @ �����€@���€����@ @ @ P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/218.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000625�11247156605�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 218.pbm�!ù���,������@þLB!„� „�A�@AAAAA� @ ��@ ����������� @�����������@������������������������������������������@€��� @��� �������€G���€� @€��� @€��������������€� @€� @€� ��;�����������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/135.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156604�012615� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 135.pbm�!ù���,������@ÔLB B�!AAAA�A���@A����@ ����@ �@ @ ��€@��@ @ ��������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/205.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156604�012614� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 205.pbm�!ù���,������@þLB!„B!€�AAAAAAAA���@ �@ ��@ @ @ @ �@��� �������������������������� @€�������€� @€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/106.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000465�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 106.pbm�!ù���,������@æLB��@���AAAAA����A����������@ @ @ ��@ ��@ @ @ ���������������������������������� @€���;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/166.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 166.pbm�!ù���,������@ÔLB�„B!�AAAA��AA�����������������������@ �@ ��@ ��@ @ ����������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/224.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012615� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 224.pbm�!ù���,������@ÔLB „B!„AAAA�������AA������ @�����@ ��@ @ ���������@ @ ����������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/238.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012622� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 238.pbm�!ù���,������@ÔLB�€���€AAAA���AA��€@ @ �@ ��������@ ��� �@ ��€@ �������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/190.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012617� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 190.pbm�!ù���,������@ÔLB „!„�AAAA�A@A��€@������ �@ �� �@ �@ @ ���������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/161.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000217�11247156604�012613� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 161.pbm�!ù���,������@@L�B!„B!„AAAAAAAA��@ @ @ ��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/221.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000422�11247156605�012607� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 221.pbm�!ù���,���� ��@ÃLB!��� „AAA��AAA��A@ �@ @ ��€@ ���@ @ @ �����������������P��;����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/235.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000401�11247156605�012611� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ" Imported from PNM image: 235.pbm�!ù���,���� ��@²LB!�B�!„AA��A������@ @ ��@�@ ���@ @ @ @��������������������P��;���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/105.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000465�11247156605�012617� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 105.pbm�!ù���,������@æLB!����AAA�AA����A�€�����€@ ���@ �@ ���@����@ ���€����@ �������������������������������������������������� @€���;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/65.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000464�11247156604�012542� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 65.pbm�!ù���,������@æLB!„�B�„AAAAAAAA����€@ @ @ @ ��@ ���@ �@ ������������������������ @€���;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/38.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000672�11247156605�012544� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 38.pbm�!ù���,������@þLB!„B„AA@AAAAA@ @ @ @��� �@ @ @ �������������������� @€���€�� @€�� @€m���@€��������@€� �€���@€�� @€� �������€� @€� @€� @€� @€�;����������������������������������������������������������������������wv-1.2.9/wingdingfont/149.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012623� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 149.pbm�!ù���,������@ÔLB��B�€AAAA����AA������ @�����@ ��€@����€@ �����@����@ @ ��������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/88.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000421�11247156605�012541� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a ��ð����ÿÿÿ!þ! Imported from PNM image: 88.pbm�!ù���,���� ��@ÃLB�B!„AAAAA��AAA@ @ �@ ��@ �€@ @ @ @ ������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/84.gif������������������������������������������������������������������������0000664�0000764�0000764�00000000442�11247156605�012540� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ! Imported from PNM image: 84.pbm�!ù���,������@ÔLB!€B!€AAAA���AA���� @ @ @ �@ ��@ ��@ @ �������������������P��;������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/110.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156605�012610� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 110.pbm�!ù���,������@þLB!„B!„AAAAAA������@ �@ �@�@ @ €@ @ �@����������������������������@€� @€� @€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/145.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012617� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 145.pbm�!ù���,������@ÔLB�����AAAA��A�@A�������@ ����@ ���@������@ ����� ��@ @ ���������������������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/155.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000443�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 155.pbm�!ù���,������@ÔLB�„B!�AAAA��A��@A�������@ ����@ ��@ �@ ��@ ��@ @ ������������������������������P��;�����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wingdingfont/127.gif�����������������������������������������������������������������������0000664�0000764�0000764�00000000534�11247156605�012620� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������GIF89a��ð����ÿÿÿ!þ" Imported from PNM image: 127.pbm�!ù���,������@þLB!�B� ��AAAAA�@A� �������������������������@ ��@ ��� ����������������������������������������@€����������������€� @€� @€���;��������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/bintree.c����������������������������������������������������������������������������������0000664�0000764�0000764�00000011505�11247156606�010720� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ /* * Caolan.McNamara@ul.ie * http://www.csn.ul.ie/~caolan * * Released under the GPL, see COPYING */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include "bintree.h" #include "wv.h" void InitBintree (BintreeInfo * tree, int (*func1) (void *, void *), int (*func2) (void *, void *)) { tree->Root = NULL; /* root of binary tree */ tree->no_in_tree = 0; tree->CompLT = func1; tree->CompEQ = func2; } Node * InsertNode (BintreeInfo * tree, void *Data) { Node *X, *Current, *Parent; /*********************************************** * allocate node for Data and insert in tree * ***********************************************/ /* find X's parent */ Current = tree->Root; Parent = 0; while (Current) { if (tree->CompEQ (Data, Current->Data)) return (NULL); Parent = Current; Current = tree->CompLT (Data, Current->Data) ? Current->Left : Current->Right; } /* setup new node */ if ((X = (Node *) wvMalloc (sizeof (Node))) == 0) { fprintf (stderr, "insufficient memory (InsertNode)\n"); return NULL; } tree->no_in_tree++; X->Data = Data; X->Parent = Parent; X->Left = NULL; X->Right = NULL; /* insert X in tree */ if (Parent) { if (tree->CompLT (Data, Parent->Data)) Parent->Left = X; else Parent->Right = X; } else tree->Root = X; return (X); } void wvDeleteNode (BintreeInfo * tree, Node * Z) { Node *X, *Y; /***************************** * delete node Z from tree * *****************************/ /* Y will be removed from the parent chain */ if (!Z || Z == NULL) return; tree->no_in_tree--; /* find tree successor */ if (Z->Left == NULL || Z->Right == NULL) Y = Z; else { Y = Z->Right; while (Y->Left != NULL) Y = Y->Left; } /* X is Y's only child */ if (Y->Left != NULL) X = Y->Left; else X = Y->Right; /* remove Y from the parent chain */ if (X) X->Parent = Y->Parent; if (Y->Parent) { if (Y == Y->Parent->Left) Y->Parent->Left = X; else Y->Parent->Right = X; } else tree->Root = X; /* Y is the node we're removing */ /* Z is the data we're removing */ /* if Z and Y are not the same, replace Z with Y. */ if (Y != Z) { Y->Left = Z->Left; if (Y->Left) Y->Left->Parent = Y; Y->Right = Z->Right; if (Y->Right) Y->Right->Parent = Y; Y->Parent = Z->Parent; if (Z->Parent) { if (Z == Z->Parent->Left) Z->Parent->Left = Y; else Z->Parent->Right = Y; } else tree->Root = Y; wvFree (Z); } else { wvFree (Y); } } Node * FindNode (BintreeInfo * tree, void *Data) { /******************************* * find node containing Data * *******************************/ Node *Current = tree->Root; while (Current != NULL) if (tree->CompEQ (Data, Current->Data)) return (Current); else Current = tree->CompLT (Data, Current->Data) ? Current->Left : Current->Right; return (0); } Node * NextNode (BintreeInfo * tree, Node * element) { Node *father_of_element; Node *father_of_forefather; if (!element) { father_of_element = tree->Root; if (father_of_element != NULL) while (father_of_element->Left != NULL) father_of_element = father_of_element->Left; } else { father_of_element = element; if (father_of_element->Right != NULL) { father_of_element = father_of_element->Right; while (father_of_element->Left != NULL) father_of_element = father_of_element->Left; } else { father_of_forefather = father_of_element->Parent; while (father_of_forefather && (father_of_forefather->Right == father_of_element)) { father_of_element = father_of_forefather; father_of_forefather = father_of_element->Parent; } father_of_element = father_of_forefather; } } return father_of_element; } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/pap.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000046544�11247156607�010064� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" /* To apply a UPX.papx to a UPE.pap, set UPE.pap.istd equal to UPX.papx.istd, and then apply the UPX.papx.grpprl to UPE.pap. */ void wvAddPAPXFromBucket (PAP * apap, UPXF * upxf, STSH * stsh, wvStream * data) { U8 *pointer; U16 i = 0; U16 sprm; apap->istd = upxf->upx.papx.istd; if (upxf->cbUPX <= 2) return; wvTrace (("no is %d\n", upxf->cbUPX)); #ifdef SPRMTEST fprintf (stderr, "\n"); while (i < upxf->cbUPX - 2) { fprintf (stderr, "%x (%d) ", *(upxf->upx.papx.grpprl + i), *(upxf->upx.papx.grpprl + i)); i++; } fprintf (stderr, "\n"); i = 0; #endif /* while (i < upxf->cbUPX-2) */ while (i < upxf->cbUPX - 4) /* the end of the list is at -2, but there has to be a full sprm of len 2 as well */ { sprm = bread_16ubit (upxf->upx.papx.grpprl + i, &i); #ifdef SPRMTEST wvError (("sprm is %x\n", sprm)); #endif pointer = upxf->upx.papx.grpprl + i; if (i < upxf->cbUPX - 2) wvApplySprmFromBucket (WORD8, sprm, apap, NULL, NULL, stsh, pointer, &i, data); } } void wvAddPAPXFromBucket6 (PAP * apap, UPXF * upxf, STSH * stsh) { U8 *pointer; U16 i = 0; U16 sprm; U8 sprm8; apap->istd = upxf->upx.papx.istd; if (upxf->cbUPX <= 2) return; wvTrace (("no is %d\n", upxf->cbUPX)); #ifdef SPRMTEST fprintf (stderr, "\n"); while (i < upxf->cbUPX - 2) { fprintf (stderr, "%x (%d) ", *(upxf->upx.papx.grpprl + i), *(upxf->upx.papx.grpprl + i)); i++; } fprintf (stderr, "\n"); i = 0; #endif while (i < upxf->cbUPX - 3) /* the end of the list is at -2, but there has to be a full sprm of len 1 as well */ { sprm8 = bread_8ubit (upxf->upx.papx.grpprl + i, &i); #ifdef SPRMTEST wvError (("pap word 6 sprm is %x (%d)\n", sprm8, sprm8)); #endif sprm = (U16) wvGetrgsprmWord6 (sprm8); #ifdef SPRMTEST wvError (("pap word 6 sprm is converted to %x\n", sprm)); #endif pointer = upxf->upx.papx.grpprl + i; /* hmm, maybe im wrong here, but there appears to be corrupt * word 6 sprm lists being stored in the file */ if (i < upxf->cbUPX - 2) wvApplySprmFromBucket (WORD6, sprm, apap, NULL, NULL, stsh, pointer, &i, NULL); } } void wvInitPAPFromIstd (PAP * apap, U16 istdBase, STSH * stsh) { if (istdBase == istdNil) wvInitPAP (apap); else { if (istdBase >= stsh->Stshi.cstd) { wvError ( ("ISTD out of bounds, requested %d of %d\n", istdBase, stsh->Stshi.cstd)); wvInitPAP (apap); /*it can't hurt to try and start with a blank istd */ return; } else { if (stsh->std[istdBase].cupx == 0) /*empty slot in the array, i don't think this should happen */ { wvTrace (("Empty style slot used (chp)\n")); wvInitPAP (apap); } else { wvCopyPAP (apap, &(stsh->std[istdBase].grupe[0].apap)); strncpy(apap->stylename,stsh->std[istdBase].xstzName, sizeof(apap->stylename)); } } } } void wvCopyPAP (PAP * dest, PAP * src) { memcpy (dest, src, sizeof (PAP)); } void wvInitPAP (PAP * item) { int i; item->istd = 0; item->jc = 0; item->fKeep = 0; item->fKeepFollow = 0; item->fPageBreakBefore = 0; item->fBrLnAbove = 0; item->fBrLnBelow = 0; item->fUnused = 0; item->pcVert = 0; item->pcHorz = 0; item->brcp = 0; item->brcl = 0; item->reserved1 = 0; item->ilvl = 0; item->fNoLnn = 0; item->ilfo = 0; item->nLvlAnm = 0; item->reserved2 = 0; item->fSideBySide = 0; item->reserved3 = 0; item->fNoAutoHyph = 0; item->fWidowControl = 1; item->dxaRight = 0; item->dxaLeft = 0; item->dxaLeft1 = 0; /* wvInitLSPD(&item->lspd); */ item->lspd.fMultLinespace = 1; item->lspd.dyaLine = 240; item->dyaBefore = 0; item->dyaAfter = 0; wvInitPHE (&item->phe, 0); item->fCrLf = 0; item->fUsePgsuSettings = 0; item->fAdjustRight = 0; item->reserved4 = 0; item->fKinsoku = 0; item->fWordWrap = 0; item->fOverflowPunct = 0; item->fTopLinePunct = 0; item->fAutoSpaceDE = 0; item->fAtuoSpaceDN = 0; item->wAlignFont = 4; item->fVertical = 0; item->fBackward = 0; item->fRotateFont = 0; item->reserved5 = 0; item->reserved6 = 0; item->fInTable = 0; item->fTtp = 0; item->wr = 0; item->fLocked = 0; wvInitTAP (&item->ptap); item->dxaAbs = 0; item->dyaAbs = 0; item->dxaWidth = 0; wvInitBRC (&item->brcTop); wvInitBRC (&item->brcLeft); wvInitBRC (&item->brcBottom); wvInitBRC (&item->brcRight); wvInitBRC (&item->brcBetween); wvInitBRC (&item->brcBar); item->dxaFromText = 0; item->dyaFromText = 0; item->dyaHeight = 0; item->fMinHeight = 0; wvInitSHD (&item->shd); wvInitDCS (&item->dcs); item->lvl = 9; item->fNumRMIns = 0; wvInitANLD (&item->anld); item->fPropRMark = 0; item->ibstPropRMark = 0; wvInitDTTM (&item->dttmPropRMark); wvInitNUMRM (&item->numrm); item->itbdMac = 0; for (i = 0; i < itbdMax; i++) item->rgdxaTab[i] = 0; for (i = 0; i < itbdMax; i++) wvInitTBD (&item->rgtbd[i]); item->fBidi = 0; item->stylename[0] = 0; memset(&item->linfo,0,sizeof(item->linfo)); } /* 1) Having found the index i of the FC in an FKP that marks the character stored in the file immediately after the paragraph's paragraph mark, 1 is done in Simple mode through wvGetSimpleParaBounds which places this index in fcLim by default 2) it is necessary to use the word offset stored in the first byte of the fkp.rgbx[i - 1] to find the PAPX for the paragraph. 3) Using papx.istd to index into the properties stored for the style sheet , 4) the paragraph properties of the style are copied to a local PAP. 5) Then the grpprl stored in the PAPX is applied to the local PAP, 6) and papx.istd along with fkp.rgbx.phe are moved into the local PAP. 7) The process thus far has created a PAP that describes what the paragraph properties of the paragraph were at the last full save. */ int wvAssembleSimplePAP (wvVersion ver, PAP * apap, U32 fc, PAPX_FKP * fkp, wvParseStruct * ps) { PAPX *papx; int index; UPXF upxf; int ret = 0; /* list processing vars */ U32 myListId = 0; LVLF * myLVLF = NULL; LVL * myLVL = NULL; LFO * myLFO = NULL; LST * myLST = NULL; LFOLVL * myLFOLVL = NULL; S32 myStartAt = -1; U8 * mygPAPX = NULL; U8 * mygCHPX = NULL; XCHAR * myNumberStr = NULL; S32 myNumberStr_count = 0; U32 mygPAPX_count = 0, mygCHPX_count = 0; PAPX myPAPX; CHPX myCHPX; S32 i = 0, j = 0, k = 0; int bNeedLST_LVL; int bLST_LVL_format; LVL * prevLVL; LVLF * prevLVLF; /*index is the i in the text above */ index = wvGetIndexFCInFKP_PAPX (fkp, fc); wvTrace (("index is %d, using %d\n", index, index - 1)); papx = &(fkp->grppapx[index - 1]); if (papx) { wvTrace (("istd index is %d\n", papx->istd)); wvInitPAPFromIstd (apap, papx->istd, &ps->stsh); } else wvInitPAPFromIstd (apap, istdNil, &ps->stsh); if ((papx) && (papx->cb > 2)) { ret = 1; #ifdef SPRMTEST fprintf (stderr, "cbUPX is %d\n", papx->cb); for (i = 0; i < papx->cb - 2; i++) fprintf (stderr, "%x ", papx->grpprl[i]); fprintf (stderr, "\n"); #endif upxf.cbUPX = papx->cb; upxf.upx.papx.istd = papx->istd; upxf.upx.papx.grpprl = papx->grpprl; if (ver == WORD8) wvAddPAPXFromBucket (apap, &upxf, &ps->stsh, ps->data); else wvAddPAPXFromBucket6 (apap, &upxf, &ps->stsh); } if (papx) apap->istd = papx->istd; if (fkp->rgbx != NULL) wvCopyPHE (&apap->phe, &(fkp->rgbx[index - 1].phe), apap->fTtp); /* By now we have assembled the paragraph properties based on the info in the style associated with this pap and also in any of the PAPX overrides; next step is to see if this paragraph is a part of a list, and if so, to apply any list-specific overrides The MS documentation on lists really sucks, but we've been able to decipher some meaning from it and get simple lists to sorta work. This code mostly prints out debug messages with useful information in them, but it will also append a list and add a given paragraph to a given list */ if (!apap->ilfo) return ret; /* This is really silly, but it would seem that if there are both PAPX for the paragraph and the list, the paragraph ones take priority (basically, when a list is applied to a custom indented block, the block's indents become part of the list PAPX; if the indents of the block are subsequently modified, the PAPX of the list stays the same, and the PAPX of the block changes); this means that we now have to apply the list PAPX over what we have and then reapply the block PAPX (we had to apply the block's PAPX in order to find out if we are in a list !!!)*/ if (!ps->lfo) return ret; wvTrace(("list: ilvl %d, ilfo %d\n",apap->ilvl,apap->ilfo)); /* ilvl is the list level */ /* first, get the LFO, and then find the lfovl for this paragraph */ if (ps->lfo) myLFO = &ps->lfo[apap->ilfo - 1]; while(i < (S32)apap->ilfo - 1 && i < (S32)ps->nolfo) { j += ps->lfo[i].clfolvl; i++; } /* remember how many overrides are there for this record */ if (ps->lfo) k = ps->lfo[i].clfolvl; else k = 0; /* if there are any overrides, then see if one of them applies to this level */ if(k && ps->lfolvl) { i = 0; while(i < k && ps->lfolvl[j].ilvl != apap->ilvl) { j++; i++; } if(i >= k) { wvTrace(("list: no LFOLVL found for this level (1)\n")); myLFOLVL = NULL; } else { myLFOLVL = &ps->lfolvl[j]; wvTrace(("list: lfovl: iStartAt %d, fStartAt\n", myLFOLVL->iStartAt,myLFOLVL->fStartAt,myLFOLVL->fFormatting)); if(!myLFOLVL->fFormatting && myLFOLVL->fStartAt) myStartAt = myLFOLVL->iStartAt; } } else { wvTrace(("list: no LFOLVL found for this level (2)\n")); myLFOLVL = NULL; } /* now that we might have the LFOLVL, let's see if we should use the LVL from the LFO */ bNeedLST_LVL = (!myLFOLVL || !myLFOLVL->fStartAt || !myLFOLVL->fFormatting); bLST_LVL_format = 1; if(myLFOLVL) { /* this branch has not been (thoroughly) debugged Abi bugs 2205 and 2393 exhibit this behavior */ wvTrace(("list: using the LVL from LFO\n")); myListId = myLFOLVL->iStartAt; i = 0; wvTrace(("list: number of LSTs %d, my lsid %d\n", ps->noofLST,myListId)); while(i < ps->noofLST && ps->lst[i].lstf.lsid != myListId) { i++; wvTrace(("list: lsid in LST %d\n", ps->lst[i-1].lstf.lsid)); } if(i == ps->noofLST || ps->lst[i].lstf.lsid != myListId) { wvTrace(("error: could not locate LST entry\n")); goto list_error; } myLST = &ps->lst[i]; myLVL = &myLST->lvl[apap->ilvl]; /* now we should have the LVL */ if(!myLVL) return ret; myLVLF = &myLVL->lvlf; if(!myLVLF) return ret; myStartAt = myLFOLVL->fStartAt ? (S32)(myLVLF->iStartAt) : -1; mygPAPX = myLFOLVL->fFormatting ? myLVL->grpprlPapx : NULL; mygPAPX_count = myLFOLVL->fFormatting ? myLVLF->cbGrpprlPapx : 0; /* not sure about this, the CHPX applies to the number, so it might be that we should take this if the fStartAt is set -- the docs are not clear */ mygCHPX = myLFOLVL->fFormatting ? myLVL->grpprlChpx : NULL; mygCHPX_count = myLFOLVL->fFormatting ? myLVLF->cbGrpprlChpx : 0; myNumberStr = myLFOLVL->fStartAt && myLVL->numbertext ? myLVL->numbertext + 1 : NULL; myNumberStr_count = myNumberStr ? *(myLVL->numbertext) : 0; if(myLFOLVL->fFormatting) bLST_LVL_format = 0; } if(bNeedLST_LVL) { prevLVL = myLVL; prevLVLF = myLVLF; myListId = myLFO ? myLFO->lsid : 0; wvTrace(("list: using the LVL from LST\n")); i = 0; wvTrace(("list: number of LSTs %d, my lsid %d\n", ps->noofLST,myListId)); while(i < ps->noofLST && ps->lst[i].lstf.lsid != myListId) { i++; wvTrace(("list: lsid in LST %d\n", ps->lst[i-1].lstf.lsid)); } if(i == ps->noofLST || ps->lst[i].lstf.lsid != myListId) { wvTrace(("error: could not locate LST entry\n")); goto list_error; } myLST = &ps->lst[i]; wvTrace(("is a simple list? %d - requested level %d\n", myLST->lstf.fSimpleList, apap->ilvl)); if(myLST->lstf.fSimpleList) myLVL = myLST->lvl; else myLVL = &myLST->lvl[apap->ilvl]; /* now we should have the correct LVL */ if(!myLVL) return ret; myLVLF = &myLVL->lvlf; if(!myLVLF) return ret; /* retrieve any stuff we need from here (i.e., only what we did not get from the LFO LVL) */ myStartAt = myStartAt == -1 ? myLVLF->iStartAt : myStartAt; mygPAPX_count = !mygPAPX ? myLVLF->cbGrpprlPapx : mygPAPX_count; mygPAPX = !mygPAPX ? myLVL->grpprlPapx : mygPAPX; mygCHPX_count = !mygCHPX ? myLVLF->cbGrpprlChpx : mygCHPX_count; mygCHPX = !mygCHPX ? myLVL->grpprlChpx : mygCHPX; myNumberStr_count = !myNumberStr && myLVL->numbertext ? *(myLVL->numbertext) : myNumberStr_count; myNumberStr = !myNumberStr && myLVL->numbertext ? myLVL->numbertext + 1 : myNumberStr; /* if there was a valid LFO LVL record that pertained to formatting then we will set the myLVL and myLVLF variables back to this record so that it can be used */ if(!bLST_LVL_format && prevLVL && prevLVLF) { myLVL = prevLVL; myLVLF = prevLVLF; } } wvTrace(("list: number text len %d, papx len %d, chpx len%d\n",myNumberStr_count,mygPAPX_count,mygCHPX_count)); myPAPX.cb = mygPAPX_count; myPAPX.grpprl = mygPAPX; myPAPX.istd = apap->istd; /* IMPORTANT now we have the list formatting sutff retrieved; it is found in several different places: apap->ilvl - the level of this list (0-8) myStartAt - the value at which the numbering for this listshould start (i.e., the number of the first item on the list) myListId - the id of this list, we need this to know to which list this paragraph belongs; unfortunately, there seem to be some cases where separate lists *share* the same id, for instance when two lists, of different formatting, are separated by only empty paragraphs. As a hack, AW will add the format number to the list id, so gaining different id for different formattings (it is not foolproof, for if id1 + format1 == id2 + format2 then we get two lists joined, but the probability of that should be small). Further problem is that in AW, list id refers to the set of list elements on the same level, while in Word the id is that of the entire list. The easiest way to tranform the Word id to AW id is to add the level to the id PAPX - the formatting information that needs to be added to the format of this list CHPX - the formatting of the list number myNumberStr - the actual number string to display (XCHAR *); we probably need this to work out the number separator, since there does not seem to be any reference to this anywhere myNumberStr_count - length of the number string myLVLF->nfc - number format (see the enum below) myLVLF->jc - number alignment [0: lft, 1: rght, 2: cntr] myLVLF->ixchFollow - what character stands between the number and the para [0:= tab, 1: spc, 2: none] we shall copy this info, except the ilvl, to the wv extension of the PAP structure */ wvTrace(("list: id %d \n",myListId)); wvTrace(("list: iStartAt %d\n", myStartAt)); wvTrace(("list: lvlf: format %d\n",myLVLF->nfc)); /* see the comment above for nfc values */ wvTrace(("list: lvlf: number align %d [0: lft, 1: rght, 2: cntr]\n",myLVLF->jc)); wvTrace(("list: lvlf: ixchFollow %d [0:= tab, 1: spc, 2: none]\n",myLVLF->ixchFollow)); apap->linfo.id = myListId; apap->linfo.start = myStartAt; apap->linfo.numberstr = myNumberStr; apap->linfo.numberstr_size = myNumberStr_count; apap->linfo.format = myLVLF->nfc; apap->linfo.align = myLVLF->jc; apap->linfo.ixchFollow = myLVLF->ixchFollow; /* the number formatting */ myCHPX.cbGrpprl = mygCHPX_count; myCHPX.grpprl = mygCHPX; myCHPX.istd = 4095; /* next we need to apply the list PAPX to our PAP */ if (myPAPX.cb > 2) { ret = 1; upxf.cbUPX = myPAPX.cb; upxf.upx.papx.istd = myPAPX.istd; upxf.upx.papx.grpprl = myPAPX.grpprl; if (ver == WORD8) wvAddPAPXFromBucket (apap, &upxf, &ps->stsh, ps->data); else wvAddPAPXFromBucket6 (apap, &upxf, &ps->stsh); /* now we have to reapply the original PAPX, see note at top of the list code */ if((papx) && (papx->cb > 2)) { ret = 1; upxf.cbUPX = papx->cb; upxf.upx.papx.istd = papx->istd; upxf.upx.papx.grpprl = papx->grpprl; if (ver == WORD8) wvAddPAPXFromBucket (apap, &upxf, &ps->stsh, ps->data); else wvAddPAPXFromBucket6 (apap, &upxf, &ps->stsh); } } /* next see if the list number comes with additional char formatting information; if it does, we will stre it the linfo.chp */ if(myCHPX.cbGrpprl) { ret = 1; wvAssembleSimpleCHP(ver, &apap->linfo.chp, apap, 0, NULL, &ps->stsh); upxf.cbUPX = myCHPX.cbGrpprl; upxf.upx.chpx.grpprl = myCHPX.grpprl; if (ver == WORD8) wvAddCHPXFromBucket (&apap->linfo.chp, &upxf, &ps->stsh); else wvAddCHPXFromBucket6 (&apap->linfo.chp, &upxf, &ps->stsh); } if (myPAPX.istd != istdNil) apap->istd = myPAPX.istd; list_error: return (ret); } void wvReleasePAPX (PAPX * item) { item->cb = 0; item->istd = 0; wvFree (item->grpprl); item->grpprl = NULL; } void wvInitPAPX (PAPX * item) { item->cb = 0; item->istd = 0; item->grpprl = NULL; } void wvGetPAPX (wvVersion ver, PAPX * item, U8 * page, U16 * pos) { U16 cw; cw = bread_8ubit (&(page[*pos]), pos); if ((cw == 0) && (ver == WORD8)) /* only do this for word 97 */ { wvTrace (("cw was pad %d\n", cw)); cw = bread_8ubit (&(page[*pos]), pos); wvTrace (("cw was %d\n", cw)); } item->cb = cw * 2; item->istd = bread_16ubit (&(page[*pos]), pos); wvTrace (("papx istd is %x\n", item->istd)); wvTrace (("no of bytes is %d\n", item->cb)); if (item->cb > 2) { item->grpprl = (U8 *) wvMalloc (item->cb - 2); memcpy (item->grpprl, &(page[*pos]), (item->cb) - 2); } else item->grpprl = NULL; } int isPAPConform (PAP * current, PAP * previous) { if ((current) && (previous)) if (wvEqualBRC (¤t->brcLeft, &previous->brcLeft)) if (wvEqualBRC (¤t->brcRight, &previous->brcRight)) if (current->dxaWidth == previous->dxaWidth) if (current->fInTable == previous->fInTable) return (1); return (0); } void wvCopyConformPAP (PAP * dest, PAP * src) { if (src) { #ifdef PURIFY wvInitPAP (dest); #endif dest->brcLeft = src->brcLeft; dest->brcRight = src->brcRight; dest->dxaWidth = src->dxaWidth; dest->fInTable = src->fInTable; } else wvInitPAP (dest); } ������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/doptypography.c����������������������������������������������������������������������������0000664�0000764�0000764�00000003535�11247156607�012206� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <sys/types.h> #include <string.h> #include <stdio.h> #include "wv.h" void wvGetDOPTYPOGRAPHY (DOPTYPOGRAPHY * dopt, wvStream * fd) { int i; U16 temp16 = read_16ubit (fd); dopt->fKerningPunct = temp16 & 0x0001; dopt->iJustification = (temp16 & 0x0006) >> 1; dopt->iLevelOfKinsoku = (temp16 & 0x0018) >> 3; dopt->f2on1 = (temp16 & 0x0020) >> 5; dopt->reserved = (temp16 & 0xFFC0) >> 6; dopt->cchFollowingPunct = read_16ubit (fd); dopt->cchLeadingPunct = read_16ubit (fd); for (i = 0; i < 101; i++) dopt->rgxchFPunct[i] = read_16ubit (fd); for (i = 0; i < 51; i++) dopt->rgxchLPunct[i] = read_16ubit (fd); } void wvInitDOPTYPOGRAPHY (DOPTYPOGRAPHY * dopt) { int i; dopt->fKerningPunct = 0; dopt->iJustification = 0; dopt->iLevelOfKinsoku = 0; dopt->f2on1 = 0; dopt->reserved = 0; dopt->cchFollowingPunct = 0; dopt->cchLeadingPunct = 0; for (i = 0; i < 101; i++) dopt->rgxchFPunct[i] = 0; for (i = 0; i < 51; i++) dopt->rgxchLPunct[i] = 0; } �������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/hdr.h��������������������������������������������������������������������������������������0000664�0000764�0000764�00000002327�11247156607�010055� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������extern int squawk; extern int clean; extern char *file; extern int verbose; extern long ninput, noutput, nrunes, nerrors; enum { From = 1, Table = 2, Func = 4 }; typedef void (*Fnptr) (void); struct convert { char *name; char *chatter; int flags; void *data; Fnptr fn; }; extern struct convert convert[]; struct convert *conv (char *, int); typedef void (*Infn) (int, long *, struct convert *); typedef void (*Outfn) (Rune *, int, long *); void outtable (Rune *, int, long *); void utf_in (int, long *, struct convert *); void utf_out (Rune *, int, long *); void isoutf_in (int, long *, struct convert *); void isoutf_out (Rune *, int, long *); #define N 10000 /* just blocking */ #define OUT(out, r, n) if(out->flags&Table) outtable(r, n, (long *)out->data);\ else ((Outfn)(out->fn))(r, n, (long *)0) extern Rune runes[N]; extern char obuf[UTFmax * N]; /* maximum bloat from N runes */ #define BADMAP (0xFFFD) #define BYTEBADMAP ('?') /* badmap but has to fit in a byte */ #define ESC 033 #ifdef PLAN9 #define EPR fprint(2, #define EXIT(n,s) exits(s) #else #define EPR fprintf(stderr, #define USED(x) /* in plan 9, USED(x) tells the compiler to treat x as used */ #define EXIT(n,s) exit(n) #endif ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/fbse.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000020761�11247156606�010213� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include "wv.h" #include "wvinternal.h" void wvCopyBlip (Blip * dest, Blip * src) { int i; wvCopyFBSE (&dest->fbse, &src->fbse); dest->type = src->type; if (src->name) { dest->name = (U16 *) wvMalloc (src->fbse.cbName * sizeof (U16)); for (i = 0; i < src->fbse.cbName; i++) dest->name[i] = src->name[i]; } else dest->name = NULL; switch (dest->type) { case msoblipWMF: case msoblipEMF: case msoblipPICT: wvCopyMetafile (&dest->blip.metafile, &(src->blip.metafile)); break; case msoblipJPEG: case msoblipPNG: case msoblipDIB: wvCopyBitmap (&dest->blip.bitmap, &(src->blip.bitmap)); break; } } void wvReleaseBlip (Blip * blip) { wvFree (blip->name); } U32 wvGetBlip (Blip * blip, wvStream * fd, wvStream * delay) { U32 i, count, count2; MSOFBH amsofbh; long pos = 0; count = wvGetFBSE (&blip->fbse, fd); wvTrace (("count is %d\n", count)); if (blip->fbse.cbName == 0) blip->name = NULL; else blip->name = (U16 *) wvMalloc (sizeof (U16) * blip->fbse.cbName); for (i = 0; i < blip->fbse.cbName; i++) blip->name[i] = read_16ubit (fd); count += blip->fbse.cbName * 2; wvTrace (("count is %d\n", count)); wvTrace (("offset %x\n", blip->fbse.foDelay)); if (delay) { pos = wvStream_tell (delay); if(blip->fbse.foDelay!=-1) wvStream_goto (delay, blip->fbse.foDelay); wvTrace (("offset %x\n", blip->fbse.foDelay)); fd = delay; } count2 = wvGetMSOFBH (&amsofbh, fd); wvTrace (("count is %d\n", count2)); wvTrace ( ("HERE is %x %x (%d)\n", wvStream_tell (fd), amsofbh.fbt, amsofbh.fbt - msofbtBlipFirst)); wvTrace (("type is %x\n", amsofbh.fbt)); switch (amsofbh.fbt - msofbtBlipFirst) { case msoblipWMF: case msoblipEMF: case msoblipPICT: count2 += wvGetMetafile (&blip->blip.metafile, &amsofbh, fd); break; case msoblipJPEG: case msoblipPNG: case msoblipDIB: count2 += wvGetBitmap (&blip->blip.bitmap, &amsofbh, fd); break; } wvTrace (("count is %d\n", count2)); blip->type = amsofbh.fbt - msofbtBlipFirst; if (delay) { wvStream_goto (delay, pos); return (count); } return (count + count2); } U32 wvGetFBSE (FBSE * afbse, wvStream * fd) { int i; afbse->btWin32 = read_8ubit (fd); afbse->btMacOS = read_8ubit (fd); for (i = 0; i < 16; i++) afbse->rgbUid[i] = read_8ubit (fd); afbse->tag = read_16ubit (fd); afbse->size = read_32ubit (fd); afbse->cRef = read_32ubit (fd); afbse->foDelay = read_32ubit (fd); wvTrace (("location is %x, size is %d\n", afbse->foDelay, afbse->size)); afbse->usage = read_8ubit (fd); afbse->cbName = read_8ubit (fd); wvTrace (("name len is %d\n", afbse->cbName)); afbse->unused2 = read_8ubit (fd); afbse->unused3 = read_8ubit (fd); return (36); } void wvCopyFBSE (FBSE * dest, FBSE * src) { memcpy (dest, src, sizeof (FBSE)); } U32 wvGetBitmap (BitmapBlip * abm, MSOFBH * amsofbh, wvStream * fd) { U32 i, count; char extra = 0; wvStream * stm = NULL; wvTrace (("starting bitmap at %x\n", wvStream_tell (fd))); for (i = 0; i < 16; i++) abm->m_rgbUid[i] = read_8ubit (fd); count = 16; abm->m_rgbUidPrimary[0] = 0; switch (amsofbh->fbt - msofbtBlipFirst) { case msoblipPNG: wvTrace (("msoblipPNG\n")); /* sprintf(buffer,"%s-wv-%d.png",aimage,no++); */ if (amsofbh->inst ^ msobiPNG) extra = 1; break; case msoblipJPEG: wvTrace (("msoblipJPEG\n")); /* sprintf(buffer,"%s-wv-%d.jpg",aimage,no++); */ if (amsofbh->inst ^ msobiJFIF) extra = 1; break; case msoblipDIB: wvTrace (("msoblipDIB\n")); /* sprintf(buffer,"%s-wv-%d.dib",aimage,no++); */ if (amsofbh->inst ^ msobiDIB) extra = 1; break; } if (extra) { for (i = 0; i < 16; i++) abm->m_rgbUidPrimary[i] = read_8ubit (fd); count += 16; } abm->m_bTag = read_8ubit (fd); abm->m_pvBits = NULL; count++; stm = wvStream_TMP_create (amsofbh->cbLength); if (!stm) { abm->m_pvBits = NULL; return 0; } char *tmp = wvMalloc( amsofbh->cbLength - count); if (!tmp) { abm->m_pvBits = NULL; return 0; } wvStream_read(tmp,1,amsofbh->cbLength - count,fd); wvStream_write(tmp,1,amsofbh->cbLength - count,stm); wvFree(tmp); wvStream_rewind (stm); abm->m_pvBits = stm; count += i; return count; } void wvCopyBitmap (BitmapBlip * dest, BitmapBlip * src) { U8 i; for (i = 0; i < 16; i++) { dest->m_rgbUid[i] = src->m_rgbUid[i]; dest->m_rgbUidPrimary[i] = src->m_rgbUidPrimary[i]; } dest->m_bTag = src->m_bTag; dest->m_pvBits = src->m_pvBits; } U32 wvGetMetafile (MetaFileBlip * amf, MSOFBH * amsofbh, wvStream * fd) { char extra = 0; U32 i, count; wvStream * stm = 0; char *buf, *p; for (i = 0; i < 16; i++) amf->m_rgbUid[i] = read_8ubit (fd); count = 16; amf->m_rgbUidPrimary[0] = 0; switch (amsofbh->fbt - msofbtBlipFirst) { case msoblipEMF: wvTrace (("msoblipEMF\n")); /* sprintf(buffer,"%s-wv-%d.emf",aimage,no++); */ if (amsofbh->inst ^ msobiEMF) extra = 1; break; case msoblipWMF: wvTrace (("msoblipWMF\n")); /* sprintf(buffer,"%s-wv-%d.wmf",aimage,no++); */ if (amsofbh->inst ^ msobiWMF) extra = 1; break; case msoblipPICT: wvTrace (("msoblipPICT\n")); /* sprintf(buffer,"%s-wv-%d.pict",aimage,no++); */ if (amsofbh->inst ^ msobiPICT) extra = 1; break; } if (extra) { for (i = 0; i < 16; i++) amf->m_rgbUidPrimary[i] = read_8ubit (fd); count += 16; } amf->m_cb = read_32ubit (fd); amf->m_rcBounds.bottom = read_32ubit (fd); amf->m_rcBounds.top = read_32ubit (fd); amf->m_rcBounds.right = read_32ubit (fd); amf->m_rcBounds.left = read_32ubit (fd); amf->m_ptSize.y = read_32ubit (fd); amf->m_ptSize.x = read_32ubit (fd); amf->m_cbSave = read_32ubit (fd); amf->m_fCompression = read_8ubit (fd); amf->m_fFilter = read_8ubit (fd); amf->m_pvBits = NULL; count += 34; buf = wvMalloc(amsofbh->cbLength); p = buf; for (i = count; i < amsofbh->cbLength; i++) *p++ = read_8ubit (fd); count += i; wvStream_memory_create (&stm, buf, amsofbh->cbLength); amf->m_pvBits = stm; return (count); } void wvCopyMetafile (MetaFileBlip * dest, MetaFileBlip * src) { U8 i; for (i = 0; i < 16; i++) { dest->m_rgbUid[i] = src->m_rgbUid[i]; dest->m_rgbUidPrimary[i] = src->m_rgbUidPrimary[i];} dest->m_cb = src->m_cb; dest->m_rcBounds.bottom = src->m_rcBounds.bottom; dest->m_rcBounds.top = src->m_rcBounds.top; dest->m_rcBounds.right = src->m_rcBounds.right; dest->m_rcBounds.left = src->m_rcBounds.left; dest->m_ptSize.y = src->m_ptSize.y; dest->m_ptSize.x = src->m_ptSize.x; dest->m_cbSave = src->m_cbSave; dest->m_fCompression = src->m_fCompression; dest->m_fFilter = src->m_fFilter; dest->m_pvBits = src->m_pvBits; } /* TODO: code wvPutBlip(), wvPutMetafile() */ void wvPutFBSE (FBSE * item, wvStream * fd) { int i; write_8ubit (fd, item->btWin32); write_8ubit (fd, item->btMacOS); for (i = 0; i < 16; i++) write_8ubit (fd, item->rgbUid[i]); write_16ubit (fd, item->tag); write_32ubit (fd, item->size); write_32ubit (fd, item->cRef); write_32ubit (fd, item->foDelay); write_8ubit (fd, item->usage); write_8ubit (fd, item->cbName); write_8ubit (fd, item->unused2); write_8ubit (fd, item->unused3); } ���������������wv-1.2.9/tap.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000003551�11247156607�010057� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" void wvCopyTAP (TAP * dest, TAP * src) { memcpy (dest, src, sizeof (TAP)); } void wvInitTAP (TAP * item) { int i; static TAP cache; static int test = 0; if (!test) { cache.jc = 0; cache.dxaGapHalf = 0; cache.dyaRowHeight = 0; cache.fCantSplit = 0; cache.fTableHeader = 0; wvInitTLP (&cache.tlp); cache.lwHTMLProps = 0; cache.fCaFull = 0; cache.fFirstRow = 0; cache.fLastRow = 0; cache.fOutline = 0; cache.reserved = 0; cache.itcMac = 0; cache.dxaAdjust = 0; cache.dxaScale = 0; cache.dxsInch = 0; for (i = 0; i < itcMax + 1; i++) cache.rgdxaCenter[i] = 0; for (i = 0; i < itcMax + 1; i++) cache.rgdxaCenterPrint[i] = 0; for (i = 0; i < itcMax; i++) wvInitTC (&(cache.rgtc[i])); for (i = 0; i < itcMax; i++) wvInitSHD (&(cache.rgshd[i])); for (i = 0; i < 6; i++) wvInitBRC (&(cache.rgbrcTable[i])); test++; } wvCopyTAP (item, &cache); } �������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/README�������������������������������������������������������������������������������������0000664�0000764�0000764�00000004567�11247156607�010017� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������Read INSTALL for install information, basically pretty standard requirements for a modern *NIX program plus libwmf to convert wmf files to something useful. There are now a small herd of programs based upon libwv. AbiWord (http://www.abisource.com/) is the most interesting and complete one that we're aware of. 1) wvWare: this is what you are looking for, it converts Word 2,6,7,8,9 files to html and latex. The Word 2 conversion is still incomplete (no formatting), but it will do a passable job extracting the text, which is what you probably want anyway. 2) The small army of helper scripts: wvHtml wvLatex wvCleanLatex wvPS wvDVI wvPDF wvMime wvText ... Do: `man wvXXX` where "XXX" is Html, Latex, etc.. for more information 3) wvSummary, displays the summary information stream of *all* ole2 files, i.e Excel, PowerPoint, Visio, Access etc etc etc, I've sent wvSummary as a patch to the file program, so that utility should in the future have this ability to know what windows application created the ole2 document. `man wvSummary` 4) wvVersion, outputs the version of the word format which the document is stored as. `man wvVersion` Also... 5) There are helper applications in the helper-scripts dir that allow both lynx and netscape to view word 8 docs easily 6) The webpage is at http://wvware.sourceforge.net/ Finally... 7) libwv can be used as a library by third party programs, abiword uses it as its word importer, and kword may use it in the future. wvWare is a sample application for the use of wv, as is abiword itself. The library (will be some day) documented in the Documentation dir 8) The config file format is (beginning to be) documented in the Documentation dir, so it may be possible to achieve the conversion that you desire without writing your own program. It also allows you to customize the html and latex output to your own tastes. Some possible "fun" projects: (Projects for someone to try out with libwv include, could be commercial applications) a) wvMacroRemove, deletes macros out of word files, for the security concious b) wvFastToFull, converts fastsaved docs to full saved, shrinking their size usually by quite a lot, and also making them safe for security consious firms c) wvCrackProtection, take the wvDecrypt97 code and make a cracker that uses the rc4 algorithm and other known bit of information to crack word documents, ala http://www.crak.com �����������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/ftxbxs.c�����������������������������������������������������������������������������������0000664�0000764�0000764�00000004634�11247156607�010614� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvListFTXBXS (FTXBXS * item) { wvError (("%d\n", item->cTxbx_iNextReuse)); wvError (("%d\n", item->cReusable)); wvError (("%d\n", item->fReusable)); wvError (("%d\n", item->reserved)); wvError (("%d\n", item->lid)); wvError (("%d\n", item->txidUndo)); } void wvGetFTXBXS (FTXBXS * item, wvStream * fd) { item->cTxbx_iNextReuse = (S32) read_32ubit (fd); item->cReusable = (S32) read_32ubit (fd); item->fReusable = (S16) read_16ubit (fd); item->reserved = (S32) read_32ubit (fd); item->lid = (S32) read_32ubit (fd); item->txidUndo = (S32) read_32ubit (fd); /* wvListFTXBXS (item); */ } int wvGetFTXBXS_PLCF (FTXBXS ** ftxbxs, U32 ** pos, U32 * noftxbxs, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *ftxbxs = NULL; *pos = NULL; *noftxbxs = 0; } else { *noftxbxs = (len - 4) / (cbFTXBXS + 4); *pos = (U32 *) wvMalloc ((*noftxbxs + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*noftxbxs + 1) * sizeof (U32))); return (1); } *ftxbxs = (FTXBXS *) wvMalloc ((*noftxbxs + 1) * sizeof (FTXBXS)); if (*ftxbxs == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *noftxbxs * sizeof (FTXBXS))); wvFree (pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i < *noftxbxs + 1; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *noftxbxs; i++) wvGetFTXBXS (&((*ftxbxs)[i]), fd); } return (0); } ����������������������������������������������������������������������������������������������������wv-1.2.9/rr.c���������������������������������������������������������������������������������������0000664�0000764�0000764�00000002005�11247156607�007707� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetRR (RR * item, wvStream * fd) { item->cb = (S16) read_16ubit (fd); item->cbSzRecip = (S16) read_16ubit (fd); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/autogen.sh���������������������������������������������������������������������������������0000775�0000764�0000764�00000004366�11247156607�011135� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh srcdir=`dirname $0` test -z "$srcdir" && srcdir=. olddir=`pwd` cd $srcdir accheck=`autoconf --version | grep 2.13` if test "x$accheck" != "x"; then echo "error: you appear to be using autoconf 2.13" echo " the automake build system requires autoconf >= 2.50" exit 1 fi aclocal --version > /dev/null 2> /dev/null || { echo "error: aclocal not found" exit 1 } automake --version > /dev/null 2> /dev/null || { echo "error: automake not found" exit 1 } automake --version | perl -ne 'if (/\(GNU automake\) (([0-9]+).([0-9]+))/) {print; if ($2 < 1 || ($2 == 1 && $3 < 4)) {exit 1;}}' if [ $? -ne 0 ]; then echo "warning: you appear to be using automake <= 1.5" echo " these versions have bugs - GNUmakefile.am dependencies are not generated" fi aclocal $ACLOCAL_FLAGS || { echo "error: aclocal $ACLOCAL_FLAGS failed" exit 1 } libtoolize --force --copy || { echo "error: libtoolize failed" exit 1 } echo "Checking for PKG_CHECK_MODULES..." pkgcheckdef=`grep PKG_CHECK_MODULES aclocal.m4 | grep AC_DEFUN` if test "x$pkgcheckdef" = "x"; then echo "Running aclocal -I ac-helpers/pkg-config $ACLOCAL_FLAGS" (aclocal -I ac-helpers/pkg-config $ACLOCAL_FLAGS 2>> autogen.err) || { echo "aclocal failed! Unable to continue." exit 1 } pkgcheckdef=`grep PKG_CHECK_MODULES aclocal.m4 | grep AC_DEFUN` if test "x$pkgcheckdef" = "x"; then echo "" echo "error: PKG_CHECK_MODULES isn't defined" echo "" echo " Either pkg.m4 wasn't in aclocal's search path or pkgconfig" echo " (or pkgconfig-devel?) isn't installed." echo "" echo " If pkg-config is installed in <prefix> then re-run autogen.sh:" echo "" echo " ACLOCAL_FLAGS=\"-I <prefix>/share/aclocal\" ./autogen.sh" echo "" exit fi fi autoheader || { echo "error: autoheader failed" exit 1 } automake -a -c --foreign || { echo "warning: automake failed" } autoconf || { echo "error: autoconf failed" exit 1 } cd $olddir conf_flags="--enable-maintainer-mode" if test x$NOCONFIGURE = x; then echo Running $srcdir/configure $conf_flags "$@" ... $srcdir/configure $conf_flags "$@" \ && echo Now type \`make\' to compile. || exit 1 else echo Skipping configure process. fi ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/pcd.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000005127�11247156607�010042� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetPCD (PCD * item, wvStream * fd) { U8 temp8; temp8 = read_8ubit (fd); #ifdef PURIFY wvInitPCD (item); #endif item->fNoParaLast = temp8 & 0x01; item->fPaphNil = (temp8 & 0x02) >> 1; item->fCopied = (temp8 & 0x04) >> 2; item->reserved = (temp8 & 0xf8) >> 3; item->fn = read_8ubit (fd); item->fc = read_32ubit (fd); wvGetPRM (&item->prm, fd); } void wvInitPCD (PCD * item) { item->fNoParaLast = 0; item->fPaphNil = 0; item->fCopied = 0; item->reserved = 0; item->fn = 0; item->fc = 0; wvInitPRM (&item->prm); } int wvReleasePCD_PLCF (PCD * pcd, U32 * pos) { wvFree (pcd); wvFree (pos); return (0); } int wvGetPCD_PLCF (PCD ** pcd, U32 ** pos, U32 * nopcd, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *pcd = NULL; *pos = NULL; *nopcd = 0; } else { *nopcd = (len - 4) / (cbPCD + 4); *pos = (U32 *) wvMalloc ((*nopcd + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nopcd + 1) * sizeof (U32))); return (1); } *pcd = (PCD *) wvMalloc (*nopcd * sizeof (PCD)); if (*pcd == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nopcd * sizeof (PCD))); wvFree (pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i <= *nopcd; i++) { (*pos)[i] = read_32ubit (fd); wvTrace (("pcd pos is %x\n", (*pos)[i])); } for (i = 0; i < *nopcd; i++) { wvGetPCD (&((*pcd)[i]), fd); wvTrace ( ("pcd fc is %x, complex is %d, index is %d\n", (*pcd)[i].fc, (*pcd)[i].prm.fComplex, (*pcd)[i].prm.para.var2.igrpprl)); } } return (0); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/sprm.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000271475�11454041730�010256� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #include <string.h> #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include "wv.h" /* void wvToggle(int ret,CHP *in,STSH *stsh,U8 toggle,type) When the parameter of the sprm is set to 0 or 1, then the CHP property is set to the parameter value. */ /* When the parameter of the sprm is 128, then the CHP property is set to the value that is stored for the property in the style sheet. CHP When the parameter of the sprm is 129, the CHP property is set to the negation of the value that is stored for the property in the style sheet CHP. sprmCFBold through sprmCFVanish are stored only in grpprls linked to piece table entries. */ /* an argument might be made that instead of in being returned or negated that it should be the looked up in the original chp through the istd that should be used, in which case this should be a macro that does the right thing. but im uncertain as to which is the correct one to do, ideas on a postcard to... etc etc This argument which i left as a comment to the original function has been bourne out in practice, so i converted this to a macro and did a lookup on the original unmodified chp in the stylesheet to check against Interestingly enough, even though the spec says that these are only used in piece table grpprls this is untrue, examples/doc-that-needs-utf8.doc has them in the stylesheet definition portion, which is a serious problem as the style that must be checked is not generated before this modifier comes along, a real nuisance. */ #define wvTOGGLE(ret,in,stsh,toggle,type) \ { \ CHP ctemp; \ if ((toggle == 0) || (toggle == 1)) \ ret = toggle; \ else \ { \ \ wvInitCHPFromIstd(&ctemp,in->istd,stsh); \ \ if (toggle == 128) \ ret = ctemp.type; \ else if (toggle == 129) \ ret = !ctemp.type; \ else \ wvWarning("Strangle sprm toggle value, ignoring\n"); \ } \ } /* spra value operand size 0 1 byte (operand affects 1 bit) 1 1 byte 2 2 bytes 3 4 bytes 4 2 bytes 5 2 bytes 6 variable length -- following byte is size of operand 7 3 bytes */ int wvSprmLen (int spra) { switch (spra) { case 0: case 1: return (1); case 2: case 4: case 5: return (2); case 7: return (3); case 3: return (4); case 6: return (-1); /*variable length -- following byte is size of operand */ default: wvError (("Incorrect spra value %d\n", spra)); } return (-2); } void wvInitSprm (Sprm * aSprm) { aSprm->ispmd = 0; aSprm->fSpec = 0; aSprm->sgc = 0; aSprm->spra = 0; } void wvGetSprmFromU16 (Sprm * aSprm, U16 sprm) { #ifdef PURIFY wvInitSprm (aSprm); #endif aSprm->ispmd = sprm & 0x01ff; aSprm->fSpec = (sprm & 0x0200) >> 9; aSprm->sgc = (sprm & 0x1c00) >> 10; aSprm->spra = (sprm & 0xe000) >> 13; } #undef EXAMINE_SPRM U8 wvEatSprm (U16 sprm, U8 * pointer, U16 * pos) { int len; Sprm aSprm; #ifdef EXAMINE_SPRM U8 temp[256]; U16 p; U8 *pi; int i; #endif wvTrace (("Eating sprm %x\n", sprm)); wvGetSprmFromU16 (&aSprm, sprm); if (sprm == sprmPChgTabs) { wvTrace (("sprmPChgTabs\n")); len = wvApplysprmPChgTabs (NULL, pointer, pos); len++; return (len); } else if ((sprm == sprmTDefTable) || (sprm == sprmTDefTable10)) { wvTrace (("sprmTDefTable\\sprmTDefTable10\n")); len = bread_16ubit (pointer, pos); len--; } else { len = wvSprmLen (aSprm.spra); #ifdef EXAMINE_SPRM i = 0; p = *pos; pi = pointer; #endif wvTrace (("wvSprmLen len is %d\n", len)); if (len < 0) { len = bread_8ubit (pointer, pos); /* bread increased pos, but in order to keep len and pos in sync later on, we have to decreased it again */ (*pos)--; #ifdef EXAMINE_SPRM pi++; while(i < sizeof(temp) && i < len) { temp[i] = bread_8ubit(pi, &p); pi++; i++; } #endif len++; } #ifdef EXAMINE_SPRM else { while(i < sizeof(temp) && i < len) { temp[i] = bread_8ubit(pi, &p); pi++; i++; } } #endif } (*pos) += len; return (len); } #undef EXAMINE_SPRM Sprm wvApplySprmFromBucket (wvVersion ver, U16 sprm, PAP * apap, CHP * achp, SEP * asep, STSH * stsh, U8 * pointer, U16 * pos, wvStream * data) { BRC10 tempBRC10; U16 temp16; U8 temp8; PAP temppap; CHP tempchp; SEP tempsep; U8 toggle; Sprm RetSprm; /*bullet proofing */ if (apap == NULL) { wvInitPAP (&temppap); apap = &temppap; } if (achp == NULL) { wvInitCHP (&tempchp); achp = &tempchp; } if (asep == NULL) { #ifdef PURIFY wvInitSEP (&tempsep); #endif asep = &tempsep; } #ifdef SPRMTEST wvError (("sprm is %x\n", sprm)); #endif switch (sprm) { /*Beginning of PAP */ case sprmPIstd: apap->istd = bread_16ubit (pointer, pos); break; case sprmPIstdPermute: wvApplysprmPIstdPermute (apap, pointer, pos); break; case sprmPIncLvl: wvApplysprmPIncLvl (apap, pointer, pos); break; case sprmPJc: apap->jc = bread_8ubit (pointer, pos); wvTrace (("jc is now %d\n", apap->jc)); break; case sprmPFSideBySide: apap->fSideBySide = bread_8ubit (pointer, pos); break; case sprmPFKeep: apap->fKeep = bread_8ubit (pointer, pos); break; case sprmPFKeepFollow: apap->fKeepFollow = bread_8ubit (pointer, pos); break; case sprmPFPageBreakBefore: apap->fPageBreakBefore = bread_8ubit (pointer, pos); break; case sprmPBrcl: apap->brcl = bread_8ubit (pointer, pos); break; case sprmPBrcp: apap->brcp = bread_8ubit (pointer, pos); break; case sprmPIlvl: apap->ilvl = bread_8ubit (pointer, pos); break; case sprmPIlfo: apap->ilfo = (S16) bread_16ubit (pointer, pos); wvTrace (("ilfo is %d\n", apap->ilfo)); break; case sprmPFNoLineNumb: apap->fNoLnn = bread_8ubit (pointer, pos); break; case sprmPChgTabsPapx: wvApplysprmPChgTabsPapx (apap, pointer, pos); break; case sprmPDxaRight: apap->dxaRight = (S16) bread_16ubit (pointer, pos); break; case sprmPDxaLeft: apap->dxaLeft = (S16) bread_16ubit (pointer, pos); break; case sprmPNest: /* sprmPNest (opcode 0x4610) causes its operand, a two-byte dxa value to be added to pap.dxaLeft. If the result of the addition is less than 0, 0 is stored into pap.dxaLeft. */ temp16 = (S16) bread_16ubit (pointer, pos); apap->dxaLeft += temp16; if (apap->dxaLeft < 0) apap->dxaLeft = 0; break; case sprmPDxaLeft1: apap->dxaLeft1 = (S16) bread_16ubit (pointer, pos); break; case sprmPDyaLine: wvGetLSPDFromBucket (&apap->lspd, pointer); (*pos) += 4; break; case sprmPDyaBefore: apap->dyaBefore = bread_16ubit (pointer, pos); break; case sprmPDyaAfter: apap->dyaAfter = bread_16ubit (pointer, pos); break; case sprmPChgTabs: wvApplysprmPChgTabs (apap, pointer, pos); break; case sprmPFInTable: apap->fInTable = bread_8ubit (pointer, pos); break; case sprmPFTtp: apap->fTtp = bread_8ubit (pointer, pos); break; case sprmPDxaAbs: apap->dxaAbs = (S16) bread_16ubit (pointer, pos); break; case sprmPDyaAbs: apap->dyaAbs = (S16) bread_16ubit (pointer, pos); break; case sprmPDxaWidth: apap->dxaWidth = (S16) bread_16ubit (pointer, pos); break; case sprmPPc: wvApplysprmPPc (apap, pointer, pos); break; case sprmPBrcTop10: wvGetBRC10FromBucket (&tempBRC10, pointer); (*pos) += 2; wvConvertBRC10ToBRC (&apap->brcTop, &tempBRC10); break; case sprmPBrcLeft10: wvGetBRC10FromBucket (&tempBRC10, pointer); (*pos) += 2; wvConvertBRC10ToBRC (&apap->brcLeft, &tempBRC10); break; case sprmPBrcBottom10: wvGetBRC10FromBucket (&tempBRC10, pointer); (*pos) += 2; wvConvertBRC10ToBRC (&apap->brcBottom, &tempBRC10); break; case sprmPBrcRight10: wvGetBRC10FromBucket (&tempBRC10, pointer); (*pos) += 2; wvConvertBRC10ToBRC (&apap->brcRight, &tempBRC10); break; case sprmPBrcBetween10: wvGetBRC10FromBucket (&tempBRC10, pointer); (*pos) += 2; wvConvertBRC10ToBRC (&apap->brcBetween, &tempBRC10); break; case sprmPBrcBar10: wvGetBRC10FromBucket (&tempBRC10, pointer); (*pos) += 2; wvConvertBRC10ToBRC (&apap->brcBar, &tempBRC10); break; case sprmPDxaFromText10: apap->dxaFromText = (S16) bread_16ubit (pointer, pos); break; case sprmPWr: apap->wr = bread_8ubit (pointer, pos); break; case sprmPBrcTop: (*pos) += wvGetBRCFromBucket (ver, &apap->brcTop, pointer); break; case sprmPBrcLeft: (*pos) += wvGetBRCFromBucket (ver, &apap->brcLeft, pointer); break; case sprmPBrcBottom: (*pos) += wvGetBRCFromBucket (ver, &apap->brcBottom, pointer); break; case sprmPBrcRight: (*pos) += wvGetBRCFromBucket (ver, &apap->brcRight, pointer); break; case sprmPBrcBetween: (*pos) += wvGetBRCFromBucket (ver, &apap->brcBetween, pointer); break; case sprmPBrcBar: (*pos) += wvGetBRCFromBucket (ver, &apap->brcBar, pointer); break; case sprmPFNoAutoHyph: apap->fNoAutoHyph = bread_8ubit (pointer, pos); break; case sprmPWHeightAbs: /* ???? apap->wHeightAbs */ (*pos) += 2; break; case sprmPDcs: wvGetDCSFromBucket (&apap->dcs, pointer); (*pos) += 2; break; case sprmPShd: wvGetSHDFromBucket (&apap->shd, pointer); (*pos) += 2; break; case sprmPDyaFromText: apap->dyaFromText = (S16) bread_16ubit (pointer, pos); break; case sprmPDxaFromText: apap->dxaFromText = (S16) bread_16ubit (pointer, pos); break; case sprmPFLocked: apap->fLocked = bread_8ubit (pointer, pos); break; case sprmPFWidowControl: apap->fWidowControl = bread_8ubit (pointer, pos); break; case sprmPFKinsoku: apap->fKinsoku = bread_8ubit (pointer, pos); break; case sprmPFWordWrap: apap->fWordWrap = bread_8ubit (pointer, pos); break; case sprmPFOverflowPunct: apap->fOverflowPunct = bread_8ubit (pointer, pos); break; case sprmPFTopLinePunct: apap->fTopLinePunct = bread_8ubit (pointer, pos); break; case sprmPFAutoSpaceDE: apap->fAutoSpaceDE = bread_8ubit (pointer, pos); break; case sprmPFAutoSpaceDN: /* ???? apap->fAutoSpaceDN */ (*pos)++; break; case sprmPWAlignFont: apap->wAlignFont = (S16) bread_16ubit (pointer, pos); break; case sprmPFrameTextFlow: wvApplysprmPFrameTextFlow (apap, pointer, pos); break; case sprmPISnapBaseLine: /*obsolete: not applicable in Word97 and later versions */ (*pos)++; break; case sprmPNLvlAnm: /*obsolete: not applicable in Word97 and later version */ apap->nLvlAnm = bread_8ubit (pointer, pos); wvTrace (("%d\n", apap->nLvlAnm)); break; case sprmPAnld: wvApplysprmPAnld (ver, apap, pointer, pos); break; case sprmPPropRMark: wvApplysprmPPropRMark (apap, pointer, pos); break; case sprmPOutLvl: /*has no effect if pap.istd is < 1 or is > 9 */ temp8 = bread_8ubit (pointer, pos); if ((apap->istd >= 1) && (apap->istd <= 9)) apap->lvl = temp8; break; case sprmPFBiDi: apap->fBidi = bread_8ubit (pointer, pos); break; case sprmPFNumRMIns: apap->fNumRMIns = bread_8ubit (pointer, pos); break; case sprmPCrLf: /* ???? */ (*pos)++; break; case sprmPNumRM: wvApplysprmPNumRM (apap, pointer, pos); break; case sprmPHugePapx2: case sprmPHugePapx: wvApplysprmPHugePapx (apap, pointer, pos, data, stsh); break; case sprmPFUsePgsuSettings: apap->fUsePgsuSettings = bread_8ubit (pointer, pos); break; case sprmPFAdjustRight: apap->fAdjustRight = bread_8ubit (pointer, pos); break; case sprmPRsid: /* apap->rsid = */ bread_32ubit (pointer, pos); break; case sprmPItap: apap->fInTable =bread_32ubit (pointer, pos); /* Need to introduce apap->fInTableW97? */ /* apap->fTtp++; this line fixed bug #11433 but caused #12476 */ break; /*End of PAP */ /*Begin of CHP */ case sprmCFRMarkDel: achp->fRMarkDel = bread_8ubit (pointer, pos); break; case sprmCFRMark: achp->fRMark = bread_8ubit (pointer, pos); break; case sprmCFFldVanish: achp->fFldVanish = bread_8ubit (pointer, pos); break; case sprmCPicLocation: if (ver != WORD8) { wvTrace (("byte is %x\n", bread_8ubit (pointer, pos))); pointer++; } /* This sprm moves the 4-byte operand of the sprm into the chp.fcPic field. It simultaneously sets chp.fSpec to 1. */ achp->fcPic_fcObj_lTagObj = bread_32ubit (pointer, pos); wvTrace (("Len is %x\n", achp->fcPic_fcObj_lTagObj)); achp->fSpec = 1; break; case sprmCIbstRMark: achp->ibstRMark = (S16) bread_16ubit (pointer, pos); break; case sprmCDttmRMark: wvGetDTTMFromBucket (&achp->dttmRMark, pointer); (*pos) += 4; break; case sprmCFData: achp->fData = bread_8ubit (pointer, pos); break; case sprmCIdslRMark: achp->idslRMReason = (S16) bread_16ubit (pointer, pos); break; case sprmCChs: wvApplysprmCChs (achp, pointer, pos); break; case sprmCSymbol: wvApplysprmCSymbol (ver, achp, pointer, pos); break; case sprmCFOle2: achp->fOle2 = bread_8ubit (pointer, pos); break; case sprmCHighlight: /* ico (fHighlight is set to 1 iff ico is not 0) */ achp->icoHighlight = bread_8ubit (pointer, pos); if (achp->icoHighlight) achp->fHighlight = 1; /*? */ /*another possibility is... */ /* if (achp->ico) achp->fHighlight = 1; */ /* or is it something else, who knows the entire documentation on the topic consist of the if and only if (iff) line, or maybe iff is a type for if, who knows eh ? */ break; case sprmCObjLocation: achp->fcPic_fcObj_lTagObj = (S32) bread_32ubit (pointer, pos); break; case sprmCIstd: achp->istd = bread_16ubit (pointer, pos); break; case sprmCIstdPermute: wvApplysprmCIstdPermute (achp, pointer, pos); /*unfinished */ break; case sprmCDefault: wvApplysprmCDefault (achp, pointer, pos); break; case sprmCPlain: wvApplysprmCPlain (achp, stsh); break; case sprmCFBold: toggle = bread_8ubit (pointer, pos); wvTrace (("toggle here is %d, istd is %d\n", toggle, achp->istd)); wvTOGGLE (achp->fBold, achp, stsh, toggle, fBold) break; case sprmCFItalic: toggle = bread_8ubit (pointer, pos); wvTrace (("Italic is %d, sprm val is %d\n", achp->fItalic, toggle)); wvTOGGLE (achp->fItalic, achp, stsh, toggle, fItalic) wvTrace (("Italic is now %d\n", achp->fItalic)); break; case sprmCFStrike: toggle = bread_8ubit (pointer, pos); wvTOGGLE (achp->fStrike, achp, stsh, toggle, fStrike) break; case sprmCFOutline: toggle = bread_8ubit (pointer, pos); wvTOGGLE (achp->fOutline, achp, stsh, toggle, fOutline) break; case sprmCFShadow: toggle = bread_8ubit (pointer, pos); wvTOGGLE (achp->fShadow, achp, stsh, toggle, fShadow) break; case sprmCFSmallCaps: toggle = bread_8ubit (pointer, pos); wvTOGGLE (achp->fSmallCaps, achp, stsh, toggle, fSmallCaps) break; case sprmCFCaps: toggle = bread_8ubit (pointer, pos); wvTOGGLE (achp->fCaps, achp, stsh, toggle, fCaps) break; case sprmCFVanish: wvTrace (("vanish modified\n")); toggle = bread_8ubit (pointer, pos); wvTOGGLE (achp->fVanish, achp, stsh, toggle, fVanish) break; case sprmCFtcDefault: toggle = bread_8ubit (pointer, pos); wvTOGGLE (achp->fBold, achp, stsh, toggle, fBold) break; case sprmCKul: achp->kul = bread_8ubit (pointer, pos); break; case sprmCSizePos: wvApplysprmCSizePos (achp, pointer, pos); break; case sprmCDxaSpace: achp->dxaSpace = (S16) bread_16ubit (pointer, pos); break; case sprmCIco: achp->ico = bread_8ubit (pointer, pos); break; case sprmCHps: /*incorrect marked as being a byte in docs ? */ achp->hps = bread_16ubit (pointer, pos); break; case sprmCHpsInc: wvApplysprmCHpsInc (achp, pointer, pos); break; case sprmCHpsPos: /*incorrect marked as being a byte in docs ? */ achp->hpsPos = bread_16ubit (pointer, pos); break; case sprmCHpsPosAdj: wvApplysprmCHpsPosAdj (achp, pointer, pos); break; case sprmCMajority: wvApplysprmCMajority (achp, stsh, pointer, pos); break; case sprmCIss: achp->iss = bread_8ubit (pointer, pos); break; case sprmCHpsNew50: bread_8ubit (pointer, pos); achp->hps = bread_16ubit (pointer, pos); break; case sprmCHpsInc1: wvApplysprmCHpsInc1 (achp, pointer, pos); break; case sprmCHpsKern: /*the spec would you have you believe that this is a U8 */ achp->hpsKern = bread_16ubit (pointer, pos); break; case sprmCMajority50: wvApplysprmCMajority50 (achp, stsh, pointer, pos); break; case sprmCHpsMul: /*percentage to grow hps ?? */ achp->hps = achp->hps * bread_16ubit (pointer, pos) / 100; break; case sprmCYsri: /* ???? achp->ysri */ bread_8ubit (pointer, pos); break; case sprmCRgFtc0: achp->ftcAscii = bread_16ubit (pointer, pos); break; case sprmCRgFtc1: achp->ftcFE = bread_16ubit (pointer, pos); break; case sprmCRgFtc2: achp->ftcOther = bread_16ubit (pointer, pos); break; case sprmCFDStrike: achp->fDStrike = bread_8ubit (pointer, pos); break; case sprmCFImprint: achp->fImprint = bread_8ubit (pointer, pos); break; case sprmCFSpec: achp->fSpec = bread_8ubit (pointer, pos); break; case sprmCFObj: achp->fObj = bread_8ubit (pointer, pos); break; case sprmCPropRMark: wvApplysprmCPropRMark (achp, pointer, pos); break; case sprmCFEmboss: achp->fEmboss = bread_8ubit (pointer, pos); break; case sprmCSfxText: achp->sfxtText = bread_8ubit (pointer, pos); break; case sprmCDispFldRMark: wvApplysprmCDispFldRMark (achp, pointer, pos); break; case sprmCIbstRMarkDel: achp->ibstRMarkDel = (S16) bread_16ubit (pointer, pos); break; case sprmCDttmRMarkDel: wvGetDTTMFromBucket (&achp->dttmRMarkDel, pointer); (*pos) += 4; break; case sprmCBrc: (*pos) += wvGetBRCFromBucket (ver, &achp->brc, pointer); break; case sprmCShd: wvGetSHDFromBucket (&achp->shd, pointer); (*pos) += 2; case sprmCIdslRMarkDel: /* achp->idslRMReasonDel ???? */ (S16) bread_16ubit (pointer, pos); break; case sprmCFUsePgsuSettings: achp->fUsePgsuSettings = bread_8ubit (pointer, pos); break; case sprmCRgLid0: achp->lidDefault = bread_16ubit (pointer, pos); break; case sprmCRgLid1: achp->lidFE = bread_16ubit (pointer, pos); break; case sprmCIdctHint: achp->idctHint = bread_8ubit (pointer, pos); break; case sprmCFFtcAsciSymb: /* not fully mentioned in spec */ achp->fFtcAsciSym = bread_8ubit (pointer, pos); break; case sprmCCpg: /* not fully mentioned in spec */ achp->cpg = bread_16ubit (pointer, pos); break; case sprmCLid: /* only used internally, never stored ( word 97 ) but exists in earlier versions so... */ achp->lid = bread_16ubit (pointer, pos); achp->lidDefault = achp->lid; achp->lidFE = achp->lid; wvTrace (("lid is %x\n", achp->lidDefault)); break; case sprmCRsidText: bread_32ubit (pointer, pos); break; /* BiDi */ case sprmCFBiDi: /* is this run BiDi */ achp->fBidi = bread_8ubit (pointer, pos); break; case sprmCFDiacColor: /* ???? */ bread_16ubit (pointer, pos); break; case sprmCFBoldBi: achp->fBoldBidi = bread_8ubit (pointer, pos); break; case sprmCFItalicBi: achp->fItalicBidi = bread_8ubit (pointer, pos); break; case sprmCFtcBi: achp->ftcBidi = bread_16ubit (pointer, pos); break; case sprmCLidBi: achp->lidBidi = bread_16ubit (pointer, pos); break; case sprmCIcoBi: achp->icoBidi = bread_8ubit (pointer, pos); break; case sprmCHpsBi: achp->hpsBidi = bread_16ubit (pointer, pos); break; /* End of CHP */ /* Begin of SEP */ case sprmScnsPgn: asep->cnsPgn = bread_8ubit (pointer, pos); break; case sprmSiHeadingPgn: asep->iHeadingPgn = bread_8ubit (pointer, pos); break; case sprmSOlstAnm: wvApplysprmSOlstAnm (ver, asep, pointer, pos); break; case sprmSDxaColWidth: case sprmSDxaColSpacing: /* well then no one has docs for these two , they're 3 long but affects (i guess by name) a 89 long array so who knows */ bread_8ubit (pointer, pos); bread_8ubit (pointer, pos); bread_8ubit (pointer, pos); break; case sprmSFEvenlySpaced: asep->fEvenlySpaced = bread_8ubit (pointer, pos); break; case sprmSFProtected: asep->fUnlocked = bread_8ubit (pointer, pos); break; case sprmSDmBinFirst: asep->dmBinFirst = bread_16ubit (pointer, pos); break; case sprmSDmBinOther: asep->dmBinFirst = bread_16ubit (pointer, pos); break; case sprmSBkc: asep->bkc = bread_8ubit (pointer, pos); break; case sprmSFTitlePage: asep->fTitlePage = bread_8ubit (pointer, pos); break; case sprmSCcolumns: asep->ccolM1 = bread_16ubit (pointer, pos); break; case sprmSDxaColumns: asep->dxaColumns = (S16) bread_16ubit (pointer, pos); break; case sprmSFAutoPgn: asep->fAutoPgn = bread_8ubit (pointer, pos); break; case sprmSNfcPgn: asep->nfcPgn = bread_8ubit (pointer, pos); break; case sprmSDyaPgn: asep->dyaPgn = (S16) bread_16ubit (pointer, pos); break; case sprmSDxaPgn: asep->dxaPgn = (S16) bread_16ubit (pointer, pos); break; case sprmSFPgnRestart: asep->fPgnRestart = bread_8ubit (pointer, pos); break; case sprmSFEndnote: asep->fEndNote = bread_8ubit (pointer, pos); break; case sprmSLnc: asep->lnc = bread_8ubit (pointer, pos); break; case sprmSGprfIhdt: asep->grpfIhdt = bread_8ubit (pointer, pos); break; case sprmSNLnnMod: asep->nLnnMod = bread_16ubit (pointer, pos); break; case sprmSDxaLnn: asep->dxaLnn = (S16) bread_16ubit (pointer, pos); break; case sprmSDyaHdrTop: asep->dyaHdrTop = bread_16ubit (pointer, pos); break; case sprmSDyaHdrBottom: asep->dyaHdrBottom = bread_16ubit (pointer, pos); break; case sprmSLBetween: asep->fLBetween = bread_8ubit (pointer, pos); break; case sprmSVjc: asep->fLBetween = bread_8ubit (pointer, pos); break; case sprmSLnnMin: asep->lnnMin = (S16) bread_16ubit (pointer, pos); break; case sprmSPgnStart: asep->pgnStart = bread_16ubit (pointer, pos); break; case sprmSBOrientation: asep->dmOrientPage = bread_8ubit (pointer, pos); break; case sprmSBCustomize: /*noone knows what this is */ bread_8ubit (pointer, pos); break; case sprmSXaPage: asep->xaPage = bread_16ubit (pointer, pos); break; case sprmSYaPage: asep->yaPage = bread_16ubit (pointer, pos); break; case sprmSDxaLeft: asep->dxaLeft = bread_16ubit (pointer, pos); break; case sprmSDxaRight: asep->dxaRight = bread_16ubit (pointer, pos); break; case sprmSDyaTop: asep->dyaTop = (S16) bread_16ubit (pointer, pos); break; case sprmSDyaBottom: asep->dyaBottom = (S16) bread_16ubit (pointer, pos); break; case sprmSDzaGutter: asep->dzaGutter = bread_16ubit (pointer, pos); break; case sprmSDmPaperReq: asep->dmPaperReq = bread_16ubit (pointer, pos); break; case sprmSPropRMark: wvApplysprmSPropRMark (asep, pointer, pos); break; case sprmSFBiDi: asep->fBidi = bread_8ubit (pointer, pos); break; case sprmSFFacingCol: /* ?????? , what the hell are these two */ case sprmSFRTLGutter: bread_8ubit (pointer, pos); break; case sprmSBrcTop: (*pos) += wvGetBRCFromBucket (ver, &asep->brcTop, pointer); break; case sprmSBrcLeft: (*pos) += wvGetBRCFromBucket (ver, &asep->brcLeft, pointer); break; case sprmSBrcBottom: (*pos) += wvGetBRCFromBucket (ver, &asep->brcBottom, pointer); break; case sprmSBrcRight: (*pos) += wvGetBRCFromBucket (ver, &asep->brcRight, pointer); break; case sprmSPgbProp: asep->pgbProp = (S16) bread_16ubit (pointer, pos); break; case sprmSDxtCharSpace: asep->dxtCharSpace = (S32) bread_32ubit (pointer, pos); break; case sprmSDyaLinePitch: /* incorrectly documented; is only word size */ asep->dyaLinePitch = (S32) bread_16ubit (pointer, pos); break; case sprmSClm: /* who knows */ bread_16ubit (pointer, pos); break; case sprmSTextFlow: asep->wTextFlow = (S16) bread_16ubit (pointer, pos); break; /* End of SEP */ /* Begin of TAP */ case sprmTJc: apap->ptap.jc = (S16) bread_16ubit (pointer, pos); break; case sprmTFCantSplit: apap->ptap.fCantSplit = bread_8ubit (pointer, pos); break; case sprmTTableHeader: apap->ptap.fTableHeader = bread_8ubit (pointer, pos); break; case sprmTDyaRowHeight: /* check len */ asep->dyaLinePitch = (S16) bread_16ubit (pointer, pos); break; case sprmTDiagLine: /* ????? */ wvError (("huh, show me this document\n")); break; case sprmTHTMLProps: /* ???? */ apap->ptap.lwHTMLProps = (S32) bread_32ubit (pointer, pos); break; case sprmTDxaLeft: wvApplysprmTDxaLeft (&apap->ptap, pointer, pos); break; case sprmTDxaGapHalf: wvApplysprmTDxaGapHalf (&apap->ptap, pointer, pos); break; case sprmTTableBorders: wvApplysprmTTableBorders (ver, &apap->ptap, pointer, pos); break; case sprmTDefTable10: wvApplysprmTDefTable10 (&apap->ptap, pointer, pos); break; case sprmTDefTable: wvApplysprmTDefTable (&apap->ptap, pointer, pos); break; case sprmTDefTableShd: /* wvApplysprmTDefTableShd follows the written spec, but it isnt't working out for me, maybe its my own fault, anyhow Im trying wv2 out temporarily */ wv2ApplysprmTDefTableShd (&apap->ptap, pointer, pos); /* wvApplysprmTDefTableShd(&apap->ptap,pointer,pos); */ break; case sprmTTlp: wvGetTLPFromBucket (&(apap->ptap.tlp), pointer); (*pos) += cbTLP; break; case sprmTSetBrc: wvApplysprmTSetBrc (ver, &apap->ptap, pointer, pos); break; case sprmTInsert: wvApplysprmTInsert (&apap->ptap, pointer, pos); break; case sprmTDelete: wvApplysprmTDelete (&apap->ptap, pointer, pos); break; case sprmTDxaCol: wvApplysprmTDxaCol (&apap->ptap, pointer, pos); break; case sprmTMerge: wvApplysprmTMerge (&apap->ptap, pointer, pos); break; case sprmTSplit: wvApplysprmTSplit (&apap->ptap, pointer, pos); break; case sprmTSetBrc10: wvApplysprmTSetBrc10 (&apap->ptap, pointer, pos); break; case sprmTSetShd: wvApplysprmTSetShd (&apap->ptap, pointer, pos); break; case sprmTSetShdOdd: wvApplysprmTSetShdOdd (&apap->ptap, pointer, pos); break; case sprmTTextFlow: wvError (("huh, show me this document\n")); wvApplysprmTTextFlow (&apap->ptap, pointer, pos); break; case sprmTVertMerge: wvApplysprmTVertMerge (&apap->ptap, pointer, pos); break; case sprmTFBiDi: /* ????? */ bread_16ubit (pointer, pos); break; case sprmTUNKNOWN1: /* read wv.h and word 6 sprm 204 further down in this file to understand this */ bread_8ubit (pointer, pos); bread_16ubit (pointer, pos); break; case sprmTVertAlign: wvApplysprmTVertAlign (&apap->ptap, pointer, pos); break; /* end of TAP */ /* case sprmPicBrcl */ case sprmPRuler: /* ???? */ case sprmCIdCharType: /* obsolete */ case sprmCKcd: /* ???? */ case sprmCCharScale: /* ???? */ case sprmNoop: /* no operand */ break; default: wvTrace(("unknown sprm: %d\n", sprm)); wvEatSprm (sprm, pointer, pos); break; } wvGetSprmFromU16 (&RetSprm, sprm); return (RetSprm); } void wvApplysprmPIstdPermute (PAP * apap, U8 * pointer, U16 * pos) { U8 cch; U8 fLongg; U8 fSpare; U16 istdFirst; U16 istdLast; U16 *rgistd; U16 i; cch = dread_8ubit (NULL, &pointer); (*pos)++; fLongg = dread_8ubit (NULL, &pointer); (*pos)++; fSpare = dread_8ubit (NULL, &pointer); (*pos)++; istdFirst = dread_16ubit (NULL, &pointer); (*pos) += 2; istdLast = dread_16ubit (NULL, &pointer); (*pos) += 2; if ( cch > 6) { rgistd = (U16 *) wvMalloc (sizeof (U16) * ((cch - 6) / 2)); if (rgistd == NULL) { wvError ( ("Could not allocate %d\n", sizeof (U16) * ((cch - 6) / 2))); return; } for (i = 0; i < (cch - 6) / 2; i++) { rgistd[i] = dread_16ubit (NULL, &pointer); (*pos) += 2; } } else return; /* First check if pap.istd is greater than the istdFirst recorded in the sprm and less than or equal to the istdLast recorded in the sprm If not, the sprm has no effect. If it is, pap.istd is set to rgistd[pap.istd - istdFirst] */ if ((apap->istd > istdFirst) && (apap->istd <= istdLast)) { wvTrace (("%d %d %d\n", apap->istd, istdFirst, istdLast)); apap->istd = rgistd[apap->istd - istdFirst]; } wvFree (rgistd); } void wvApplysprmPIncLvl (PAP * apap, U8 * pointer, U16 * pos) { U8 temp8; S8 tempS8; temp8 = bread_8ubit (pointer, pos); /* If pap.stc is < 1 or > 9, sprmPIncLvl has no effect. Otherwise, if the value stored in the byte has its highest order bit off, the value is a positive difference which should be added to pap.istd and pap.lvl and then pap.stc should be set to min(pap.istd, 9). If the byte value has its highest order bit on, the value is a negative difference which should be sign extended to a word and then subtracted from pap.istd and pap.lvl. Then pap.stc should be set to max(1, pap.istd). Now... hang on a sec coz Note that the storage and behavior of styles has changed radically since Word 2 for Windows, beginning with nFib 63. Some of the differences are: <chomp> * The style code is called an istd, rather than an stc. So, for the purposes of this filter, we ignore the stc component of the instructions */ if ((apap->istd < 1) || (apap->istd > 9)) return; if ((temp8 & 0x80) >> 7 == 0) { apap->istd += temp8; apap->lvl += temp8; /* apap->stc = min(apap->istd, 9); */ } else { tempS8 = (S8) temp8; apap->istd += tempS8; apap->lvl += tempS8; /* apap->stc = max(1, apap->istd); */ } } void wvApplysprmPChgTabsPapx (PAP * apap, U8 * pointer, U16 * pos) { S16 temp_rgdxaTab[itbdMax]; TBD temp_rgtbd[itbdMax]; int i, j, k = 0, oldpos; U8 cch, itbdDelMax; S16 *rgdxaDel; U8 itbdAddMax; S16 *rgdxaAdd; int add = 0; TBD *rgtbdAdd; oldpos = *pos; cch = dread_8ubit (NULL, &pointer); (*pos)++; itbdDelMax = dread_8ubit (NULL, &pointer); (*pos)++; if (itbdDelMax != 0) { rgdxaDel = (S16 *) wvMalloc (sizeof (U16) * itbdDelMax); for (i = 0; i < itbdDelMax; i++) { rgdxaDel[i] = (S16) dread_16ubit (NULL, &pointer); (*pos) += 2; } } else rgdxaDel = NULL; itbdAddMax = dread_8ubit (NULL, &pointer); wvTrace (("itbdAddMax is %d\n", itbdAddMax)); (*pos)++; if (itbdAddMax != 0) { rgdxaAdd = (S16 *) wvMalloc (sizeof (U16) * itbdAddMax); for (i = 0; i < itbdAddMax; i++) { rgdxaAdd[i] = (S16) dread_16ubit (NULL, &pointer); wvTrace (("stops are %d\n", rgdxaAdd[i])); (*pos) += 2; } rgtbdAdd = (TBD *) wvMalloc (itbdAddMax * sizeof (TBD)); for (i = 0; i < itbdAddMax; i++) { wvGetTBDFromBucket (&rgtbdAdd[i], pointer); (*pos)++; } } else { rgdxaAdd = NULL; rgtbdAdd = NULL; } #ifdef DEBUG if (*pos - oldpos != cch + 1) wvTrace (("Offset Problem in wvApplysprmPChgTabsPapx\n")); #endif /* When sprmPChgTabsPapx is interpreted, the rgdxaDel of the sprm is applied first to the pap that is being transformed. This is done by deleting from the pap the rgdxaTab entry and rgtbd entry of any tab whose rgdxaTab value is equal to one of the rgdxaDel values in the sprm. It is guaranteed that the entries in pap.rgdxaTab and the sprm's rgdxaDel and rgdxaAdd are recorded in ascending dxa order. Then the rgdxaAdd and rgtbdAdd entries are merged into the pap's rgdxaTab and rgtbd arrays so that the resulting pap rgdxaTab is sorted in ascending order with no duplicates. */ for (j = 0; j < apap->itbdMac && k < itbdMax; j++) { add = 1; for (i = 0; i < itbdDelMax; i++) { if (rgdxaDel[i] == apap->rgdxaTab[j]) { add = 0; break; } } if (add) { temp_rgdxaTab[k] = apap->rgdxaTab[j]; wvCopyTBD (&temp_rgtbd[k++], &apap->rgtbd[j]); } } /*temp_rgdxaTab now contains all the tab stops to be retained after the delete */ apap->itbdMac = k; k = 0; j = 0; i = 0; while ((j < apap->itbdMac) || (i < itbdAddMax)) { #if 0 wvTrace (("i %d j apap->itbdMac %d %d\n", i, j, apap->itbdMac)); wvTrace (("temp_rgdxaTab[j] %d\n", temp_rgdxaTab[j])); wvTrace (("rgdxaAdd[i] %d\n", rgdxaAdd[i])); #endif if ((j < apap->itbdMac) && (i >= itbdAddMax || temp_rgdxaTab[j] < rgdxaAdd[i])) { /* if we have one from the retained group that should be added */ apap->rgdxaTab[k] = temp_rgdxaTab[j]; wvCopyTBD (&apap->rgtbd[k++], &temp_rgtbd[j++]); } else if ((j < apap->itbdMac) && (temp_rgdxaTab[j] == rgdxaAdd[i])) { /* if we have one from the retained group that should be added which is the same as one from the new group */ apap->rgdxaTab[k] = rgdxaAdd[i]; wvCopyTBD (&apap->rgtbd[k++], &rgtbdAdd[i++]); j++; } else /*if (i < itbdAddMax) */ { /* if we have one from the new group to be added */ apap->rgdxaTab[k] = rgdxaAdd[i]; wvCopyTBD (&apap->rgtbd[k++], &rgtbdAdd[i++]); } } wvTrace (("k is %d\n", k)); apap->itbdMac = k; for (i = 0; i < apap->itbdMac; i++) { wvTrace ( ("tab %d rgdxa %d %x\n", i, apap->rgdxaTab[i], apap->rgdxaTab[i])); } wvFree (rgtbdAdd); wvFree (rgdxaAdd); wvFree (rgdxaDel); } int wvApplysprmPChgTabs (PAP * apap, U8 * pointer, U16 * pos) { S16 temp_rgdxaTab[itbdMax]; TBD temp_rgtbd[itbdMax]; U8 cch; U8 itbdDelMax; S16 *rgdxaDel; S16 *rgdxaClose; U8 itbdAddMax; S16 *rgdxaAdd; TBD *rgtbdAdd; int add = 0; U8 i, j, k = 0; wvTrace (("entering wvApplysprmPChgTabs\n")); /* itbdDelMax and itbdAddMax are defined to be equal to 50. This means that the largest possible instance of sprmPChgTabs is 354. When the length of the sprm is greater than or equal to 255, the cch field will be set equal to 255. When cch == 255, the actual length of the sprm can be calculated as follows: length = 2 + itbdDelMax * 4 + itbdAddMax * 3. */ cch = dread_8ubit (NULL, &pointer); wvTrace (("cch is %d\n", cch)); (*pos)++; itbdDelMax = dread_8ubit (NULL, &pointer); (*pos)++; wvTrace (("itbdDelMax is %d\n", itbdDelMax)); if (itbdDelMax != 0) { rgdxaDel = (S16 *) wvMalloc (sizeof (S16) * itbdDelMax); rgdxaClose = (S16 *) wvMalloc (sizeof (S16) * itbdDelMax); for (i = 0; i < itbdDelMax; i++) { rgdxaDel[i] = (S16) dread_16ubit (NULL, &pointer); (*pos) += 2; } for (i = 0; i < itbdDelMax; i++) { rgdxaClose[i] = dread_16ubit (NULL, &pointer); (*pos) += 2; } } else { rgdxaDel = NULL; rgdxaClose = NULL; } itbdAddMax = dread_8ubit (NULL, &pointer); wvTrace (("itbdAddMax is %d\n", itbdAddMax)); (*pos)++; if (itbdAddMax != 0) { rgdxaAdd = (S16 *) wvMalloc (sizeof (S16) * itbdAddMax); rgtbdAdd = (TBD *) wvMalloc (itbdAddMax * sizeof (TBD)); for (i = 0; i < itbdAddMax; i++) { rgdxaAdd[i] = (S16) dread_16ubit (NULL, &pointer); wvTrace (("rgdxaAdd %d is %x\n", i, rgdxaAdd[i])); (*pos) += 2; } for (i = 0; i < itbdAddMax; i++) { wvGetTBDFromBucket (&rgtbdAdd[i], pointer); (*pos)++; } } else { rgdxaAdd = NULL; rgtbdAdd = NULL; } if (cch == 225) cch = 2 + itbdDelMax * 4 + itbdAddMax * 3; /* When sprmPChgTabs is interpreted, the rgdxaDel of the sprm is applied first to the pap that is being transformed. This is done by deleting from the pap the rgdxaTab entry and rgtbd entry of any tab whose rgdxaTab value is within the interval [rgdxaDel[i] - rgdxaClose[i], rgdxaDel[i] + rgdxaClose[i]] It is guaranteed that the entries in pap.rgdxaTab and the sprm's rgdxaDel and rgdxaAdd are recorded in ascending dxa order. Then the rgdxaAdd and rgtbdAdd entries are merged into the pap's rgdxaTab and rgtbd arrays so that the resulting pap rgdxaTab is sorted in ascending order with no duplicates. */ if (apap == NULL) { wvFree (rgdxaDel); wvFree (rgtbdAdd); wvFree (rgdxaAdd); wvFree (rgdxaClose); return (cch); } wvTrace (("here %d\n", apap->itbdMac)); for (j = 0; j < apap->itbdMac && k < itbdMax; j++) { add = 1; for (i = 0; i < itbdDelMax; i++) { wvTrace ( ("examing %x against %x\n", apap->rgdxaTab[j], rgdxaDel[i])); if ((apap->rgdxaTab[j] >= rgdxaDel[i] - rgdxaClose[i]) && (apap->rgdxaTab[j] <= rgdxaDel[i] + rgdxaClose[i])) { wvTrace (("deleting\n")); add = 0; break; } } if (add) { temp_rgdxaTab[k] = apap->rgdxaTab[j]; wvCopyTBD (&temp_rgtbd[k++], &apap->rgtbd[j]); } } apap->itbdMac = k; wvTrace (("here %d\n", apap->itbdMac)); k = 0; j = 0; i = 0; while ((j < apap->itbdMac) || (i < itbdAddMax)) { if ((j < apap->itbdMac) && (i >= itbdAddMax || temp_rgdxaTab[j] < rgdxaAdd[i])) { wvTrace (("adding from nondeleted tab stops\n")); apap->rgdxaTab[k] = temp_rgdxaTab[j]; wvCopyTBD (&apap->rgtbd[k++], &temp_rgtbd[j++]); } else if ((j < apap->itbdMac) && (temp_rgdxaTab[j] == rgdxaAdd[i])) { wvTrace (("adding from new tab stops\n")); apap->rgdxaTab[k] = rgdxaAdd[i]; wvCopyTBD (&apap->rgtbd[k++], &rgtbdAdd[i++]); j++; } else /*if (i < itbdAddMax) */ { wvTrace (("adding from new tab stops\n")); apap->rgdxaTab[k] = rgdxaAdd[i]; wvCopyTBD (&apap->rgtbd[k++], &rgtbdAdd[i++]); } } apap->itbdMac = k; wvTrace (("here %d\n", apap->itbdMac)); for (i = 0; i < apap->itbdMac; i++) { wvTrace ( ("tab %d rgdxa %d %x\n", i, apap->rgdxaTab[i], apap->rgdxaTab[i])); } wvFree (rgdxaDel); wvFree (rgtbdAdd); wvFree (rgdxaAdd); wvFree (rgdxaClose); wvTrace (("Exiting Successfully\n")); return (cch); } void wvApplysprmPPc (PAP * apap, U8 * pointer, U16 * pos) { U8 temp8; struct _temp { U32 reserved:4; U32 pcVert:2; U32 pcHorz:2; } temp; temp8 = bread_8ubit (pointer, pos); #ifdef PURIFY temp.pcVert = 0; temp.pcHorz = 0; #endif temp.pcVert = (temp8 & 0x0C) >> 4; temp.pcHorz = (temp8 & 0x03) >> 6; /* sprmPPc is interpreted by moving pcVert to pap.pcVert if pcVert != 3 and by moving pcHorz to pap.pcHorz if pcHorz != 3. */ if (temp.pcVert != 3) apap->pcVert = temp.pcVert; if (temp.pcHorz != 3) apap->pcHorz = temp.pcHorz; } void wvApplysprmPFrameTextFlow (PAP * apap, U8 * pointer, U16 * pos) { U16 temp16 = bread_16ubit (pointer, pos); apap->fVertical = temp16 & 0x0001; apap->fBackward = (temp16 & 0x0002) >> 1; apap->fRotateFont = (temp16 & 0x0004) >> 2; } void wvApplysprmPAnld (wvVersion ver, PAP * apap, U8 * pointer, U16 * pos) { dread_8ubit (NULL, &pointer); (*pos)++; wvGetANLD_FromBucket (ver, &apap->anld, pointer); if (ver == WORD8) (*pos) += cbANLD; else (*pos) += cb6ANLD; } void wvApplysprmPPropRMark (PAP * apap, U8 * pointer, U16 * pos) { dread_8ubit (NULL, &pointer); /* sprmPPropRMark is interpreted by moving the first parameter byte to pap.fPropRMark, the next two bytes to pap.ibstPropRMark, and the remaining four bytes to pap.dttmPropRMark. */ apap->fPropRMark = dread_8ubit (NULL, &pointer); (*pos)++; apap->ibstPropRMark = dread_16ubit (NULL, &pointer); (*pos) += 2; wvGetDTTMFromBucket (&apap->dttmPropRMark, pointer); (*pos) += 4; } void wvApplysprmPNumRM (PAP * apap, U8 * pointer, U16 * pos) { dread_8ubit (NULL, &pointer); (*pos)++; wvGetNUMRMFromBucket (&apap->numrm, pointer); (*pos) += cbNUMRM; } void wvApplysprmPHugePapx (PAP * apap, U8 * pointer, U16 * pos, wvStream * data, STSH * stsh) { U32 offset; U16 len, i, sprm; U8 *grpprl, *pointer2; /* sprmPHugePapx is stored in PAPX FKPs in place of the grpprl of a PAPX which would otherwise be too big to fit in an FKP (as of this writing, 488 bytes is the size of the largest PAPX which can fit in an FKP). The parameter fc gives the location of the grpprl in the data stream. The first word at that fc counts the number of bytes in the grpprl (not including the byte count itself). A sprmPHugePapx should therefore only be found in a PAPX FKP and should be the only sprm in that PAPX's grpprl. */ offset = dread_32ubit (NULL, &pointer); (*pos) += 4; wvTrace (("Offset is %x in data stream\n", offset)); if (!(data)) { wvError (("No data stream!!\n")); return; } if (0 > wvStream_goto (data, offset)) { wvError (("Couldn't seek data stream!!\n")); apap->fTtp++; return; } len = read_16ubit (data); if (!len) { wvWarning ("sprmPHugePapx len is 0, seems unlikely\n"); return; } grpprl = (U8 *) wvMalloc (len); for (i = 0; i < len; i++) grpprl[i] = read_8ubit (data); i = 0; while (i < len - 2) { sprm = bread_16ubit (grpprl + i, &i); #ifdef SPRMTEST wvError (("sprm is %x\n", sprm)); #endif pointer2 = grpprl + i; if (i < len) wvApplySprmFromBucket (WORD8, sprm, apap, NULL, NULL, stsh, pointer2, &i, data); } wvFree (grpprl); } void wvApplysprmCChs (CHP * achp, U8 * pointer, U16 * pos) { /* When this sprm is interpreted, the first byte of the operand is moved to chp.fChsDiff and the remaining word is moved to chp.chse. */ achp->fChsDiff = dread_8ubit (NULL, &pointer); (*pos)++; /*achp->chse ???? */ /* the doc says to set this, but it doesnt exist anywhere else in the docs */ dread_16ubit (NULL, &pointer); (*pos) += 2; } void wvApplysprmCSymbol (wvVersion ver, CHP * achp, U8 * pointer, U16 * pos) { if (ver == WORD8) { /* Word 8 This sprm's operand is 4 bytes. The first 2 hold the font code; the last 2 hold a character specifier. When this sprm is interpreted, the font code is moved to chp.ftcSym and the character specifier is moved to chp.xchSym and chp.fSpec is set to 1. */ achp->ftcSym = dread_16ubit (NULL, &pointer); (*pos) += 2; achp->xchSym = dread_16ubit (NULL, &pointer); (*pos) += 2; wvTrace (("%d %d\n", achp->ftcSym, achp->xchSym)); } else { /* Word 6 and 7 The length byte recorded at offset 1 in this sprm will always be 3. When this sprm is interpreted the two byte font code recorded at offset 2 is moved to chp.ftcSym, the single byte character specifier recorded at offset 4 is moved to chp.chSym and chp.fSpec is set to 1. */ dread_8ubit (NULL, &pointer); (*pos)++; achp->ftcSym = dread_16ubit (NULL, &pointer); (*pos) += 2; achp->xchSym = dread_8ubit (NULL, &pointer); achp->xchSym += 61440; /* promote this char into a unicode char to be consistent with what word 8 does */ (*pos)++; } achp->fSpec = 1; } void wvApplysprmCIstdPermute (CHP * achp, U8 * pointer, U16 * pos) { U8 cch; U8 fLongg; U8 fSpare; U16 istdFirst; U16 istdLast; U16 *rgistd; U16 i; cch = dread_8ubit (NULL, &pointer); (*pos)++; fLongg = dread_8ubit (NULL, &pointer); (*pos)++; fSpare = dread_8ubit (NULL, &pointer); (*pos)++; istdFirst = dread_16ubit (NULL, &pointer); (*pos) += 2; istdLast = dread_16ubit (NULL, &pointer); (*pos) += 2; if (cch > 6) { rgistd = (U16 *) wvMalloc (sizeof (U16) * ((cch - 6) / 2)); for (i = 0; i < (cch - 6) / 2; i++) { rgistd[i] = dread_16ubit (NULL, &pointer); (*pos) += 2; } } else rgistd = NULL; /* first check if chp.istd is greater than the istdFirst recorded in the sprm and less than or equal to the istdLast recorded in the sprm If not, the sprm has no effect. If it is, chp.istd is set to rgstd[chp.istd - istdFirst] and any chpx stored in that rgstd entry is applied to the chp. Note that it is possible that an istd may be recorded in the rgistd that refers to a paragraph style. This will no harmful consequences since the istd for a paragraph style should never be recorded in chp.istd. */ if ((achp->istd > istdFirst) && (achp->istd <= istdLast)) { achp->istd = rgistd[achp->istd - istdFirst]; /* if really a chp style wvAddCHPXFromUPEBucket(achp,&(stsh->std[achp->istd].grupe[0].chpx),stsh); else complain; */ } wvFree (rgistd); } void wvApplysprmCDefault (CHP * achp, U8 * pointer, U16 * pos) { /* sprmCDefault (opcode 0x2A32) clears the fBold, fItalic, fOutline, fStrike, fShadow, fSmallCaps, fCaps, fVanish, kul and ico fields of the chp to 0. It was first defined for Word 3.01 and had to be backward compatible with Word 3.00 so it is a variable length sprm whose count of bytes is 0. It consists of the sprmCDefault opcode followed by a byte of 0. */ dread_8ubit (NULL, &pointer); (*pos)++; achp->fBold = 0; achp->fItalic = 0; achp->fOutline = 0; achp->fStrike = 0; achp->fShadow = 0; achp->fSmallCaps = 0; achp->fCaps = 0; achp->fVanish = 0; achp->kul = 0; achp->ico = 0; } void wvApplysprmCPlain (CHP * achp, STSH * stsh) { U8 fSpec; /* the style sheet CHP is copied over the original CHP preserving the fSpec setting from the original CHP. */ fSpec = achp->fSpec; wvInitCHPFromIstd (achp, achp->istd, stsh); achp->fSpec = fSpec; } U8 wvToggle (U8 in, U8 toggle) { /* When the parameter of the sprm is set to 0 or 1, then the CHP property is set to the parameter value. */ if ((toggle == 0) || (toggle == 1)) return (toggle); /* When the parameter of the sprm is 128, then the CHP property is set to the value that is stored for the property in the style sheet. CHP When the parameter of the sprm is 129, the CHP property is set to the negation of the value that is stored for the property in the style sheet CHP. */ /* an argument might be made that instead of in being returned or negated that it should be the looked up in the original chp through the istd that should be used, in which case this should be a macro that does the right thing. but im uncertain as to which is the correct one to do, ideas on a postcard to... etc etc */ if (toggle == 128) return (in); else if (toggle == 129) return (!in); wvWarning ("Strangle sprm toggle value, ignoring\n"); return (in); } void wvApplysprmCSizePos (CHP * achp, U8 * pointer, U16 * pos) { U8 prevhpsPos; U16 temp8; struct _temp { U32 hpsSize:8; U32 cInc:7; U32 fAdjust:1; U32 hpsPos:8; } temp; temp.hpsSize = dread_8ubit (NULL, &pointer); (*pos)++; temp8 = dread_8ubit (NULL, &pointer); (*pos)++; temp.cInc = (temp8 & 0x7f) >> 8; temp.fAdjust = (temp8 & 0x80) >> 7; temp.hpsPos = dread_8ubit (NULL, &pointer); (*pos)++; /* if hpsSize != 0 then chp.hps is set to hpsSize. If cInc is != 0, the cInc is interpreted as a 7 bit twos complement number and the procedure described below for interpreting sprmCHpsInc is followed to increase or decrease the chp.hps by the specified number of levels. If hpsPos is != 128, then chp.hpsPos is set equal to hpsPos. If fAdjust is on , hpsPos != 128 and hpsPos != 0 and the previous value of chp.hpsPos == 0, then chp.hps is reduced by one level following the method described for sprmCHpsInc. If fAdjust is on, hpsPos == 0 and the previous value of chp.hpsPos != 0, then the chp.hps value is increased by one level using the method described below for sprmCHpsInc. */ if (temp.hpsSize != 0) achp->hps = temp.hpsSize; if (temp.cInc != 0) { } prevhpsPos = achp->hpsPos; if (temp.hpsPos != 128) achp->hpsPos = temp.hpsPos; #if 0 /*else ? who knows ? */ if ((temp.fAdjust) && (temp.hpsPos != 128) && (temp.hpsPos != 0) && (achp->hpsPos == 0)) /*reduce level */ ; if ((temp.fAdjust) && (temp.hpsPos == 0) && (achp->hpsPos != 0)) /*increase level */ ; #endif /* This depends on an implementation of sprmCHpsInc, read wvApplysprmCHpsInc for some comments on the whole matter */ wvError ( ("This document has an unsupported sprm (sprmCSizePos), please mail ")); wvError ( ("Caolan.McNamara@ul.ie with this document, as i haven't been able to ")); wvError (("get any examples of it so as to figure out how to handle it\n")); } void wvApplysprmCHpsInc (CHP * achp, U8 * pointer, U16 * pos) { U8 param; /* sprmCHpsInc(opcode 0x2A44) is a three-byte sprm consisting of the sprm opcode and a one-byte parameter. Word keeps an ordered array of the font sizes that are defined for the fonts recorded in the system file with each font size transformed into an hps. The parameter is a one-byte twos complement number. Word uses this number to calculate an index in the font size array to determine the new hps for a run. When Word interprets this sprm and the parameter is positive, it searches the array of font sizes to find the index of the smallest entry in the font size table that is greater than the current chp.hps.It then adds the parameter minus 1 to the index and maxes this with the index of the last array entry. It uses the result as an index into the font size array and assigns that entry of the array to chp.hps. When the parameter is negative, Word searches the array of font sizes to find the index of the entry that is less than or equal to the current chp.hps. It then adds the negative parameter to the index and does a min of the result with 0. The result of the min function is used as an index into the font size array and that entry of the array is assigned to chp.hps. sprmCHpsInc is stored only in grpprls linked to piece table entries. */ wvError ( ("This document has an unsupported sprm (sprmCHpsInc), please mail")); wvError ( ("Caolan.McNamara@ul.ie with this document, as i haven't been able to ")); wvError (("get any examples of it so as to figure out how to handle it\n")); param = dread_8ubit (NULL, &pointer); /* Now for christ sake !!, how on earth would i have an "ordered array of the font sizes that are defined for the fonts recorded in the system file", that sounds to me that i would have to have access to the fonts on the actual machine that word was last run on !, it sounds to me that this sprm might only be used during the editing of a file, so im going to have to ignore it because it complete goobledegook to me */ } void wvApplysprmCHpsPosAdj (CHP * achp, U8 * pointer, U16 * pos) { U8 param; /* sprmCHpsPosAdj (opcode 0x2A46) causes the hps of a run to be reduced the first time text is superscripted or subscripted and causes the hps of a run to be increased when superscripting/subscripting is removed from a run. The one byte parameter of this sprm is the new hpsPos value that is to be stored in chp.hpsPos. If the new hpsPos is not equal 0 (meaning that the text is to be super/ subscripted), Word first examines the current value of chp.hpsPos to see if it is equal to 0. If so, Word uses the algorithm described for sprmCHpsInc to decrease chp.hps by one level. If the new hpsPos == 0 (meaning the text is not super/subscripted), Word examines the current chp.hpsPos to see if it is not equal to 0. If it is not (which means text is being restored to normal position), Word uses the sprmCHpsInc algorithm to increase chp.hps by one level. After chp.hps is adjusted, the parameter value is stored in chp.hpsPos. */ wvError ( ("This document has an partially unsupported sprm (sprmCHpsPosAdj), please mail ")); wvError ( ("Caolan.McNamara@ul.ie with this document, as i haven't been able to ")); wvError (("get any examples of it so as to figure out how to handle it\n")); param = dread_8ubit (NULL, &pointer); (*pos)++; /* please see wvApplysprmCHpsInc for why this is unfinished */ #if 0 if ((param != 0) && (achp->hpsPos == 0)) /*decrease chp.hps */ ; else if ((param == 0) && (achp->hpsPos != 0)) /*increase chp.hps */ ; #endif achp->hpsPos = param; } void wvApplysprmCMajority (CHP * achp, STSH * stsh, U8 * pointer, U16 * pos) { U16 i; CHP base; CHP orig; UPXF upxf; /* Bytes 0 and 1 of sprmCMajority contains the opcode, byte 2 contains the length of the following list of character sprms. . Word begins interpretation of this sprm by applying the stored character sprm list to a standard chp. That chp has chp.istd = istdNormalChar. chp.hps=20, chp.lid=0x0400 and chp.ftc = 4. Word then compares fBold, fItalic, fStrike, fOutline, fShadow, fSmallCaps, fCaps, ftc, hps, hpsPos, kul, qpsSpace and ico in the original CHP with the values recorded for these fields in the generated CHP.. If a field in the original CHP has the same value as the field stored in the generated CHP, then that field is reset to the value stored in the style's CHP. If the two copies differ, then the original CHP value is left unchanged. */ wvTrace ( ("This document has a sprm (sprmCMajority), that ive never seen in practice please mail ")); wvTrace ( ("Caolan.McNamara@ul.ie with this document, as i haven't been able to ")); wvTrace ( ("get any examples of it so as to figure out if its handled correctly\n")); wvInitCHP (&base); base.ftc = 4; /*generate a UPE and run wvAddCHPXFromBucket */ upxf.cbUPX = dread_8ubit (NULL, &pointer); (*pos)++; upxf.upx.chpx.grpprl = (U8 *) wvMalloc (upxf.cbUPX); for (i = 0; i < upxf.cbUPX; i++) { upxf.upx.chpx.grpprl[i] = dread_8ubit (NULL, &pointer); (*pos)++; } wvTrace (("achp istd is %d\n", achp->istd)); wvAddCHPXFromBucket (&base, &upxf, stsh); wvTrace (("achp istd is %d\n", achp->istd)); wvTrace (("my underline started as %d\n", achp->kul)); wvInitCHPFromIstd (&orig, achp->istd, stsh); /* this might be a little wrong, review after doing dedicated CHP's */ if (achp->fBold == base.fBold) achp->fBold = orig.fBold; if (achp->fItalic == base.fItalic) achp->fItalic = orig.fItalic; if (achp->fStrike == base.fStrike) achp->fStrike = orig.fStrike; if (achp->fOutline == base.fOutline) achp->fOutline = orig.fOutline; if (achp->fShadow == base.fShadow) achp->fShadow = orig.fShadow; if (achp->fSmallCaps == base.fSmallCaps) achp->fSmallCaps = orig.fSmallCaps; if (achp->fCaps == base.fCaps) achp->fCaps = orig.fCaps; if (achp->ftc == base.ftc) achp->ftc = orig.ftc; if (achp->hps == base.hps) achp->hps = orig.hps; if (achp->hpsPos == base.hpsPos) achp->hpsPos = orig.hpsPos; if (achp->kul == base.kul) achp->kul = orig.kul; /* ???? if (achp->qpsSpace == base.qpsSpace) achp->qpsSpace = orig.qpsSpace; */ if (achp->ico == base.ico) achp->ico = orig.ico; /* these ones are mentioned in a different part of the spec, that doesnt have as much weight as the above, but i'm going to add them anyway */ if (achp->fVanish == base.fVanish) achp->fVanish = orig.fVanish; wvTrace (("%d\n", base.dxaSpace)); wvTrace (("%d\n", achp->dxaSpace)); if (achp->dxaSpace == base.dxaSpace) achp->dxaSpace = orig.dxaSpace; if (achp->lidDefault == base.lidDefault) achp->lidDefault = orig.lidDefault; if (achp->lidFE == base.lidFE) achp->lidFE = orig.lidFE; wvFree (upxf.upx.chpx.grpprl); wvTrace (("my underline ended as %d\n", achp->kul)); } void wvApplysprmCHpsInc1 (CHP * achp, U8 * pointer, U16 * pos) { /* This sprm is interpreted by adding the two byte increment stored as the opcode of the sprm to chp.hps. If this result is less than 8, the chp.hps is set to 8. If the result is greater than 32766, the chp.hps is set to 32766. */ dread_8ubit (NULL, &pointer); (*pos)++; achp->hps += dread_16ubit (NULL, &pointer); (*pos) += 2; if (achp->hps < 8) achp->hps = 8; else if (achp->hps > 32766) achp->hps = 32766; } void wvApplysprmCMajority50 (CHP * achp, STSH * stsh, U8 * pointer, U16 * pos) { U16 i; CHP base; CHP orig; UPXF upxf; /* Bytes 0 and 1 of sprmCMajority contains the opcode, byte 2 contains the length of the following list of character sprms. . Word begins interpretation of this sprm by applying the stored character sprm list to a standard chp. That chp has chp.istd = istdNormalChar. chp.hps=20, chp.lid=0x0400 and chp.ftc = 4. Word then compares fBold, fItalic, fStrike, fOutline, fShadow, fSmallCaps, fCaps, ftc, hps, hpsPos, kul, qpsSpace and ico in the original CHP with the values recorded for these fields in the generated CHP.. If a field in the original CHP has the same value as the field stored in the generated CHP, then that field is reset to the value stored in the style's CHP. If the two copies differ, then the original CHP value is left unchanged. */ wvTrace ( ("This document has a sprm (sprmCMajority50), that ive never seen in practice please mail ")); wvTrace ( ("Caolan.McNamara@ul.ie with this document, as i haven't been able to ")); wvTrace ( ("get any examples of it so as to figure out if its handled correctly\n")); wvInitCHP (&base); base.ftc = 4; /*generate a UPE and run wvAddCHPXFromBucket */ upxf.cbUPX = dread_8ubit (NULL, &pointer); (*pos)++; upxf.upx.chpx.grpprl = (U8 *) wvMalloc (upxf.cbUPX); for (i = 0; i < upxf.cbUPX; i++) { upxf.upx.chpx.grpprl[i] = dread_8ubit (NULL, &pointer); (*pos)++; } wvAddCHPXFromBucket (&base, &upxf, stsh); wvInitCHPFromIstd (&orig, achp->istd, stsh); /* this might be a little wrong, review after doing dedicated CHP's */ wvTrace (("istd is %d\n", achp->istd)); if (achp->fBold == base.fBold) achp->fBold = orig.fBold; if (achp->fItalic == base.fItalic) achp->fItalic = orig.fItalic; if (achp->fStrike == base.fStrike) achp->fStrike = orig.fStrike; if (achp->fSmallCaps == base.fSmallCaps) achp->fSmallCaps = orig.fSmallCaps; if (achp->fCaps == base.fCaps) achp->fCaps = orig.fCaps; if (achp->ftc == base.ftc) achp->ftc = orig.ftc; if (achp->hps == base.hps) achp->hps = orig.hps; if (achp->hpsPos == base.hpsPos) achp->hpsPos = orig.hpsPos; if (achp->kul == base.kul) achp->kul = orig.kul; if (achp->ico == base.ico) achp->ico = orig.ico; if (achp->fVanish == base.fVanish) achp->fVanish = orig.fVanish; if (achp->dxaSpace == base.dxaSpace) achp->dxaSpace = orig.dxaSpace; wvFree (upxf.upx.chpx.grpprl); /* this seemed to be missing... */ } void wvApplysprmCPropRMark (CHP * achp, U8 * pointer, U16 * pos) { dread_8ubit (NULL, &pointer); /*len */ (*pos)++; achp->fPropRMark = dread_8ubit (NULL, &pointer); (*pos)++; achp->ibstPropRMark = (S16) dread_16ubit (NULL, &pointer); (*pos) += 2; wvGetDTTMFromBucket (&achp->dttmPropRMark, pointer); (*pos) += 4; } void wvApplysprmCDispFldRMark (CHP * achp, U8 * pointer, U16 * pos) { /* is interpreted by moving the first parameter byte to chp.fDispFldRMark, the next two bytes to chp.ibstDispFldRMark, the next four bytes to chp.dttmDispFldRMark, and the remaining 32 bytes to chp.xstDispFldRMark. */ int i; dread_8ubit (NULL, &pointer); /*len */ (*pos)++; achp->fDispFldRMark = dread_8ubit (NULL, &pointer); (*pos)++; achp->ibstDispFldRMark = (S16) dread_16ubit (NULL, &pointer); (*pos) += 2; wvGetDTTMFromBucket (&achp->dttmDispFldRMark, pointer); (*pos) += 4; pointer += 4; for (i = 0; i < 16; i++) { achp->xstDispFldRMark[i] = dread_16ubit (NULL, &pointer); (*pos) += 2; } } void wvApplysprmSOlstAnm (wvVersion ver, SEP * asep, U8 * pointer, U16 * pos) { U8 len = dread_8ubit (NULL, &pointer); wvGetOLSTFromBucket (ver, &asep->olstAnm, pointer); if (len != cbOLST) wvError (("OLST len is different from expected\n")); (*pos) += len; } void wvApplysprmSPropRMark (SEP * asep, U8 * pointer, U16 * pos) { dread_8ubit (NULL, &pointer); (*pos)++; /* sprmPPropRMark is interpreted by moving the first parameter byte to pap.fPropRMark, the next two bytes to pap.ibstPropRMark, and the remaining four bytes to pap.dttmPropRMark. */ asep->fPropRMark = dread_8ubit (NULL, &pointer); (*pos)++; asep->ibstPropRMark = dread_16ubit (NULL, &pointer); (*pos) += 2; wvGetDTTMFromBucket (&asep->dttmPropRMark, pointer); (*pos) += 4; } /* sprmTDxaLeft (opcode 0x9601) is called to adjust the x position within a column which marks the left boundary of text within the first cell of a table row. This sprm causes a whole table row to be shifted left or right within its column leaving the horizontal width and vertical height of cells in the row unchanged. Bytes 0-1 of the sprm contains the opcode, and the new dxa position, call it dxaNew, is stored as an integer in bytes 2 and 3. Word interprets this sprm by adding dxaNew - (rgdxaCenter[0] + tap.dxaGapHalf) to every entry of tap.rgdxaCenter whose index is less than tap.itcMac. sprmTDxaLeft is stored only in grpprls linked to piece table entries. */ void wvApplysprmTDxaLeft (TAP * aTap, U8 * pointer, U16 * pos) { S16 dxaNew = (S16) dread_16ubit (NULL, &pointer); int i; (*pos) += 2; dxaNew = dxaNew - (aTap->rgdxaCenter[0] + aTap->dxaGapHalf); for (i = 0; i < aTap->itcMac; i++) aTap->rgdxaCenter[i] += dxaNew; } /* sprmTDxaGapHalf (opcode 0x9602) adjusts the white space that is maintained between columns by changing tap.dxaGapHalf. Because we want the left boundary of text within the leftmost cell to be at the same location after the sprm is applied, Word also adjusts tap.rgdxCenter[0] by the amount that tap.dxaGapHalf changes. Bytes 0-1 of the sprm contains the opcode, and the new dxaGapHalf, call it dxaGapHalfNew, is stored in bytes 2 and 3. When the sprm is interpreted, the change between the old and new dxaGapHalf values, tap.dxaGapHalf - dxaGapHalfNew, is added to tap.rgdxaCenter[0] and then dxaGapHalfNew is moved to tap.dxaGapHalf. sprmTDxaGapHalf is stored in PAPXs and also in grpprls linked to piece table entries. */ void wvApplysprmTDxaGapHalf (TAP * aTap, U8 * pointer, U16 * pos) { S16 dxaGapHalfNew = (S16) dread_16ubit (NULL, &pointer); (*pos) += 2; aTap->rgdxaCenter[0] += aTap->dxaGapHalf - dxaGapHalfNew; aTap->dxaGapHalf = dxaGapHalfNew; } /* sprmTTableBorders (opcode 0xD605) sets the tap.rgbrcTable. The sprm is interpreted by moving the 24 bytes of the sprm's operand to tap.rgbrcTable. */ void wvApplysprmTTableBorders (wvVersion ver, TAP * aTap, U8 * pointer, U16 * pos) { int i, d; if (ver == WORD8) { dread_8ubit (NULL, &pointer); (*pos)++; } for (i = 0; i < 6; i++) { d = wvGetBRCFromBucket (ver, &(aTap->rgbrcTable[i]), pointer); pointer += d; (*pos) += d; } } /* sprmTDefTable (opcode 0xD608) defines the boundaries of table cells (tap.rgdxaCenter) and the properties of each cell in a table (tap.rgtc). Bytes 0 and 1 of the sprm contain its opcode. Bytes 2 and 3 store a two-byte length of the following parameter. Byte 4 contains the number of cells that are to be defined by the sprm, call it itcMac. When the sprm is interpreted, itcMac is moved to tap.itcMac. itcMac cannot be larger than 32. In bytes 5 through 5+2*(itcMac + 1) -1 , is stored an array of integer dxa values sorted in ascending order which will be moved to tap.rgdxaCenter. In bytes 5+ 2*(itcMac + 1) through byte 5+2*(itcMac + 1) + 10*itcMac - 1 is stored an array of TC entries corresponding to the stored tap.rgdxaCenter. This array is moved to tap.rgtc. sprmTDefTable is only stored in PAPXs. */ void wvApplysprmTDefTable (TAP * aTap, U8 * pointer, U16 * pos) { U16 len; int i, t, oldpos; wvVersion type; len = dread_16ubit (NULL, &pointer); (*pos) += 2; wvTrace (("wvApplysprmTDefTable\n")); aTap->itcMac = dread_8ubit (NULL, &pointer); (*pos)++; oldpos = (*pos) - 2; wvTrace (("oldpos is %x\n", oldpos)); wvTrace (("C: there are %d cells\n", aTap->itcMac)); for (i = 0; i < aTap->itcMac + 1; i++) { aTap->rgdxaCenter[i] = (S16) dread_16ubit (NULL, &pointer); wvTrace (("C: cell boun is %d\n", aTap->rgdxaCenter[i])); (*pos) += 2; } wvTrace ( ("HERE-->pos is now %d, the len was %d, there is %d left\n", *pos, len, len - (*pos - oldpos))); if ((len - (*pos - oldpos)) < (cb6TC * aTap->itcMac)) { pointer += len - (*pos - oldpos); (*pos) += len - (*pos - oldpos); return; } if ((len - (*pos - oldpos)) < (cbTC * aTap->itcMac)) type = WORD6; else type = WORD8; wvTrace (("type is %d\n", type)); wvTrace (("left over is %d\n", len - (*pos - oldpos))); for (i = 0; i < aTap->itcMac; i++) { t = wvGetTCFromBucket (type, &(aTap->rgtc[i]), pointer); wvTrace (("DefTable merge is %d\n", aTap->rgtc[i].fVertMerge)); /* for christ sake !!, word 8 stores word 6 sized TC's in this sprm ! */ (*pos) += t; pointer += t; wvTrace (("t is %d, under is %x\n", t, *pointer)); } wvTrace (("left over is %d\n", len - (*pos - oldpos))); while (len - (*pos - oldpos)) { wvTrace (("Eating byte %x\n", dread_8ubit (NULL, &pointer))); (*pos)++; } wvTrace ( ("oldpos is %x, pos is %x, diff is %d\n", oldpos, *pos, *pos - oldpos - 2)); } /* sprmTDefTable10 (opcode0xD606) is an obsolete version of sprmTDefTable (opcode 0xD608) that was used in WinWord 1.x. Its contents are identical to those in sprmTDefTable, except that the TC structures contain the obsolete structures BRC10s. */ void wvApplysprmTDefTable10 (TAP * aTap, U8 * pointer, U16 * pos) { U16 len; int i, t; len = dread_16ubit (NULL, &pointer); (*pos) += 2; aTap->itcMac = dread_8ubit (NULL, &pointer); (*pos)++; for (i = 0; i < aTap->itcMac + 1; i++) { aTap->rgdxaCenter[i] = (S16) dread_16ubit (NULL, &pointer); (*pos) += 2; } for (i = 0; i < aTap->itcMac; i++) { t = wvGetTCFromBucket (WORD6, &(aTap->rgtc[i]), pointer); (*pos) += t; pointer += t; } } void wv2ApplysprmTDefTableShd (TAP * aTap, U8 * pointer, U16 * pos) { U8 len; U16 itcMac; int i; len = dread_8ubit (NULL, &pointer); (*pos)++; itcMac = len / cbSHD; wvTrace ( ("len in 2sprmTDefTableShd is %d, no of cells is %d\n", len, itcMac)); for (i = 0; i < itcMac; i++) { wvGetSHDFromBucket (&(aTap->rgshd[i]), pointer); pointer += cbSHD; (*pos) += cbSHD; } } /* sprmTDefTableShd (opcode 0xD609) is similar to sprmTDefTable, and compliments it by defining the shading of each cell in a table (tap.rgshd). Bytes 0 and 1 of the sprm contain its opcode. Bytes 2 and 3 store a two-byte length of the following parameter. Byte 4 contains the number of cells that are to be defined by the sprm, call it itcMac. itcMac cannot be larger than 32. In bytes 5 through 5+2*(itcMac + 1) -1 , is stored an array of SHDs. This array is moved to tap.rgshd. sprmTDefTable is only stored in PAPXs. */ void wvApplysprmTDefTableShd (TAP * aTap, U8 * pointer, U16 * pos) { U16 len; U16 itcMac; int i, oldpos; len = dread_16ubit (NULL, &pointer); (*pos) += 2; if (len >= 0x4000) { len = len & 0x00ff; wvError ( ("bad len in sprmTDefTableShd, munging to %d instead\n", len)); } wvTrace (("wvApplysprmTDefTableShd, len %d\n", len)); itcMac = dread_8ubit (NULL, &pointer); (*pos)++; oldpos = (*pos) - 2; wvTrace (("oldpos is %x\n", oldpos)); wvTrace (("C: there are %d cells\n", itcMac)); if (itcMac > 32) wvError (("Broken word doc, recovering from stupidity\n")); else { if ((len - (*pos - oldpos)) < (cbSHD * aTap->itcMac)) { wvError (("Broken sprmDefTableShd, recovering from problem\n")); pointer += len - (*pos - oldpos); (*pos) += len - (*pos - oldpos); return; } for (i = 0; i < itcMac; i++) { wvGetSHDFromBucket (&(aTap->rgshd[i]), pointer); pointer += cbSHD; (*pos) += cbSHD; } } while (len - (*pos - oldpos)) { wvTrace (("Eating byte %x\n", dread_8ubit (NULL, &pointer))); (*pos)++; } wvTrace ( ("oldpos is %x, pos is %x, diff is %d\n", oldpos, *pos, *pos - oldpos - 2)); } /* Word 8 sprmTSetBrc (opcode 0xD620) allows the border definitions(BRCs) within TCs to be set to new values. It has the following format: b10 b16 field type size bitfield comments 0 0 sprm short opcode 0xD620 2 2 count byte number of bytes for operand 3 3 itcFirst byte the index of the first cell that is to have its borders changed. 4 4 itcLim byte index of the cell that follows the last cell to have its borders changed 5 5 short :4 F0 reserved fChangeRight short :1 08 =1 when tap.rgtc[].brcRight is to be changed fChangeBottom short :1 04 =1 when tap.rgtc[].brcBottom is to be changed fChangeLeft short :1 02 =1 when tap.rgtc[].brcLeft is to be changed fChangeTop short :1 01 =1 when tap.rgtc[].brcTop is to be changed 6 6 brc BRC new BRC value to be stored in TCs. */ /* Pre Word 8 * 0 0 sprm byte opcode 193 1 1 itcFirst byte 2 2 itcLim byte 3 3 int :4 F0 reserved fChangeRight int :1 08 fChangeBottom int :1 04 fChangeLeft int :1 02 fChangeTop int :1 01 4 4 brc BRC */ void wvApplysprmTSetBrc (wvVersion ver, TAP * aTap, U8 * pointer, U16 * pos) { U8 itcFirst, itcLim, len, temp8; BRC abrc; int i; if (ver == WORD8) { len = dread_8ubit (NULL, &pointer); (*pos)++; wvTrace (("the len is %d", len)); } itcFirst = dread_8ubit (NULL, &pointer); itcLim = dread_8ubit (NULL, &pointer); temp8 = dread_8ubit (NULL, &pointer); (*pos) += 3; (*pos) += wvGetBRCFromBucket (ver, &abrc, pointer); for (i = itcFirst; i < itcLim; i++) { if (temp8 & 0x08) wvCopyBRC (&aTap->rgtc[i].brcRight, &abrc); if (temp8 & 0x04) wvCopyBRC (&aTap->rgtc[i].brcBottom, &abrc); if (temp8 & 0x02) wvCopyBRC (&aTap->rgtc[i].brcLeft, &abrc); if (temp8 & 0x01) wvCopyBRC (&aTap->rgtc[i].brcTop, &abrc); } } /* sprmTInsert (opcode 0x7621) inserts new cell definitions in an existing table's cell structure. Bytes 0 and 1 of the sprm contain the opcode. Byte 2 is the index within tap.rgdxaCenter and tap.rgtc at which the new dxaCenter and tc values will be inserted. Call this index itcInsert. Byte 3 contains a count of the cell definitions to be added to the tap, call it ctc. Bytes 4 and 5 contain the width of the cells that will be added, call it dxaCol. If there are already cells defined at the index where cells are to be inserted, tap.rgdxaCenter entries at or above this index must be moved to the entry ctc higher and must be adjusted by adding ctc*dxaCol to the value stored. The contents of tap.rgtc at or above the index must be moved 10*ctc bytes higher in tap.rgtc. If itcInsert is greater than the original tap.itcMac, itcInsert - tap.ctc columns beginning with index tap.itcMac must be added of width dxaCol (loop from itcMac to itcMac+itcInsert-tap.ctc adding dxaCol to the rgdxaCenter value of the previous entry and storing sum as dxaCenter of new entry), whose TC entries are cleared to zeros. Beginning with index itcInsert, ctc columns of width dxaCol must be added by constructing new tap.rgdxaCenter and tap.rgtc entries with the newly defined rgtc entries cleared to zeros. Finally, the number of cells that were added to the tap is added to tap.itcMac. sprmTInsert is stored only in grpprls linked to piece table entries. */ void wvApplysprmTInsert (TAP * aTap, U8 * pointer, U16 * pos) { U8 itcInsert = dread_8ubit (NULL, &pointer); U8 ctc = dread_8ubit (NULL, &pointer); S16 dxaCol = (S16) dread_16ubit (NULL, &pointer); int i; (*pos) += 4; if (itcInsert <= aTap->itcMac + 1) { for (i = aTap->itcMac + 1; i >= itcInsert; i--) { aTap->rgdxaCenter[i + ctc] = aTap->rgdxaCenter[i] + ctc * dxaCol; aTap->rgtc[i + ctc] = aTap->rgtc[i]; } } if (itcInsert > aTap->itcMac) { for (i = aTap->itcMac; i < aTap->itcMac + itcInsert - ctc; i++) { aTap->rgdxaCenter[i] = aTap->rgdxaCenter[i - 1] + dxaCol; wvInitTC (&(aTap->rgtc[i])); } } for (i = itcInsert; i < ctc + itcInsert; i++) { aTap->rgdxaCenter[i] = aTap->rgdxaCenter[i - 1] + dxaCol; wvInitTC (&(aTap->rgtc[i])); } aTap->itcMac += ctc; } /* sprmTDelete (opcode 0x5622) deletes cell definitions from an existing table's cell structure. Bytes 0 and 1of the sprm contain the opcode. Byte 2 contains the index of the first cell to delete, call it itcFirst. Byte 3 contains the index of the cell that follows the last cell to be deleted, call it itcLim. sprmTDelete causes any rgdxaCenter and rgtc entries whose index is greater than or equal to itcLim to be moved to the entry that is itcLim - itcFirst lower, and causes tap.itcMac to be decreased by the number of cells deleted. sprmTDelete is stored only in grpprls linked to piece table entries. */ void wvApplysprmTDelete (TAP * aTap, U8 * pointer, U16 * pos) { U8 itcFirst = dread_8ubit (NULL, &pointer); U8 itcLim = dread_8ubit (NULL, &pointer); int i; (*pos) += 2; for (i = itcLim; i < aTap->itcMac + 1; i++) { aTap->rgdxaCenter[i - (itcLim - itcFirst)] = aTap->rgdxaCenter[i]; wvCopyTC (&(aTap->rgtc[i - (itcLim - itcFirst)]), &(aTap->rgtc[i])); } } /* sprmTDxaCol (opcode 0x7623) changes the width of cells whose index is within a certain range to be a certain value. Bytes 0 and 1of the sprm contain the opcode. Byte 2 contains the index of the first cell whose width is to be changed, call it itcFirst. Byte 3 contains the index of the cell that follows the last cell whose width is to be changed, call it itcLim. Bytes 4 and 5 contain the new width of the cell, call it dxaCol. This sprm causes the itcLim - itcFirst entries of tap.rgdxaCenter to be adjusted so that tap.rgdxaCenter[i+1] = tap.rgdxaCenter[i] + dxaCol. Any tap.rgdxaCenter entries that exist beyond itcLim are adjusted to take into account the amount added to or removed from the previous columns. */ void wvApplysprmTDxaCol (TAP * aTap, U8 * pointer, U16 * pos) { U8 itcFirst = dread_8ubit (NULL, &pointer); U8 itcLim = dread_8ubit (NULL, &pointer); S16 dxaCol = (S16) dread_16ubit (NULL, &pointer); S16 diff = 0; int i; (*pos) += 4; for (i = itcFirst; i < itcLim; i++) { diff += aTap->rgdxaCenter[i + 1] - (aTap->rgdxaCenter[i] + dxaCol); aTap->rgdxaCenter[i + 1] = aTap->rgdxaCenter[i] + dxaCol; } for (i = itcLim; i < aTap->itcMac + 1; i++); aTap->rgdxaCenter[i + 1] += diff; } /* sprmTMerge (opcode 0x5624) merges the display areas of cells within a specified range. Bytes 0 and 1 of the sprm contain the opcode. Byte 2 contains the index of the first cell that is to be merged, call it itcFirst. Byte 3 contains the index of the cell that follows the last cell to be merged, call it itcLim. This sprm causes tap.rgtc[itcFirst].fFirstMerged to be set to 1. Cells in the range whose index is greater than itcFirst and less than itcLim have tap.rgtc[].fMerged set to 1. sprmTMerge is stored only in grpprls linked to piece table entries. */ void wvApplysprmTMerge (TAP * aTap, U8 * pointer, U16 * pos) { U8 itcFirst = dread_8ubit (NULL, &pointer); U8 itcLim = dread_8ubit (NULL, &pointer); int i; (*pos) += 2; aTap->rgtc[itcFirst].fFirstMerged = 1; for (i = itcFirst + 1; i < itcLim; i++) aTap->rgtc[i].fMerged = 1; } /* sprmTSplit (opcode 0x5625) splits the display areas of merged cells into their originally assigned display areas. Bytes 0 and 1 of the sprm contain the opcode. Byte 2 contains the index of the first cell that is to be split, call it itcFirst. Byte 3 contains the index of the cell that follows the last cell to be split, call it itcLim. This sprm clears tap.rgtc[].fFirstMerged and tap.rgtc[].fMerged for all rgtc entries >= itcFirst and < itcLim. sprmTSplit is stored only in grpprls linked to piece table entries. */ void wvApplysprmTSplit (TAP * aTap, U8 * pointer, U16 * pos) { U8 itcFirst = dread_8ubit (NULL, &pointer); U8 itcLim = dread_8ubit (NULL, &pointer); int i; (*pos) += 2; for (i = itcFirst; i < itcLim; i++) { aTap->rgtc[i].fMerged = 0; aTap->rgtc[itcFirst].fFirstMerged = 0; } } /* This is guess based upon SetBrc */ void wvApplysprmTSetBrc10 (TAP * aTap, U8 * pointer, U16 * pos) { U8 itcFirst, itcLim, len, temp8; BRC10 abrc; int i; len = dread_8ubit (NULL, &pointer); itcFirst = dread_8ubit (NULL, &pointer); itcLim = dread_8ubit (NULL, &pointer); temp8 = dread_8ubit (NULL, &pointer); (*pos) += 3; (*pos) += wvGetBRC10FromBucket (&abrc, pointer); for (i = itcFirst; i < itcLim; i++) { if (temp8 & 0x08) wvConvertBRC10ToBRC (&aTap->rgtc[i].brcRight, &abrc); if (temp8 & 0x04) wvConvertBRC10ToBRC (&aTap->rgtc[i].brcBottom, &abrc); if (temp8 & 0x02) wvConvertBRC10ToBRC (&aTap->rgtc[i].brcLeft, &abrc); if (temp8 & 0x01) wvConvertBRC10ToBRC (&aTap->rgtc[i].brcTop, &abrc); } } /* sprmTSetShd (opcode 0x7627) allows the shading definitions(SHDs) within a tap to be set to new values. Bytes 0 and 1 of the sprm contain the opcode. Byte 2 contains the index of the first cell whose shading is to be changed, call it itcFirst. Byte 3 contains the index of the cell that follows the last cell whose shading is to be changed, call it itcLim. Bytes 4 and 5 contain the SHD structure, call it shd. This sprm causes the itcLim - itcFirst entries of tap.rgshd to be set to shd. sprmTSetShd is stored only in grpprls linked to piece table entries. */ void wvApplysprmTSetShd (TAP * aTap, U8 * pointer, U16 * pos) { U8 itcFirst = dread_8ubit (NULL, &pointer); U8 itcLim = dread_8ubit (NULL, &pointer); int i; SHD shd; (*pos) += 2; wvGetSHDFromBucket (&shd, pointer); (*pos) += cbSHD; for (i = itcFirst; i < itcLim; i++) wvCopySHD (&aTap->rgshd[i], &shd); } /* sprmTSetShdOdd (opcode 0x7628) is identical to sprmTSetShd, but it only changes the rgshd for odd indices between itcFirst and. sprmTSetShdOdd is stored only in grpprls linked to piece table entries. */ void wvApplysprmTSetShdOdd (TAP * aTap, U8 * pointer, U16 * pos) { U8 itcFirst = dread_8ubit (NULL, &pointer); U8 itcLim = dread_8ubit (NULL, &pointer); int i; SHD shd; (*pos) += 2; wvGetSHDFromBucket (&shd, pointer); (*pos) += cbSHD; for (i = itcFirst; i < itcLim; i++) { if ((i / 2) != (i + 1) / 2) wvCopySHD (&aTap->rgshd[i], &shd); } } /* guess */ void wvApplysprmTTextFlow (TAP * aTap, U8 * pointer, U16 * pos) { U8 val = dread_8ubit (NULL, &pointer); int i; (*pos)++; for (i = 0; i < aTap->itcMac; i++) { /* just a complete guess who knows */ aTap->rgtc[i].fVertical = val & 0x0001; aTap->rgtc[i].fBackward = (val & 0x0002) >> 1; aTap->rgtc[i].fRotateFont = (val & 0x0004) >> 2; } } /* sprmTVertMerge (opcode 0xD62B) changes the vertical cell merge properties for a cell in the tap.rgtc[]. Bytes 0 and 1 of the sprm contain the opcode. Byte 2 contains the index of the cell whose vertical cell merge properties are to be changed. Byte 3 codes the new vertical cell merge properties for the cell, a 0 clears both fVertMerge and fVertRestart, a 1 sets fVertMerge and clears fVertRestart, and a 3 sets both flags. sprmTVertMerge is stored only in grpprls linked to piece table entries. */ void wvApplysprmTVertMerge (TAP * aTap, U8 * pointer, U16 * pos) { U8 index, props, count; wvTrace (("doing Vertical merge\n")); count = dread_8ubit (NULL, &pointer); wvTrace (("count is %d\n", count)); /* check against word 8 please */ index = dread_8ubit (NULL, &pointer); props = dread_8ubit (NULL, &pointer); (*pos) += 3; switch (props) { case 0: aTap->rgtc[index].fVertMerge = 0; aTap->rgtc[index].fVertRestart = 0; break; case 1: aTap->rgtc[index].fVertMerge = 1; aTap->rgtc[index].fVertRestart = 0; break; case 3: aTap->rgtc[index].fVertMerge = 1; aTap->rgtc[index].fVertRestart = 1; break; } } /* sprmTVertAlign (opcode 0xD62C) changes the vertical alignment property in the tap.rgtc[]. Bytes 0 and 1 of the sprm contain the opcode. Byte 2 contains the index of the first cell whose shading is to be changed, call it itcFirst. Byte 3 contains the index of the cell that follows the last cell whose shading is to be changed, call it itcLim. This sprm causes the vertAlign properties of the itcLim - itcFirst entries of tap.rgtc[] to be set to the new vertical alignment property contained in Byte 4. sprmTVertAlign is stored only in grpprls linked to piece table entries. */ void wvApplysprmTVertAlign (TAP * aTap, U8 * pointer, U16 * pos) { U8 itcFirst = dread_8ubit (NULL, &pointer); U8 itcLim = dread_8ubit (NULL, &pointer); U8 props = dread_8ubit (NULL, &pointer); int i; (*pos) += 3; for (i = itcFirst; i < itcLim; i++) aTap->rgtc[i].vertAlign = props; } SprmName rgsprmPrm[0x80] = { sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmPIncLvl, sprmPJc, sprmPFSideBySide, sprmPFKeep, sprmPFKeepFollow, sprmPFPageBreakBefore, sprmPBrcl, sprmPBrcp, sprmPIlvl, sprmNoop, sprmPFNoLineNumb, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmPFInTable, sprmPFTtp, sprmNoop, sprmNoop, sprmNoop, sprmPPc, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmPWr, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmPFNoAutoHyph, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmPFLocked, sprmPFWidowControl, sprmNoop, sprmPFKinsoku, sprmPFWordWrap, sprmPFOverflowPunct, sprmPFTopLinePunct, sprmPFAutoSpaceDE, sprmPFAutoSpaceDN, sprmNoop, sprmNoop, sprmPISnapBaseLine, sprmNoop, sprmNoop, sprmNoop, sprmCFStrikeRM, sprmCFRMark, sprmCFFldVanish, sprmNoop, sprmNoop, sprmNoop, sprmCFData, sprmNoop, sprmNoop, sprmNoop, sprmCFOle2, sprmNoop, sprmCHighlight, sprmCFEmboss, sprmCSfxText, sprmNoop, sprmNoop, sprmNoop, sprmCPlain, sprmNoop, sprmCFBold, sprmCFItalic, sprmCFStrike, sprmCFOutline, sprmCFShadow, sprmCFSmallCaps, sprmCFCaps, sprmCFVanish, sprmNoop, sprmCKul, sprmNoop, sprmNoop, sprmNoop, sprmCIco, sprmNoop, sprmCHpsInc, sprmNoop, sprmCHpsPosAdj, sprmNoop, sprmCIss, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmCFDStrike, sprmCFImprint, sprmCFSpec, sprmCFObj, sprmPicBrcl, sprmPOutLvl, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmNoop, sprmPPnbrRMarkNot }; SprmName wvGetrgsprmPrm (U16 in) { if (in > 0x80) { wvError (("Impossible rgsprmPrm value\n")); return (sprmNoop); } return (rgsprmPrm[in]); } SprmName rgsprmWord6[256] = { sprmNoop /* 0 */ , sprmNoop /* 1 */ , sprmPIstd /* 2 */ , sprmPIstdPermute /* 3 */ , sprmPIncLvl /* 4 */ , sprmPJc /* 5 */ , sprmPFSideBySide /* 6 */ , sprmPFKeep /* 7 */ , sprmPFKeepFollow /* 8 */ , sprmPFPageBreakBefore /* 9 */ , /* added F */ sprmPBrcl /* 10 */ , sprmPBrcp /* 11 */ , sprmPAnld /* 12 */ , sprmPNLvlAnm /* 13 */ , sprmPFNoLineNumb /* 14 */ , sprmPChgTabsPapx /* 15 */ , sprmPDxaRight /* 16 */ , sprmPDxaLeft /* 17 */ , sprmPNest /* 18 */ , sprmPDxaLeft1 /* 19 */ , sprmPDyaLine /* 20 */ , sprmPDyaBefore /* 21 */ , sprmPDyaAfter /* 22 */ , sprmPChgTabs /* 23 */ , sprmPFInTable /* 24 */ , sprmPFTtp /* 25 */ , /* added F */ sprmPDxaAbs /* 26 */ , sprmPDyaAbs /* 27 */ , sprmPDxaWidth /* 28 */ , sprmPPc /* 29 */ , sprmPBrcTop10 /* 30 */ , sprmPBrcLeft10 /* 31 */ , sprmPBrcBottom10 /* 32 */ , sprmPBrcRight10 /* 33 */ , sprmPBrcBetween10 /* 34 */ , sprmPBrcBar10 /* 35 */ , sprmPDxaFromText10 /* 36 */ , /* new name */ sprmPWr /* 37 */ , sprmPBrcTop /* 38 */ , sprmPBrcLeft /* 39 */ , sprmPBrcBottom /* 40 */ , sprmPBrcRight /* 41 */ , sprmPBrcBetween /* 42 */ , sprmPBrcBar /* 43 */ , sprmPFNoAutoHyph /* 44 */ , sprmPWHeightAbs /* 45 */ , sprmPDcs /* 46 */ , sprmPShd /* 47 */ , sprmPDyaFromText /* 48 */ , sprmPDxaFromText /* 49 */ , sprmPFLocked /* 50 */ , sprmPFWidowControl /* 51 */ , sprmNoop /* 52 */ , sprmNoop /* 53 */ , sprmNoop /* 54 */ , sprmNoop /* 55 */ , sprmNoop /* 56 */ , sprmPUNKNOWN2 /* 57 */ , sprmPUNKNOWN3 /* 58 */ , sprmPUNKNOWN4 /* 59 */ , sprmNoop /* 60 */ , sprmNoop /* 61 */ , sprmNoop /* 62 */ , sprmNoop /* 63 */ , sprmNoop /* 64 */ , sprmCFStrikeRM /* 65 */ , sprmCFRMark /* 66 */ , sprmCFFldVanish /* 67 */ , sprmCPicLocation /* 68 */ , sprmCIbstRMark /* 69 */ , sprmCDttmRMark /* 70 */ , sprmCFData /* 71 */ , sprmCIdslRMark /* 72 */ , /* new name */ sprmCChs /* 73 */ , /* new name */ sprmCSymbol /* 74 */ , sprmCFOle2 /* 75 */ , sprmNoop /* 76 */ , sprmNoop /* 77 */ , sprmNoop /* 78 */ , sprmNoop /* 79 */ , sprmCIstd /* 80 */ , sprmCIstdPermute /* 81 */ , sprmCDefault /* 82 */ , sprmCPlain /* 83 */ , sprmNoop /* 84 */ , sprmCFBold /* 85 */ , sprmCFItalic /* 86 */ , sprmCFStrike /* 87 */ , sprmCFOutline /* 88 */ , sprmCFShadow /* 89 */ , sprmCFSmallCaps /* 90 */ , sprmCFCaps /* 91 */ , sprmCFVanish /* 92 */ , sprmCFtc /* 93 */ , sprmCKul /* 94 */ , sprmCSizePos /* 95 */ , sprmCDxaSpace /* 96 */ , sprmCLid /* 97 */ , sprmCIco /* 98 */ , sprmCHps /* 99 */ , sprmCHpsInc /* 100 */ , sprmCHpsPos /* 101 */ , sprmCHpsPosAdj /* 102 */ , sprmCMajority /* 103 */ , sprmCIss /* 104 */ , sprmCHpsNew50 /* 105 */ , sprmCHpsInc1 /* 106 */ , sprmCHpsKern /* 107 */ , sprmCMajority50 /* 108 */ , sprmCHpsMul /* 109 */ , sprmCYsri /* 110 */ , /* new name */ sprmCUNKNOWN5 /* 111 */ , sprmCUNKNOWN6 /* 112 */ , sprmCUNKNOWN7 /* 113 */ , sprmNoop /* 114 */ , sprmNoop /* 115 */ , sprmNoop /* 116 */ , sprmCFSpec /* 117 */ , sprmCFObj /* 118 */ , sprmPicBrcl /* 119 */ , sprmPicScale /* 120 */ , sprmPicBrcTop /* 121 */ , sprmPicBrcLeft /* 122 */ , sprmPicBrcBottom /* 123 */ , sprmPicBrcRight /* 124 */ , sprmNoop /* 125 */ , sprmNoop /* 126 */ , sprmNoop /* 127 */ , sprmNoop /* 128 */ , sprmNoop /* 129 */ , sprmNoop /* 130 */ , sprmScnsPgn /* 131 */ , /* new name */ sprmSiHeadingPgn /* 132 */ , sprmSOlstAnm /* 133 */ , sprmNoop /* 134 */ , sprmNoop /* 135 */ , sprmSDxaColWidth /* 136 */ , sprmSDxaColWidth /* 137 */ , /* new name */ sprmSFEvenlySpaced /*138 */ , sprmSFProtected /* 139 */ , sprmSDmBinFirst /* 140 */ , sprmSDmBinOther /* 141 */ , sprmSBkc /* 142 */ , sprmSFTitlePage /* 143 */ , sprmSCcolumns /* 144 */ , sprmSDxaColumns /* 145 */ , sprmSFAutoPgn /* 146 */ , sprmSNfcPgn /* 147 */ , sprmSDyaPgn /* 148 */ , sprmSDxaPgn /* 149 */ , sprmSFPgnRestart /* 150 */ , sprmSFEndnote /* 151 */ , sprmSLnc /* 152 */ , sprmSGprfIhdt /* 153 */ , sprmSNLnnMod /* 154 */ , sprmSDxaLnn /* 155 */ , sprmSDyaHdrTop /* 156 */ , sprmSDyaHdrBottom /* 157 */ , sprmNoop /* 158 */ , sprmSVjc /* 159 */ , sprmSLnnMin /* 160 */ , sprmSPgnStart /* 161 */ , sprmSBOrientation /* 162 */ , sprmSBCustomize /* 163 */ , sprmSXaPage /* 164 */ , sprmSYaPage /* 165 */ , sprmSDxaLeft /* 166 */ , sprmSDxaRight /* 167 */ , sprmSDyaTop /* 168 */ , sprmSDyaBottom /* 169 */ , sprmSDzaGutter /* 170 */ , sprmSDmPaperReq /* 171 */ , sprmNoop /* 172 */ , sprmNoop /* 173 */ , sprmNoop /* 174 */ , sprmNoop /* 175 */ , sprmNoop /* 176 */ , sprmNoop /* 177 */ , sprmNoop /* 178 */ , sprmNoop /* 179 */ , sprmNoop /* 180 */ , sprmNoop /* 181 */ , sprmTJc /* 182 */ , sprmTDxaLeft /* 183 */ , sprmTDxaGapHalf /* 184 */ , sprmTFCantSplit /* 185 */ , sprmTTableHeader /* 186 */ , sprmTTableBorders /* 187 */ , sprmTDefTable10 /* 188 */ , sprmTDyaRowHeight /* 189 */ , sprmTDefTable /* 190 */ , sprmTDefTableShd /* 191 */ , sprmTTlp /* 192 */ , sprmTSetBrc /* 193 */ , sprmTInsert /* 194 */ , sprmTDelete /* 195 */ , sprmTDxaCol /* 196 */ , sprmTMerge /* 197 */ , sprmTSplit /* 198 */ , sprmTSetBrc10 /* 199 */ , sprmTSetShd /* 200 */ , sprmNoop /* 201 */ , sprmNoop /* 202 */ , sprmNoop /* 203 */ , sprmTUNKNOWN1 /* 204 */ , /*guess I know that this should be either * a) 3 bytes long, * b) complex with a len of 2, * its certainly a table related sprm, my guess is sprmTVertMerge * as that fits its profile, but it isn't working in practice. * */ #if 0 sprmNoop /* 205 */ , sprmNoop /* 206 */ , sprmNoop /* 207 */ , sprmMax /* 208 */ #endif }; SprmName wvGetrgsprmWord6 (U8 in) { return (rgsprmWord6[in]); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/atrd.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000006470�11247156607�010230� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetATRD (ATRD * item, wvStream * fd) { int i; for (i = 0; i < 10; i++) item->xstUsrInitl[i] = read_16ubit (fd); item->ibst = (S16) read_16ubit (fd); item->ak = read_16ubit (fd); item->grfbmc = read_16ubit (fd); item->lTagBkmk = (S32) read_32ubit (fd); } int wvGetATRD_PLCF (ATRD ** atrd, U32 ** pos, U32 * noatrd, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *atrd = NULL; *pos = NULL; *noatrd = 0; } else { *noatrd = (len - 4) / (cbATRD + 4); *pos = (U32 *) wvMalloc ((*noatrd + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*noatrd + 1) * sizeof (U32))); return (1); } *atrd = (ATRD *) wvMalloc ((*noatrd + 1) * sizeof (ATRD)); if (*atrd == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *noatrd * sizeof (ATRD))); wvFree (pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i < *noatrd + 1; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *noatrd; i++) wvGetATRD (&((*atrd)[i]), fd); } return (0); } ATRD * wvGetCommentBounds (U32 * comment_cpFirst, U32 * comment_cpLim, U32 currentcp, ATRD * atrd, U32 * pos, U32 noatrd, STTBF * bookmarks, BKF * bkf, U32 * posBKF, U32 bkf_intervals, BKL * bkl, U32 * posBKL, U32 bkl_intervals) { U32 i, j; S32 id; for (i = 0; i < noatrd; i++) { if (pos[i] > currentcp) { /* when not -1, this tag identifies the annotation bookmark that locates the range of CPs in the main document which this annotation references. */ if ((atrd[i].lTagBkmk != -1) && (bookmarks != NULL) && (bookmarks->nostrings > 0) && (bookmarks->extradata)) { for (j = 0; j < bookmarks->nostrings; j++) { id = (S32) sread_32ubit (bookmarks->extradata[j] + 2); if (id == atrd[i].lTagBkmk) { wvTrace (("bingo, index is %d!!\n", j)); *comment_cpFirst = posBKF[i]; *comment_cpLim = posBKL[bkf[i].ibkl]; wvTrace ( ("begin end are %d %d\n", *comment_cpFirst, *comment_cpLim)); return (&(atrd[i])); } } } /* in case we find nothing, at least we won't blow up, we create a point comment */ *comment_cpFirst = pos[i]; *comment_cpLim = pos[i] + 1; return (&(atrd[i])); } } *comment_cpLim = 0xfffffffeL; return (NULL); } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wv.h���������������������������������������������������������������������������������������0000664�0000764�0000764�00000375042�11265375362�007744� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef MSWORDVIEW_HEADER #define MSWORDVIEW_HEADER #include <stdio.h> #include <time.h> #include <gsf/gsf-input.h> #ifdef __cplusplus extern "C" { #endif /* The structure below is used to refer to a wvStream. Usually, * kind = GSF_STREAM, * but if we can't open a file using LibGSF, we fall back to the old file-based * routines, in which case kind == FILE_STREAM. */ typedef enum { GSF_STREAM, FILE_STREAM, MEMORY_STREAM } wvStreamKind; typedef struct { char *mem; unsigned long current; unsigned long size; } MemoryStream; typedef union { FILE *file_stream; GsfInput *gsf_stream; MemoryStream *memory_stream; } wvInternalStream; typedef struct { wvStreamKind kind; wvInternalStream stream; } wvStream; #ifndef PATH_MAX #define PATH_MAX 1024 /*seems a reasonable figure */ #endif /* these really should be worked out in the configure script to be 100% correct */ #ifndef U32 #define U32 unsigned int #endif #ifndef S32 #define S32 int #endif #ifndef U16 #define U16 unsigned short #endif #ifndef S16 #define S16 signed short #endif #ifndef U8 #define U8 unsigned char #endif #ifndef S8 #define S8 char #endif #define DEFAULTINDENT 1800 #define TWIRPS_PER_BQ 1440 #define TWIRPS_PER_H_PIXEL 20 #define TWIRPS_PER_V_PIXEL 20 #define SPACEPIXELS 6 #ifndef isletter #define isletter(c) (((c) >= 'A' && (c) <= 'Z') || ((c) >= 'a' && (c) <= 'z')) #endif #ifndef digit #define digit(c) ((c) >= '0' && (c) <= '9') #endif #define legal_variable_char(c) (isletter (c) || digit (c) || c == '_') #ifndef HAVE_WMF typedef struct tagRECT { S32 left; S32 right; S32 top; S32 bottom; } RECT; typedef struct tagPOINT { S32 x; S32 y; } POINT; #else # include /**/ <wmfapi.h> #endif /*Wine Portions Begin*/ typedef struct tagPANOSE { U8 bFamilyType; U8 bSerifStyle; U8 bWeight; U8 bProportion; U8 bContrast; U8 bStrokeVariation; U8 bArmStyle; U8 bLetterform; U8 bMidline; U8 bXHeight; } PANOSE; void wvGetPANOSE (PANOSE * panose, wvStream * fd); void wvInitPANOSE (PANOSE * item); /* * The FONTSIGNATURE tells which Unicode ranges and which code pages * have glyphs in a font. * * fsUsb 128-bit bitmap. The most significant bits are 10 (magic number). * The remaining 126 bits map the Unicode ISO 10646 subranges * for which the font provides glyphs. * * fsCsb 64-bit bitmap. The low 32 bits map the Windows codepages for * which the font provides glyphs. The high 32 bits are for * non Windows codepages. */ typedef struct { U32 fsUsb[4]; U32 fsCsb[2]; } FONTSIGNATURE; void wvGetFONTSIGNATURE (FONTSIGNATURE * fs, wvStream * fd); void wvInitFONTSIGNATURE (FONTSIGNATURE * fs); #ifndef _FILETIME_ #define _FILETIME_ /* 64 bit number of 100 nanoseconds intervals since January 1, 1601 */ typedef struct { U32 dwLowDateTime; U32 dwHighDateTime; } FILETIME; #endif /* _FILETIME_ */ void wvGetFILETIME (FILETIME * ft, wvStream * fd); void wvInitFILETIME (FILETIME * ft); time_t wvDOSFS_FileTimeToUnixTime (const FILETIME * filetime, U32 * remainder); int wvFileTimeToDosDateTime (const FILETIME * ft, U16 * fatdate, U16 * fattime); /*Wine Portions End*/ char *wvFmtMsg (char *fmt, ...); /** beginning of clean interface **/ void wvRealError (char *file, int line, char *msg); void wvRealTrace (char *file, int line, char *msg); #define wvError( args ) wvRealError(__FILE__,__LINE__, wvFmtMsg args ) void wvWarning (char *fmt, ...); void _wvFree (void *ptr); #define wvFree(P) do { if (P) { _wvFree((void *)(P)); (P)=NULL; } } while (0) char *wvWideStrToMB (U16 * str); char *wvWideCharToMB (U16 char16); typedef enum { WORD1 = 0x0000, WORD2 = 0x0001, WORD3 = 0x0002, WORD4 = 0x0003, WORD5 = 0x0004, WORD6 = 0x0005, WORD7 = 0x0006, WORD8 = 0x0007 } wvVersion; typedef enum { Dmain, Dfootnote, Dheader, Dannotation, Dendnote, Dtextbox, Dheader_textbox } subdocument; typedef struct _FIB { U16 wIdent; /* 0x0000 */ U16 nFib; /* 0x0002 */ U16 nProduct; /* 0x0004 */ U16 lid; /* 0x0006 */ S16 pnNext; /* 0x0008 */ U32 fDot:1; /* Bitfield 0x0001 0x000A */ U32 fGlsy:1; /* Bitfield 0x0002 */ U32 fComplex:1; /* Bitfield 0x0004 */ U32 fHasPic:1; /* Bitfield 0x0008 */ U32 cQuickSaves:4; /* Bitfield 0x00F0 */ U32 fEncrypted:1; /* Bitfield 0x0100 */ U32 fWhichTblStm:1; /* Bitfield 0x0200 */ U32 fReadOnlyRecommended:1; /* Bitfield 0x0400 */ U32 fWriteReservation:1; /* Bitfield 0x0800 */ U32 fExtChar:1; /* Bitfield 0x1000 */ U32 fLoadOverride:1; /* Bitfield 0x2000 */ U32 fFarEast:1; /* Bitfield 0x4000 */ U32 fCrypto:1; /* Bitfield 0x8000 */ U32 nFibBack:16; /* 0x000C */ U32 lKey; /* 0x000E */ U32 envr:8; /* 0x0012 */ U32 fMac:1; /* Bitfield 0x01 0x0013 */ U32 fEmptySpecial:1; /* Bitfield 0x02 */ U32 fLoadOverridePage:1; /* Bitfield 0x04 */ U32 fFutureSavedUndo:1; /* Bitfield 0x08 */ U32 fWord97Saved:1; /* Bitfield 0x10 */ U32 fSpare0:3; /* Bitfield 0xFE */ U32 chse:16; /* 0x0014 *//*was chs */ U16 chsTables; /* 0x0016 */ U32 fcMin; /* 0x0018 */ U32 fcMac; /* 0x001C */ U16 csw; /* 0x0020 */ U16 wMagicCreated; /* 0x0022 */ U16 wMagicRevised; /* 0x0024 */ U16 wMagicCreatedPrivate; /* 0x0026 */ U16 wMagicRevisedPrivate; /* 0x0028 */ S16 pnFbpChpFirst_W6; /* 0x002A */ S16 pnChpFirst_W6; /* 0x002C */ S16 cpnBteChp_W6; /* 0x002E */ S16 pnFbpPapFirst_W6; /* 0x0030 */ S16 pnPapFirst_W6; /* 0x0032 */ S16 cpnBtePap_W6; /* 0x0034 */ S16 pnFbpLvcFirst_W6; /* 0x0036 */ S16 pnLvcFirst_W6; /* 0x0038 */ S16 cpnBteLvc_W6; /* 0x003A */ S16 lidFE; /* 0x003C */ U16 clw; /* 0x003E */ S32 cbMac; /* 0x0040 */ U32 lProductCreated; /* 0x0044 */ U32 lProductRevised; /* 0x0048 */ U32 ccpText; /* 0x004C */ S32 ccpFtn; /* 0x0050 */ S32 ccpHdr; /* 0x0054 */ S32 ccpMcr; /* 0x0058 */ S32 ccpAtn; /* 0x005C */ S32 ccpEdn; /* 0x0060 */ S32 ccpTxbx; /* 0x0064 */ S32 ccpHdrTxbx; /* 0x0068 */ S32 pnFbpChpFirst; /* 0x006C */ S32 pnChpFirst; /* 0x0070 */ S32 cpnBteChp; /* 0x0074 */ S32 pnFbpPapFirst; /* 0x0078 */ S32 pnPapFirst; /* 0x007C */ S32 cpnBtePap; /* 0x0080 */ S32 pnFbpLvcFirst; /* 0x0084 */ S32 pnLvcFirst; /* 0x0088 */ S32 cpnBteLvc; /* 0x008C */ S32 fcIslandFirst; /* 0x0090 */ S32 fcIslandLim; /* 0x0094 */ U16 cfclcb; /* 0x0098 */ S32 fcStshfOrig; /* 0x009A */ U32 lcbStshfOrig; /* 0x009E */ S32 fcStshf; /* 0x00A2 */ U32 lcbStshf; /* 0x00A6 */ S32 fcPlcffndRef; /* 0x00AA */ U32 lcbPlcffndRef; /* 0x00AE */ S32 fcPlcffndTxt; /* 0x00B2 */ U32 lcbPlcffndTxt; /* 0x00B6 */ S32 fcPlcfandRef; /* 0x00BA */ U32 lcbPlcfandRef; /* 0x00BE */ S32 fcPlcfandTxt; /* 0x00C2 */ U32 lcbPlcfandTxt; /* 0x00C6 */ S32 fcPlcfsed; /* 0x00CA */ U32 lcbPlcfsed; /* 0x00CE */ S32 fcPlcpad; /* 0x00D2 */ U32 lcbPlcpad; /* 0x00D6 */ S32 fcPlcfphe; /* 0x00DA */ U32 lcbPlcfphe; /* 0x00DE */ S32 fcSttbfglsy; /* 0x00E2 */ U32 lcbSttbfglsy; /* 0x00E6 */ S32 fcPlcfglsy; /* 0x00EA */ U32 lcbPlcfglsy; /* 0x00EE */ S32 fcPlcfhdd; /* 0x00F2 */ U32 lcbPlcfhdd; /* 0x00F6 */ S32 fcPlcfbteChpx; /* 0x00FA */ U32 lcbPlcfbteChpx; /* 0x00FE */ S32 fcPlcfbtePapx; /* 0x0102 */ U32 lcbPlcfbtePapx; /* 0x0106 */ S32 fcPlcfsea; /* 0x010A */ U32 lcbPlcfsea; /* 0x010E */ S32 fcSttbfffn; /* 0x0112 */ U32 lcbSttbfffn; /* 0x0116 */ S32 fcPlcffldMom; /* 0x011A */ U32 lcbPlcffldMom; /* 0x011E */ S32 fcPlcffldHdr; /* 0x0122 */ U32 lcbPlcffldHdr; /* 0x0126 */ S32 fcPlcffldFtn; /* 0x012A */ U32 lcbPlcffldFtn; /* 0x012E */ S32 fcPlcffldAtn; /* 0x0132 */ U32 lcbPlcffldAtn; /* 0x0136 */ S32 fcPlcffldMcr; /* 0x013A */ U32 lcbPlcffldMcr; /* 0x013E */ S32 fcSttbfbkmk; /* 0x0142 */ U32 lcbSttbfbkmk; /* 0x0146 */ S32 fcPlcfbkf; /* 0x014A */ U32 lcbPlcfbkf; /* 0x014E */ S32 fcPlcfbkl; /* 0x0152 */ U32 lcbPlcfbkl; /* 0x0156 */ S32 fcCmds; /* 0x015A */ U32 lcbCmds; /* 0x015E */ S32 fcPlcmcr; /* 0x0162 */ U32 lcbPlcmcr; /* 0x0166 */ S32 fcSttbfmcr; /* 0x016A */ U32 lcbSttbfmcr; /* 0x016E */ S32 fcPrDrvr; /* 0x0172 */ U32 lcbPrDrvr; /* 0x0176 */ S32 fcPrEnvPort; /* 0x017A */ U32 lcbPrEnvPort; /* 0x017E */ S32 fcPrEnvLand; /* 0x0182 */ U32 lcbPrEnvLand; /* 0x0186 */ S32 fcWss; /* 0x018A */ U32 lcbWss; /* 0x018E */ S32 fcDop; /* 0x0192 */ U32 lcbDop; /* 0x0196 */ S32 fcSttbfAssoc; /* 0x019A */ U32 lcbSttbfAssoc; /* 0x019E */ S32 fcClx; /* 0x01A2 */ U32 lcbClx; /* 0x01A6 */ S32 fcPlcfpgdFtn; /* 0x01AA */ U32 lcbPlcfpgdFtn; /* 0x01AE */ S32 fcAutosaveSource; /* 0x01B2 */ U32 lcbAutosaveSource; /* 0x01B6 */ S32 fcGrpXstAtnOwners; /* 0x01BA */ U32 lcbGrpXstAtnOwners; /* 0x01BE */ S32 fcSttbfAtnbkmk; /* 0x01C2 */ U32 lcbSttbfAtnbkmk; /* 0x01C6 */ S32 fcPlcdoaMom; /* 0x01CA */ U32 lcbPlcdoaMom; /* 0x01CE */ S32 fcPlcdoaHdr; /* 0x01D2 */ U32 lcbPlcdoaHdr; /* 0x01D6 */ S32 fcPlcspaMom; /* 0x01DA */ U32 lcbPlcspaMom; /* 0x01DE */ S32 fcPlcspaHdr; /* 0x01E2 */ U32 lcbPlcspaHdr; /* 0x01E6 */ S32 fcPlcfAtnbkf; /* 0x01EA */ U32 lcbPlcfAtnbkf; /* 0x01EE */ S32 fcPlcfAtnbkl; /* 0x01F2 */ U32 lcbPlcfAtnbkl; /* 0x01F6 */ S32 fcPms; /* 0x01FA */ U32 lcbPms; /* 0x01FE */ S32 fcFormFldSttbs; /* 0x0202 */ U32 lcbFormFldSttbs; /* 0x0206 */ S32 fcPlcfendRef; /* 0x020A */ U32 lcbPlcfendRef; /* 0x020E */ S32 fcPlcfendTxt; /* 0x0212 */ U32 lcbPlcfendTxt; /* 0x0216 */ S32 fcPlcffldEdn; /* 0x021A */ U32 lcbPlcffldEdn; /* 0x021E */ S32 fcPlcfpgdEdn; /* 0x0222 */ U32 lcbPlcfpgdEdn; /* 0x0226 */ S32 fcDggInfo; /* 0x022A */ U32 lcbDggInfo; /* 0x022E */ S32 fcSttbfRMark; /* 0x0232 */ U32 lcbSttbfRMark; /* 0x0236 */ S32 fcSttbCaption; /* 0x023A */ U32 lcbSttbCaption; /* 0x023E */ S32 fcSttbAutoCaption; /* 0x0242 */ U32 lcbSttbAutoCaption; /* 0x0246 */ S32 fcPlcfwkb; /* 0x024A */ U32 lcbPlcfwkb; /* 0x024E */ S32 fcPlcfspl; /* 0x0252 */ U32 lcbPlcfspl; /* 0x0256 */ S32 fcPlcftxbxTxt; /* 0x025A */ U32 lcbPlcftxbxTxt; /* 0x025E */ S32 fcPlcffldTxbx; /* 0x0262 */ U32 lcbPlcffldTxbx; /* 0x0266 */ S32 fcPlcfhdrtxbxTxt; /* 0x026A */ U32 lcbPlcfhdrtxbxTxt; /* 0x026E */ S32 fcPlcffldHdrTxbx; /* 0x0272 */ U32 lcbPlcffldHdrTxbx; /* 0x0276 */ S32 fcStwUser; /* 0x027A */ U32 lcbStwUser; /* 0x027E */ S32 fcSttbttmbd; /* 0x0282 */ U32 cbSttbttmbd; /* 0x0286 */ S32 fcUnused; /* 0x028A */ U32 lcbUnused; /* 0x028E */ S32 fcPgdMother; /* 0x0292 */ U32 lcbPgdMother; /* 0x0296 */ S32 fcBkdMother; /* 0x029A */ U32 lcbBkdMother; /* 0x029E */ S32 fcPgdFtn; /* 0x02A2 */ U32 lcbPgdFtn; /* 0x02A6 */ S32 fcBkdFtn; /* 0x02AA */ U32 lcbBkdFtn; /* 0x02AE */ S32 fcPgdEdn; /* 0x02B2 */ U32 lcbPgdEdn; /* 0x02B6 */ S32 fcBkdEdn; /* 0x02BA */ U32 lcbBkdEdn; /* 0x02BE */ S32 fcSttbfIntlFld; /* 0x02C2 */ U32 lcbSttbfIntlFld; /* 0x02C6 */ S32 fcRouteSlip; /* 0x02CA */ U32 lcbRouteSlip; /* 0x02CE */ S32 fcSttbSavedBy; /* 0x02D2 */ U32 lcbSttbSavedBy; /* 0x02D6 */ S32 fcSttbFnm; /* 0x02DA */ U32 lcbSttbFnm; /* 0x02DE */ S32 fcPlcfLst; /* 0x02E2 */ U32 lcbPlcfLst; /* 0x02E6 */ S32 fcPlfLfo; /* 0x02EA */ U32 lcbPlfLfo; /* 0x02EE */ S32 fcPlcftxbxBkd; /* 0x02F2 */ U32 lcbPlcftxbxBkd; /* 0x02F6 */ S32 fcPlcftxbxHdrBkd; /* 0x02FA */ U32 lcbPlcftxbxHdrBkd; /* 0x02FE */ S32 fcDocUndo; /* 0x0302 */ U32 lcbDocUndo; /* 0x0306 */ S32 fcRgbuse; /* 0x030A */ U32 lcbRgbuse; /* 0x030E */ S32 fcUsp; /* 0x0312 */ U32 lcbUsp; /* 0x0316 */ S32 fcUskf; /* 0x031A */ U32 lcbUskf; /* 0x031E */ S32 fcPlcupcRgbuse; /* 0x0322 */ U32 lcbPlcupcRgbuse; /* 0x0326 */ S32 fcPlcupcUsp; /* 0x032A */ U32 lcbPlcupcUsp; /* 0x032E */ S32 fcSttbGlsyStyle; /* 0x0332 */ U32 lcbSttbGlsyStyle; /* 0x0336 */ S32 fcPlgosl; /* 0x033A */ U32 lcbPlgosl; /* 0x033E */ S32 fcPlcocx; /* 0x0342 */ U32 lcbPlcocx; /* 0x0346 */ S32 fcPlcfbteLvc; /* 0x034A */ U32 lcbPlcfbteLvc; /* 0x034E */ FILETIME ftModified; /* 0x0352 */ S32 fcPlcflvc; /* 0x035A */ U32 lcbPlcflvc; /* 0x035E */ S32 fcPlcasumy; /* 0x0362 */ U32 lcbPlcasumy; /* 0x0366 */ S32 fcPlcfgram; /* 0x036A */ U32 lcbPlcfgram; /* 0x036E */ S32 fcSttbListNames; /* 0x0372 */ U32 lcbSttbListNames; /* 0x0376 */ S32 fcSttbfUssr; /* 0x037A */ U32 lcbSttbfUssr; /* 0x037E */ /* Added for Word 2 */ U32 Spare; /* 0x000E */ U16 rgwSpare0[3]; /* 0x0012 */ U32 fcSpare0; /* 0x0024 */ U32 fcSpare1; /* 0x0028 */ U32 fcSpare2; /* 0x002C */ U32 fcSpare3; /* 0x0030 */ U32 ccpSpare0; /* 0x0048 */ U32 ccpSpare1; /* 0x004C */ U32 ccpSpare2; /* 0x0050 */ U32 ccpSpare3; /* 0x0054 */ U32 fcPlcfpgd; /* 0x0082 */ U16 cbPlcfpgd; /* 0x0086 */ U32 fcSpare5; /* 0x0130 */ U16 cbSpare5; /* 0x0136 */ U32 fcSpare6; /* 0x0130 */ U16 cbSpare6; /* 0x0136 */ U16 wSpare4; /* 0x013C */ } FIB; void wvGetFIB (FIB * item, wvStream * fd); void wvGetFIB2 (FIB * item, wvStream * fd); void wvGetFIB6 (FIB * item, wvStream * fd); void wvInitFIB (FIB * item); int wvGetEmpty_PLCF (U32 ** cp, U32 * nocps, U32 offset, U32 len, wvStream * fd); typedef struct _FRD { S16 frd; } FRD; void wvGetFRD (FRD * item, wvStream * fd); int wvGetFRD_PLCF (FRD ** frd, U32 ** pos, U32 * nofrd, U32 offset, U32 len, wvStream * fd); typedef U16 XCHAR; typedef struct _ATRD { XCHAR xstUsrInitl[10]; S16 ibst; U16 ak; /*unused */ U16 grfbmc; /*unused */ S32 lTagBkmk; } ATRD; void wvGetATRD (ATRD * item, wvStream * fd); int wvGetATRD_PLCF (ATRD ** atrd, U32 ** pos, U32 * noatrd, U32 offset, U32 len, wvStream * fd); typedef struct _SED { S16 fn; U32 fcSepx; S16 fnMpr; U32 fcMpr; } SED; void wvGetSED (SED * item, wvStream * fd); int wvGetSED_PLCF (SED ** item, U32 ** pos, U32 * noitem, U32 offset, U32 len, wvStream * fd); typedef struct _FFN { U32 cbFfnM1:8; U32 prq:2; U32 fTrueType:1; U32 reserved1:1; U32 ff:3; U32 reserved2:1; S32 wWeight:16; U8 chs; U8 ixchSzAlt; PANOSE panose; FONTSIGNATURE fs; XCHAR xszFfn[65]; /*max size */ } FFN; void wvGetFFN (FFN * item, wvStream * fd); void wvGetFFN6 (FFN * item, wvStream * fd); typedef struct _FFN_STTBF { U16 extendedflag; U16 nostrings; U16 extradatalen; FFN *ffn; } FFN_STTBF; void wvGetFFN_STTBF (FFN_STTBF * item, U32 offset, U32 len, wvStream * fd); void wvGetFFN_STTBF6 (FFN_STTBF * item, U32 offset, U32 len, wvStream * fd); void wvReleaseFFN_STTBF (FFN_STTBF * item); char *wvGetFontnameFromCode (FFN_STTBF * item, int fontcode); typedef struct _STTBF { U16 extendedflag; U16 nostrings; U16 extradatalen; S8 **s8strings; U16 **u16strings; U8 **extradata; } STTBF; void wvGetSTTBF (STTBF * anS, U32 offset, U32 len, wvStream * fd); void wvGetSTTBF6 (STTBF * anS, U32 offset, U32 len, wvStream * fd); void wvListSTTBF (STTBF * item); void wvReleaseSTTBF (STTBF * item); void wvGetGrpXst (STTBF * anS, U32 offset, U32 len, wvStream * fd); U16 *UssrStrBegin (STTBF * sttbf, int no); typedef enum { ibstAssocFileNext = 0, ibstAssocDot = 1, ibstAssocTitle = 2, ibstAssocSubject = 3, ibstAssocKeyWords = 4, ibstAssocComments = 5, ibstAssocAuthor = 6, ibstAssocLastRevBy = 7, ibstAssocDataDoc = 8, ibstAssocHeaderDoc = 9, ibstAssocCriteria1 = 10, ibstAssocCriteria2 = 11, ibstAssocCriteria3 = 12, ibstAssocCriteria4 = 13, ibstAssocCriteria5 = 14, ibstAssocCriteria6 = 15, ibstAssocCriteria7 = 16, ibstAssocMax = 17, ibstAssocMaxWord6 = 17 /* just in case */ } ibst; typedef struct _wv_var1 { /* 16 bits for bitfields */ U32 ch:5; U32 reserved:3; U32 flt:8; } wv_var1; typedef struct _wv_var2 { /* 16 bits for bitfields */ U32 ch:5; U32 reserved:3; U32 fDiffer:1; U32 fZombieEmbed:1; U32 fResultDirty:1; U32 fResultEdited:1; U32 fLocked:1; U32 fPrivateResult:1; U32 fNested:1; U32 fHasSep:1; } wv_var2; typedef union _FLD { wv_var1 var1; wv_var2 var2; } FLD; void wvGetFLD (FLD * item, wvStream * fd); int wvGetFLD_PLCF (FLD ** fld, U32 ** pos, U32 * nofld, U32 offset, U32 len, wvStream * fd); typedef struct _COPTS { /* 16 bits for bitfields */ U32 fNoTabForInd:1; U32 fNoSpaceRaiseLower:1; U32 fSuppressSpbfAfterPageBreak:1; U32 fWrapTrailSpaces:1; U32 fMapPrintTextColor:1; U32 fNoColumnBalance:1; U32 fConvMailMergeEsc:1; U32 fSuppressTopSpacing:1; U32 fOrigWordTableRules:1; U32 fTransparentMetafiles:1; U32 fShowBreaksInFrames:1; U32 fSwapBordersFacingPgs:1; U32 reserved:4; } COPTS; void wvGetCOPTS (COPTS * copts, wvStream * fd); typedef struct _DTTM { U32 mint:6; U32 hr:5; U32 dom:5; U32 mon:4; U32 yr:9; U32 wdy:3; } DTTM; void wvGetDTTM (DTTM * item, wvStream * fd); void wvGetDTTMFromBucket (DTTM * item, U8 * pointer); void wvCreateDTTM (DTTM * dttm, U16 one, U16 two); void wvCopyDTTM (DTTM * dest, DTTM * src); void wvInitDTTM (DTTM * dttm); char *wvDTTMtoUnix (DTTM * src); typedef struct _DOPTYPOGRAPHY { U32 fKerningPunct:1; U32 iJustification:2; U32 iLevelOfKinsoku:2; U32 f2on1:1; U32 reserved:10; U32 cchFollowingPunct:16; U16 cchLeadingPunct; U16 rgxchFPunct[101]; U16 rgxchLPunct[51]; } DOPTYPOGRAPHY; void wvGetDOPTYPOGRAPHY (DOPTYPOGRAPHY * dopt, wvStream * fd); void wvInitDOPTYPOGRAPHY (DOPTYPOGRAPHY * dopt); typedef struct _DOGRID { U16 xaGrid; U16 yaGrid; U16 dxaGrid; U32 dyaGrid:16; U32 dyGridDisplay:7; U32 fTurnItOff:1; U32 dxGridDisplay:7; U32 fFollowMargins:1; } DOGRID; typedef struct _ASUMY { S32 lLevel; } ASUMY; void wvGetDOGRID (DOGRID * dogrid, wvStream * fd); void wvInitDOGRID (DOGRID * dog); typedef struct _ASUMYI { U32 fValid:1; U32 fView:1; U32 iViewBy:2; U32 fUpdateProps:1; U32 reserved:11; U32 wDlgLevel:16; U32 lHighestLevel; U32 lCurrentLevel; } ASUMYI; void wvGetASUMYI (ASUMYI * asumyi, wvStream * fd); void wvInitASUMYI (ASUMYI * asu); typedef struct _DOP { U32 fFacingPages:1; U32 fWidowControl:1; U32 fPMHMainDoc:1; U32 grfSuppression:2; U32 fpc:2; /*where footnotes are put */ U32 reserved1:1; U32 grpfIhdt:8; U32 rncFtn:2; /*how to restart footnotes */ U32 fFtnRestart:1; /* Word 2 */ U32 nFtn:15; /*first footnote no. WORD 2: int :15 */ U8 irmBar; /* W2 */ U32 irmProps:7; /* W2 */ U32 fOutlineDirtySave:1; U32 reserved2:7; U32 fOnlyMacPics:1; U32 fOnlyWinPics:1; U32 fLabelDoc:1; U32 fHyphCapitals:1; U32 fAutoHyphen:1; U32 fFormNoFields:1; U32 fLinkStyles:1; U32 fRevMarking:1; U32 fBackup:1; U32 fExactCWords:1; U32 fPagHidden:1; U32 fPagResults:1; U32 fLockAtn:1; U32 fMirrorMargins:1; U32 fKeepFileFormat:1; /* W2 */ U32 reserved3:1; U32 fDfltTrueType:1; U32 fPagSuppressTopSpacing:1; U32 fRTLAlignment:1; /* W2 */ U32 reserved3a:6; /* " */ U32 reserved3b:7; /* " */ U32 fSpares:16; /* W2 */ U32 fProtEnabled:1; U32 fDispFormFldSel:1; U32 fRMView:1; U32 fRMPrint:1; U32 reserved4:1; U32 fLockRev:1; U32 fEmbedFonts:1; COPTS copts; U16 dxaTab; U32 ftcDefaultBi; /* W2 */ U16 wSpare; U16 dxaHotZ; U16 cConsecHypLim; U16 wSpare2; U32 wSpare3; /* W2 */ DTTM dttmCreated; DTTM dttmRevised; DTTM dttmLastPrint; U16 nRevision; U32 tmEdited; U32 cWords; U32 cCh; U16 cPg; U32 cParas; U16 rgwSpareDocSum[3]; /* W2 */ U32 rncEdn:2; /*how endnotes are restarted */ U32 nEdn:14; /*beginning endnote no */ U32 epc:2; /*where endnotes go */ U32 nfcFtnRef:4; /*number format code for auto footnotes, i think use the new_* instead */ U32 nfcEdnRef:4; /*number format code for auto endnotes, i thing use the new_* instead */ U32 fPrintFormData:1; U32 fSaveFormData:1; U32 fShadeFormData:1; U32 reserved6:2; U32 fWCFtnEdn:1; U32 cLines; U32 cWordsFtnEnd; U32 cChFtnEdn; U16 cPgFtnEdn; U32 cParasFtnEdn; U32 cLinesFtnEdn; U32 lKeyProtDoc; /*password protection key (! ?) */ U32 wvkSaved:3; U32 wScaleSaved:9; U32 zkSaved:2; U32 fRotateFontW6:1; U32 iGutterPos:1; U32 fNoTabForInd:1; U32 fNoSpaceRaiseLower:1; U32 fSuppressSpbfAfterPageBreak:1; U32 fWrapTrailSpaces:1; U32 fMapPrintTextColor:1; U32 fNoColumnBalance:1; U32 fConvMailMergeEsc:1; U32 fSuppressTopSpacing:1; U32 fOrigWordTableRules:1; U32 fTransparentMetafiles:1; U32 fShowBreaksInFrames:1; U32 fSwapBordersFacingPgs:1; U32 reserved7:4; U32 fSuppressTopSpacingMac5:1; U32 fTruncDxaExpand:1; U32 fPrintBodyBeforeHdr:1; U32 fNoLeading:1; U32 reserved8:1; U32 fMWSmallCaps:1; U32 reserved9:10; U32 adt:16; DOPTYPOGRAPHY doptypography; DOGRID dogrid; U32 reserver11:1; U32 lvl:4; U32 fGramAllDone:1; U32 fGramAllClean:1; U32 fSubsetFonts:1; U32 fHideLastVersion:1; U32 fHtmlDoc:1; U32 reserved10:1; U32 fSnapBorder:1; U32 fIncludeHeader:1; U32 fIncludeFooter:1; U32 fForcePageSizePag:1; U32 fMinFontSizePag:1; U32 fHaveVersions:1; U32 fAutoVersion:1; U32 reserved11:14; ASUMYI asumyi; U32 cChWS; U32 cChWSFtnEdn; U32 grfDocEvents; U32 fVirusPrompted:1; U32 fVirusLoadSafe:1; U32 KeyVirusSession30:30; U8 Spare[30]; U32 reserved12; U32 reserved13; U32 cDBC; U32 cDBCFtnEdn; U32 reserved14; U16 new_nfcFtnRef; /*number format code for auto footnote references */ U16 new_nfcEdnRef; /*number format code for auto endnote references */ U16 hpsZoonFontPag; U16 dywDispPag; } DOP; void wvGetDOP (wvVersion ver, DOP * dop, U32 fcDop, U32 lcbDop, wvStream * tablefd); void wvInitDOP (DOP * dop); typedef struct _BKF { S32 ibkl:16; U32 itcFirst:7; U32 fPub:1; U32 itcLim:7; U32 fCol:1; } BKF; void wvGetBKF (BKF * item, wvStream * fd); int wvGetBKF_PLCF (BKF ** bkf, U32 ** pos, U32 * nobkf, U32 offset, U32 len, wvStream * fd); void wvInitBKF (BKF * item); typedef struct _Xst { U16 *u16string; struct _Xst *next; U32 noofstrings; } Xst; void wvGetXst (Xst ** xst, U32 offset, U32 len, wvStream * fd); void wvFreeXst (Xst ** xst); typedef struct _FSPA { U32 spid; S32 xaLeft; S32 yaTop; S32 xaRight; S32 yaBottom; /* 16 bits for bitfields */ U32 fHdr:1; U32 bx:2; U32 by:2; U32 wr:4; U32 wrk:4; U32 fRcaSimple:1; U32 fBelowText:1; U32 fAnchorLock:1; S32 cTxbx; } FSPA; void wvGetFSPA (FSPA * item, wvStream * fd); int wvGetFSPA_PLCF (FSPA ** fspa, U32 ** pos, U32 * nofspa, U32 offset, U32 len, wvStream * fd); FSPA *wvGetFSPAFromCP (U32 currentcp, FSPA * fspa, U32 * pos, U32 nofspa); void wvInitFSPA (FSPA * item); typedef struct _LSTF { U32 lsid; U32 tplc; U16 rgistd[9]; /* 16 bits for bitfields */ U32 fSimpleList:1; U32 fRestartHdn:1; U32 reserved1:6; U32 reserved2:8; } LSTF; void wvGetLSTF (LSTF * item, wvStream * fd); void wvInitLSTF (LSTF * item); int wvGetLSTF_PLCF (LSTF ** lstf, U32 ** pos, U32 * nolst, U32 offset, U32 len, wvStream * fd); typedef struct _LVLF { U32 iStartAt; /* 16 bits for bitfield */ U32 nfc:8; U32 jc:2; U32 fLegal:1; U32 fNoRestart:1; U32 fPrev:1; U32 fPrevSpace:1; U32 fWord6:1; U32 reserved1:1; U8 rgbxchNums[9]; U8 ixchFollow; U32 dxaSpace; U32 dxaIndent; U8 cbGrpprlChpx; U8 cbGrpprlPapx; U16 reserved2; } LVLF; void wvGetLVLF (LVLF * item, wvStream * fd); void wvInitLVLF (LVLF * item); void wvCopyLVLF (LVLF * dest, LVLF * src); /* A LVL structure contains two parts to it: (1) an LVLF, which stores all static data such as the start-at value for the list level, the numbering type (arabic or roman), the alignment (left, right or centered) of the number, and several Word 6.0 compatibility options; and (2) a set of pointers to variable length data: (a) a grpprlChpx, which gives character formatting to the paragraph number text itself (b) a grpprlPapx, which gives paragraph formatting to the paragraph containing the number, such as indenting and tab information, and (c) the number text itself. */ typedef struct _LVL { LVLF lvlf; U8 *grpprlPapx; U8 *grpprlChpx; XCHAR *numbertext; } LVL; void wvGetLVL (LVL * lvl, wvStream * fd); void wvCopyLVL (LVL * dest, LVL * src); void wvReleaseLVL (LVL * lvl); void wvInitLVL (LVL * lvl); /* An LST consists of two main parts: (1) an LSTF, which is stored on disk and contains formatting properties which apply to the entire list, such as whether the list is simple or multilevel, the list's unique list index and template code, the istd's of the styles (if any) that each level in the list is linked to, and a number of Word 6 compatilibity option; (2) an array of LVL structures, which describe the appearance of each individual level in the LST. */ /* (3) I have added a list of values which i will use to determine what number to use for each list entry, Caolan */ typedef struct _LST { LSTF lstf; LVL *lvl; U32 *current_no; } LST; int wvGetLST (LST ** lst, U16 * noofLST, U32 offset, U32 len, wvStream * fd); void wvReleaseLST (LST ** lst, U16 noofLST); LST *wvSearchLST (U32 id, LST * lst, U16 noofLST); int wvInitLST (LST * lst); typedef struct _LFO { U32 lsid; U32 reserved1; U32 reserved2; U8 clfolvl; U8 reserved3[3]; } LFO; void wvGetLFO (LFO * item, wvStream * fd); void wvInitLFO (LFO * item); int wvGetLFO_PLF (LFO ** lfo, U32 * nolfo, U32 offset, U32 len, wvStream * fd); typedef struct _LFOLVL { U32 iStartAt; U32 ilvl:4; U32 fStartAt:1; U32 fFormatting:1; U32 reserved1:2; U32 reserved2:8; U32 reserved3:8; U32 reserved4:8; } LFOLVL; void wvGetLFOLVL (LFOLVL * item, wvStream * fd); void wvInitLFOLVL (LFOLVL * item); int wvInvalidLFOLVL (LFOLVL * item); int wvGetLFO_records (LFO ** lfo, LFOLVL ** lfolvl, LVL ** lvl, U32 * nolfo, U32 * nooflvl, U32 offset, U32 len, wvStream * fd); int wvReleaseLFO_records (LFO ** lfo, LFOLVL ** lfolvl, LVL ** lvl, U32 nooflvl); U16 *wvListString (int ilfo, int ilvl, LST * alst); typedef U16 LID; typedef struct _SHD { /*16 bits in total */ U32 icoFore:5; U32 icoBack:5; U32 ipat:6; } SHD; void wvGetSHD (SHD * item, wvStream * fd); void wvGetSHDFromBucket (SHD * item, U8 * pointer); void wvInitSHD (SHD * item); void wvCopySHD (SHD * dest, SHD * src); typedef struct _DCS { /* 16 bits for bitfields */ U32 fdct:3; U32 count:5; U32 reserved:8; } DCS; void wvGetDCS (DCS * item, wvStream * fd); void wvGetDCSFromBucket (DCS * item, U8 * pointer); void wvInitDCS (DCS * item); void wvCopyDCS (DCS * dest, DCS * src); typedef struct _BRC { U32 dptLineWidth:8; U32 brcType:8; U32 ico:8; U32 dptSpace:5; U32 fShadow:1; U32 fFrame:1; U32 reserved:1; } BRC; void wvGetBRC (wvVersion ver, BRC * abrc, wvStream * fd); int wvGetBRCFromBucket (wvVersion ver, BRC * abrc, U8 * pointer); void wvInitBRC (BRC * abrc); void wvCopyBRC (BRC * dest, BRC * src); int wvEqualBRC (BRC * a, BRC * b); typedef struct _BRC10 { /* 16 bits in total */ U32 dxpLine2Width:3; U32 dxpSpaceBetween:3; U32 dxpLine1Width:3; U32 dxpSpace:5; U32 fShadow:1; U32 fSpare:1; } BRC10; int wvGetBRC10FromBucket (BRC10 * item, U8 * pointer); void wvInitBRC10 (BRC10 * item); void wvConvertBRC10ToBRC (BRC * item, BRC10 * in); /* The seven types of border lines that Windows Word 1.0 supports are coded with different sets of values for dxpLine1Width, dxpSpaceBetween, and dxpLine2 Width. The border lines and their brc10 settings follow: line type dxpLine1Width dxpSpaceBetween dxpLine2Width no border 0 0 0 single line 1 0 0 border two single line 1 1 1 border fat solid border 4 0 0 thick solid 2 0 0 border dotted border 6 (special value meaning 0 0 dotted line) hairline border 7(special value meaning 0 0 hairline) When the no border settings are stored in the BRC, brc.fShadow and brc.dxpSpace should be set to 0. */ typedef struct _LSPD { S16 dyaLine; S16 fMultLinespace; } LSPD; void wvCopyLSPD (LSPD * dest, LSPD * src); void wvInitLSPD (LSPD * item); void wvGetLSPDFromBucket (LSPD * item, U8 * pointer); typedef union _PHE { struct { U32 fSpare:1; U32 fUnk:1; U32 fDiffLines:1; U32 reserved1:5; U32 clMac:8; U32 reserved2:16; S32 dxaCol; S32 dymHeight; /*also known as dymLine and dymTableHeight in docs */ } var1; struct { U32 fSpare:1; U32 fUnk:1; U32 dcpTtpNext:30; S32 dxaCol; S32 dymHeight; /*also known as dymLine and dymTableHeight in docs */ } var2; } PHE; void wvCopyPHE (PHE * dest, PHE * src, int which); void wvInitPHE (PHE * item, int which); void wvGetPHE (PHE * dest, int which, U8 * page, U16 * pos); void wvGetPHE6 (PHE * dest, U8 * page, U16 * pos); typedef struct _NUMRM { U8 fNumRM; U8 Spare1; S16 ibstNumRM; DTTM dttmNumRM; U8 rgbxchNums[9]; U8 rgnfc[9]; S16 Spare2; S32 PNBR[9]; XCHAR xst[32]; } NUMRM; void wvGetNUMRM (NUMRM * item, wvStream * fd); void wvGetNUMRMFromBucket (NUMRM * item, U8 * pointer); void wvCopyNUMRM (NUMRM * dest, NUMRM * src); void wvInitNUMRM (NUMRM * item); typedef struct _ANLD { U8 nfc; U8 cxchTextBefore; U32 cxchTextAfter:8; U32 jc:2; U32 fPrev:1; U32 fHang:1; U32 fSetBold:1; U32 fSetItalic:1; U32 fSetSmallCaps:1; U32 fSetCaps:1; U32 fSetStrike:1; U32 fSetKul:1; U32 fPrevSpace:1; U32 fBold:1; U32 fItalic:1; U32 fSmallCaps:1; U32 fCaps:1; U32 fStrike:1; U32 kul:3; U32 ico:5; S16 ftc; U16 hps; U16 iStartAt; S16 dxaIndent; U16 dxaSpace; U8 fNumber1; U8 fNumberAcross; U8 fRestartHdn; U8 fSpareX; XCHAR rgxch[32]; } ANLD; void wvGetANLD (wvVersion ver, ANLD * item, wvStream * fd); void wvGetANLD_FromBucket (wvVersion ver, ANLD * item, U8 * pointer8); void wvCopyANLD (ANLD * dest, ANLD * src); void wvInitANLD (ANLD * item); U32 wvCheckSumANLD (ANLD * item); #define istdNormalChar 10 typedef struct _CHP { U32 fBold:1; U32 fItalic:1; U32 fRMarkDel:1; U32 fOutline:1; U32 fFldVanish:1; U32 fSmallCaps:1; U32 fCaps:1; U32 fVanish:1; U32 fRMark:1; U32 fSpec:1; U32 fStrike:1; U32 fObj:1; U32 fShadow:1; U32 fLowerCase:1; U32 fData:1; U32 fOle2:1; U32 fEmboss:1; U32 fImprint:1; U32 fDStrike:1; S32 fUsePgsuSettings:1; /*? */ U32 reserved1:12; U32 reserved2; U16 reserved11; U16 ftc; U16 ftcAscii; U16 ftcFE; U16 ftcOther; U16 hps; S32 dxaSpace; U32 iss:3; U32 kul:4; U32 fSpecSymbol:1; U32 ico:5; U32 reserved3:1; U32 fSysVanish:1; U32 hpsPos:1; S32 super_sub:16; LID lid; LID lidDefault; LID lidFE; U8 idct; U8 idctHint; U8 wCharScale; S32 fcPic_fcObj_lTagObj; S16 ibstRMark; S16 ibstRMarkDel; DTTM dttmRMark; DTTM dttmRMarkDel; S16 reserved4; U16 istd; S16 ftcSym; XCHAR xchSym; S16 idslRMReason; S16 idslReasonDel; U8 ysr; U8 chYsr; U16 cpg; U16 hpsKern; U32 icoHighlight:5; U32 fHighlight:1; U32 kcd:3; U32 fNavHighlight:1; U32 fChsDiff:1; U32 fMacChs:1; U32 fFtcAsciSym:1; U32 reserved5:3; U32 fPropRMark:16; /*was typo of fPropMark in documentation */ S16 ibstPropRMark; DTTM dttmPropRMark; U8 sfxtText; U8 reserved6; U8 reserved7; U16 reserved8; U16 reserved9; DTTM reserved10; U8 fDispFldRMark; S16 ibstDispFldRMark; DTTM dttmDispFldRMark; XCHAR xstDispFldRMark[16]; SHD shd; BRC brc; /* BiDi properties */ U32 fBidi:1; U32 fBoldBidi:1; U32 fItalicBidi:1; U16 ftcBidi; U16 hpsBidi; U8 icoBidi; LID lidBidi; char stylename[100]; } CHP; void wvInitCHP (CHP * item); void wvCopyCHP (CHP * dest, CHP * src); #define itcMax 64 typedef struct _TC { U32 fFirstMerged:1; U32 fMerged:1; U32 fVertical:1; U32 fBackward:1; U32 fRotateFont:1; U32 fVertMerge:1; U32 fVertRestart:1; U32 vertAlign:2; U32 fUnused:7; U32 wUnused:16; BRC brcTop; BRC brcLeft; BRC brcBottom; BRC brcRight; } TC; void wvCopyTC (TC * dest, TC * src); int wvGetTCFromBucket (wvVersion ver, TC * abrc, U8 * pointer); void wvInitTC (TC * item); typedef struct _TLP { S32 itl:16; U32 fBorders:1; U32 fShading:1; U32 fFont:1; U32 fColor:1; U32 fBestFit:1; U32 fHdrRows:1; U32 fLastRow:1; U32 fHdrCols:1; U32 fLastCol:1; U32 unused:7; } TLP; void wvCopyTLP (TLP * dest, TLP * src); void wvInitTLP (TLP * item); void wvGetTLP (TLP * item, wvStream * fd); void wvGetTLPFromBucket (TLP * item, U8 * pointer); typedef struct _TAP { S16 jc; S32 dxaGapHalf; S32 dyaRowHeight; U8 fCantSplit; U8 fTableHeader; TLP tlp; S32 lwHTMLProps; U32 fCaFull:1; U32 fFirstRow:1; U32 fLastRow:1; U32 fOutline:1; U32 reserved:12; S32 itcMac:16; S32 dxaAdjust; S32 dxaScale; S32 dxsInch; S16 rgdxaCenter[itcMax + 1]; S16 rgdxaCenterPrint[itcMax + 1]; TC rgtc[itcMax]; SHD rgshd[itcMax]; BRC rgbrcTable[6]; } TAP; #define itbdMax 64 void wvCopyTAP (TAP * dest, TAP * src); void wvInitTAP (TAP * item); typedef struct _TBD /* 8 bits */ { U32 jc:3; U32 tlc:3; U32 reserved:2; } TBD; void wvInitTBD (TBD * item); void wvCopyTBD (TBD * dest, TBD * src); void wvGetTBD (TBD * item, wvStream * fd); void wvGetTBDFromBucket (TBD * item, U8 * pointer); /* list information: this is an wv extension to the PAP struct */ typedef struct { U32 id; S32 start; XCHAR * numberstr; U32 numberstr_size; U8 format; U8 align; U8 ixchFollow; CHP chp; }wvListInfo; typedef struct _PAP { U16 istd; U8 jc; U8 fKeep; U8 fKeepFollow; U32 fPageBreakBefore:8; U32 fBrLnAbove:1; U32 fBrLnBelow:1; U32 fUnused:2; U32 pcVert:2; U32 pcHorz:2; U32 brcp:8; U32 brcl:8; U8 reserved1; U8 ilvl; U8 fNoLnn; S16 ilfo; U8 nLvlAnm; U8 reserved2; U8 fSideBySide; U8 reserved3; U8 fNoAutoHyph; U8 fWidowControl; S32 dxaRight; S32 dxaLeft; S32 dxaLeft1; LSPD lspd; U32 dyaBefore; U32 dyaAfter; PHE phe; U8 fCrLf; U8 fUsePgsuSettings; U8 fAdjustRight; U8 reserved4; U8 fKinsoku; U8 fWordWrap; U8 fOverflowPunct; U8 fTopLinePunct; U8 fAutoSpaceDE; U8 fAtuoSpaceDN; U16 wAlignFont; U32 fVertical:1; U32 fBackward:1; U32 fRotateFont:1; U32 reserved5:13; U32 reserved6:16; S8 fInTable; S8 fTtp; U8 wr; U8 fLocked; TAP ptap; S32 dxaAbs; S32 dyaAbs; S32 dxaWidth; BRC brcTop; BRC brcLeft; BRC brcBottom; BRC brcRight; BRC brcBetween; BRC brcBar; S32 dxaFromText; S32 dyaFromText; /*16 bits for the next two entries */ S32 dyaHeight:15; S32 fMinHeight:1; SHD shd; DCS dcs; S8 lvl; S8 fNumRMIns; ANLD anld; S16 fPropRMark; S16 ibstPropRMark; DTTM dttmPropRMark; NUMRM numrm; S16 itbdMac; S16 rgdxaTab[itbdMax]; TBD rgtbd[itbdMax]; /* TODO: Enable Word 2002 extensions; Note this will break wv ABI S8 fNoAllowOverlap; S32 ipgb; S32 rsid; S16 istdList; S8 fContextualSpacing; S8 fHasOldProps; S8 rpf; S32 hplcnf; S8 yfti[13]; */ /* >>------------------PATCH */ char stylename[100]; /* -----------------------<< */ /* BiDi */ U32 fBidi:1; wvListInfo linfo; } PAP; #define istdNil 4095 void wvCopyPAP (PAP * dest, PAP * src); void wvCopyConformPAP (PAP * dest, PAP * src); void wvInitPAP (PAP * item); int wvIsListEntry (PAP * apap, wvVersion ver); int isPAPConform (PAP * current, PAP * previous); typedef U16 BF; typedef U16 FTC; /* STSHI: STyleSHeet Information, as stored in a file Note that new fields can be added to the STSHI without invalidating the file format, because it is stored preceded by it's length. When reading a STSHI from an older version, new fields will be zero. */ typedef struct _STSHI { U16 cstd; /* Count of styles in stylesheet */ U16 cbSTDBaseInFile; /* Length of STD Base as stored in a file */ U32 fStdStylenamesWritten:1; /* Are built-in stylenames stored? */ U32 reserved:15; /* Spare flags */ U32 stiMaxWhenSaved:16; /* Max sti known when this file was written */ U16 istdMaxFixedWhenSaved; /* How many fixed-index istds are there? */ U16 nVerBuiltInNamesWhenSaved; /* Current version of built-in stylenames */ FTC rgftcStandardChpStsh[3]; /* ftc used by StandardChpStsh for this document */ } STSHI; void wvGetSTSHI (STSHI * item, U16 cbSTSHI, wvStream * fd); void wvInitSTSHI (STSHI * item); typedef union _UPX { struct { U8 *grpprl; } chpx; struct { U16 istd; U8 *grpprl; } papx; U8 *rgb; } UPX; typedef struct _UPXF { U16 cbUPX; UPX upx; } UPXF; typedef struct _CHPX { U16 istd; U8 cbGrpprl; U8 *grpprl; } CHPX; void wvInitCHPX (CHPX * item); void wvCopyCHPX (CHPX * dest, CHPX * src); void wvReleaseCHPX (CHPX * item); void wvGetCHPX (wvVersion ver, CHPX * item, U8 * page, U16 * pos); typedef struct _CHPX_FKP { U32 *rgfc; U8 *rgb; CHPX *grpchpx; U8 crun; } CHPX_FKP; void wvGetCHPX_FKP (wvVersion ver, CHPX_FKP * fkp, U32 pn, wvStream * fd); void wvReleaseCHPX_FKP (CHPX_FKP * fkp); void wvInitCHPX_FKP (CHPX_FKP * fkp); typedef union _UPD { PAP apap; CHP achp; CHPX chpx; } UPD; /* The UPE structure is the non-zero prefix of a UPD structure For my purposes we'll call them the same, and when we get around to writing word files, when we'll make a distinction. */ typedef UPD UPE; /* STD: STyle Definition The STD contains the entire definition of a style. It has two parts, a fixed-length base (cbSTDBase bytes long) and a variable length remainder holding the name, and the upx and upe arrays (a upx and upe for each type stored in the style, std.cupx) Note that new fields can be added to the BASE of the STD without invalidating the file format, because the STSHI contains the length that is stored in the file. When reading STDs from an older version, new fields will be zero. */ typedef struct _wvSTD { /* Base part of STD: */ U32 sti:12; /* invariant style identifier */ U32 fScratch:1; /* spare field for any temporary use, always reset back to zero! */ U32 fInvalHeight:1; /* PHEs of all text with this style are wrong */ U32 fHasUpe:1; /* UPEs have been generated */ U32 fMassCopy:1; /* std has been mass-copied; if unused at save time, style should be deleted */ U32 sgc:4; /* style type code */ U32 istdBase:12; /* base style */ U32 cupx:4; /* # of UPXs (and UPEs) */ U32 istdNext:12; /* next style */ U32 bchUpe:16; /* offset to end of upx's, start of upe's */ /* 16 bits in the following bitfields */ U32 fAutoRedef:1; /* auto redefine style when appropriate */ U32 fHidden:1; /* hidden from UI? */ U32 reserved:14; /* unused bits */ /* Variable length part of STD: */ /* XCHAR *xstzName;*/ /* sub-names are separated by chDelimStyle */ char *xstzName; UPXF *grupxf; /*was UPX *grupx in the spec, but for my purposes its different */ /* the UPEs are not stored on the file; they are a cache of the based-on chain */ UPE *grupe; } STD; typedef enum { sgcPara = 1, sgcChp, sgcPic, sgcSep, sgcTap } sgcval; int wvGetSTD (STD * item, U16 baselen, U16 fixedlen, wvStream * fd); void wvInitSTD (STD * item); void wvReleaseSTD (STD * item); /* The style sheet (STSH) is stored in the file in two parts, a STSHI and then an array of STDs. The STSHI contains general information about the following stylesheet, including how many styles are in it. After the STSHI, each style is written as an STD. Both the STSHI and each STD are preceded by a U16 that indicates their length. Field Size Comment cbStshi 2 bytes size of the following STSHI structure STSHI (cbStshi) Stylesheet Information Then for each style in the stylesheet (stshi.cstd), the following is stored: cbStd 2 bytes size of the following STD structure STD (cbStd) the style description */ typedef struct _STSH { STSHI Stshi; STD *std; } STSH; void wvGetSTSH (STSH * item, U32 offset, U32 len, wvStream * fd); void wvReleaseSTSH (STSH * item); void wvGenerateStyle (STSH * item, U16 i, U16 type); void wvInitPAPFromIstd (PAP * apap, U16 istdBase, STSH * stsh); void wvAddPAPXFromBucket (PAP * apap, UPXF * upxf, STSH * stsh, wvStream * data); void wvAddPAPXFromBucket6 (PAP * apap, UPXF * upxf, STSH * stsh); void wvInitCHPFromIstd (CHP * achp, U16 istdBase, STSH * stsh); void wvAddCHPXFromBucket (CHP * achp, UPXF * upxf, STSH * stsh); void wvAddCHPXFromBucket6 (CHP * achp, UPXF * upxf, STSH * stsh); void wvInitCHPXFromIstd (CHPX * chpx, U16 istdBase, STSH * stsh); void wvMergeCHPXFromBucket (CHPX * dest, UPXF * upxf); void wvUpdateCHPXBucket (UPXF * src); void wvApplyCHPXFromBucket (CHP * achp, CHPX * chpx, STSH * stsh); typedef struct _ANLV { U8 nfc; U8 cxchTextBefore; U32 cxchTextAfter:8; U32 jc:2; U32 fPrev:1; U32 fHang:1; U32 fSetBold:1; U32 fSetItalic:1; U32 fSetSmallCaps:1; U32 fSetCaps:1; U32 fSetStrike:1; U32 fSetKul:1; U32 fPrevSpace:1; U32 fBold:1; U32 fItalic:1; U32 fSmallCaps:1; U32 fCaps:1; U32 fStrike:1; U32 kul:3; U32 ico:5; S16 ftc; U16 hps; U16 iStartAt; U16 dxaIndent; U16 dxaSpace; } ANLV; void wvInitANLV (ANLV * item); void wvGetANLV (ANLV * item, wvStream * fd); void wvGetANLVFromBucket (ANLV * item, U8 * pointer); typedef struct _OLST { ANLV rganlv[9]; U8 fRestartHdr; U8 fSpareOlst2; U8 fSpareOlst3; U8 fSpareOlst4; XCHAR rgxch[64]; } OLST; void wvInitOLST (OLST *); void wvGetOLST (wvVersion ver, OLST * item, wvStream * fd); void wvGetOLSTFromBucket (wvVersion ver, OLST * item, U8 * pointer); typedef struct _SEP { U8 bkc; U8 fTitlePage; S8 fAutoPgn; U8 nfcPgn; U8 fUnlocked; U8 cnsPgn; U8 fPgnRestart; U8 fEndNote; U8 lnc; S8 grpfIhdt; U16 nLnnMod; S32 dxaLnn; S16 dxaPgn; S16 dyaPgn; S8 fLBetween; S8 vjc; U16 dmBinFirst; U16 dmBinOther; U16 dmPaperReq; BRC brcTop; BRC brcLeft; BRC brcBottom; BRC brcRight; S16 fPropRMark; S16 ibstPropRMark; DTTM dttmPropRMark; S32 dxtCharSpace; S32 dyaLinePitch; U16 clm; S16 reserved1; U8 dmOrientPage; U8 iHeadingPgn; U16 pgnStart; S16 lnnMin; S16 wTextFlow; S16 reserved2; S32 pgbProp:16; U32 pgbApplyTo:3; U32 pgbPageDepth:2; U32 pgbOffsetFrom:3; U32 reserved:8; U32 xaPage; U32 yaPage; U32 xaPageNUp; U32 yaPageNUp; U32 dxaLeft; U32 dxaRight; S32 dyaTop; S32 dyaBottom; U32 dzaGutter; U32 dyaHdrTop; U32 dyaHdrBottom; S16 ccolM1; S8 fEvenlySpaced; S8 reserved3; S32 dxaColumns; S32 rgdxaColumnWidthSpacing[89]; S32 dxaColumnWidth; U8 dmOrientFirst; U8 fLayout; S16 reserved4; OLST olstAnm; U8 fBidi; } SEP; void wvInitSEP (SEP * item); typedef struct _SEPX { U16 cb; U8 *grpprl; } SEPX; void wvGetSEPX (wvVersion ver, SEPX * item, wvStream * fd); void wvReleaseSEPX (SEPX * item); int wvAddSEPXFromBucket (SEP * asep, SEPX * item, STSH * stsh); int wvAddSEPXFromBucket6 (SEP * asep, SEPX * item, STSH * stsh); typedef struct _Sprm { /*16 bits in total */ U32 ispmd:9; /*ispmd unique identifier within sgc group */ U32 fSpec:1; /*fSpec sprm requires special handling */ U32 sgc:3; /*sgc sprm group; type of sprm (PAP, CHP, etc) */ U32 spra:3; /*spra size of sprm argument */ } Sprm; Sprm wvApplySprmFromBucket (wvVersion ver, U16 sprm, PAP * apap, CHP * achp, SEP * asep, STSH * stsh, U8 * pointer, U16 * pos, wvStream * data); int wvSprmLen (int spra); void wvGetSprmFromU16 (Sprm * Sprm, U16 sprm); U8 wvEatSprm (U16 sprm, U8 * pointer, U16 * pos); typedef enum _SprmName { /* these ones are ones I made up entirely to match unnamed patterns in word 95 files, whose purpose is currently unknown */ sprmTUNKNOWN1 = 0xD400, sprmPUNKNOWN2 = 0x2400, /* word 7 0x39 */ sprmPUNKNOWN3 = 0x2401, /* word 7 0x3a */ sprmPUNKNOWN4 = 0x4400, /* word 7 0x3b */ sprmCUNKNOWN5 = 0x4800, /* word 7 0x6f */ sprmCUNKNOWN6 = 0x4801, /* word 7 0x70 */ sprmCUNKNOWN7 = 0x4802, /* word 7 0x71 */ /* these ones showed up in rgsprmPrm and are mostly out of date i reckon */ sprmNoop = 0x0000, /* this makes sense */ sprmPPnbrRMarkNot = 0x0000, /* never seen this one */ /* this subset were not listed in word 8, but i recreated them from the word 8 guidelines and the original word 6, so basically they will blow things up when ms decides to reuse them in word 2000 or later versions, but what the hell... */ sprmCFStrikeRM = 0x0841, sprmPNLvlAnm = 0x240D, sprmCFtc = 0x483D, /*end subset */ /* one of the sprm's that shows up in word 6 docs is "0", which appears to be either the pap.istd or just an index, seeing as the word 6 people didn't list it, lets just ignore it. as it only happens in word 6 docs, our code happens to function fine in the current setup, but at some stage im sure it will bite me hard */ sprmPIstd = 0x4600, sprmPIstdPermute = 0xC601, sprmPIncLvl = 0x2602, sprmPJc = 0x2403, sprmPFSideBySide = 0x2404, sprmPFKeep = 0x2405, sprmPFKeepFollow = 0x2406, sprmPFPageBreakBefore = 0x2407, sprmPBrcl = 0x2408, sprmPBrcp = 0x2409, sprmPIlvl = 0x260A, sprmPIlfo = 0x460B, sprmPFNoLineNumb = 0x240C, sprmPChgTabsPapx = 0xC60D, sprmPDxaRight = 0x840E, sprmPDxaLeft = 0x840F, sprmPNest = 0x4610, sprmPDxaLeft1 = 0x8411, sprmPDyaLine = 0x6412, sprmPDyaBefore = 0xA413, sprmPDyaAfter = 0xA414, sprmPChgTabs = 0xC615, sprmPFInTable = 0x2416, sprmPFTtp = 0x2417, sprmPDxaAbs = 0x8418, sprmPDyaAbs = 0x8419, sprmPDxaWidth = 0x841A, sprmPPc = 0x261B, sprmPBrcTop10 = 0x461C, sprmPBrcLeft10 = 0x461D, sprmPBrcBottom10 = 0x461E, sprmPBrcRight10 = 0x461F, sprmPBrcBetween10 = 0x4620, sprmPBrcBar10 = 0x4621, sprmPDxaFromText10 = 0x4622, sprmPWr = 0x2423, sprmPBrcTop = 0x6424, sprmPBrcLeft = 0x6425, sprmPBrcBottom = 0x6426, sprmPBrcRight = 0x6427, sprmPBrcBetween = 0x6428, sprmPBrcBar = 0x6629, sprmPFNoAutoHyph = 0x242A, sprmPWHeightAbs = 0x442B, sprmPDcs = 0x442C, sprmPShd = 0x442D, sprmPDyaFromText = 0x842E, sprmPDxaFromText = 0x842F, sprmPFLocked = 0x2430, sprmPFWidowControl = 0x2431, sprmPRuler = 0xC632, sprmPFKinsoku = 0x2433, sprmPFWordWrap = 0x2434, sprmPFOverflowPunct = 0x2435, sprmPFTopLinePunct = 0x2436, sprmPFAutoSpaceDE = 0x2437, sprmPFAutoSpaceDN = 0x2438, sprmPWAlignFont = 0x4439, sprmPFrameTextFlow = 0x443A, sprmPISnapBaseLine = 0x243B, sprmPAnld = 0xC63E, sprmPPropRMark = 0xC63F, sprmPOutLvl = 0x2640, sprmPFBiDi = 0x2441, sprmPFNumRMIns = 0x2443, sprmPCrLf = 0x2444, sprmPNumRM = 0xC645, sprmPHugePapx = 0x6645, sprmPHugePapx2 = 0x6646, /* this is the one I have found in the wild, maybe the doc is incorrect in numbering it 6645 C. */ sprmPFUsePgsuSettings = 0x2447, sprmPFAdjustRight = 0x2448, sprmPItap = 0x6649, sprmPRsid = 0x6467, sprmCRsidText = 0x6816, sprmCFRMarkDel = 0x0800, sprmCFRMark = 0x0801, sprmCFFldVanish = 0x0802, sprmCPicLocation = 0x6A03, sprmCIbstRMark = 0x4804, sprmCDttmRMark = 0x6805, sprmCFData = 0x0806, sprmCIdslRMark = 0x4807, sprmCChs = 0xEA08, sprmCSymbol = 0x6A09, sprmCFOle2 = 0x080A, sprmCIdCharType = 0x480B, sprmCHighlight = 0x2A0C, sprmCObjLocation = 0x680E, sprmCFFtcAsciSymb = 0x2A10, sprmCIstd = 0x4A30, sprmCIstdPermute = 0xCA31, sprmCDefault = 0x2A32, sprmCPlain = 0x2A33, sprmCKcd = 0x2A34, sprmCFBold = 0x0835, sprmCFItalic = 0x0836, sprmCFStrike = 0x0837, sprmCFOutline = 0x0838, sprmCFShadow = 0x0839, sprmCFSmallCaps = 0x083A, sprmCFCaps = 0x083B, sprmCFVanish = 0x083C, sprmCFtcDefault = 0x4A3D, sprmCKul = 0x2A3E, sprmCSizePos = 0xEA3F, sprmCDxaSpace = 0x8840, sprmCLid = 0x4A41, sprmCIco = 0x2A42, sprmCHps = 0x4A43, sprmCHpsInc = 0x2A44, sprmCHpsPos = 0x4845, sprmCHpsPosAdj = 0x2A46, sprmCMajority = 0xCA47, sprmCIss = 0x2A48, sprmCHpsNew50 = 0xCA49, sprmCHpsInc1 = 0xCA4A, sprmCHpsKern = 0x484B, sprmCMajority50 = 0xCA4C, sprmCHpsMul = 0x4A4D, sprmCYsri = 0x484E, sprmCRgFtc0 = 0x4A4F, sprmCRgFtc1 = 0x4A50, sprmCRgFtc2 = 0x4A51, sprmCCharScale = 0x4852, sprmCFDStrike = 0x2A53, sprmCFImprint = 0x0854, sprmCFSpec = 0x0855, sprmCFObj = 0x0856, sprmCPropRMark = 0xCA57, sprmCFEmboss = 0x0858, sprmCSfxText = 0x2859, sprmCFBiDi = 0x085A, sprmCFDiacColor = 0x085B, sprmCFBoldBi = 0x085C, sprmCFItalicBi = 0x085D, sprmCFtcBi = 0x4A5E, sprmCLidBi = 0x485F, sprmCIcoBi = 0x4A60, sprmCHpsBi = 0x4A61, sprmCDispFldRMark = 0xCA62, sprmCIbstRMarkDel = 0x4863, sprmCDttmRMarkDel = 0x6864, sprmCBrc = 0x6865, sprmCShd = 0x4866, sprmCIdslRMarkDel = 0x4867, sprmCFUsePgsuSettings = 0x0868, sprmCCpg = 0x486B, sprmCRgLid0 = 0x486D, sprmCRgLid1 = 0x486E, sprmCIdctHint = 0x286F, sprmPicBrcl = 0x2E00, sprmPicScale = 0xCE01, sprmPicBrcTop = 0x6C02, sprmPicBrcLeft = 0x6C03, sprmPicBrcBottom = 0x6C04, sprmPicBrcRight = 0x6C05, sprmScnsPgn = 0x3000, sprmSiHeadingPgn = 0x3001, sprmSOlstAnm = 0xD202, sprmSDxaColWidth = 0xF203, sprmSDxaColSpacing = 0xF204, sprmSFEvenlySpaced = 0x3005, sprmSFProtected = 0x3006, sprmSDmBinFirst = 0x5007, sprmSDmBinOther = 0x5008, sprmSBkc = 0x3009, sprmSFTitlePage = 0x300A, sprmSCcolumns = 0x500B, sprmSDxaColumns = 0x900C, sprmSFAutoPgn = 0x300D, sprmSNfcPgn = 0x300E, sprmSDyaPgn = 0xB00F, sprmSDxaPgn = 0xB010, sprmSFPgnRestart = 0x3011, sprmSFEndnote = 0x3012, sprmSLnc = 0x3013, sprmSGprfIhdt = 0x3014, sprmSNLnnMod = 0x5015, sprmSDxaLnn = 0x9016, sprmSDyaHdrTop = 0xB017, sprmSDyaHdrBottom = 0xB018, sprmSLBetween = 0x3019, sprmSVjc = 0x301A, sprmSLnnMin = 0x501B, sprmSPgnStart = 0x501C, sprmSBOrientation = 0x301D, sprmSBCustomize = 0x301E, sprmSXaPage = 0xB01F, sprmSYaPage = 0xB020, sprmSDxaLeft = 0xB021, sprmSDxaRight = 0xB022, sprmSDyaTop = 0x9023, sprmSDyaBottom = 0x9024, sprmSDzaGutter = 0xB025, sprmSDmPaperReq = 0x5026, sprmSPropRMark = 0xD227, sprmSFBiDi = 0x3228, sprmSFFacingCol = 0x3229, sprmSFRTLGutter = 0x322A, sprmSBrcTop = 0x702B, sprmSBrcLeft = 0x702C, sprmSBrcBottom = 0x702D, sprmSBrcRight = 0x702E, sprmSPgbProp = 0x522F, sprmSDxtCharSpace = 0x7030, sprmSDyaLinePitch = 0x9031, sprmSClm = 0x5032, sprmSTextFlow = 0x5033, sprmTJc = 0x5400, sprmTDxaLeft = 0x9601, sprmTDxaGapHalf = 0x9602, sprmTFCantSplit = 0x3403, sprmTTableHeader = 0x3404, sprmTTableBorders = 0xD605, sprmTDefTable10 = 0xD606, sprmTDyaRowHeight = 0x9407, sprmTDefTable = 0xD608, sprmTDefTableShd = 0xD609, sprmTTlp = 0x740A, sprmTFBiDi = 0x560B, sprmTHTMLProps = 0x740C, sprmTSetBrc = 0xD620, sprmTInsert = 0x7621, sprmTDelete = 0x5622, sprmTDxaCol = 0x7623, sprmTMerge = 0x5624, sprmTSplit = 0x5625, sprmTSetBrc10 = 0xD626, sprmTSetShd = 0x7627, sprmTSetShdOdd = 0x7628, sprmTTextFlow = 0x7629, sprmTDiagLine = 0xD62A, sprmTVertMerge = 0xD62B, sprmTVertAlign = 0xD62C } SprmName; SprmName wvGetrgsprmWord6 (U8 in); void wvApplysprmPIstdPermute (PAP * apap, U8 * pointer, U16 * pos); void wvApplysprmPIncLvl (PAP * apap, U8 * pointer, U16 * pos); void wvApplysprmPChgTabsPapx (PAP * apap, U8 * pointer, U16 * pos); int wvApplysprmPChgTabs (PAP * apap, U8 * pointer, U16 * len); void wvApplysprmPPc (PAP * apap, U8 * pointer, U16 * len); void wvApplysprmPFrameTextFlow (PAP * apap, U8 * pointer, U16 * pos); void wvApplysprmPAnld (wvVersion ver, PAP * apap, U8 * pointer, U16 * pos); void wvApplysprmPPropRMark (PAP * apap, U8 * pointer, U16 * pos); void wvApplysprmPNumRM (PAP * apap, U8 * pointer, U16 * pos); void wvApplysprmPHugePapx (PAP * apap, U8 * pointer, U16 * pos, wvStream * data, STSH * stsh); void wvApplysprmCChs (CHP * achp, U8 * pointer, U16 * pos); /*unfinished */ void wvApplysprmCSymbol (wvVersion ver, CHP * achp, U8 * pointer, U16 * pos); void wvApplysprmCIstdPermute (CHP * achp, U8 * pointer, U16 * pos); /*unfinished */ void wvApplysprmCDefault (CHP * achp, U8 * pointer, U16 * pos); void wvApplysprmCPlain (CHP * achp, STSH * stsh); void wvApplysprmCHpsInc (CHP * achp, U8 * pointer, U16 * pos); /*unfinished */ void wvApplysprmCSizePos (CHP * achp, U8 * pointer, U16 * pos); /*unfinished */ void wvApplysprmCHpsPosAdj (CHP * achp, U8 * pointer, U16 * pos); /*unfinished */ void wvApplysprmCMajority (CHP * achp, STSH * stsh, U8 * pointer, U16 * pos); /*possibly wrong */ void wvApplysprmCMajority50 (CHP * achp, STSH * stsh, U8 * pointer, U16 * pos); /*possibly wrong */ void wvApplysprmCHpsInc1 (CHP * achp, U8 * pointer, U16 * pos); void wvApplysprmCPropRMark (CHP * achp, U8 * pointer, U16 * pos); void wvApplysprmCDispFldRMark (CHP * achp, U8 * pointer, U16 * pos); void wvApplysprmSOlstAnm (wvVersion ver, SEP * asep, U8 * pointer, U16 * pos); void wvApplysprmSPropRMark (SEP * asep, U8 * pointer, U16 * pos); void wvApplysprmTDxaLeft (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTDxaGapHalf (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTTableBorders (wvVersion ver, TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTDefTable (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTDefTable10 (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTDefTableShd (TAP * tap, U8 * pointer, U16 * pos); void wv2ApplysprmTDefTableShd (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTSetBrc (wvVersion ver, TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTInsert (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTDelete (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTDxaCol (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTMerge (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTSplit (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTSetBrc10 (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTSetShd (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTSetShdOdd (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTTextFlow (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTVertMerge (TAP * tap, U8 * pointer, U16 * pos); void wvApplysprmTVertAlign (TAP * tap, U8 * pointer, U16 * pos); U8 wvToggle (U8 in, U8 toggle); typedef enum { UTF8, ISO_8859_15, KOI8, TIS620, /*add your own charset here */ CharsetTableSize /* must be last entry on pain of death */ } wvCharset; typedef enum _FIELDCODE { FC_OTHER = 0, FC_TIME, FC_DateTimePicture, FC_HYPERLINK, FC_EDITTIME, FC_TOC, FC_TOC_FROM_RANGE, FC_PAGEREF, FC_EMBED, FC_SPEICHERDAT, FC_DATEINAME, FieldCodeTableSize /*must be last entry on pain of death */ } FIELDCODE; typedef enum _TT { TT_OTHER = 0, TT_DOCUMENT, TT_BEGIN, TT_END, TT_TITLE, TT_PARA, TT_CHARSET, TT_VERSION, TT_JUSTIFICATION, TT_JUST, TT_LEFT, TT_RIGHT, TT_CENTER, TT_BLOCK, TT_ASIAN, TT_SECTION, TT_BOLD, TT_CHAR, TT_BOLDB, TT_BOLDE, TT_ITALIC, TT_ITALICB, TT_ITALICE, TT_STRIKE, TT_STRIKEB, TT_STRIKEE, TT_RMarkDel, TT_RMarkDelB, TT_RMarkDelE, TT_OUTLINE, TT_OUTLINEB, TT_OUTLINEE, TT_SMALLCAPS, TT_SMALLCAPSB, TT_SMALLCAPSE, TT_CAPS, TT_CAPSB, TT_CAPSE, TT_VANISH, TT_VANISHB, TT_VANISHE, TT_RMark, TT_RMarkB, TT_RMarkE, TT_SHADOW, TT_SHADOWB, TT_SHADOWE, TT_LOWERCASE, TT_LOWERCASEB, TT_LOWERCASEE, TT_EMBOSS, TT_EMBOSSB, TT_EMBOSSE, TT_IMPRINT, TT_IMPRINTB, TT_IMPRINTE, TT_DSTRIKE, TT_DSTRIKEB, TT_DSTRIKEE, TT_SUPER, TT_SUPERB, TT_SUPERE, TT_SUB, TT_SUBB, TT_SUBE, TT_SINGLEU, TT_SINGLEUB, TT_SINGLEUE, TT_WORDU, TT_WORDUB, TT_WORDUE, TT_DOUBLEU, TT_DOUBLEUB, TT_DOUBLEUE, TT_DOTTEDU, TT_DOTTEDUB, TT_DOTTEDUE, TT_HIDDENU, TT_HIDDENUB, TT_HIDDENUE, TT_THICKU, TT_THICKUB, TT_THICKUE, TT_DASHU, TT_DASHUB, TT_DASHUE, TT_DOTU, TT_DOTUB, TT_DOTUE, TT_DOTDASHU, TT_DOTDASHUB, TT_DOTDASHUE, TT_DOTDOTDASHU, TT_DOTDOTDASHUB, TT_DOTDOTDASHUE, TT_WAVEU, TT_WAVEUB, TT_WAVEUE, TT_BLACK, TT_BLACKB, TT_BLACKE, TT_BLUE, TT_BLUEB, TT_BLUEE, TT_CYAN, TT_CYANB, TT_CYANE, TT_GREEN, TT_GREENB, TT_GREENE, TT_MAGENTA, TT_MAGENTAB, TT_MAGENTAE, TT_RED, TT_REDB, TT_REDE, TT_YELLOW, TT_YELLOWB, TT_YELLOWE, TT_WHITE, TT_WHITEB, TT_WHITEE, TT_DKBLUE, TT_DKBLUEB, TT_DKBLUEE, TT_DKCYAN, TT_DKCYANB, TT_DKCYANE, TT_DKGREEN, TT_DKGREENB, TT_DKGREENE, TT_DKMAGENTA, TT_DKMAGENTAB, TT_DKMAGENTAE, TT_DKRED, TT_DKREDB, TT_DKREDE, TT_DKYELLOW, TT_DKYELLOWB, TT_DKYELLOWE, TT_DKGRAY, TT_DKGRAYB, TT_DKGRAYE, TT_LTGRAY, TT_LTGRAYB, TT_LTGRAYE, TT_FONTSTR, TT_FONTSTRB, TT_FONTSTRE, TT_COLOR, TT_COLORB, TT_COLORE, TT_ibstRMark, TT_ibstRMarkDel, TT_dttmRMark, TT_dttmRMarkDel, TT_PropRMark, TT_PropRMarkB, TT_PropRMarkE, TT_ibstPropRMark, TT_dttmPropRMark, TT_LasVegas, TT_LasVegasB, TT_LasVegasE, TT_BackgroundBlink, TT_BackgroundBlinkB, TT_BackgroundBlinkE, TT_SparkleText, TT_SparkleTextB, TT_SparkleTextE, TT_MarchingAnts, TT_MarchingAntsB, TT_MarchingAntsE, TT_MarchingRedAnts, TT_MarchingRedAntsB, TT_MarchingRedAntsE, TT_Shimmer, TT_ShimmerB, TT_ShimmerE, TT_ANIMATION, TT_ANIMATIONB, TT_ANIMATIONE, TT_DispFldRMark, TT_DispFldRMarkB, TT_DispFldRMarkE, TT_ibstDispFldRMark, TT_dttmDispFldRMark, TT_xstDispFldRMark, TT_OLIST, TT_OLISTB, TT_OLISTE, TT_ULIST, TT_ULISTB, TT_ULISTE, TT_ENTRY, TT_ENTRYB, TT_ENTRYE, TT_numbering, TT_Arabic, TT_UpperRoman, TT_LowerRoman, TT_UpperCaseN, TT_LowerCaseN, TT_nfc, TT_START, TT_TABLE, TT_TABLEB, TT_TABLEE, TT_ROW, TT_ROWB, TT_ROWE, TT_CELL, TT_CELLB, TT_CELLE, TT_LASTCELL, TT_LASTCELLB, TT_LASTCELLE, TT_COLSPAN, TT_ROWSPAN, TT_TEXT, TT_TEXTB, TT_TEXTE, TT_CELLRELWIDTH, TT_CELLRELPAGEWIDTH, TT_CELLBGCOLOR, TT_TABLERELWIDTH, TT_STYLE, TT_COMMENT, TT_IBSTANNO, TT_xstUsrInitl, TT_mmParaBefore, TT_mmParaAfter, TT_mmParaLeft, TT_mmParaRight, TT_mmParaLeft1, TT_BORDER, TT_NONED, TT_SINGLED, TT_THICKD, TT_DOUBLED, TT_NUMBER4D, TT_HAIRLINED, TT_DOTD, TT_DASHLARGEGAPD, TT_DOTDASHD, TT_DOTDOTDASHD, TT_TRIPLED, TT_thin_thicksmallgapD, TT_thick_thinsmallgapD, TT_thin_thick_thinsmallgapD, TT_thin_thickmediumgapD, TT_thick_thinmediumgapD, TT_thin_thick_thinmediumgapD, TT_thin_thicklargegapD, TT_thick_thinlargegapD, TT_thin_thick_thinlargegapD, TT_WAVED, TT_DOUBLEWAVED, TT_DASHSMALLGAPD, TT_DASHDOTSTROKEDD, TT_EMBOSS3DD, TT_ENGRAVE3DD, TT_DEFAULTD, TT_BORDERTopSTYLE, TT_BORDERTopCOLOR, TT_BORDERLeftSTYLE, TT_BORDERLeftCOLOR, TT_BORDERRightSTYLE, TT_BORDERRightCOLOR, TT_BORDERBottomSTYLE, TT_BORDERBottomCOLOR, TT_mmPadTop, TT_mmPadRight, TT_mmPadBottom, TT_mmPadLeft, TT_mmLineHeight, TT_PARABGCOLOR, TT_PARAFGCOLOR, TT_PICTURE, TT_pixPicWidth, TT_pixPicHeight, TT_htmlAlignGuess, TT_htmlNextLineGuess, TT_PMARGIN, TT_PBORDER, TT_PARAMARGIN, TT_PARABORDER, TT_TABLEOVERRIDES, TT_ParaBefore, TT_ParaAfter, TT_ParaLeft, TT_ParaRight, TT_ParaLeft1, TT_FILENAME, TT_htmlgraphic, TT_no_rows, TT_no_cols, TT_CHARENTITY, TT_VertMergedCells, TT_DIRECTION, TT_DIR, /* >>---------- PATCH */ TT_stylename, /* << ---------------- */ TokenTableSize /*must be last entry on pain of death */ } TT; typedef struct _TokenTable { const char *m_name; int m_type; } TokenTable, CharsetTable, ReasonTable; /* support for ternary tree lookup of tokens */ typedef struct tokennode *Tokenptr; typedef struct tokennode { char splitchar; Tokenptr lokid, eqkid, hikid; int token; /* indexes into the token table */ } Tokennode; void tokenTreeFreeAll (void); typedef struct _wvEle { int nostr; char **str; } wvEle; const char *wvGetCharset (U16 charset); U16 wvLookupCharset (char *optarg); typedef struct _state_data { wvEle elements[TokenTableSize]; U32 state; wvEle *currentele; char **current; U32 currentlen; FILE *fp; const char *path; } state_data; typedef struct _PRM { /*full total of bits should be 16 */ U32 fComplex:1; union { struct { U32 isprm:7; U32 val:8; } var1; struct { U32 igrpprl:15; } var2; } para; } PRM; void wvGetPRM (PRM * item, wvStream * fd); void wvInitPRM (PRM * item); typedef struct _PCD { /*this should be 16 bits for bitfields */ U32 fNoParaLast:1; U32 fPaphNil:1; U32 fCopied:1; U32 reserved:5; U32 fn:8; U32 fc; PRM prm; } PCD; void wvGetPCD (PCD * item, wvStream * fd); void wvInitPCD (PCD * item); int wvGetPCD_PLCF (PCD ** pcd, U32 ** pos, U32 * nopcd, U32 offset, U32 len, wvStream * fd); int wvReleasePCD_PLCF (PCD * pcd, U32 * pos); int wvGuess16bit (PCD * pcd, U32 * pos, U32 nopcd); typedef struct _CLX { PCD *pcd; U32 *pos; U32 nopcd; U16 grpprl_count; U16 *cbGrpprl; U8 **grpprl; } CLX; void wvInitCLX (CLX * item); void wvGetCLX (wvVersion ver, CLX * clx, U32 offset, U32 len, U8 fExtChar, wvStream * fd); void wvReleaseCLX (CLX * clx); void wvBuildCLXForSimple6 (CLX * clx, FIB * fib); typedef struct _FDOA { S32 fc; S16 ctxbx; } FDOA; void wvGetFDOA (FDOA * item, wvStream * fd); int wvGetFDOA_PLCF (FDOA ** fdoa, U32 ** pos, U32 * nofdoa, U32 offset, U32 len, wvStream * fd); FDOA *wvGetFDOAFromCP (U32 currentcp, FDOA * fdoa, U32 * pos, U32 nofdoa); typedef enum { DOCBEGIN, DOCEND, SECTIONBEGIN, SECTIONEND, PARABEGIN, PARAEND, CHARPROPBEGIN, CHARPROPEND, COMMENTBEGIN, COMMENTEND } wvTag; typedef struct _wvParseStruct { /*public */ void *userData; /*protected */ GsfInput *ole_file; wvStream *mainfd; wvStream *tablefd; wvStream *data; wvStream *summary; FIB fib; DOP dop; STTBF anSttbfAssoc; STTBF Sttbfbkmk; LFO *lfo; LFOLVL *lfolvl; LVL *lvl; U32 nolfo; U32 nooflvl; LST *lst; U16 noofLST; CLX clx; FFN_STTBF fonts; STSH stsh; LVL *finallvl; U32 *liststartnos; U8 *listnfcs; int (*charhandler) (struct _wvParseStruct * ps, U16 eachchar, U8 chartype, U16 lid); int (*scharhandler) (struct _wvParseStruct * ps, U16 eachchar, CHP * achp); int (*elehandler) (struct _wvParseStruct * ps, wvTag tag, void *props, int dirty); int (*dochandler) (struct _wvParseStruct * ps, wvTag tag); /*private */ wvStream *tablefd0; wvStream *tablefd1; U16 password[16]; U8 intable; S16 *cellbounds; int nocellbounds; S16 **vmerges; U16 norows; U8 endcell; U32 currentcp; PAP nextpap; FSPA *fspa; U32 *fspapos; U32 nooffspa; FDOA *fdoa; U32 *fdoapos; U32 nooffdoa; int fieldstate; int fieldmiddle; char *filename; char *dir; /* see abiword bug 10247 */ GsfInput *input; } wvParseStruct; void wvSetPassword (const char *password, wvParseStruct * ps); void wvSetTableInfo (wvParseStruct * ps, TAP * ptap, int no); int wvDecrypt95 (wvParseStruct * ps); int wvDecrypt97 (wvParseStruct * ps); void wvPrintTitle (wvParseStruct * ps, STTBF * item); wvStream *wvWhichTableStream (FIB * fib, wvParseStruct * ps); char *wvAutoCharset (wvParseStruct * ps); typedef struct _expand_data { STTBF *anSttbfAssoc; /* associated strings */ STSH *stsh; LFO **lfo; /* list tables */ LFOLVL *lfolvl; LVL *lvl; U32 *nolfo; U32 *nooflvl; LST **lst; U16 *noofLST; U8 *intable; U8 *endcell; S16 **cellbounds; int *nocellbounds; S16 ***vmerges; int whichcell; int whichrow; U32 **liststartnos; U8 **listnfcs; LVL **finallvl; U16 *norows; FIB *fib; DOP *dop; void *props; /* holds PAP/CHP/etc */ char *charset; char *retstring; U32 currentlen; state_data *sd; SEP *asep; PAP *nextpap; PAP lastpap; char *filename; wvParseStruct *ps; } expand_data; void wvInitExpandData (expand_data * data); /* returns the same as wvOLEDecode with the addition that 4 means that it isnt a word document */ int wvInitParser (wvParseStruct * ps, char *path); int wvInitParser_gsf (wvParseStruct * ps, GsfInput *path); wvParseStruct * wvCreateParser (void); void wvDeleteParser (wvParseStruct * ps); int wvInit (void); void wvShutdown (void); void wvDecodeSimple (wvParseStruct * ps, subdocument whichdoc); U32 wvGetBeginFC (wvParseStruct * ps, subdocument whichdoc); typedef enum { cbATRD = 30, cbANLD = 84, cbANLV = 16, cbASUMY = 4, cbASUMYI = 12, cbBTE = 4, cbBKD = 6, cbBKF = 4, cbBKL = 2, cbBRC = 4, cbBRC10 = 2, cbCHP = 136, cbDTTM = 4, cbDCS = 2, cbDOGRID = 10, cbDOPTYPOGRAPHY = 310, cbFSPA = 26, cbFIB = 898, cbLSPD = 4, cbOLST = 212, cbNUMRM = 128, cbPGD = 10, cbPHE = 12, cbPAP = 610, cbPCD = 8, /* cbPLC */ cbPRM = 2, cbRS = 16, cbRR = 4, cbSED = 12, cbSEP = 704, cbSHD = 2, cbTBD = 1, cbTC = 20, cbTLP = 4, cbTAP = 1728, cbWKB = 12, cbLSTF = 28, cbFDOA = 6, cbFTXBXS = 22, cb7DOP = 88, cb6BTE = 2, cb6FIB = 682, cb6PHE = 6, cb6ANLD = 52, cb6BRC = 2, cb6DOP = 84, cb6PGD = 6, cb6TC = 10, cb6CHP = 42 } cbStruct; U32 wvNormFC (U32 fc, int *flag); int wvGetPieceBoundsFC (U32 * begin, U32 * end, CLX * clx, U32 piececount); int wvGetPieceBoundsCP (U32 * begin, U32 * end, CLX * clx, U32 piececount); U16 wvGetChar (wvStream * fd, U8 chartype); void *wvMalloc (U32 size); typedef struct _BTE { U32 pn:22; U32 unused:10; } BTE; void wvGetBTE (BTE * bte, wvStream * fd); void wvInitBTE (BTE * bte); int wvGetBTE_PLCF (BTE ** bte, U32 ** pos, U32 * nobte, U32 offset, U32 len, wvStream * fd); int wvGetBTE_PLCF6 (BTE ** bte, U32 ** pos, U32 * nobte, U32 offset, U32 len, wvStream * fd); void wvCopyBTE (BTE * dest, BTE * src); int wvGetBTE_FromFC (BTE * bte, U32 currentfc, BTE * list, U32 * fcs, int nobte); void wvListBTE_PLCF (BTE ** bte, U32 ** pos, U32 * nobte); #define WV_PAGESIZE 512 typedef struct _BX { U8 offset; PHE phe; } BX; void wvGetBX (BX * item, U8 * page, U16 * pos); void wvGetBX6 (BX * item, U8 * page, U16 * pos); typedef struct _PAPX { U16 cb; U16 istd; U8 *grpprl; } PAPX; void wvGetPAPX (wvVersion ver, PAPX * item, U8 * page, U16 * pos); void wvReleasePAPX (PAPX * item); void wvInitPAPX (PAPX * item); typedef struct _PAPX_FKP { U32 *rgfc; BX *rgbx; PAPX *grppapx; U8 crun; } PAPX_FKP; void wvGetPAPX_FKP (wvVersion ver, PAPX_FKP * fkp, U32 pn, wvStream * fd); void wvReleasePAPX_FKP (PAPX_FKP * fkp); void wvInitPAPX_FKP (PAPX_FKP * fkp); int wvGetIntervalBounds (U32 * fcFirst, U32 * fcLim, U32 currentfc, U32 * pos, U32 nopos); int wvIncFC (U8 chartype); int wvGetSimpleParaBounds (wvVersion ver, PAPX_FKP * fkp, U32 * fcFirst, U32 * fcLim, U32 currentfc, /*CLX *clx, */ BTE * bte, U32 * pos, int nobte, wvStream * fd); int wvOutputTextChar (U16 eachchar, U8 chartype, wvParseStruct * ps, CHP * achp); void wvOutputFromUnicode (U16 eachchar, char *outputtype); int wvConvertUnicodeToHtml (U16 char16); int wvConvertUnicodeToXml (U16 char16); char *wvConvertStylename(char *stylename, char *outputtype); int wvConvertUnicodeToLaTeX (U16 char16); U16 wvConvertSymbolToUnicode (U16 char16); U16 wvConvertMTExtraToUnicode (U16 char16); U16 wvHandleCodePage (U16 eachchar, U16 lid); void wvDecodeComplex (wvParseStruct * ps); int wvGetComplexParaBounds (wvVersion ver, PAPX_FKP * fkp, U32 * fcFirst, U32 * fcLim, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, wvStream * fd); U32 wvSearchNextLargestFCPAPX_FKP (PAPX_FKP * fkp, U32 currentfc); U32 wvSearchNextLargestFCCHPX_FKP (CHPX_FKP * fkp, U32 currentfc); int wvQuerySamePiece (U32 fcTest, CLX * clx, U32 piece); int wvGetComplexParafcFirst (wvVersion ver, U32 * fcFirst, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, PAPX_FKP * fkp, wvStream * fd); U32 wvSearchNextSmallestFCPAPX_FKP (PAPX_FKP * fkp, U32 currentfc); U32 wvGetPieceFromCP (U32 cp, CLX * clx); int wvGetIndexFCInFKP_PAPX (PAPX_FKP * fkp, U32 currentfc); void wvOLEFree (wvParseStruct * ps); int wvText (wvParseStruct * ps); int wvHtml (wvParseStruct * ps); #ifdef DEBUG #define wvTrace( args ) wvRealTrace(__FILE__,__LINE__, wvFmtMsg args ) #else #define wvTrace( args ) #endif int wvAssembleSimplePAP (wvVersion ver, PAP * apap, U32 fc, PAPX_FKP * fkp, wvParseStruct * ps); int wvAssembleComplexCHP (wvVersion ver, CHP * achp, U32 cpiece,STSH * stsh, CLX * clx); void wvAppendStr (char **orig, const char *add); int wvParseConfig (state_data * myhandle); void wvBeginDocument (expand_data * data); void wvEndDocument (expand_data * data); void wvInitStateData (state_data * data); void wvListStateData (state_data * data); int wvExpand (expand_data * myhandle, char *buf, int len); int wvStrlen (const char *str); char *wvStrcat (char *dest, const char *src); void wvReleaseStateData (state_data * data); U32 wvConvertCPToFC (U32 currentcp, CLX * clx); int wvIsEmptyPara (PAP * apap, expand_data * data, int inc); void wvBeginPara (expand_data * data); void wvEndPara (expand_data * data); void wvBeginCharProp (expand_data * data, PAP * apap); void wvEndCharProp (expand_data * data); void wvBeginSection (expand_data * data); void wvEndSection (expand_data * data); void wvBeginComment (expand_data * data); void wvEndComment (expand_data * data); int wvGetComplexParafcLim (wvVersion ver, U32 * fcLim, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, PAPX_FKP * fkp, wvStream * fd); wvVersion wvQuerySupported (FIB * fib, int *reason); const char *wvReason (int reason); void wvSetCharHandler (wvParseStruct * ps, int (*proc) (wvParseStruct *, U16, U8, U16)); void wvSetSpecialCharHandler (wvParseStruct * ps, int (*proc) (wvParseStruct *, U16, CHP *)); void wvSetElementHandler (wvParseStruct * ps, int (*proc) (wvParseStruct *, wvTag, void *, int)); void wvSetDocumentHandler (wvParseStruct * ps, int (*proc) (wvParseStruct *, wvTag)); int wvHandleElement (wvParseStruct * ps, wvTag tag, void *props, int dirty); int wvHandleDocument (wvParseStruct * ps, wvTag tag); SprmName wvGetrgsprmPrm (U16 in); int wvAssembleComplexPAP (wvVersion ver, PAP * apap, U32 cpiece, wvParseStruct *ps); U32 wvGetEndFCPiece (U32 piece, CLX * clx); void wvInitSprm (Sprm * Sprm); void wvInitError (void); typedef struct _BKD { S16 ipgd_itxbxs; S32 dcpDepend:16; U32 icol:8; U32 fTableBreak:1; U32 fColumnBreak:1; U32 fMarked:1; U32 fUnk:1; U32 fTextOverflow:1; U32 reserved1:3; } BKD; void wvGetBKD (BKD * item, wvStream * fd); int wvGetBKD_PLCF (BKD ** bkd, U32 ** pos, U32 * nobkd, U32 offset, U32 len, wvStream * fd); typedef struct _BKL { S16 ibkf; } BKL; void wvGetBKL (BKL * item, wvStream * fd); int wvGetBKL_PLCF (BKL ** bkl, U32 ** pos, U32 * nobkl, U32 bkloffset, U32 bkllen, U32 bkfoffset, U32 bkflen, wvStream * fd); typedef struct _PGD { U32 fContinue:1; U32 fUnk:1; U32 fRight:1; U32 fPgnRestart:1; /* U32 fGhost:2; fGhost is fEmptyPage && fAllFtn, and is unioned (sort of with them in word 97) its existance serves no bloody purpose. The word 6 spec has a different location for fGhost, but i reckon the word97 is right for word 6 as well, but its not like i intend to use this anyway :-) */ U32 fEmptyPage:1; U32 fAllFtn:1; U32 fColOnly:1; /* unused in word 97, but ive retained the name */ U32 fTableBreaks:1; U32 fMarked:1; U32 fColumnBreaks:1; U32 fTableHeader:1; U32 fNewPage:1; U32 bkc:4; U32 lnn:16; U16 pgn; S32 dym; } PGD; void wvGetPGD (wvVersion ver, PGD * item, wvStream * fd); typedef struct _RS { S16 fRouted; S16 fReturnOrig; S16 fTrackStatus; S16 fDirty; S16 nProtect; S16 iStage; S16 delOption; S16 cRecip; } RS; void wvGetRS (RS * item, wvStream * fd); typedef struct _RR { S16 cb; S16 cbSzRecip; } RR; void wvGetRR (RR * item, wvStream * fd); typedef struct _FTXBXS { S32 cTxbx_iNextReuse; S32 cReusable; S16 fReusable; S32 reserved; S32 lid; S32 txidUndo; } FTXBXS; void wvGetFTXBXS (FTXBXS * item, wvStream * fd); int wvGetFTXBXS_PLCF (FTXBXS ** ftxbxs, U32 ** pos, U32 * noftxbxs, U32 offset, U32 len, wvStream * fd); typedef struct _WKB { S16 fn; U16 grfwkb; S32 lvl:16; U32 fnpt:4; U32 fnpd:12; S32 doc; } WKB; void wvGetWKB (WKB * item, wvStream * fd); int wvGetSimpleSectionBounds (wvVersion ver, wvParseStruct * ps, SEP * sep, U32 * fcFirst, U32 * fcLim, U32 cp, CLX * clx, SED * sed, U32 * spiece, U32 * posSedx, U32 section_intervals, STSH * stsh, wvStream * fd); int wvGetComplexSEP (wvVersion ver, SEP * sep, U32 cpiece, STSH * stsh, CLX * clx); int wvGetSimpleCharBounds (wvVersion ver, CHPX_FKP * fkp, U32 * fcFirst, U32 * fcLim, U32 currentcp, CLX * clx, BTE * bte, U32 * pos, int nobte, wvStream * fd); int wvAssembleSimpleCHP (wvVersion ver, CHP * achp, const PAP * apap, U32 fc, CHPX_FKP * fkp, STSH * stsh); int wvGetComplexCharfcLim (wvVersion ver, U32 * fcLim, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, CHPX_FKP * fkp, wvStream * fd); int wvGetComplexCharfcFirst (wvVersion ver, U32 * fcFirst, U32 currentfc, CLX * clx, BTE * bte, U32 * pos, int nobte, U32 piece, CHPX_FKP * fkp, wvStream * fd); void wvOutputHtmlChar (U16 eachchar, U8 chartype, char *outputtype, U16 lid); int wvGetListEntryInfo (wvVersion ver, LVL ** rlvl, U32 ** nos, U8 ** nfcs, LVL * retlvl, LFO ** retlfo, PAP * apap, LFO ** lfo, LFOLVL * lfolvl, LVL * lvl, U32 * nolfo, LST ** lst, U16 * noofLST); void wvSetPixelsPerInch (S16 hpixels, S16 vpixels); float wvTwipsToHPixels (S16 twips); float wvTwipsToVPixels (S16 twips); float wvTwipsToMM (S16 twips); float wvPointsToMM (S16 points); int wvCellBgColor (int whichrow, int whichcell, int nocells, int norows, TLP * tlp); #define isodd(a) ((a/2) != ((a+1)/2)) float wvRelativeWidth (S16 width, SEP * asep); int fieldCharProc (wvParseStruct * ps, U16 eachchar, U8 chartype, U16 lid); ATRD *wvGetCommentBounds (U32 * comment_cpFirst, U32 * comment_cpLim, U32 currentcp, ATRD * atrd, U32 * pos, U32 noatrd, STTBF * bookmarks, BKF * bkf, U32 * posBKF, U32 bkf_intervals, BKL * bkl, U32 * posBKL, U32 bkl_intervals); int cellCompEQ (void *a, void *b); int cellCompLT (void *a, void *b); typedef size_t (*wvConvertToUnicode) (const char **, size_t *, char **, size_t *); const char *wvLIDToCodePageConverter (U16 lid); const char *wvLIDToLangConverter (U16 lid); U16 wvLangToLIDConverter ( const char * lang ); typedef struct _MSOFBH { U32 ver:4; U32 inst:12; U32 fbt:16; U32 cbLength; } MSOFBH; U32 wvGetMSOFBH (MSOFBH * amsofbh, wvStream * fd); U32 wvEatmsofbt (MSOFBH * amsofbh, wvStream * fd); /* FDGG - File DGG */ typedef struct _FDGG { U32 spidMax; /* The current maximum shape ID */ U32 cidcl; /* The number of ID clusters (FIDCLs) */ U32 cspSaved; /* The total number of shapes saved */ /* (including deleted shapes, if undo */ /* information was saved) */ U32 cdgSaved; /* The total number of drawings saved */ } FDGG; /* File ID Cluster - used to save IDCLs */ typedef struct _FIDCL { U32 dgid; /* DG owning the SPIDs in this cluster */ U32 cspidCur; /* number of SPIDs used so far */ } FIDCL; /* FBSE - File Blip Store Entry */ typedef struct _FBSE { U8 btWin32; /* Required type on Win32 */ U8 btMacOS; /* Required type on Mac */ U8 rgbUid[16]; /* Identifier of blip */ U16 tag; /* currently unused */ U32 size; /* Blip size in stream */ U32 cRef; /* Reference count on the blip */ U32 foDelay; /* File offset in the delay stream */ U8 usage; /* How this blip is used (MSOBLIPUSAGE) */ U8 cbName; /* length of the blip name */ U8 unused2; /* for the future */ U8 unused3; /* for the future */ } FBSE; U32 wvGetFBSE (FBSE * afbse, wvStream * fd); void wvCopyFBSE (FBSE * dest, FBSE * src); typedef enum { msoblipusagedefault, /* all non-texture fill blips get this. */ msoblipusagetexture, msoblipusagemax = 255 /* since this is stored in a byte */ } msoblipusage; typedef enum { /* GEL provided types... */ msoblipERROR = 0, /* An error occured during loading */ msoblipUNKNOWN, /* An unknown blip type */ msoblipEMF, /* Windows Enhanced Metafile */ msoblipWMF, /* Windows Metafile */ msoblipPICT, /* Macintosh PICT */ msoblipJPEG, /* JFIF */ msoblipPNG, /* PNG */ msoblipDIB, /* Windows DIB */ msoblipFirstClient = 32, /* First client defined blip type */ msoblipLastClient = 255 /* Last client defined blip type */ } MSOBLIPTYPE; typedef enum { msobiUNKNOWN = 0, msobiWMF = 0x216, /* Metafile header then compressed WMF */ msobiEMF = 0x3D4, /* Metafile header then compressed EMF */ msobiPICT = 0x542, /* Metafile header then compressed PICT */ msobiPNG = 0x6E0, /* One byte tag then PNG data */ msobiJFIF = 0x46A, /* One byte tag then JFIF data */ msobiJPEG = msobiJFIF, msobiDIB = 0x7A8, /* One byte tag then DIB data */ msobiClient = 0x800 /* Clients should set this bit */ } MSOBI; /* Blip signature as encoded in the MSOFBH.inst */ typedef enum { msofbtDggContainer = 0xF000, msofbtBstoreContainer = 0xF001, msofbtDgContainer = 0xF002, msofbtSpgrContainer = 0xF003, msofbtSpContainer = 0xF004, msofbtDgg = 0xF006, msofbtBSE = 0xF007, msofbtDg = 0xF008, msofbtSpgr = 0xF009, msofbtSp = 0xF00A, msofbtOPT = 0xF00B, msofbtTextbox = 0xF00C, msofbtClientTextbox = 0xF00D, msofbtAnchor = 0xF00E, msofbtChildAnchor = 0xF00F, msofbtClientAnchor = 0xF010, msofbtClientData = 0xF011, msofbtBlipFirst = 0xF018, msofbtDeletedPspl = 0xF11D, msofbtSplitMenuColors = 0xF11E, msofbtOleObject = 0xF11F, msofbtUserDefined = 0xF122 } MSOFBT; typedef enum { msocompressionDeflate = 0, msocompressionNone = 254, /* Used only if compression fails */ msocompressionTest = 255 /* For testing only */ } MSOBLIPCOMPRESSION; typedef enum { msofilterAdaptive = 0, /* PNG type - not used/supported for metafile */ msofilterNone = 254, msofilterTest = 255 /* For testing only */ } MSOBLIPFILTER; typedef struct _MetaFileBlip { /* The secondary, or data, UID - should always be set. */ U8 m_rgbUid[16]; /* The primary UID - this defaults to 0, in which case the primary ID is that of the internal data. NOTE!: The primary UID is only saved to disk if (blip_instance ^ blip_signature == 1). Blip_instance is MSOFBH.inst and blip_signature is one of the values defined in MSOBI */ U8 m_rgbUidPrimary[16]; /* optional based on the above check */ /* Metafile Blip overhead = 34 bytes. m_cb gives the number of bytes required to store an uncompressed version of the file, m_cbSave is the compressed size. m_mfBounds gives the boundary of all the drawing calls within the metafile (this may just be the bounding box or it may allow some whitespace, for a WMF this comes from the SetWindowOrg and SetWindowExt records of the metafile). */ U32 m_cb; /* Cache of the metafile size */ RECT m_rcBounds; /* Boundary of metafile drawing commands */ POINT m_ptSize; /* Size of metafile in EMUs */ U32 m_cbSave; /* Cache of saved size (size of m_pvBits) */ U8 m_fCompression; /* MSOBLIPCOMPRESSION */ U8 m_fFilter; /* always msofilterNone */ wvStream *m_pvBits; /* Compressed bits of metafile. */ } MetaFileBlip; typedef struct _BitmapBlip { /* The secondary, or data, UID - should always be set. */ U8 m_rgbUid[16]; /* The primary UID - this defaults to 0, in which case the primary ID is that of the internal data. NOTE!: The primary UID is only saved to disk if (blip_instance ^ blip_signature == 1). Blip_instance is MSOFBH.finst and blip_signature is one of the values defined in MSOBI */ U8 m_rgbUidPrimary[16]; /* optional based on the above check */ U8 m_bTag; wvStream *m_pvBits; /* raster bits of the blip */ } BitmapBlip; typedef struct _Blip { FBSE fbse; U16 type; U16 *name; union { MetaFileBlip metafile; BitmapBlip bitmap; } blip; } Blip; void wvCopyBlip (Blip * dest, Blip * src); U32 wvGetBlip (Blip * blip, wvStream * fd, wvStream * delay); void wvReleaseBlip (Blip * blip); U32 wvGetMetafile (MetaFileBlip * amf, MSOFBH * amsofbh, wvStream * fd); void wvCopyMetafile (MetaFileBlip * dest, MetaFileBlip * src); U32 wvGetBitmap (BitmapBlip * abm, MSOFBH * amsofbh, wvStream * fd); void wvCopyBitmap (BitmapBlip * dest, BitmapBlip * src); typedef struct _FOPTE { /* this should be 16 bits for bitfields, and then 32 bit op */ U32 pid:14; /* Property ID */ U32 fBid:1; /* value is a blip ID - only valid if fComplex is FALSE */ U32 fComplex:1; /* complex property, value is length */ U32 op; U8 *entry; } FOPTE; U32 wvGetFOPTE (FOPTE * afopte, wvStream * fd); void wvReleaseFOPTE (FOPTE * afopte); U32 wvGetFOPTEArray (FOPTE ** fopte, MSOFBH * msofbh, wvStream * fd); void wvReleaseFOPTEArray (FOPTE ** fopte); void wvInitFOPTEArray (FOPTE ** fopte); typedef struct _FSP { U32 spid; /* The shape id */ U32 grfPersistent; } FSP; U32 wvGetFSP (FSP * fsp, wvStream * fd); /* FDG - File DG */ typedef struct _FDG { U32 csp; /* The number of shapes in this drawing */ U32 spidCur; /* The last MSOSPID given to an SP in this DG */ } FDG; typedef struct _FSPGR { RECT rcgBounds; } FSPGR; typedef RECT FAnchor, FChildAnchor, FClientAnchor; U32 wvGetFAnchor (FAnchor * fanchor, wvStream * fd); typedef struct _ClientData { U8 *data; } ClientData; typedef struct _ClientTextbox { U32 *textid; } ClientTextbox; void wvInitClientTextbox (ClientTextbox * item); void wvReleaseClientTextbox (ClientTextbox * item); U32 wvGetClientTextbox (ClientTextbox * item, MSOFBH * amsofbh, wvStream * fd); typedef struct _FSPContainer { FSPGR fspgr; /*may not exist */ FSP fsp; /*always will exist */ FOPTE *fopte; /*always */ FAnchor fanchor; /* one of these will be there */ ClientData clientdata; /*always */ ClientTextbox clienttextbox; /*maybe */ #if 0 Textbox OleObject /*maybe */ DeletedPspl /*maybe */ #endif } FSPContainer; int wv0x01 (Blip * blip, wvStream * fd, U32 len); char *wvHtmlGraphic (wvParseStruct * ps, Blip * blip); U32 wvGetFSPContainer (FSPContainer * item, MSOFBH * msofbh, wvStream * fd); void wvReleaseFSPContainer (FSPContainer * item); /* begin temp */ typedef struct _BITMAP { U8 bm[14]; } BITMAP; void wvGetBITMAP (BITMAP * bmp, wvStream * fd); typedef struct _rc { U8 bm[14]; } rc; void wvGetrc (rc * arc, wvStream * fd); /* end temp */ typedef struct _PICF { U32 lcb; U16 cbHeader; S16 mfp_mm; S16 mfp_xExt; S16 mfp_yExt; S16 mfp_hMF; union { BITMAP bitmap; rc arc; } obj; S16 dxaGoal; S16 dyaGoal; U16 mx; U16 my; S16 dxaCropLeft; S16 dyaCropTop; S16 dxaCropRight; S32 dyaCropBottom:16; U32 brcl:4; U32 fFrameEmpty:1; U32 fBitmap:1; U32 fDrawHatch:1; U32 fError:1; U32 bpp:8; BRC brcTop; BRC brcLeft; BRC brcBottom; BRC brcRight; S16 dxaOrigin; S16 dyaOrigin; S16 cProps; wvStream *rgb; } PICF; int wvGetPICF (wvVersion ver, PICF * apicf, wvStream * fd); void remove_suffix (char *name, const char *suffix); char *base_name (char const *name); U32 wvEatOldGraphicHeader (wvStream * fd, U32 len); int bmptopng (char *prefix); int wv0x08 (Blip * blip, S32 spid, wvParseStruct * ps); typedef struct _SplitMenuColors { U32 noofcolors; U32 *colors; } SplitMenuColors; typedef struct _Dgg { FDGG fdgg; FIDCL *fidcl; } Dgg; typedef struct _BstoreContainer { U32 no_fbse; Blip *blip; } BstoreContainer; typedef struct _DggContainer { SplitMenuColors splitmenucolors; Dgg dgg; BstoreContainer bstorecontainer; } DggContainer; U32 wvGetDggContainer (DggContainer * item, MSOFBH * msofbh, wvStream * fd, wvStream * delay); void wvReleaseDggContainer (DggContainer * item); void wvInitDggContainer (DggContainer * item); U32 wvGetBstoreContainer (BstoreContainer * item, MSOFBH * msofbh, wvStream * fd, wvStream * delay); void wvReleaseBstoreContainer (BstoreContainer * item); void wvInitBstoreContainer (BstoreContainer * item); U32 wvGetDgg (Dgg * dgg, MSOFBH * amsofbh, wvStream * fd); void wvReleaseDgg (Dgg * dgg); void wvInitDgg (Dgg * dgg); U32 wvGetFDGG (FDGG * afdgg, wvStream * fd); U32 wvGetFIDCL (FIDCL * afidcl, wvStream * fd); U32 wvGetSplitMenuColors (SplitMenuColors * splitmenucolors, MSOFBH * amsofbh, wvStream * fd); void wvReleaseSplitMenuColors (SplitMenuColors * splitmenucolors); void wvInitSplitMenuColors (SplitMenuColors * splitmenucolors); typedef struct _SpgrContainer { U32 no_spcontainer; FSPContainer *spcontainer; U32 no_spgrcontainer; struct _SpgrContainer *spgrcontainer; } SpgrContainer; typedef struct _DgContainer { FDG fdg; U32 no_spgrcontainer; SpgrContainer *spgrcontainer; U32 no_spcontainer; FSPContainer *spcontainer; #if 0 SolverContainer solvercontainer; ColorScheme colorscheme; RegroupItems regroupitems; #endif } DgContainer; U32 wvGetDgContainer (DgContainer * item, MSOFBH * msofbh, wvStream * fd); void wvReleaseDgContainer (DgContainer * item); void wvInitDgContainer (DgContainer * item); U32 wvGetFDG (FDG * afdg, wvStream * fd); U32 wvGetSpgrContainer (SpgrContainer * item, MSOFBH * msofbh, wvStream * fd); void wvReleaseSpgrContainer (SpgrContainer * item); U32 wvGetFSPGR (FSPGR * item, wvStream * fd); U32 wvGetClientData (ClientData * item, MSOFBH * msofbh, wvStream * fd); void wvReleaseClientData (ClientData * item); void wvInitClientData (ClientData * item); FSPContainer *wvFindSPID (SpgrContainer * item, S32 spid); typedef struct _escherstruct { DggContainer dggcontainer; DgContainer dgcontainer; } escherstruct; void wvGetEscher (escherstruct * item, U32 offset, U32 len, wvStream * fd, wvStream * delay); void wvInitEscher (escherstruct * item); void wvReleaseEscher (escherstruct * item); void wvStrToUpper (char *str); int decompress (FILE * inputfile, FILE * outputfile, U32 inlen, U32 outlen); /*current insertion position*/ /* Property PID Type Default Description */ typedef enum _pid { rotation = 4, /*LONG 0 fixed point: */ fLockRotation = 119, /*BOOL FALSE No rotation */ fLockAspectRatio = 120, /*BOOL FALSE Don't allow */ fLockPosition = 121, /*BOOL FALSE Don't allow */ fLockAgainstSelect = 122, /*BOOL FALSE Shape may not */ fLockCropping = 123, /*BOOL FALSE No cropping */ fLockVertices = 124, /*BOOL FALSE Edit Points */ fLockText = 125, /*BOOL FALSE Do not edit */ fLockAdjustHandles = 126, /*BOOL FALSE Do not adjust */ fLockAgainstGrouping = 127, /*BOOL FALSE Do not group */ lTxid = 128, /*LONG 0 id for the text, */ dxTextLeft = 129, /*LONG 1/10 inch margins relative */ dyTextTop = 130, /*LONG 1/20 inch */ dxTextRight = 131, /*LONG 1/10 inch */ dyTextBottom = 132, /*LONG 1/20 inch */ WrapText = 133, /*MSOWRAPMODE FALSE Wrap text at */ scaleText = 134, /*LONG 0 Text zoom/scale */ anchorText = 135, /*MSOANCHOR Top How to anchor */ txflTextFlow = 136, /*MSOTXFL HorzN Text flow */ cdirFont = 137, /*MSOCDIR msocdir0 Font rotation */ hspNext = 138, /*MSOHSP NULL ID of the next */ txdir = 139, /*MSOTXDIR LTR Bi-Di Text */ fSelectText = 187, /*BOOL TRUE TRUE if single */ fAutoTextMargin = 188, /*BOOL FALSE use host's */ fRotateText = 189, /*BOOL FALSE Rotate text with */ fFitShapeToText = 190, /*BOOL FALSE Size shape to */ fFitTextToShape = 191, /*BOOL FALSE Size text to fit */ gtextUNICODE = 192, /*WCHAR* NULL UNICODE text */ gtextRTF = 193, /*char* NULL RTF text */ gtextAlign = 194, /*MSOGEOTEXTALIGN Center alignment on */ gtextSize = 195, /*LONG 36<<16 default point */ gtextSpacing = 196, /*LONG 1<<16 fixed point */ gtextFont = 197, /*WCHAR* NULL font family */ gtextFReverseRows = 240, /*BOOL FALSE Reverse row */ fGtext = 241, /*BOOL FALSE Has text */ gtextFVertical = 242, /*BOOL FALSE Rotate */ gtextFKern = 243, /*BOOL FALSE Kern */ gtextFTight = 244, /*BOOL FALSE Tightening or */ gtextFStretch = 245, /*BOOL FALSE Stretch to */ gtextFShrinkFit = 246, /*BOOL FALSE Char bounding */ gtextFBestFit = 247, /*BOOL FALSE Scale */ gtextFNormalize = 248, /*BOOL FALSE Stretch char */ gtextFDxMeasure = 249, /*BOOL FALSE Do not */ gtextFBold = 250, /*BOOL FALSE Bold font */ gtextFItalic = 251, /*BOOL FALSE Italic font */ gtextFUnderline = 252, /*BOOL FALSE Underline */ gtextFShadow = 253, /*BOOL FALSE Shadow font */ gtextFSmallcaps = 254, /*BOOL FALSE Small caps */ gtextFStrikethrough = 255, /*BOOL FALSE Strike */ cropFromTop = 256, /*LONG 0 16.16 fraction times total image */ cropFromBottom = 257, /*LONG 0 */ cropFromLeft = 258, /*LONG 0 */ cropFromRight = 259, /*LONG 0 */ pib = 260, /*IMsoBlip* NULL Blip to display */ pibName = 261, /*WCHAR* NULL Blip file name */ pibFlags = 262, /*MSOBLIPFLAGS Comment Blip flags */ pictureTransparent = 263, /*LONG ~0 transparent color (none if ~0UL) */ pictureContrast = 264, /*LONG 1<<16 contrast setting */ pictureBrightness = 265, /*LONG 0 brightness setting */ pictureGamma = 266, /*LONG 0 16.16 gamma */ pictureId = 267, /*LONG 0 Host-defined ID for OLE objects */ pictureDblCrMod = 268, /*MSOCLR This Modification used if shape has */ pictureFillCrMod = 269, /*MSOCLR undefined */ pictureLineCrMod = 270, /*MSOCLR undefined */ pibPrint = 271, /*IMsoBlip* NULL Blip to display when printing */ pibPrintName = 272, /*WCHAR* NULL Blip file name */ pibPrintFlags = 273, /*MSOBLIPFLAGS Comment Blip flags */ fNoHitTestPicture = 316, /*BOOL FALSE Do not hit test the picture */ pictureGray = 317, /*BOOL FALSE grayscale display */ pictureBiLevel = 318, /*BOOL FALSE bi-level display */ pictureActive = 319, /*BOOL FALSE Server is active (OLE objects */ geoLeft = 320, /*LONG 0 Defines the G */ geoTop = 321, /*LONG 0 */ geoRight = 322, /*LONG 21600 */ geoBottom = 323, /*LONG 21600 */ shapePath = 324, /*MSOSHAPEPATH msoshapeLinesClosed */ pVertices = 325, /*IMsoArray NULL An array of */ pSegmentInfo = 326, /*IMsoArray NULL */ adjustValue = 327, /*LONG 0 Adjustment */ adjust2Value = 328, /*LONG 0 */ adjust3Value = 329, /*LONG 0 */ adjust4Value = 330, /*LONG 0 */ adjust5Value = 331, /*LONG 0 */ adjust6Value = 332, /*LONG 0 */ adjust7Value = 333, /*LONG 0 */ adjust8Value = 334, /*LONG 0 */ adjust9Value = 335, /*LONG 0 */ adjust10Value = 336, /*LONG 0 */ fShadowOK = 378, /*BOOL TRUE Shadow may be */ f3DOK = 379, /*BOOL TRUE 3D may be set */ fLineOK = 380, /*BOOL TRUE Line style may */ fGtextOK = 381, /*BOOL FALSE Text effect */ fFillShadeShapeOK = 382, /*BOOL FALSE */ fFillOK = 383, /*BOOL TRUE OK to fill the */ fillType = 384, /*MSOFILLTYPE Solid Type of fill */ fillColor = 385, /*MSOCLR white Foreground color */ fillOpacity = 386, /*LONG 1<<16 Fixed 16.16 */ fillBackColor = 387, /*MSOCLR white Background color */ fillBackOpacity = 388, /*LONG 1<<16 Shades only */ fillCrMod = 389, /*MSOCLR undefined Modification for BW */ fillBlip = 390, /*IMsoBlip* NULL Pattern/texture */ fillBlipName = 391, /*WCHAR* NULL Blip file name */ fillBlipFlags = 392, /*MSOBLIPFLAGS Comment Blip flags */ fillWidth = 393, /*LONG 0 How big (A units) to */ fillHeight = 394, /*LONG 0 */ fillAngle = 395, /*LONG 0 Fade angle - degrees in */ fillFocus = 396, /*LONG 0 Linear shaded fill focus */ fillToLeft = 397, /*LONG 0 Fraction 16.16 */ fillToTop = 398, /*LONG 0 Fraction 16.16 */ fillToRight = 399, /*LONG 0 Fraction 16.16 */ fillToBottom = 400, /*LONG 0 Fraction 16.16 */ fillRectLeft = 401, /*LONG 0 For shaded fills, use */ fillRectTop = 402, /*LONG 0 */ fillRectRight = 403, /*LONG 0 */ fillRectBottom = 404, /*LONG 0 */ fillDztype = 405, /*MSODZTYPE Default */ fillShadePreset = 406, /*LONG 0 Special shades */ fillShadeColors = 407, /*IMsoArray NULL a preset array of colors */ fillOriginX = 408, /*LONG 0 */ fillOriginY = 409, /*LONG 0 */ fillShapeOriginX = 410, /*LONG 0 */ fillShapeOriginY = 411, /*LONG 0 */ fillShadeType = 412, /*MSOSHADETYPE Default Type of */ fFilled = 443, /*BOOL TRUE Is shape filled? */ fHitTestFill = 444, /*BOOL TRUE Should we hit test fill? */ fillShape = 445, /*BOOL TRUE Register pattern on */ fillUseRect = 446, /*BOOL FALSE Use the large rect? */ fNoFillHitTest = 447, /*BOOL FALSE Hit test a shape as */ lineColor = 448, /*MSOCLR black Color of line */ lineOpacity = 449, /*LONG 1<<16 Not implemented */ lineBackColor = 450, /*MSOCLR white Background color */ lineCrMod = 451, /*MSOCLR undefined Modification for */ lineType = 452, /*MSOLINETYPE Solid Type of line */ lineFillBlip = 453, /*IMsoBlip* NULL Pattern/texture */ lineFillBlipName = 454, /*WCHAR* NULL Blip file name */ lineFillBlipFlags = 455, /*MSOBLIPFLAGS Comment Blip flags */ lineFillWidth = 456, /*LONG 0 How big (A */ lineFillHeight = 457, /*LONG 0 */ lineFillDztype = 458, /*MSODZTYPE Default How to interpret */ lineWidth = 459, /*LONG 9525 A units; 1pt == */ lineMiterLimit = 460, /*LONG 8<<16 ratio (16.16) of */ lineStyle = 461, /*MSOLINESTYLE Simple Draw parallel */ lineDashing = 462, /*MSOLINEDASHING Solid Can be */ lineDashStyle = 463, /*IMsoArray NULL As Win32 */ lineStartArrowhead = 464, /*MSOLINEEND NoEnd Arrow at start */ lineEndArrowhead = 465, /*MSOLINEEND NoEnd Arrow at end */ lineStartArrowWidth = 466, /*MSOLINEENDWIDTH MediumWidthArrow Arrow at start */ lineStartArrowLength = 467, /*MSOLINEENDLENGTH MediumLenArrow Arrow at end */ lineEndArrowWidth = 468, /*MSOLINEENDWIDTH MediumWidthArrow Arrow at start */ lineEndArrowLength = 469, /*MSOLINEENDLENGTH MediumLenArrow Arrow at end */ lineJoinStyle = 470, /*MSOLINEJOIN JoinRound How to join */ lineEndCapStyle = 471, /*MSOLINECAP EndCapFlat How to end lines */ fArrowheadsOK = 507, /*BOOL FALSE Allow arrowheads */ fLine = 508, /*BOOL TRUE Any line? */ fHitTestLine = 509, /*BOOL TRUE Should we hit */ lineFillShape = 510, /*BOOL TRUE Register pattern */ fNoLineDrawDash = 511, /*BOOL FALSE Draw a dashed */ shadowType = 512, /*MSOSHADOWTYPE Offset Type of */ shadowColor = 513, /*MSOCLR 0x808080 Foreground */ shadowHighlight = 514, /*MSOCLR 0xCBCBCB Embossed */ shadowCrMod = 515, /*MSOCLR undefined Modification */ shadowOpacity = 516, /*LONG 1<<16 Fixed 16.16 */ shadowOffsetX = 517, /*LONG 25400 Offset shadow */ shadowOffsetY = 518, /*LONG 25400 Offset shadow */ shadowSecondOffsetX = 519, /*LONG 0 Double offset */ shadowSecondOffsetY = 520, /*LONG 0 Double offset */ shadowScaleXToX = 521, /*LONG 1<<16 16.16 */ shadowScaleYToX = 522, /*LONG 0 16.16 */ shadowScaleXToY = 523, /*LONG 0 16.16 */ shadowScaleYToY = 524, /*LONG 1<<16 16.16 */ shadowPerspectiveX = 525, /*LONG 0 16.16 */ shadowPerspectiveY = 526, /*LONG 0 16.16 */ shadowWeight = 527, /*LONG 1<<8 scaling */ shadowOriginX = 528, /*LONG 0 */ shadowOriginY = 529, /*LONG 0 */ fShadow = 574, /*BOOL FALSE Any shadow? */ fshadowObscured = 575, /*BOOL FALSE Excel5-style */ perspectiveType = 576, /*MSOXFORMTYPE Shape Where transform */ perspectiveOffsetX = 577, /*LONG 0 The LONG values */ perspectiveOffsetY = 578, /*LONG 0 */ perspectiveScaleXToX = 579, /*LONG 1<<16 */ perspectiveScaleYToX = 580, /*LONG 0 */ perspectiveScaleXToY = 581, /*LONG 0 */ perspectiveScaleYToY = 582, /*LONG 1<<16 */ perspectivePerspectiveX = 583, /*LONG 0 */ perspectivePerspectiveY = 584, /*LONG 0 */ perspectiveWeight = 585, /*LONG 1<<8 Scaling factor */ perspectiveOriginX = 586, /*LONG 1<<15 */ perspectiveOriginY = 587, /*LONG 1<<15 */ fPerspective = 639, /*BOOL FALSE On/off */ c3DSpecularAmt = 640, /*LONG 0 Fixed-point 16.16 */ c3DDiffuseAmt = 641, /*LONG 65536 Fixed-point 16.16 */ c3DShininess = 642, /*LONG 5 Default gives OK */ c3DEdgeThickness = 643, /*LONG 12700 Specular edge */ c3DExtrudeForward = 644, /*LONG 0 Distance of extrusion */ c3DExtrudeBackward = 645, /*LONG 457200 */ c3DExtrudePlane = 646, /*LONG 0 Extrusion direction */ c3DExtrusionColor = 647, /*MSOCLR FillThenLine Basic color */ c3DCrMod = 648, /*MSOCLR undefined Modification for BW */ f3D = 700, /*BOOL FALSE Does this shape have a */ fc3DMetallic = 701, /*BOOL 0 Use metallic */ fc3DUseExtrusionColor = 702, /*BOOL FALSE */ fc3DLightFace = 703, /*BOOL TRUE */ c3DYRotationAngle = 704, /*LONG 0 degrees (16.16) */ c3DXRotationAngle = 705, /*LONG 0 degrees (16.16) */ c3DRotationAxisX = 706, /*LONG 100 These specify */ c3DRotationAxisY = 707, /*LONG 0 */ c3DRotationAxisZ = 708, /*LONG 0 */ c3DRotationAngle = 709, /*LONG 0 degrees (16.16) */ c3DRotationCenterX = 710, /*LONG 0 rotation center */ c3DRotationCenterY = 711, /*LONG 0 rotation center */ c3DRotationCenterZ = 712, /*LONG 0 rotation center */ c3DRenderMode = 713, /*MSO3DRENDERMODE FullRender Full,wireframe, */ c3DTolerance = 714, /*LONG 30000 pixels (16.16) */ c3DXViewpoint = 715, /*LONG 1250000 X view point */ c3DYViewpoint = 716, /*LONG -1250000 Y view point */ c3DZViewpoint = 717, /*LONG 9000000 Z view distance */ c3DOriginX = 718, /*LONG 32768 */ c3DOriginY = 719, /*LONG -32768 */ c3DSkewAngle = 720, /*LONG -8847360 degree (16.16) */ c3DSkewAmount = 721, /*LONG 50 Percentage skew */ c3DAmbientIntensity = 722, /*LONG 20000 Fixed point */ c3DKeyX = 723, /*LONG 50000 Key light */ c3DKeyY = 724, /*LONG 0 tion; only */ c3DKeyZ = 725, /*LONG 10000 magnitudes */ c3DKeyIntensity = 726, /*LONG 38000 Fixed point */ c3DFillX = 727, /*LONG -50000 Fill light */ c3DFillY = 728, /*LONG 0 tion; only */ c3DFillZ = 729, /*LONG 10000 magnitudes */ c3DFillIntensity = 730, /*LONG 38000 Fixed point */ fc3DConstrainRotation = 763, /*BOOL TRUE */ fc3DRotationCenterAuto = 764, /*BOOL FALSE */ fc3DParallel = 765, /*BOOL 1 Parallel */ fc3DKeyHarsh = 766, /*BOOL 1 Is key lighting */ fc3DFillHarsh = 767, /*BOOL 0 Is fill */ hspMaster = 769, /*MSOHSP NULL master shape */ cxstyle = 771, /*MSOCXSTYLE None Type of */ bWMode = 772, /*MSOBWMODE Automatic Settings for */ bWModePureBW = 773, /*MSOBWMODE Automatic */ bWModeBW = 774, /*MSOBWMODE Automatic */ fOleIcon = 826, /*BOOL FALSE For OLE objects, */ fPreferRelativeResize = 827, /*BOOL FALSE For UI only. Prefer */ fLockShapeType = 828, /*BOOL FALSE Lock the shape type */ fDeleteAttachedObject = 830, /*BOOL FALSE */ fBackground = 831, /*BOOL FALSE If TRUE, this is the */ spcot = 832, /*MSOSPCOT TwoSegment Callout type */ dxyCalloutGap = 833, /*LONG 1/12 inch Distance from box to */ spcoa = 834, /*MSOSPCOA Any Callout angle */ spcod = 835, /*MSOSPCOD Specified Callout drop type */ dxyCalloutDropSpecified = 836, /*LONG 9 points if msospcodSpecified, the */ dxyCalloutLengthSpecified = 837, /*LONG 0 if */ fCallout = 889, /*BOOL FALSE Is the shape a callout? */ fCalloutAccentBar = 890, /*BOOL FALSE does callout have accent */ fCalloutTextBorder = 891, /*BOOL TRUE does callout have a text */ fCalloutMinusX = 892, /*BOOL FALSE */ fCalloutMinusY = 893, /*BOOL FALSE */ fCalloutDropAuto = 894, /*BOOL FALSE If true, then we */ fCalloutLengthSpecified = 895, /*BOOL FALSE if true, we look at */ wzName = 896, /*WCHAR* NULL Shape Name */ wzDescription = 897, /*WCHAR* NULL alternate */ pihlShape = 898, /*IHlink* NULL The hyperlink */ pWrapPolygonVertices = 899, /*IMsoArray NULL The polygon */ dxWrapDistLeft = 900, /*LONG 1/8 inch Left wrapping */ dyWrapDistTop = 901, /*LONG 0 Top wrapping */ dxWrapDistRight = 902, /*LONG 1/8 inch Right */ dyWrapDistBottom = 903, /*LONG 0 Bottom */ lidRegroup = 904, /*LONG 0 Regroup ID */ fEditedWrap = 953, /*BOOL FALSE Has the wrap */ fBehindDocument = 954, /*BOOL FALSE Word-only */ fOnDblClickNotify = 955, /*BOOL FALSE Notify client */ fIsButton = 956, /*BOOL FALSE A button */ fOneD = 957, /*BOOL FALSE 1D adjustment */ fHidden = 958, /*BOOL FALSE Do not */ fPrint = 959 /*BOOL TRUE Print this */ } pid; struct _fopte_list { FOPTE afopte; struct _fopte_list *next; }; typedef struct _fopte_list fopte_list; struct _fsp_list { FSP afsp; fopte_list *afopte_list; struct _fsp_list *next; }; typedef struct _fsp_list fsp_list; struct _fbse_list { FBSE afbse; char filename[4096]; struct _fbse_list *next; }; typedef struct _fbse_list fbse_list; fsp_list *wvParseEscher (fbse_list ** pic_list, U32 fcDggInfo, U32 lcbDggInfo, wvStream * escherstream, FILE * delaystream); fbse_list *wvGetSPID (U32 spid, fsp_list * afsp_list, fbse_list * afbse_list); U32 twvGetFBSE (FBSE * item, wvStream * fd); /*Summary Information Stream*/ typedef struct _PropHeader { U16 byteOrder; U16 wFormat; U16 osVersion1; U16 osVersion2; U8 classId[16]; U32 cSections; } PropHeader; void wvGetPropHeader (PropHeader * header, wvStream * file); typedef struct _FIDAndOffset { U32 dwords[4]; U32 dwOffset; } FIDAndOffset; void wvGetFIDAndOffset (FIDAndOffset * fid, wvStream * file); typedef struct _aPro { U32 propID; U32 dwOffset; } aPro; typedef struct _SummaryInfo { U32 cBytes; U32 cProps; aPro *aProps; U8 *data; } SummaryInfo; int wvSumInfoOpenStream (SummaryInfo * si, wvStream * stream); void wvGetSummaryInfo (SummaryInfo * si, wvStream * file, U32 offset); void wvReleaseSummaryInfo (SummaryInfo * si); typedef struct _vtB { U32 cBytes; char *ch; } vtB; #define VT_I4 0x03 #define VT_LPSTR 0x1E #define VT_FILETIME 0x40 #define VT_WMF 0x47 typedef struct _PropValue { U32 vtType; union { FILETIME vtTime; S32 vtLong; vtB vtBSTR; } vtValue; } PropValue; /*String properties*/ #define PID_TITLE 0x02 #define PID_SUBJECT 0x03 #define PID_AUTHOR 0x04 #define PID_KEYWORDS 0x05 #define PID_COMMENTS 0x06 #define PID_TEMPLATE 0x07 #define PID_LASTAUTHOR 0x08 #define PID_REVNUMBER 0x09 #define PID_APPNAME 0x12 /*Time properties*/ #define PID_TOTAL_EDITTIME 0x0A #define PID_LASTPRINTED 0x0B #define PID_CREATED 0x0C #define PID_LASTSAVED 0x0D /*Long integer properties*/ #define PID_PAGECOUNT 0x0E #define PID_WORDCOUNT 0x0F #define PID_CHARCOUNT 0x10 #define PID_SECURITY 0x13 #define PID_THUMBNAIL 0x11 /*bit masks for security long integer*/ #define AllSecurityFlagsEqNone 0x00 #define fSecurityPassworded 0x01 #define fSecurityRORecommended 0x02 #define fSecurityRO 0x04 #define fSecurityLockedForAnnotations 0x08 int wvGetProperty (PropValue * Prop, SummaryInfo * si, U32 pid); void wvReleaseProperty (PropValue * Prop); int wvSumInfoGetString (char *lpStr, U16 cbStr, U32 pid, SummaryInfo * si); int wvSumInfoGetLong (U32 * lpLong, U32 pid, SummaryInfo * si); int wvSumInfoGetTime (U16 * yr, U16 * mon, U16 * day, U16 * hr, U16 * min, U16 * sec, U32 pid, SummaryInfo * si); int wvSumInfoGetPreview (char *lpStr, U16 cbStr, U32 pid, SummaryInfo * si); void wvGetRowTap (wvParseStruct * ps, PAP * dpap, U32 para_intervals, BTE * btePapx, U32 * posPapx); void wvGetComplexRowTap (wvParseStruct * ps, PAP * dpap, U32 para_intervals, BTE * btePapx, U32 * posPapx, U32 piececount); void wvGetFullTableInit (wvParseStruct * ps, U32 para_intervals, BTE * btePapx, U32 * posPapx); void wvGetComplexFullTableInit (wvParseStruct * ps, U32 para_intervals, BTE * btePapx, U32 * posPapx, U32 piece); /*end of clean interface*/ struct tTLP { U16 itl; U8 fShading; U8 fColor; U8 fHdrRows; U8 fLastRow; U8 fHdrCols; U8 fLastCol; }; typedef struct tTLP oTLP; struct ttablelook { /* TOP BAR color for the top left entry color for the otherwise odd top entries color for the even top entries */ /* EVEN ROWS color for the left entry color for the otherwise odd row entries color for the even entries */ /* ODD ROWS color for the left entry color for the otherwise odd row entries color for the even entries */ char *color[9]; }; typedef struct ttablelook tablelook; struct tobj_by_spid { U16 spid; char *filename; struct tobj_by_spid *next; }; typedef struct tobj_by_spid obj_by_spid; struct node { char streamname[255]; char filename[PATH_MAX]; struct node *next; int level; }; typedef struct node olestream; struct tsep { U8 bkc; /*break code */ U8 fTitlePage; /*want title page */ U8 fAutoPgn; /*unused */ U8 nfcPgn; /*page no format */ U8 fUnlocked; /*huh ? */ U8 cnsPgn; /*huh ? */ U8 fPgnRestart; /*restart pg numering */ U8 fEndNote; /*footnotes at end of sec or page */ U8 lnc; /*huh ? */ U8 grpfIhdt; /*not used */ U8 nLnnMod; U16 ccolM1; U16 pgnStart; U32 xaPage; U32 yaPage; U32 dxaLeft; U32 dxaRight; U32 dyaTop; U32 dyaBottom; U32 dzaGutter; }; typedef struct tsep sep; struct tchp { unsigned short istd; U32 fBold:1; U32 fItalic:1; U32 fRMarkDel:1; U32 fOutline:1; /*not imp yet */ U32 fFldVanish:1; /*not imp yet, internal to word */ U32 fSmallCaps:1; U32 fCaps:1; U32 fVanish:1; /*not imp yet */ U32 fRMark:1; /*not imp yet */ U32 fSpec:1; U32 fStrike:1; U32 fObj:1; /*not imp yet */ U32 fShadow:1; /*not imp yet */ U32 fLowerCase:1; /*not imp yet */ U32 fData:1; U32 fOle2:1; /*not imp yet */ U32 fEmboss:1; /*not imp yet */ U32 fImprint:1; /*not imp yet */ U32 fDStrike:1; U32 fUsePgsuSettings:1; /*not imp yet, dont know what it means */ U32 Reserved1:12; /*unused */ U32 Reserved2; /*unused */ U16 ftc; /*not used in word 8 */ U16 ftcAscii; U16 ftcFE; U16 ftcOther; U16 fontsize; /*half points */ U8 supersubscript; S16 fontcode; U16 fontspec; char color[8]; U16 underline; U8 idctHint; U32 fcPic; U16 ibstRMark; U16 ibstRMarkDel; DTTM dttmRMark; DTTM dttmRMarkDel; U16 fPropRMark; U16 ibstPropRMark; DTTM dttmPropRMark; U8 sfxtText; }; typedef struct tchp chp; struct tlist_def { U16 *list_string; int len; S16 begin_no; int no_type; int fPrev; U32 id; chp achp; struct tlist_def *sub_def_list; }; typedef struct tlist_def list_def; struct ttap { oTLP tlp; int tablewidth; S16 cellwidth[65]; int cell_no; int shade_no; int cell_backs[65]; int cell_fronts[65]; int cell_pattern[65]; int rowheight; }; typedef struct ttap tap; struct tpap { unsigned short istd; U8 fInTable; U8 fTtp; U8 tableflag; int justify; int ilvl; /*list level, 0 to 8 */ long ilfo; /*list index */ /*link to list information */ list_def *list_data; ANLD anld; tap ourtap; S16 leftmargin; S16 rightmargin; S16 firstline; U32 brcBottom; U32 brcLeft; U32 brcRight; U32 brcBetween; U16 dxaWidth; U32 dyaBefore; U32 dyaAfter; char *begin; char *end; char *prespace; char *postspace; }; typedef struct tpap pap; struct field_pro { U32 *cps; FLD *flds; U32 no; }; typedef struct field_pro field_info; struct tlist_info { /* now this is very hairy, i not sure how this is supposed to work so lists are a bit tentitive, basically theres no many things you *can* do with lists, but hopefully this will sort out whether they are bulleted or enumerated, and ignore all sorts of shite like what kind of bullet were talking about, and whether some list items are numbered etc etc */ U8 *array; int count; int nooflsts; U32 *o_lst_ids; int **current_index_nos; list_def *o_list_def; U8 *level; U8 *lstarray; int lstcount; U32 nooflfos; U32 *lst_ids; list_def *a_list_def; int *overridecount; /* temp placed here, will eventually replace the other rubbish */ LFO *lfo; U32 nolfo; LFOLVL *lfolvl; U32 nooflvl; LVL *lvl; LST *lst; U16 noofLST; }; typedef struct tlist_info list_info; struct tsprm { U8 *list; struct tsprm *next; int len; }; typedef struct tsprm tSprm; struct tcstyle { pap thepap; chp thechp; char *begin; char *end; char *name; char *prespace; char *postspace; char *Default; char *bold; char *italic; char *font; struct tcstyle *next; }; typedef struct tcstyle config_style; struct _document_style { char *begin; int htwips; int vtwips; char *end; }; typedef struct _document_style document_style; struct _element_style { char *begin; char *end; }; typedef struct _element_style element_style; typedef enum { BOLD, ITALIC, FONT } ele_type; struct tstyle { /*temp put in hooks for new stylesheet */ STSH stsh; pap thepap; chp thechp; char *name; char *begin; char *end; char *Default; char *prespace; char *postspace; char *font; char *bold; char *italic; }; typedef struct tstyle style; struct tbookmark_limits { U32 bookmark_b_no; U32 *bookmark_b_cps; BKF *bookmark_b_bkfs; U32 bookmark_e_no; U32 *bookmark_e_cps; }; typedef struct tbookmark_limits bookmark_limits; struct ttextportions { U32 fcMin; U32 fcMac; U32 ccpText; U32 ccpFtn; U32 ccpHdr; U32 ccpAtn; U32 ccpEdn; U32 fcPlcfhdd; U32 lcbPlcfhdd; U32 *headercplist; U8 headercpno; U32 fndref_no; U32 fndtxt_no; U32 *fndRef; FRD *fndFRD; U32 *fndTxt; int list_footnotes[256]; int list_foot_no; int auto_foot; int last_foot; U32 endref_no; U32 endtxt_no; U32 *endRef; FRD *endFRD; S16 *endTrueFRD; U32 *endTxt; int list_endnotes[256]; int list_end_no; int auto_end; U32 andref_no; U32 *andRef; U32 andtxt_no; U32 *andTxt; int list_annotations[256]; int list_anno_no; Xst *authors; STTBF annotations; bookmark_limits a_bookmarks; ATRD *the_atrd; int last_anno; bookmark_limits l_bookmarks; STTBF bookmarks; /* STTBF revisions; */ U32 *section_cps; SED *section_fcs; U32 section_nos; U32 noofficedraw; U32 *officedrawcps; FSPA *fspas; /*im ignoring the rest of the FSPA for now */ int noofblipdata; obj_by_spid *ablipdata; }; typedef struct ttextportions textportions; #define IGNORENUM 0 #define DONTIGNORENUM 1 #define IGNOREALL 2 U32 read_32ubit (wvStream * in); U16 read_16ubit (wvStream * in); U8 read_8ubit (wvStream * in); U32 sread_32ubit (const U8 * in); U16 sread_16ubit (const U8 * in); U8 sread_8ubit (const U8 * in); U32 dread_32ubit (wvStream * in, U8 ** list); U16 dread_16ubit (wvStream * in, U8 ** list); U8 dread_8ubit (wvStream * in, U8 ** list); U32 bread_32ubit (U8 * in, U16 * pos); U16 bread_16ubit (U8 * in, U16 * pos); U8 bread_8ubit (U8 * in, U16 * pos); /* Perform file-I/O-like operations on wvStreams. */ U32 wvStream_read (void *ptr, size_t size, size_t nmemb, wvStream * stream); void wvStream_rewind (wvStream * stream); U32 wvStream_goto (wvStream * stream, long position); U32 wvStream_offset (wvStream * stream, long offset); U32 wvStream_offset_from_end (wvStream * stream, long offset); U32 wvStream_size (wvStream * stream); U32 wvStream_tell (wvStream * stream); /* These functions take care of memory/file management for wvStreams */ void wvStream_FILE_create (wvStream ** in, FILE * inner); wvStream * wvStream_TMP_create (size_t size); void wvStream_gsf_create (wvStream ** in, GsfInput * inner); void wvStream_memory_create (wvStream ** in, char *buf, size_t size); void wvStream_create (wvStream ** in, wvStreamKind kind, wvInternalStream inner); U32 wvStream_close (wvStream * stream); /* The above functions store all the streams we open in one of these, so that * we can clean up nicely. */ struct twvStream_list { wvStream *stream; struct twvStream_list *next; }; typedef struct twvStream_list wvStream_list; void external_wvReleasePAPX_FKP (void); void external_wvReleaseCHPX_FKP (void); void cleanupstreams (char *analyze, char *slashtmp); olestream *divide_streams (char *filename, char **analyze, char **slashtmp, char *argv0); int decode_word8 (wvParseStruct * ps, int core); void get_table_info (wvStream * tablefd, list_info * a_list_info, U32 fcSttbFnm, U32 lcbSttbFnm, U32 fcPlcfLst, U32 lcbPlcfLst, U32 fcPlfLfo, U32 lcbPlfLfo, style * sheet); pap *get_pap (U32 pageindex, wvStream * in, U32 charindex, U32 * nextfc, style * sheet, list_info * a_list_info); chp *get_chp (U32 pageindex, wvStream * in, FILE * data, U32 charindex, U32 * nextfc, style * sheet, U16 istd); sep *get_sep (U32 offset, wvStream * in); void decode_clx (U32 startpiece, U32 begincp, U32 endcp, wvStream * in, FILE * main, FILE * data, U32 fcClx, U32 lcbClx, U32 intervals, U32 chpintervals, U32 * plcfbtePapx, U32 * plcfbteChpx, field_info * all_fields[5], list_info * a_list_info, style * sheet, textportions * portions, FFN_STTBF * ffn_sttbf, int headfooterflag); void decode_clx_header (U32 * rgfc, sep * asep, int nopieces, U32 startpiece, U32 begincp, U32 endcp, wvStream * in, FILE * main, FILE * data, U32 fcClx, U32 lcbClx, U32 intervals, U32 chpintervals, U32 * plcfbtePapx, U32 * plcfbteChpx, field_info * all_fields[5], list_info * a_list_info, style * sheet, textportions * portions, FFN_STTBF * ffn_sttbf, int headerfooterflag); void decode_clx_footer (U32 * rgfc, sep * asep, int nopieces, U32 startpiece, U32 begincp, U32 endcp, wvStream * in, FILE * main, FILE * data, U32 fcClx, U32 lcbClx, U32 intervals, U32 chpintervals, U32 * plcfbtePapx, U32 * plcfbteChpx, field_info * all_fields[5], list_info * a_list_info, style * sheet, textportions * portions, FFN_STTBF * ffn_sttbf, int headerfooterflag); int decode_clx_endnote (U32 * rgfc, sep * asep, int nopieces, U32 startpiece, U32 begincp, U32 endcp, wvStream * in, FILE * main, FILE * data, U32 fcClx, U32 lcbClx, U32 intervals, U32 chpintervals, U32 * plcfbtePapx, U32 * plcfbteChpx, field_info * all_fields[5], list_info * a_list_info, style * sheet, textportions * portions, FFN_STTBF * ffn_sttbf, int headerfooterflag); void decode_simple (wvStream * mafd, FILE * tablefd, FILE * data, U32 fcClx, U32 fcMin, U32 fcMac, U32 intervals, U32 chpintervals, U32 * plcfbtePapx, U32 * plcfbteChpx, field_info * all_fields[5], list_info * a_list_info, style * sheet, textportions * portions, FFN_STTBF * ffn_sttbf, int flag); int decode_simple_footer (wvStream * mafd, FILE * tablefd, FILE * data, sep * asep, U32 fcClx, U32 fcMin, U32 fcMac, U32 intervals, U32 chpintervals, U32 * plcfbtePapx, U32 * plcfbteChpx, field_info * all_fields[5], list_info * a_list_info, style * sheet, textportions * portions, FFN_STTBF * ffn_sttbf, int flag); int decode_simple_endnote (wvStream * mafd, FILE * tablefd, FILE * data, sep * asep, U32 fcClx, U32 fcMin, U32 fcMac, U32 intervals, U32 chpintervals, U32 * plcfbtePapx, U32 * plcfbteChpx, field_info * all_fields[5], list_info * a_list_info, style * sheet, textportions * portions, FFN_STTBF * ffn_sttbf, int flag); void decode_simple_header (wvStream * mafd, FILE * tablefd, FILE * data, sep * asep, U32 fcClx, U32 fcMin, U32 fcMac, U32 intervals, U32 chpintervals, U32 * plcfbtePapx, U32 * plcfbteChpx, field_info * all_fields[5], list_info * a_list_info, style * sheet, textportions * portions, FFN_STTBF * ffn_sttbf, int flag); int decode_letter (int letter, int flag, pap * apap, chp * achp, field_info * magic_fields, wvStream * main, FILE * data, FFN_STTBF * ffn_sttbf, list_info * a_list_info, textportions * portions, int *issection, style * sheet); void get_next_f_ref (textportions * portions, signed long *nextfootnote); void get_next_e_ref (textportions * portions, signed long *nextendnote); void decode_s_specials (pap * apap, chp * achp, list_info * a_list_info); int decode_s_table (pap * apap, chp * achp, list_info * a_list_info, int silent); void decode_e_specials (pap * apap, chp * achp, list_info * a_list_info); int decode_e_table (pap * apap, chp * achp, list_info * a_list_info, int silent); void decode_s_chp (chp * achp, FFN_STTBF *, style *); void decode_e_chp (chp * achp); void chpsoff (void); void chpson (void); void decode_list_nfc (int value, int no_type); void decode_list_level (pap * apap, int inalist, int num); int flushbreaks (int); void decode_s_anld (pap * apap, chp * achp, list_info * a_list_info, FFN_STTBF * ffn_sttbf, style * sheet); void decode_s_list (pap * apap, chp * achp, list_info * a_list_info, FFN_STTBF * ffn_sttbf, int num, style * sheet); void decode_e_list (pap * apap, chp * achp, list_info * a_list_info); void decode_field (wvStream * main, field_info * magic_fields, long *cp, U8 * fieldwas, unsigned long *swallowcp1, unsigned long *swallowcp2); int find_FKPno_papx (U32 fc, U32 * plcfbtePapx, U32 intervals); int find_FKPno_chpx (U32 fc, U32 * plcfbteChpx, U32 intervals); U32 find_FC_sepx (U32 cp, U32 * sepcp, textportions * portions); U32 find_next_smallest_fc (U32 charindex, U32 pageindex, wvStream * in, S16 * location, long *pos); U32 find_next_biggest_fc (U32 charindex, U32 pageindex, wvStream * in, U16 * location, long *pos); U32 find_next_biggest_orequal_fc (U32 charindex, U32 pageindex, wvStream * in, U16 * location, long *pos); pap *get_complex_pap (U32 fc, U32 * plcfbtePapx, U16 i, U16 nopieces, U32 intervals, U32 * rgfc, wvStream * main, U32 * avalrgfc, U32 * thenextone, U32 * paraendfc, int *paraendpiece, style * sheet, list_info * a_list_info); chp *get_complex_chp (U32 fc, U32 * plcfbteChpx, U16 i, U16 nopieces, U32 chpintervals, U32 * rgfc, wvStream * main, U32 * avalrgfc, U32 * thenextone, style * sheet, U16 istd); #if 0 void decode_gpprls (pap * apap, chp * achp, sep * asep, U16 * gpprlindex, int index, tSprm * sprmlists, style * sheet); #endif style *decode_stylesheet (wvStream * tablefd, U32 stsh, U32 stshlen, config_style * in_style); void fill_pap (style * stylelist, int m, int b); void decode_sprm (FILE * in, U16 clist, pap * retpap, chp * retchp, sep * retsep, U16 * pos, U8 ** list, style * sheet, U16 istd); void error (FILE * stream, char *fmt, ...); void oprintf (int silentflag, char *fmt, ...); int decode_symbol (U16 fontspec); char *symbolfontdir (void); int decode_wingding (U16 fontspec); char *wingdingfontdir (void); char *patterndir (void); void decode_header (U32 * begin, U32 * len, textportions * portions, sep * asep); void decode_header2 (U32 * begin, U32 * len, textportions * portions); void decode_footer (U32 * begin, U32 * len, textportions * portions, sep * asep); void decode_footnote (U32 * begin, U32 * len, textportions * portions, int i); void decode_endnote (U32 * begin, U32 * len, textportions * portions, int i); void decode_footanno (U32 * begin, U32 * len, textportions * portions, int i); int find_piece_cp (U32 sepcp, U32 * rgfc, int nopieces); obj_by_spid *get_blips (U32 fcDggInfo, U32 lcbDggInfo, wvStream * tablefd, FILE * mafd, int *noofblips, int streamtype, obj_by_spid ** realhead); void output_draw (U32 cp, textportions * portions); void do_indent (pap * apap); U32 get_fc_from_cp (U32 acp, U32 * rgfc, U32 * avalrgfc, int nopieces); void end_para (pap * apap, pap * newpap); /* returns slot to use in index array which keeps track of how far each list has got */ int decode_ilfo (pap * retpap, chp * achp, list_info * a_list_info, style * sheet, FFN_STTBF * ffn_sttbf); void init_chp (chp * achp); void init_pap (pap * apap); /*result += modified - blank*/ void merge_chps (chp * blank, chp * modified, chp * result); void init_chp_from_istd (U16 istd, style * sheet, chp * retchp); void init_pap_from_istd (U16 istd, style * sheet, pap * retpap); void get_para_bounds (int currentpiece, U32 fc, U32 * rgfc, U32 * avalrgfc, int nopieces, U32 * plcfbtePapx, U32 intervals, wvStream * main); char *ms_strlower (char *in); /* returns 0 for no error 1 for file doesn't exist 2 if it isnt an ole file 3 if its corrupt */ int wvOLEDecode (wvParseStruct * ps, char *path, wvStream ** mafd, wvStream ** tablefd0, wvStream ** tablefd1, wvStream ** data, wvStream ** summary); int wvOLESummaryStream (char *filename, wvStream ** summary); long get_picture_header (U32 fcPic, wvStream * data, U32 * len, U16 * datatype); void cleanupglobals (void); char *ms_basename (char *filename); void outputimgsrc (char *filename, int width, int height); U32 decode_b_bookmark (bookmark_limits * l_bookmarks, STTBF * bookmarks); U32 decode_e_bookmark (bookmark_limits * l_bookmarks); void output_tablebg (pap * apap); int do_tablelooks (pap * apap); int setdecom (void); void pagebreak (void); void columnbreak (void); void sectionbreak (sep * asep); void copy_tap (tap * rettap, tap * intap); void check_auto_color (chp * achp); void extract_bookm_limits (bookmark_limits * l_bookmarks, wvStream * tablefd, U32 fcPlcfbkf, U32 lcbPlcfbkf, U32 fcPlcfbkl, U32 lcbPlcfbkl); int use_fontfacequery (chp * achp); char *notoday (int no); void convertwmf (char *filename); int Parse (wvStream * in, config_style ** in_style, document_style ** doc_style, element_style * ele_style); int do_output_start (U32 * avalrgfc, int nopieces, document_style * doc_style); void do_output_end (document_style * doc_style, int core, int tail); char *argument (void); void fill_table_info (pap * apap, U32 tapfc1, U32 * plcfbtePapx, U32 intervals, wvStream * mafd, style * sheet, list_info * a_list_info); char *expand_variables (char *in, pap * apap); char *expand_element (char *in, char *fontface, char *color, char *size); void init_sep (sep * asep); char *get_image_prefix (void); int add_t (int **vals, S16 * p, int plen); int gcf (int high, int low); int gcf_list (int *vals, int cno); int allowedfont (style * sheet, U16 istd); #define NOOFIDS 8 /*interim*/ U32 wvGetSPIDfromCP (U32 cp, textportions * portions); void oldwvGetPICF (PICF * apicf, wvStream * fd, U32 offset); /* have to have pap replaced with PAP, and change the text output code to the new ones, whenever they are ready*/ void wvGetListInfo (pap * apap, chp * achp, LFO * lfo, LFOLVL * lfolvl, LVL * lvl, U32 nolfo, LST * lst, U16 noofLST, style * sheet, FFN_STTBF * ffn_sttbf); /* have to have pap replaced with PAP*/ void wvAddPAP_FromBucket (pap * pap, U8 * pointer8, U16 len, style * sheet); /*we have to replace chp with CHP*/ void wvAddCHP_FromBucket (chp * achp, U8 * pointer8, U16 len, style * sheet); void twvCopyCHP (chp * dest, chp * src); void wvSetEntityConverter (expand_data * data); int wvIsBidiDocument(wvParseStruct * ps); int wvGetPLCF (void ** plcf, U32 offset, U32 len, wvStream * fd); /* & finally */ extern const char* wv_version; #ifdef __cplusplus } #endif #endif ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvWare.c�����������������������������������������������������������������������������������0000664�0000764�0000764�00000113664�11247156607�010555� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <string.h> #include <unistd.h> #include "wv.h" #include "getopt.h" /* strdup isn't declared in <string.h> for `gcc -ansi'; declare it here */ extern char *strdup (const char *); extern char *str_copy(char *d, size_t n, char *s); extern char *str_append(char *d, size_t n, char *s); /* Released under GPL, written by Caolan.McNamara@ul.ie. Copyright (C) 1998,1999 Caolan McNamara Real Life: Caolan McNamara * Doing: MSc in HCI Work: Caolan.McNamara@ul.ie * Phone: +353-86-8790257 URL: http://skynet.csn.ul.ie/~caolan * Sig: an oblique strategy How would you have done it? */ /* returns 1 for not an ole doc 2 ole but not word doc -1 for an error of some unknown kind 0 on success */ char *config = "wvHtml.xml"; /* flags for -X / --xml option */ int xml_output = 0; extern char *xml_slash; /* flag for disabling graphics */ int no_graphics = 0; int myelehandler (wvParseStruct * ps, wvTag tag, void *props, int dirty); int mydochandler (wvParseStruct * ps, wvTag tag); int myCharProc (wvParseStruct * ps, U16 eachchar, U8 chartype, U16 lid); int mySpecCharProc (wvParseStruct * ps, U16 eachchar, CHP * achp); int wvOpenConfig (state_data *myhandle,char *config); char * wv_arg_basename = 0; char * figure_name (wvParseStruct * ps); char * name_to_url (char * name); char wv_cwd[4097]; int HandleBitmap (wvParseStruct * ps, char *name, BitmapBlip * bitmap); int HandleMetafile (wvParseStruct * ps, char *name, MetaFileBlip * bitmap); /* should really be a config.h decl for having strdup, but... */ #ifdef __MWERKS__ char * strdup (const char *text) { char *buf; size_t len; len = strlen (text) + 1; buf = (char *) wvMalloc (len); memcpy (buf, text, len); return buf; } #endif char * wvHtmlGraphic (wvParseStruct * ps, Blip * blip) { char *name; wvStream * fd; char test[3]; name = figure_name (ps); if (name == 0) return (0); /* temp hack to test older included bmps in word 6 and 7, should be wrapped in a modern escher strucure before getting to here, and then handled as normal */ wvTrace (("type is %d\n", blip->type)); switch (blip->type) { case msoblipJPEG: case msoblipDIB: case msoblipPNG: fd = (blip->blip.bitmap.m_pvBits); test[2] = '\0'; test[0] = read_8ubit (fd); test[1] = read_8ubit (fd); wvStream_rewind (fd); if (!(strcmp (test, "BM"))) { wvAppendStr (&name, ".bmp"); if (0 != HandleBitmap (ps, name, &blip->blip.bitmap)) return (NULL); return (name); } default: break; } switch (blip->type) { case msoblipWMF: wvAppendStr (&name, ".wmf"); if (0 != HandleMetafile (ps, name, &blip->blip.metafile)) return (NULL); break; case msoblipEMF: wvAppendStr (&name, ".emf"); if (0 != HandleMetafile (ps, name, &blip->blip.metafile)) return (NULL); break; case msoblipPICT: wvAppendStr (&name, ".pict"); if (0 != HandleMetafile (ps, name, &blip->blip.metafile)) return (NULL); break; case msoblipJPEG: wvAppendStr (&name, ".jpg"); if (0 != HandleBitmap (ps, name, &blip->blip.bitmap)) return (NULL); break; case msoblipDIB: wvAppendStr (&name, ".dib"); if (0 != HandleBitmap (ps, name, &blip->blip.bitmap)) return (NULL); break; case msoblipPNG: wvAppendStr (&name, ".png"); if (0 != HandleBitmap (ps, name, &blip->blip.bitmap)) return (NULL); break; } return (name); } int HandleBitmap (wvParseStruct * ps, char *name, BitmapBlip * bitmap) { wvStream * pwv = bitmap->m_pvBits; FILE *fd = NULL; size_t size = 0, i; if (ps->dir) chdir (ps->dir); fd = fopen (name, "wb"); if (ps->dir) chdir (wv_cwd); if (fd == NULL) { fprintf (stderr,"\nCannot open %s for writing\n",name); exit (1); } size = wvStream_size (pwv); wvStream_rewind(pwv); for (i = 0; i < size; i++) fputc (read_8ubit(pwv), fd); fclose (fd); wvTrace (("Name is %s\n", name)); return (0); } int HandleMetafile (wvParseStruct * ps, char *name, MetaFileBlip * bitmap) { wvStream * pwv = bitmap->m_pvBits; FILE *fd = NULL; size_t size = 0, i; U8 decompressf = 0; if (ps->dir) chdir (ps->dir); fd = fopen (name, "wb"); if (ps->dir) chdir (wv_cwd); if (fd == NULL) { fprintf (stderr,"\nCannot open %s for writing\n",name); exit (1); } size = wvStream_size (pwv); wvStream_rewind(pwv); if (bitmap->m_fCompression == msocompressionDeflate) decompressf = setdecom (); if ( !decompressf) { for (i = 0; i < size; i++) fputc (read_8ubit(pwv), fd); } else /* decompress here */ { FILE *tmp = tmpfile (); FILE *out = tmpfile (); for (i = 0; i < size; i++) fputc (read_8ubit(pwv), tmp); rewind (tmp); decompress (tmp, out, bitmap->m_cbSave, bitmap->m_cb); fclose (tmp); rewind(out); for (i = 0; i < bitmap->m_cb; i++) fputc ( fgetc(out), fd); fclose(out); } fclose (fd); wvTrace (("Name is %s\n", name)); return (0); } static void do_version (void) { /* todo: initialize this in a configure script */ printf ("wvWare %s\n", VERSION); } static void do_help (void) { do_version (); printf ("Usage: wvWare [OPTION...] filename.doc\n"); printf ("\nCommon Options:\n"); printf (" -x --config=config.xml\tSpecify an output filter to use\n"); printf (" -c --charset=charset\t\tSpecify an iconv charset encoding\n"); printf (" -p --password=password\tSpecify password for encrypted\n\t\t\t\tWord Documents\n"); printf (" -d --dir=dir\t\t\tDIR\n"); printf (" -b --basename=name\t\tUse name as base name of image files\n"); printf (" -a --auto-eps=fmt\t\tQuery support for conversion of fmt to eps\n"); printf (" -s --suppress=fmt\t\tDon't convert fmt to eps\n"); printf (" -X --xml\t\t\tXML output\n"); printf (" -1 --nographics\t\tno 0x01 graphics output\n"); printf (" -v --version\t\t\tPrint wvWare's version number\n"); printf (" -? --help\t\t\tPrint this help message\n"); printf ("\nwvWare is a suite of applications that converts Microsoft Word Documents\n"); printf ("(versions 2,5,6,7,8,9) into more \"useful\" formats such as HTML, LaTeX,\n"); printf ("ABW, WML, Text, etc... wvWare is also a library which can be used by\n"); printf ("other applications to import (and soon export) Word documents.\n\n"); printf ("Authors:\nDom Lachowicz (dominicl@seas.upenn.edu)\n"); printf ("Caolan McNamara (original author)\nVisit http://www.wvware.com\n"); } static void wv_query_eps (const char* format); static void wv_suppress (const char* format); char *charset = NULL; int main (int argc, char **argv) { FILE *input; char *password = NULL; char *dir = NULL; int ret; state_data myhandle; expand_data expandhandle; wvParseStruct ps; int c, index = 0; static struct option long_options[] = { {"charset", 1, 0, 'c'}, {"config", 1, 0, 'x'}, {"password", 1, 0, 'p'}, {"dir", 1, 0, 'd'}, {"basename", 1, 0, 'b'}, {"auto-eps", 1, 0, 'a'}, {"suppress", 1, 0, 's'}, {"version", 0, 0, 'v'}, {"help", 0, 0, '?'}, {"xml", 0, 0, 'X'}, {"nographics", 0, 0, '1'}, {0, 0, 0, 0} }; if (argc < 2) { do_help (); exit (-1); } while (1) { c = getopt_long (argc, argv, "?vc:x:p:d:b:a:s:X1", long_options, &index); if (c == -1) break; switch (c) { case '?': do_help (); return 0; case 'v': do_version (); return 0; case 'c': if (optarg) charset = optarg; else wvError (("No argument given to charset")); break; case 'x': if (optarg) config = optarg; else wvError (("No config file given to config option")); break; case 'p': if (optarg) password = optarg; else wvError (("No password given to password option")); break; case 'd': if (optarg) dir = optarg; else wvError (("No directory given to dir option")); break; case 'b': if (optarg) wv_arg_basename = optarg; else wvError (("No name given to basename option")); break; case 'a': wv_query_eps (optarg); return 0; case 's': wv_suppress (optarg); break; case 'X': config = "wvXml.xml"; charset = "utf-8"; xml_output = 1; xml_slash = " /"; break; case '1': no_graphics = 1; break; default: do_help (); return -1; } } if (optind >= argc) { fprintf (stderr, "No file name given to open\n"); return (-1); } #if 0 input = fopen (argv[optind], "rb"); if (!input) { fprintf (stderr, "Failed to open %s\n", argv[optind]); return (-1); } fclose (input); #endif getcwd (wv_cwd,4096); wv_cwd[4096] = 0; wvInit (); ret = wvInitParser (&ps, argv[optind]); ps.filename = argv[optind]; ps.dir = dir; if (ret & 0x8000) /* Password protected? */ { if ((ret & 0x7fff) == WORD8) { ret = 0; if (password == NULL) { fprintf (stderr, "Password required, this is an encrypted document\n"); return (-1); } else { wvSetPassword (password, &ps); if (wvDecrypt97 (&ps)) { wvError (("Incorrect Password\n")); return (-1); } } } else if (((ret & 0x7fff) == WORD7) || ((ret & 0x7fff) == WORD6)) { ret = 0; if (password == NULL) { fprintf (stderr, "Password required, this is an encrypted document\n"); return (-1); } else { wvSetPassword (password, &ps); if (wvDecrypt95 (&ps)) { wvError (("Incorrect Password\n")); return (-1); } } } } if (ret) { wvError (("startup error #%d\n", ret)); wvOLEFree (&ps); return (-1); } wvSetElementHandler (&ps, myelehandler); wvSetDocumentHandler (&ps, mydochandler); wvSetCharHandler (&ps, myCharProc); wvSetSpecialCharHandler (&ps, mySpecCharProc); wvInitStateData (&myhandle); if (wvOpenConfig (&myhandle,config) == 0) { wvError (("config file not found\n")); return (-1); } else { wvTrace (("x for FILE is %x\n", myhandle.fp)); ret = wvParseConfig (&myhandle); } if (!ret) { expandhandle.sd = &myhandle; ps.userData = &expandhandle; ret = wvHtml (&ps); } wvReleaseStateData (&myhandle); if (ret == 2) return (2); else if (ret != 0) ret = -1; wvOLEFree (&ps); wvShutdown (); return (ret); } int myelehandler (wvParseStruct * ps, wvTag tag, void *props, int dirty) { static PAP *ppap; expand_data *data = (expand_data *) ps->userData; data->anSttbfAssoc = &ps->anSttbfAssoc; data->lfo = &ps->lfo; data->lfolvl = ps->lfolvl; data->lvl = ps->lvl; data->nolfo = &ps->nolfo; data->nooflvl = &ps->nooflvl; data->stsh = &ps->stsh; data->lst = &ps->lst; data->noofLST = &ps->noofLST; data->liststartnos = &ps->liststartnos; data->listnfcs = &ps->listnfcs; data->finallvl = &ps->finallvl; data->fib = &ps->fib; data->dop = &ps->dop; data->intable = &ps->intable; data->cellbounds = &ps->cellbounds; data->nocellbounds = &ps->nocellbounds; data->endcell = &ps->endcell; data->vmerges = &ps->vmerges; data->norows = &ps->norows; data->nextpap = &ps->nextpap; if (charset == NULL) { data->charset = wvAutoCharset (ps); charset = data->charset; } else data->charset = charset; data->props = props; switch (tag) { case PARABEGIN: { S16 tilfo = 0; /* test begin */ if (*(data->endcell)) { tilfo = ((PAP *) (data->props))->ilfo; ((PAP *) (data->props))->ilfo = 0; } /* test end */ ppap = (PAP *) data->props; wvTrace ( ("fore back is %d %d\n", ((PAP *) (data->props))->shd.icoFore, ((PAP *) (data->props))->shd.icoBack)); wvBeginPara (data); if (tilfo) ((PAP *) (data->props))->ilfo = tilfo; } break; case PARAEND: { S16 tilfo = 0; /* test begin */ if (*(data->endcell)) { tilfo = ((PAP *) (data->props))->ilfo; ((PAP *) (data->props))->ilfo = 0; } /* test end */ wvEndCharProp (data); /* danger will break in the future */ wvEndPara (data); if (tilfo) ((PAP *) (data->props))->ilfo = tilfo; wvCopyPAP (&data->lastpap, (PAP *) (data->props)); } break; case CHARPROPBEGIN: wvBeginCharProp (data, ppap); break; case CHARPROPEND: wvEndCharProp (data); break; case SECTIONBEGIN: wvBeginSection (data); break; case SECTIONEND: wvEndSection (data); break; case COMMENTBEGIN: wvBeginComment (data); break; case COMMENTEND: wvEndComment (data); break; default: break; } return (0); } int mydochandler (wvParseStruct * ps, wvTag tag) { static int i; expand_data *data = (expand_data *) ps->userData; data->anSttbfAssoc = &ps->anSttbfAssoc; data->lfo = &ps->lfo; data->lfolvl = ps->lfolvl; data->lvl = ps->lvl; data->nolfo = &ps->nolfo; data->nooflvl = &ps->nooflvl; data->stsh = &ps->stsh; data->lst = &ps->lst; data->noofLST = &ps->noofLST; data->liststartnos = &ps->liststartnos; data->listnfcs = &ps->listnfcs; data->finallvl = &ps->finallvl; data->fib = &ps->fib; data->dop = &ps->dop; data->intable = &ps->intable; data->cellbounds = &ps->cellbounds; data->nocellbounds = &ps->nocellbounds; data->endcell = &ps->endcell; data->vmerges = &ps->vmerges; data->norows = &ps->norows; if (i == 0) { wvSetEntityConverter (data); data->filename = ps->filename; data->whichcell = 0; data->whichrow = 0; data->asep = NULL; i++; wvInitPAP (&data->lastpap); data->nextpap = NULL; data->ps = ps; } if (charset == NULL) { data->charset = wvAutoCharset (ps); charset = data->charset; } else data->charset = charset; switch (tag) { case DOCBEGIN: wvBeginDocument (data); break; case DOCEND: wvEndDocument (data); break; default: break; } return (0); } void wvStrangeNoGraphicData (char *config, int graphicstype) { wvError (("Strange No Graphic Data in the 0x01/0x08 graphic\n")); if ((strstr (config, "wvLaTeX.xml") != NULL) || (strstr (config, "wvCleanLaTeX.xml") != NULL)) printf ("\n\\resizebox*{\\baselineskip}{!}{\\includegraphics{placeholder.eps}}\ \n-- %#.2x graphic: StrangeNoGraphicData --", graphicstype); else printf ("<img alt=\"%#.2x graphic\" src=\"%s\"%s><br%s>", graphicstype, "StrangeNoGraphicData", xml_slash, xml_slash); return; } /* routines for conversion from WMF to EPS or PNG using libwmf(2) library. */ int wv_wmfRead (void *); int wv_wmfSeek (void *, long); long wv_wmfTell (void *); void wvConvert_WMF_to_EPS (int, int, char **); void wvConvert_WMF_to_PNG (int, int, char **); void wvConvert_PNG_to_EPS (int, int, char **); void wvConvert_JPG_to_EPS (int, int, char **); int wv_wmfRead (void *context) { return (fgetc ((FILE *) context)); } int wv_wmfSeek (void *context, long position) { return (fseek ((FILE *) context, position, SEEK_SET)); } long wv_wmfTell (void *context) { return (ftell ((FILE *) context)); } #ifdef HAVE_LIBWMF #include <libwmf/api.h> #include <libwmf/eps.h> #ifdef HAVE_LIBWMF_FOREIGN_H #include <libwmf/foreign.h> #endif #endif /* HAVE_LIBWMF */ void wvConvert_WMF_to_EPS (int width, int height, char **source) { #ifdef HAVE_LIBWMF FILE *in = 0; FILE *out = 0; char *sink = 0; unsigned long flags; wmf_error_t err; wmf_eps_t *ddata = 0; wmfAPI *API = 0; wmfAPI_Options api_options; wmfD_Rect bbox; in = fopen (*source, "rb"); if (in == 0) return; sink = strdup (*source); remove_suffix (sink, ".wmf"); wvAppendStr (&sink, ".eps"); out = fopen (sink, "wb"); if (out == 0) { wvFree (sink); fclose (in); return; } flags = WMF_OPT_IGNORE_NONFATAL | WMF_OPT_FUNCTION; api_options.function = wmf_eps_function; err = wmf_api_create (&API, flags, &api_options); if (err != wmf_E_None) goto _wmf_error; ddata = WMF_EPS_GetData (API); err = wmf_bbuf_input (API, wv_wmfRead, wv_wmfSeek, wv_wmfTell, (void *) in); if (err != wmf_E_None) goto _wmf_error; err = wmf_scan (API, 0, &bbox); if (err != wmf_E_None) goto _wmf_error; ddata->out = wmf_stream_create (API,out); if (out == 0) goto _wmf_error; ddata->bbox = bbox; ddata->eps_width = width; ddata->eps_height = height; err = wmf_play (API, 0, &bbox); if (err != wmf_E_None) goto _wmf_error; wmf_api_destroy (API); fclose (in); fclose (out); *source = sink; return; _wmf_error: if (API) wmf_api_destroy (API); fclose (in); fclose (out); wvFree (sink); #endif /* HAVE_LIBWMF */ } #ifdef HAVE_LIBWMF #include <libwmf/api.h> #include <libwmf/gd.h> #endif /* HAVE_LIBWMF */ void wvConvert_WMF_to_PNG (int width, int height, char **source) { #ifdef HAVE_LIBWMF FILE *in = 0; FILE *out = 0; char *sink = 0; unsigned long flags; wmf_error_t err; wmf_gd_t *ddata = 0; wmfAPI *API = 0; wmfAPI_Options api_options; wmfD_Rect bbox; in = fopen (*source, "rb"); if (in == 0) return; sink = strdup (*source); remove_suffix (sink, ".wmf"); wvAppendStr (&sink, ".png"); out = fopen (sink, "wb"); if (out == 0) { wvFree (sink); fclose (in); return; } flags = WMF_OPT_IGNORE_NONFATAL | WMF_OPT_FUNCTION; api_options.function = wmf_gd_function; err = wmf_api_create (&API, flags, &api_options); if (err != wmf_E_None) goto _wmf_error; ddata = WMF_GD_GetData (API); if ((ddata->flags & WMF_GD_SUPPORTS_PNG) == 0) goto _wmf_error; err = wmf_bbuf_input (API, wv_wmfRead, wv_wmfSeek, wv_wmfTell, (void *) in); if (err != wmf_E_None) goto _wmf_error; err = wmf_scan (API, 0, &bbox); if (err != wmf_E_None) goto _wmf_error; ddata->type = wmf_gd_png; ddata->flags |= WMF_GD_OUTPUT_FILE; ddata->file = out; ddata->bbox = bbox; ddata->width = width; ddata->height = height; err = wmf_play (API, 0, &bbox); if (err != wmf_E_None) goto _wmf_error; wmf_api_destroy (API); fclose (in); fclose (out); *source = sink; return; _wmf_error: if (API) wmf_api_destroy (API); fclose (in); fclose (out); wvFree (sink); #endif /* HAVE_LIBWMF */ } void wvConvert_PNG_to_EPS (int width, int height, char **source) { #ifdef HAVE_LIBWMF_FOREIGN_H FILE *in = 0; FILE *out = 0; char *sink = 0; unsigned long flags; wmf_error_t err; wmf_foreign_t *ddata = 0; wmfAPI *API = 0; wmfAPI_Options api_options; wmfImage image; flags = WMF_OPT_IGNORE_NONFATAL | WMF_OPT_FUNCTION; api_options.function = wmf_foreign_function; err = wmf_api_create (&API, flags, &api_options); if (err != wmf_E_None) return; ddata = WMF_FOREIGN_GetData (API); if ((ddata->flags & WMF_FOREIGN_SUPPORTS_PNG) == 0) { wmf_api_destroy (API); return; } in = fopen (*source, "rb"); if (in == 0) { wmf_api_destroy (API); return; } if (wmf_image_load_png (API,in,&image) == (-1)) { fclose (in); wmf_api_destroy (API); return; } fclose (in); sink = strdup (*source); remove_suffix (sink, ".png"); wvAppendStr (&sink, ".eps"); out = fopen (sink, "wb"); if (out == 0) { wvFree (sink); wmf_image_free (API,&image); wmf_api_destroy (API); return; } wmf_image_save_eps (API,out,&image); fclose (out); wmf_image_free (API,&image); wmf_api_destroy (API); *source = sink; return; #endif /* HAVE_LIBWMF_FOREIGN_H */ } void wvConvert_JPG_to_EPS (int width, int height, char **source) { #ifdef HAVE_LIBWMF_FOREIGN_H FILE *in = 0; FILE *out = 0; char *sink = 0; unsigned long flags; wmf_error_t err; wmf_foreign_t *ddata = 0; wmfAPI *API = 0; wmfAPI_Options api_options; wmfImage image; flags = WMF_OPT_IGNORE_NONFATAL | WMF_OPT_FUNCTION; api_options.function = wmf_foreign_function; err = wmf_api_create (&API, flags, &api_options); if (err != wmf_E_None) return; ddata = WMF_FOREIGN_GetData (API); if ((ddata->flags & WMF_FOREIGN_SUPPORTS_JPEG) == 0) { wmf_api_destroy (API); return; } in = fopen (*source, "rb"); if (in == 0) { wmf_api_destroy (API); return; } if (wmf_image_load_jpg (API,in,&image) == (-1)) { fclose (in); wmf_api_destroy (API); return; } fclose (in); sink = strdup (*source); remove_suffix (sink, ".jpg"); wvAppendStr (&sink, ".eps"); out = fopen (sink, "wb"); if (out == 0) { wvFree (sink); wmf_image_free (API,&image); wmf_api_destroy (API); return; } wmf_image_save_eps (API,out,&image); fclose (out); wmf_image_free (API,&image); wmf_api_destroy (API); *source = sink; return; #endif /* HAVE_LIBWMF_FOREIGN_H */ } static void wv_query_eps (const char* format) { #ifdef HAVE_LIBWMF unsigned long flags; wmf_error_t err; #ifdef HAVE_LIBWMF_FOREIGN_H wmf_foreign_t *ddata = 0; #endif /* HAVE_LIBWMF_FOREIGN_H */ wmfAPI* API = 0; wmfAPI_Options api_options; #endif /* HAVE_LIBWMF */ if (format == 0) { printf ("no\n"); return; } #ifdef HAVE_LIBWMF if (strcmp (format,"wmf") == 0) { printf ("yes\n"); return; } #ifdef HAVE_LIBWMF_FOREIGN_H if (strcmp (format,"png") == 0) { flags = WMF_OPT_IGNORE_NONFATAL | WMF_OPT_FUNCTION; api_options.function = wmf_foreign_function; err = wmf_api_create (&API, flags, &api_options); if (err != wmf_E_None) { printf ("no\n"); return; } ddata = WMF_FOREIGN_GetData (API); if (ddata->flags & WMF_FOREIGN_SUPPORTS_PNG) { printf ("yes\n"); } else { printf ("no\n"); } wmf_api_destroy (API); return; } if (strcmp (format,"jpg") == 0) { flags = WMF_OPT_IGNORE_NONFATAL | WMF_OPT_FUNCTION; api_options.function = wmf_foreign_function; err = wmf_api_create (&API, flags, &api_options); if (err != wmf_E_None) { printf ("no\n"); return; } ddata = WMF_FOREIGN_GetData (API); if (ddata->flags & WMF_FOREIGN_SUPPORTS_JPEG) { printf ("yes\n"); } else { printf ("no\n"); } wmf_api_destroy (API); return; } #endif /* HAVE_LIBWMF_FOREIGN_H */ #endif /* HAVE_LIBWMF */ printf ("no\n"); return; } static int Convert_WMF = 1; static int Convert_EMF = 1; static int Convert_PNG = 1; static int Convert_JPG = 1; static int Convert_PICT = 1; static void wv_suppress (const char* format) { const char* ptr = format; if (format == 0) { Convert_WMF = 1; Convert_EMF = 1; Convert_PNG = 1; Convert_JPG = 1; Convert_PICT = 1; return; } while (*ptr) { if (strncmp (ptr,"wmf,",4) == 0) { Convert_WMF = 0; ptr += 4; continue; } if (strncmp (ptr,"emf,",4) == 0) { Convert_EMF = 0; ptr += 4; continue; } if (strncmp (ptr,"png,",4) == 0) { Convert_PNG = 0; ptr += 4; continue; } if (strncmp (ptr,"jpg,",4) == 0) { Convert_JPG = 0; ptr += 4; continue; } if (strncmp (ptr,"pict,",5) == 0) { Convert_PICT = 0; ptr += 5; continue; } if (strcmp (ptr,"wmf") == 0) { Convert_WMF = 0; break; } if (strcmp (ptr,"emf") == 0) { Convert_EMF = 0; break; } if (strcmp (ptr,"png") == 0) { Convert_PNG = 0; break; } if (strcmp (ptr,"jpg") == 0) { Convert_JPG = 0; break; } if (strcmp (ptr,"pict") == 0) { Convert_PICT = 0; break; } fprintf (stderr,"format(s) `%s' not recognized!\n",ptr); break; } } void wvPrintGraphics (char *config, int graphicstype, int width, int height, char *source) { if ((strstr (config, "wvLaTeX.xml") != NULL) || (strstr (config, "wvCleanLaTeX.xml") != NULL)) { if (strlen (source) >= 4) { if (Convert_WMF && strcmp (source + strlen (source) - 4, ".wmf") == 0) wvConvert_WMF_to_EPS (width, height, &source); else if (Convert_PNG && strcmp (source + strlen (source) - 4, ".png") == 0) wvConvert_PNG_to_EPS (width, height, &source); else if (Convert_JPG && strcmp (source + strlen (source) - 4, ".jpg") == 0) wvConvert_JPG_to_EPS (width, height, &source); } remove_suffix (source, ".eps"); remove_suffix (source, ".wmf"); remove_suffix (source, ".pict"); remove_suffix (source, ".png"); remove_suffix (source, ".jpg"); /* Output to real file name. Conversion to .eps must be done manually for now */ printf ("\n\\resizebox{%dpt}{%dpt}\ {\\includegraphics{%s.eps}}\ \n% -- %#.2x graphic -- \n", width, height, source, graphicstype); } else { if (strlen (source) >= 4) if (strcmp (source + strlen (source) - 4, ".wmf") == 0) wvConvert_WMF_to_PNG (width, height, &source); if ((strstr (config, "wvHtml.xml") != NULL) || (strstr (config, "wvWml.xml") != NULL)) { printf ("<img width=\"%d\" height=\"%d\" alt=\"%#.2x graphic\" src=\"%s\"%s><br%s>", width, height, graphicstype, name_to_url (source), xml_slash, xml_slash); } else { printf ("<img width=\"%d\" height=\"%d\" alt=\"%#.2x graphic\" src=\"%s\"%s><br%s>", width, height, graphicstype, source, xml_slash, xml_slash); } } return; } int mySpecCharProc (wvParseStruct * ps, U16 eachchar, CHP * achp) { static int message; PICF picf; FSPA *fspa; expand_data *data = (expand_data *) ps->userData; switch (eachchar) { case 19: wvError (("field began\n")); ps->fieldstate++; ps->fieldmiddle = 0; fieldCharProc (ps, eachchar, 0, 0x400); /* temp */ return (0); break; case 20: wvTrace (("field middle\n")); if (achp->fOle2) { wvError ( ("this field has an associated embedded object of id %x\n", achp->fcPic_fcObj_lTagObj)); /*test = wvFindObject(achp->fcPic_fcObj_lTagObj); if (test) wvError(("data can be found in object entry named %s\n",test->name)); */ } fieldCharProc (ps, eachchar, 0, 0x400); /* temp */ ps->fieldmiddle = 1; return (0); break; case 21: wvTrace (("field end\n")); ps->fieldstate--; ps->fieldmiddle = 0; fieldCharProc (ps, eachchar, 0, 0x400); /* temp */ return (0); break; } if (ps->fieldstate) { if (fieldCharProc (ps, eachchar, 0, 0x400)) return (0); } switch (eachchar) { case 0x05: /* this should be handled by the COMMENTBEGIN and COMMENTEND events */ return (0); break; case 0x01: { wvStream *f; Blip blip; char *name; long p = wvStream_tell (ps->data); wvError ( ("picture 0x01 here, at offset %x in Data Stream, obj is %d, ole is %d\n", achp->fcPic_fcObj_lTagObj, achp->fObj, achp->fOle2)); if (achp->fOle2) return (0); if(!no_graphics) { wvStream_goto (ps->data, achp->fcPic_fcObj_lTagObj); wvGetPICF (wvQuerySupported (&ps->fib, NULL), &picf, ps->data); f = picf.rgb; if (wv0x01 (&blip, f, picf.lcb - picf.cbHeader)) { wvTrace (("Here\n")); name = wvHtmlGraphic (ps, &blip); if (ps->dir) chdir (ps->dir); wvPrintGraphics (config, 0x01, (int) wvTwipsToHPixels (picf.dxaGoal), (int) wvTwipsToVPixels (picf.dyaGoal), name); if (ps->dir) chdir (wv_cwd); wvFree (name); } else wvStrangeNoGraphicData (config, 0x01); } wvStream_goto (ps->data, p); return (0); } case 0x08: { Blip blip; char *name; if (wvQuerySupported (&ps->fib, NULL) == WORD8) { if(!no_graphics) { if (ps->nooffspa > 0) { fspa = wvGetFSPAFromCP (ps->currentcp, ps->fspa, ps->fspapos, ps->nooffspa); if (!fspa) { wvError (("No fspa! Insanity abounds!\n")); return 0; } data->props = fspa; if (wv0x08 (&blip, fspa->spid, ps)) { wvTrace (("Here\n")); name = wvHtmlGraphic (ps, &blip); if (ps->dir) chdir (ps->dir); wvPrintGraphics (config, 0x08, (int) wvTwipsToHPixels (fspa->xaRight - fspa-> xaLeft), (int) wvTwipsToVPixels (fspa-> yaBottom - fspa-> yaTop), name); if (ps->dir) chdir (wv_cwd); wvFree (name); } else wvStrangeNoGraphicData (config, 0x08); } else { wvError (("nooffspa was <=0! Ignoring.\n")); } } } else { FDOA *fdoa; wvError ( ("pre word8 0x08 graphic, unsupported at the moment\n")); fdoa = wvGetFDOAFromCP (ps->currentcp, ps->fdoa, ps->fdoapos, ps->nooffdoa); data->props = fdoa; } #if 0 if ((fspa) && (data->sd != NULL) && (data->sd->elements[TT_PICTURE].str) && (data->sd->elements[TT_PICTURE].str[0] != NULL)) { wvExpand (data, data->sd->elements[TT_PICTURE].str[0], strlen (data->sd->elements[TT_PICTURE].str[0])); if (data->retstring) { wvTrace ( ("picture string is now %s", data->retstring)); printf ("%s", data->retstring); wvFree (data->retstring); } } #endif return (0); } case 0x28: { U16 symbol[6] = { 'S', 'y', 'm', 'b', 'o', 'l' }; U16 wingdings[9] = { 'W', 'i', 'n', 'g', 'd', 'i', 'n', 'g', 's' }; U16 mtextra[8] = { 'M', 'T', ' ', 'E', 'x', 't', 'r', 'a' }; wvTrace ( ("no of strings %d %d\n", ps->fonts.nostrings, achp->ftcSym)); if (0 == memcmp (symbol, ps->fonts.ffn[achp->ftcSym].xszFfn, 12)) { if ((!message) && (strcasecmp ("UTF-8", charset))) { wvWarning ("Symbol font detected (too late sorry!), rerun wvHtml with option --charset utf-8\n\ option to support correct symbol font conversion to a viewable format.\n"); message++; } wvTrace ( ("symbol char %d %x %c, using font %d %s\n", achp->xchSym, achp->xchSym, achp->xchSym, achp->ftcSym, wvWideStrToMB (ps->fonts.ffn[achp->ftcSym]. xszFfn))); wvTrace ( ("symbol char ends up as a unicode %x\n", wvConvertSymbolToUnicode (achp->xchSym - 61440))); wvOutputFromUnicode (wvConvertSymbolToUnicode (achp->xchSym - 61440), charset); return (0); } else if (0 == memcmp (mtextra, ps->fonts.ffn[achp->ftcSym].xszFfn, 16)) { if ((!message) && (strcasecmp ("UTF-8", charset))) { wvWarning ("MT Extra font detected (too late sorry!), rerun wvHtml with option --charset utf-8\n\ option to support correct symbol font conversion to a viewable format.\n"); message++; } wvTrace ( ("Symbol char %d %x %c, using font %d %s\n", achp->xchSym, achp->xchSym, achp->xchSym, achp->ftcSym, wvWideStrToMB (ps->fonts.ffn[achp->ftcSym]. xszFfn))); wvTrace ( ("symbol char ends up as a unicode %x\n", wvConvertMTExtraToUnicode (achp->xchSym - 61440))); wvOutputFromUnicode (wvConvertMTExtraToUnicode (achp->xchSym - 61440), charset); return (0); } else if (0 == memcmp (wingdings, ps->fonts.ffn[achp->ftcSym].xszFfn, 18)) { if (!message) { wvError ( ("I have yet to do a wingdings to unicode mapping table, if you know of one tell me\n")); message++; } } else { if (!message) { char *fontname = wvWideStrToMB (ps->fonts.ffn[achp->ftcSym]. xszFfn); wvError ( ("Special font %s, i need a mapping table to unicode for this\n", fontname)); wvFree (fontname); printf ("*"); } return (0); } } default: return (0); } return (0); } int myCharProc (wvParseStruct * ps, U16 eachchar, U8 chartype, U16 lid) { switch (eachchar) { case 19: wvTrace (("field began\n")); ps->fieldstate++; ps->fieldmiddle = 0; fieldCharProc (ps, eachchar, chartype, lid); /* temp */ return (0); break; case 20: wvTrace (("field middle\n")); fieldCharProc (ps, eachchar, chartype, lid); ps->fieldmiddle = 1; return (0); break; case 21: wvTrace (("field began\n")); ps->fieldmiddle = 0; ps->fieldstate--; fieldCharProc (ps, eachchar, chartype, lid); /* temp */ return (0); break; case 0x08: wvError ( ("hmm did we loose the fSpec flag ?, this is possibly a bug\n")); break; } if (ps->fieldstate) { if (fieldCharProc (ps, eachchar, chartype, lid)) return (0); } wvTrace ( ("charset is %s, lid is %x, type is %d, char is %x\n", charset, lid, chartype, eachchar)); if ((chartype) && (wvQuerySupported (&ps->fib, NULL) == WORD8)) wvTrace (("lid is %x\n", lid)); if (charset != NULL) wvOutputHtmlChar (eachchar, chartype, charset, lid); else wvOutputHtmlChar (eachchar, chartype, wvAutoCharset (ps), lid); return (0); } int wvOpenConfig (state_data *myhandle,char *config) { static char buf[BUFSIZ] = ""; FILE *tmp; int i = 0; if (config == NULL) config = "wvHtml.xml"; else i = 1; tmp = fopen (config, "rb"); if(tmp == NULL) { str_copy (buf, sizeof(buf), WVDATADIR); str_append(buf, sizeof(buf), "/"); str_append(buf, sizeof(buf), config); config = buf; tmp = fopen(config, "rb"); } if (tmp == NULL) { if (i) wvError ( ("Attempt to open %s failed, using %s\n", config, HTMLCONFIG)); config = HTMLCONFIG; tmp = fopen (config, "rb"); } myhandle->path = config; myhandle->fp = tmp; return (tmp == NULL ? 0 : 1); } char * figure_name (wvParseStruct * ps) { static int number; static char * b_name = 0; char * f_name = 0; char buffer[10]; if (b_name == 0) { if (wv_arg_basename) { b_name = strdup (wv_arg_basename); #ifdef WV_REMOVE_SUFFIX if (b_name) /* remove any suffix */ { char * dot = 0; char * ptr = b_name; while (*ptr) { if (*ptr == '.') dot = ptr; ptr++; } if (dot) *dot = 0; } #endif /* WV_REMOVE_SUFFIX */ } else { b_name = strdup (base_name (ps->filename)); if (b_name) /* remove '.doc' suffix; case insensitive */ { if (strlen (b_name) >= 4) { char * dot = b_name + strlen (b_name) - 4; if (strcasecmp (dot,".doc") == 0) *dot = 0; } } } } if (b_name == 0) { fprintf (stderr,"error: unable to create basename!"); exit (1); } f_name = strdup (b_name); if (f_name) { sprintf (buffer, "%d", number++); wvAppendStr (&f_name, buffer); } else { fprintf (stderr,"error: unable to create filename!"); exit (1); } return (f_name); } char * name_to_url (char * name) { static char * url = 0; static long max = 0; char * ptr = 0; long count = 0; ptr = name; while (*ptr) { switch (*ptr) { case ' ': count += 3; break; default: count++; break; } ptr++; } count++; if (count > max) { char * more = 0; if (url == 0) { more = malloc (count); } else { more = realloc (url,count); } if (more) { url = more; max = count; } } if (url) { count = 0; ptr = name; while (*ptr && (count < max)) { switch (*ptr) { case ' ': url[count++] = '%'; if (count < max) url[count++] = '2'; if (count < max) url[count++] = '0'; break; default: url[count++] = *ptr; break; } ptr++; } url[max-1] = 0; } else { wvError (("failed to convert name to URL\n")); return (name); } return (url); } ����������������������������������������������������������������������������wv-1.2.9/wvDVI.in�����������������������������������������������������������������������������������0000664�0000764�0000764�00000015256�11247156607�010463� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh wv_script_name="$0" which latex >/dev/null 2>&1 if [ ${?} -ne "0" ]; then echo "Could not find required program 'latex'" exit 1 fi prefix=@prefix@ exec_prefix= datadir= t_dir=. wv_opts= i_file= o_file= print_help=no while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg ;; --exec-prefix=*) exec_prefix=$optarg ;; --datadir=*) datadir=$optarg ;; --targetdir=*) t_dir=$optarg ;; --charset=* | --password=*) wv_opts="$wv_opts $1" ;; -v | --version) echo @VERSION@ exit 0 ;; -\? | -h | --help) cat << EOF Usage: $wv_script_name [OPTIONS] <input-file> <output-file> Options: --prefix=<DIR> Set prefix (default is @prefix@) --exec-prefix=<DIR> Set exec_prefix (default is @exec_prefix@) --datadir=<DIR> Set datadir (default is @datadir@) --targetdir=<DIR> Target directory (target is <DIR>/<output-file>) --charset=<charset> Specify an iconv charset encoding --password=<password> Specify password for encrypted -v, --version Print version info and exit Authors: Dom Lachowicz (dominicl@seas.upenn.edu) Caolan McNamara (original author) Visit http://www.wvware.com/ EOF exit 0 ;; -?*) echo "Option '$1' not recognized." exit 1 ;; *) if test "x$i_file" = "x"; then i_file=$1 elif test "x$o_file" = "x"; then o_file=$1 else echo "Option '$1' not recognized." exit 1 fi ;; esac shift done if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as input" exit 1 fi if test -r "$i_file"; then okay=yes else echo "error: '$i_file' unreadable" exit 1 fi if test "x$o_file" = "x"; then echo "Usage: $1 [OPTIONS] <input-file> <output-file>" exit 1 fi if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as output" exit 1 fi name=`basename "$o_file"` if test "x$o_file" != "x$name"; then echo "error: use '--targetdir' for writing in another directory" exit 1 fi name=`basename "$o_file" | sed "s/ /_/g"` name=`echo $name | sed 's/\.[^\.]*$//'` if test "x$exec_prefix" = "x"; then exec_prefix=@exec_prefix@ fi wv_exec="$exec_prefix/bin/wvWare" if test -x "$wv_exec"; then okay=yes else wv_version=`wvWare -v 2>&1 | cut -f 2 -d " "` if test "x$wv_version" = "x@VERSION@"; then wv_exec="wvWare" else echo "error: no executable at '$wv_exec' or in path" exit 1 fi fi if test "x$datadir" = "x"; then datadir=@datadir@ fi xmlcfg="$datadir/wv/wvLaTeX.xml" if test -r "$xmlcfg"; then okay=yes else echo "error: '$xmlcfg' unreadable" exit 1 fi if test -d "$t_dir"; then if test -w "$t_dir"; then okay=yes else echo "error: '$t_dir' is not writable" exit 1 fi else echo "error: '$t_dir' is not a directory" exit 1 fi # auto_wmf=`"$wv_exec" --auto-eps=wmf` # auto_emf=`"$wv_exec" --auto-eps=emf` # auto_png=`"$wv_exec" --auto-eps=png` # auto_jpg=`"$wv_exec" --auto-eps=jpg` # auto_pict=`"$wv_exec" --auto-eps=pict` im_chk=`convert --help 2>&1 | grep -v ImageMagick` if test "x$im_chk" = "x"; then im_chk="no" s_img="" else im_chk="yes" # if we have ImageMagick's convert, then use that to convert PNG, JPEG & PICT # to EPS. Therefore, need to suppress wvWare's desire to convert these: s_img="png,jpg,pict" fi "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" -s "$s_img" > "$t_dir"/"$name".tex cd "$t_dir" echo echo 'Current directory: '`pwd` # First, convert any images i_okay=yes for i_name in "$name"*.wmf; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/wmf$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done for i_name in "$name"*.emf; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/emf$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi done for i_name in "$name"*.png; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/png$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done for i_name in "$name"*.jpg; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/jpg$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done for i_name in "$name"*.pict; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/pict$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done if test "$i_okay" = "no"; then echo 'WARNING: Failed to convert one or more images to EPS' fi # "$name".tex is the LaTeX file # use latex to convert this to DVI latex --interaction=batchmode "$name".tex >/dev/null 2>&1 # check latex exit status and comment or clean up if [ ${?} -ne "0" ]; then echo "Some problem running latex." echo "Check for Errors in $name.log" echo "Continuing..." else rm -f "$name".aux "$name".log "$name".tex fi # latex replaces the "tex" extension with a "dvi" extension if [ ! -f "$name".dvi ]; then echo "Conversion into dvi failed" exit 1 fi cp -f "$name".dvi "$o_file" rm -f "$name".dvi ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/prm.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000002622�11247156607�010067� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetPRM (PRM * item, wvStream * fd) { U16 temp16; temp16 = read_16ubit (fd); item->fComplex = temp16 & 0x0001; wvTrace ( ("u16 is %x,fComplex is %d %d\n", temp16, temp16 & 0x0001, item->fComplex)); if (item->fComplex) item->para.var2.igrpprl = (temp16 & 0xfffe) >> 1; else { item->para.var1.isprm = (temp16 & 0x00fe) >> 1; item->para.var1.val = (temp16 & 0xff00) >> 8; } } void wvInitPRM (PRM * item) { item->fComplex = 0; item->para.var2.igrpprl = 0; } ��������������������������������������������������������������������������������������������������������������wv-1.2.9/bkl.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000005527�11247156607�010050� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetBKL (BKL * item, wvStream * fd) { item->ibkf = (S16) read_16ubit (fd); } int wvGetBKL_PLCF (BKL ** bkl, U32 ** pos, U32 * nobkl, U32 bkloffset, U32 bkllen, U32 bkfoffset,U32 bkflen, wvStream * fd) { BKF *bkf; U32 *posf,nobkf; U32 i, j; if (bkllen == 0 || bkflen == 0) { *bkl = NULL; *pos = NULL; *nobkl = 0; } else { /* the plcbkl table contains offsets only, bkl has to be calculated from bkf */ *nobkl = (bkllen - 4) / (/*cbBKL +*/ 4); *pos = (U32 *) wvMalloc ((*nobkl + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nobkl + 1) * sizeof (U32))); return (1); } *nobkl = (*nobkl ? *nobkl : 1); *bkl = (BKL *) wvMalloc (*nobkl * sizeof (BKL)); if (*bkl == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nobkl * sizeof (BKL))); wvFree (*pos); return (1); } wvStream_goto (fd, bkloffset); for (i = 0; i <= *nobkl; i++) (*pos)[i] = read_32ubit (fd); /* now we have to reconstruct the bkl table; we have to get the bkf records, and then search them to find one that matches the index we are processing */ if(wvGetBKF_PLCF (&bkf, &posf, &nobkf, bkfoffset, bkflen, fd)) { wvError ( ("call to wvGetBKF_PLCF failed\n")); wvFree (*pos); wvFree (*bkl); return (1); } for (i = 0; i < *nobkl; i++) { for(j = 0; j < nobkf; j++) if(bkf[j].ibkl == i) break; if(j == nobkf) { wvError ( ("unmatched closing bookmark\n")); wvFree (*pos); wvFree (*bkl); wvFree (bkf); wvFree (posf); return (1); } (*bkl)[i].ibkf = (U16)j; } wvFree(bkf); wvFree(posf); } return (0); } �������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvTextEngine.c�����������������������������������������������������������������������������0000664�0000764�0000764�00000002017�11247156607�011716� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" int wvText (wvParseStruct * ps) { if (ps->fib.fComplex) wvDecodeComplex (ps); else wvDecodeSimple (ps, Dmain); return (0); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvPS.in������������������������������������������������������������������������������������0000664�0000764�0000764�00000015556�11247156607�010366� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh wv_script_name="$0" which latex >/dev/null 2>&1 if [ ${?} -ne "0" ]; then echo "Could not find required program 'latex'" exit 1 fi which dvips >/dev/null 2>&1 if [ ${?} -ne "0" ]; then echo "Could not find required program 'dvips'" exit 1 fi prefix=@prefix@ exec_prefix= datadir= t_dir=. wv_opts= i_file= o_file= print_help=no while test $# -gt 0; do case "$1" in -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case $1 in --prefix=*) prefix=$optarg ;; --exec-prefix=*) exec_prefix=$optarg ;; --datadir=*) datadir=$optarg ;; --targetdir=*) t_dir=$optarg ;; --charset=* | --password=*) wv_opts="$wv_opts $1" ;; -v | --version) echo @VERSION@ exit 0 ;; -\? | -h | --help) cat << EOF Usage: $wv_script_name [OPTIONS] <input-file> <output-file> Options: --prefix=<DIR> Set prefix (default is @prefix@) --exec-prefix=<DIR> Set exec_prefix (default is @exec_prefix@) --datadir=<DIR> Set datadir (default is @datadir@) --targetdir=<DIR> Target directory (target is <DIR>/<output-file>) --charset=<charset> Specify an iconv charset encoding --password=<password> Specify password for encrypted -v, --version Print version info and exit Authors: Dom Lachowicz (dominicl@seas.upenn.edu) Caolan McNamara (original author) Visit http://www.wvware.com/ EOF exit 0 ;; -?*) echo "Option '$1' not recognized." exit 1 ;; *) if test "x$i_file" = "x"; then i_file=$1 elif test "x$o_file" = "x"; then o_file=$1 else echo "Option '$1' not recognized." exit 1 fi ;; esac shift done if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as input" exit 1 fi if test -r "$i_file"; then okay=yes else echo "error: '$i_file' unreadable" exit 1 fi if test "x$o_file" = "x"; then echo "Usage: $1 [OPTIONS] <input-file> <output-file>" exit 1 fi if test "x$i_file" = "x-"; then echo "error: cannot specify '-' as output" exit 1 fi name=`basename "$o_file"` if test "x$o_file" != "x$name"; then t_dir=`dirname "$o_file"` o_file=$name fi name=`basename "$o_file" | sed "s/ /_/g"` name=`echo $name | sed 's/\.[^\.]*$//'` if test "x$exec_prefix" = "x"; then exec_prefix=@exec_prefix@ fi wv_exec="$exec_prefix/bin/wvWare" if test -x "$wv_exec"; then okay=yes else wv_version=`wvWare -v 2>&1 | cut -f 2 -d " "` if test "x$wv_version" = "x@VERSION@"; then wv_exec="wvWare" else echo "error: no executable at '$wv_exec' or in path" exit 1 fi fi if test "x$datadir" = "x"; then datadir=@datadir@ fi xmlcfg="$datadir/wv/wvLaTeX.xml" if test -r "$xmlcfg"; then okay=yes else echo "error: '$xmlcfg' unreadable" exit 1 fi if test -d "$t_dir"; then if test -w "$t_dir"; then okay=yes else echo "error: '$t_dir' is not writable" exit 1 fi else echo "error: '$t_dir' is not a directory" exit 1 fi # auto_wmf=`"$wv_exec" --auto-eps=wmf` # auto_emf=`"$wv_exec" --auto-eps=emf` # auto_png=`"$wv_exec" --auto-eps=png` # auto_jpg=`"$wv_exec" --auto-eps=jpg` # auto_pict=`"$wv_exec" --auto-eps=pict` im_chk=`convert --help 2>&1 | grep -v ImageMagick` if test "x$im_chk" = "x"; then im_chk="no" s_img="" else im_chk="yes" # if we have ImageMagick's convert, then use that to convert PNG, JPEG & PICT # to EPS. Therefore, need to suppress wvWare's desire to convert these: s_img="png,jpg,pict" fi "$wv_exec" $wv_opts -x "$xmlcfg" -d "$t_dir" -b "$name" "$i_file" -s "$s_img" > "$t_dir"/"$name".tex cd "$t_dir" echo echo 'Current directory: '`pwd` # First, convert any images i_okay=yes for i_name in "$name"*.wmf; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/wmf$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done for i_name in "$name"*.emf; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/emf$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi done for i_name in "$name"*.png; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/png$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done for i_name in "$name"*.jpg; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/jpg$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done for i_name in "$name"*.pict; do if test -r "$i_name"; then e_name=`echo "$i_name" | sed 's/pict$/eps/'` if test -r "$e_name"; then echo '"'$e_name'"' exists - skipping... else if test "$im_chk" = "yes"; then convert "$i_name" "$e_name" if test -r "$e_name"; then echo created '"'$e_name'"' else echo '"'$i_name'"': conversion failed i_okay=no fi else echo unable to convert '"'$i_name'"' '(no converter)' i_okay=no fi fi fi done if test "$i_okay" = "no"; then echo 'WARNING: Failed to convert one or more images to EPS' fi # "$name".tex is the LaTeX file # use latex to convert this to DVI latex --interaction=batchmode "$name".tex >/dev/null 2>&1 # check latex exit status and comment or clean up if [ ${?} -ne "0" ]; then echo "Some problem running latex." echo "Check for Errors in $name.log" echo "Continuing..." else rm -f "$name".aux "$name".log "$name".tex fi # latex replaces the "tex" extension with a "dvi" extension if [ ! -f "$name".dvi ]; then echo "Conversion into dvi failed" exit 1 fi dvips -o "$o_file" "$name".dvi >/dev/null 2>&1 if [ ${?} -ne "0" ]; then echo "Could not convert into Postscript" exit 1 fi #clean up rm -f "$name".dvi ��������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/INSTALL������������������������������������������������������������������������������������0000664�0000764�0000764�00000036015�11247156607�010161� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������libwv ===== 1. build system 2. configuring 3. converting images 4. compilation problems 5. supported platforms 6. libwv for Windows 7. libwv for Mac OS X 8. Running wvHtml from Netscape 9. libwv crashes 1. build system ------------ There is now a new build system based on libtool, automake & autoconf, which can be used to build shared libraries. This is known to work with autoconf-2.52, automake-1.4-p5 and libtool-1.4. Use ./autogen.sh to create the new build system. KNOWN ISSUES with the *new* build system * In wvware CVS the autogen.sh is non-executable - I'm not sure how to fix this. However, a quick "chmod 755 autogen.sh" will fix that. * There is a bug in automake-1.5 and automake-1.5b that prevents dependency generation with GNUmakefile.am. This bug has been fixed in automake-1.5d which is (or was for a while) available from alpha.gnu.org * libtool <= 1.4.2 has problems with convenience libraries on darwin. If building on darwin / MacOSX, please contact me (<fjf@alinameridon.com>) 2. configuring ----------- It should all work hunky dory with ./configure make make install A few sample word files to try out wv are included in the examples dir. The primary dependencies are libgsf and glib. libgsf ftp://ftp.gnome.org/pub/GNOME/sources/libgsf/ glib http://www.gtk.org/ | http://www.gnome.org/ 3. converting images ----------------- You'll want to get libwmf to view embedded WMF images. Again, please use the latest libwmf. By default, libwmf support is disabled - please specify when configuring wv: "--with-libwmf" libwmf http://sourceforge.net/projects/wvware 4. compilation problems -------------------- (a) "make" does nothing except complain If for some reason the standard "make" didnt work i.e. if "make" gives up without compiling a single thing then try "gmake -f Makefile" instead, this is a for systems with old "make", like Irix for example. (b) Can't install libwv from a "make install" If install fails due to some systems not allowing installs into user dirs, change the INSTALL variable in the Makefiles to the path of the included "install-sh". This is the kind of thing that happens on AIX. (c) Final link fails with "undefined reference to `uncompress'" Now there is one possible problem that i've come across, for some reason on my old redhat4.2 system there was a libz.a in /usr/X11R6/lib that libwv was linking against rather than the correct one in /usr/lib. Specifying "--with-zlib=/usr" ought to fix this. (d) Compilation failed on parser.lex In this case the problem is probably something I've done wrong in the lex code, im not a great lex head. The only solution for this one that i know of is to install flex 2.5.4 or higher, available from ftp.gnu.org. Alternatively a good lex person could take a look at my definition of myalpha in parser.lex and see if its a portable definition or not. 5. supported platforms ------------------- Ive gotten this to work myself so far on Linux/AIX/Solaris/OSF1 and Windows (for windows skip to windows section) and ive heard that irix/hpux/bsd also work, and i had one report that with some magic it works on os/2. One mad person ported it to AmigaOS, check the homepage for a link to that insanity. And there was a few mails from someone who said he had it working under VMS, i don't have any patches for that one yet though. 6. libwv for Windows ----------------- It should be possible to compile libwv with the cygwin32 package, available from www.cygwin.com. get that package and install it, then unpack libwv and run ./configure. Then just add -DWINDOWS to the compiler flags are you are off. i.e. change CC = gcc to CC = gcc -DWINDOWS The only thing that extra define does is change the / to \, in the scanning of a command line so as to find the name of the word doc without the prepended path. I haven't tried libwv under windows since zlib or the libwmf library were needed to be installed for full functionality, but i imagine that compiling them under cygwin32 would go smoothly as well, let me know on that one. It should also be possible to build using Mingw32/MSYS on Windows as well. The build instructions are similar to the above. For binary packages, please visit http://gnuwin32.sourceforge.net/packages/wv.htm 7. libwv for Mac OS X -------------------------------- Instructions here are for building wv-0.7.5 and installing in the directory /opt/wv-0.7.5, using Jaguar's default shell; modify as appropriate... Note: To create /opt you will need root access - i.e., login to an administrator account and use sudo mkdir /opt. In fact I (fjf) prefer to give this a non-system ownership, e.g.: # sudo /bin/bash password: $ mkdir /opt $ chgrp Staff /opt $ chmod 2775 /opt but it's your call. Some people prefer /usr/local. I like /opt. HOWEVER: /opt will not show up in the finder - which can be a pain... Note: Of course, if it's just you who wishes to use it, then you can always install under your home directory, e.g.: /Users/fjf/fjf Instructions by Manos Krokos ---------------------------- Install Fink so you get the latest versions of libiconv and libpng and then do the following: 1. Untar the wv source into your home directory. 2. cd into the wv-0.7.5 directory 3. type: env CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib" ./configure --prefix=/opt/wv-0.7.5 [those of you who, like me (fjf), prefer bash, just omit the 'env'] 4. type 'make' 5. type 'make install' 6. type 'pico ~/.cshrc' 7. In the text editor that will open in your terminal window, add the following line: set path = ( /opt/wv-0.7.5/bin $path ) 8. Use the wv commands like this (example): wvHtml --targetdir=<DIR> file.doc file.html Substitute 'Html' with the command of your choice or taste 8. Running wvHtml from Netscape ---------------------------- There are some scripts in helper-scripts that were sent to me to get netscape to use libwv as a helper application. I don't know anything about them, and they might not work, especially as the program changes while they don't, but they are a useful resource, i believe the nsopen nswordview are your best bet for this. 9. libwv crashes ------------- I don't believe you. You question the worthiness of my Code? I should kill you where you stand!, but seriously, follow these steps to help me. make clean CFLAGS="-g -DDEBUG=1" ./configure [etc.] make make install Run and send the output to a temporary file, and generate a core dump. For tcsh: limit core unlimited and run again. Then do: gdb libwv core and type: backtrace Send the output of gdb to me with the bugreport and the output from the -DDEBUG libwv and if possible send me the file that libwv crashed on as well. If the word file is particulary big, compress it for me please. Please mention your platform and libwv version. contact details --------------- abiword-dev@abisource.com or http://bugzilla.abisource.com/ Even if we can't help, we can always sympathize... ================ standard configure help file follows... ================ Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, a file `config.cache' that saves the results of its tests to speed up reconfiguring, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.in' is used to create `configure' by a program called `autoconf'. You only need `configure.in' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. You can give `configure' initial values for variables by setting them in the environment. Using a Bourne-compatible shell, you can do that on the command line like this: CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure Or on systems that have the `env' program, you can do it like this: env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not supports the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' will install the package's files in `/usr/local/bin', `/usr/local/man', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PATH'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you give `configure' the option `--exec-prefix=PATH', the package will use PATH as the prefix for installing programs and libraries. Documentation and other data files will still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=PATH' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' can not figure out automatically, but needs to determine by the type of host the package will run on. Usually `configure' can figure that out, but if it prints a message saying it can not guess the host type, give it the `--host=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name with three fields: CPU-COMPANY-SYSTEM See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the host type. If you are building compiler tools for cross-compiling, you can also use the `--target=TYPE' option to select the type of system they will produce code for and the `--build=TYPE' option to select the type of system on which you are compiling the package. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Operation Controls ================== `configure' recognizes the following options to control how it operates. `--cache-file=FILE' Use and save the results of the tests in FILE instead of `./config.cache'. Set FILE to `/dev/null' to disable caching, for debugging `configure'. `--help' Print a summary of the options to `configure', and exit. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--version' Print the version of Autoconf used to generate the `configure' script, and exit. `configure' also accepts some other, not widely useful, options. �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/winmmap.c����������������������������������������������������������������������������������0000664�0000764�0000764�00000010407�11247156607�010741� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #if defined _WIN32 #include "winmmap.h" #include <windows.h> /*mmap section got from imagick sources*/ /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % + m m a p % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Method mmap emulates the Unix method of the same name. % % The format of the mmap method is: % % MagickExport void *mmap(char *address,size_t length,int protection, % int access,int file,gsf_off_t offset) % % */ void *mmap(char *address,size_t length,int protection,int access, int file,gsf_off_t offset) { void *map; HANDLE handle; map=(void *) NULL; handle=INVALID_HANDLE_VALUE; switch (protection) { case PROT_READ: default: { handle=CreateFileMapping((HANDLE) _get_osfhandle(file),0,PAGE_READONLY,0, length,0); if (!handle) break; map=(void *) MapViewOfFile(handle,FILE_MAP_READ,0,0,length); CloseHandle(handle); break; } case PROT_WRITE: { handle=CreateFileMapping((HANDLE) _get_osfhandle(file),0,PAGE_READWRITE,0, length,0); if (!handle) break; map=(void *) MapViewOfFile(handle,FILE_MAP_WRITE,0,0,length); CloseHandle(handle); break; } case PROT_READWRITE: { handle=CreateFileMapping((HANDLE) _get_osfhandle(file),0,PAGE_READWRITE,0, length,0); if (!handle) break; map=(void *) MapViewOfFile(handle,FILE_MAP_ALL_ACCESS,0,0,length); CloseHandle(handle); break; } } if (map == (void *) NULL) return((void *) MAP_FAILED); return((void *) ((char *) map+offset)); } /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % % + m u n m a p % % % % % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Method munmap emulates the Unix method with the same name. % % The format of the munmap method is: % % int munmap(void *map,size_t length) % % A description of each parameter follows: % % o status: Method munmap returns 0 on success; otherwise, it % returns -1 and sets errno to indicate the error. % % o map: The address of the binary large object. % % o length: The length of the binary large object. % % */ int munmap(void *map,size_t length) { if (!UnmapViewOfFile(map)) return(-1); return(0); } #else typedef int elegant; #endif ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/anlv.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000005713�11247156607�010235� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" #include "wvinternal.h" void wvInitANLV (ANLV * item) { item->nfc = 0; item->cxchTextBefore = 0; item->cxchTextAfter = 0; item->jc = 0; item->fPrev = 0; item->fHang = 0; item->fSetBold = 0; item->fSetItalic = 0; item->fSetSmallCaps = 0; item->fSetCaps = 0; item->fSetStrike = 0; item->fSetKul = 0; item->fPrevSpace = 0; item->fBold = 0; item->fItalic = 0; item->fSmallCaps = 0; item->fCaps = 0; item->fStrike = 0; item->kul = 0; item->ico = 0; item->ftc = 0; item->hps = 0; item->iStartAt = 0; item->dxaIndent = 0; item->dxaSpace = 0; } void wvGetANLV_internal (ANLV * item, wvStream * fd, U8 * pointer) { U8 temp8; item->nfc = dread_8ubit (fd, &pointer); item->cxchTextBefore = dread_8ubit (fd, &pointer); item->cxchTextAfter = dread_8ubit (fd, &pointer); temp8 = dread_8ubit (fd, &pointer); item->jc = temp8 & 0x03; item->fPrev = (temp8 & 0x04) >> 2; item->fHang = (temp8 & 0x08) >> 3; item->fSetBold = (temp8 & 0x10) >> 4; item->fSetItalic = (temp8 & 0x20) >> 5; item->fSetSmallCaps = (temp8 & 0x40) >> 6; item->fSetCaps = (temp8 & 0x80) >> 7; temp8 = dread_8ubit (fd, &pointer); item->fSetStrike = temp8 & 0x01; item->fSetKul = (temp8 & 0x02) >> 1; item->fPrevSpace = (temp8 & 0x04) >> 2; item->fBold = (temp8 & 0x08) >> 3; item->fItalic = (temp8 & 0x10) >> 4; item->fSmallCaps = (temp8 & 0x20) >> 5; item->fCaps = (temp8 & 0x40) >> 6; item->fStrike = (temp8 & 0x80) >> 7; temp8 = dread_8ubit (fd, &pointer); item->kul = temp8 & 0x07; item->ico = (temp8 & 0xF1) >> 3; item->ftc = (S16) dread_16ubit (fd, &pointer); item->hps = dread_16ubit (fd, &pointer); item->iStartAt = dread_16ubit (fd, &pointer); item->dxaIndent = dread_16ubit (fd, &pointer); item->dxaSpace = (S16) dread_16ubit (fd, &pointer); } void wvGetANLV (ANLV * item, wvStream * fd) { wvGetANLV_internal (item, fd, NULL); } void wvGetANLVFromBucket (ANLV * item, U8 * pointer) { wvGetANLV_internal (item, NULL, pointer); } �����������������������������������������������������wv-1.2.9/rc4.h��������������������������������������������������������������������������������������0000775�0000764�0000764�00000000417�11247156607�007771� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������ /* rc4.h */ typedef struct rc4_key { unsigned char state[256]; unsigned char x; unsigned char y; } rc4_key; void prepare_key (unsigned char *key_data_ptr, int key_data_len, rc4_key * key); void rc4 (unsigned char *buffer_ptr, int buffer_len, rc4_key * key); �������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/laolareplace.c�����������������������������������������������������������������������������0000664�0000764�0000764�00000006252�11247156607�011720� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include "wv.h" #include <gsf/gsf-infile-msole.h> #include <gsf/gsf-infile.h> #include <gsf/gsf-input-stdio.h> int wvOLEDecode_gsf (wvParseStruct * ps, GsfInput *path, wvStream ** mainfd, wvStream ** tablefd0, wvStream ** tablefd1, wvStream ** data, wvStream ** summary) { GsfInfile *ole_file = NULL; int result = 5; if (!path) { return result; } ole_file = gsf_infile_msole_new (path, NULL); if (ole_file != NULL) { GsfInput *temp_stream; ps->ole_file = GSF_INPUT(ole_file); wvTrace (("Opened VFS\n")); if ((temp_stream = gsf_infile_child_by_name (ole_file, "WordDocument")) == NULL) { *mainfd = NULL; wvTrace (("Opening \"WordDocument\" stream\n")); } else { wvTrace (("Opened \"WordDocument\" stream\n")); wvStream_gsf_create (mainfd, temp_stream); } if ((temp_stream = gsf_infile_child_by_name (ole_file, "1Table")) == NULL) { *tablefd1 = NULL; wvTrace (("Opening \"1Table\" stream\n")); } else { wvTrace (("Opened \"1Table\" stream\n")); wvStream_gsf_create (tablefd1, temp_stream); } if ((temp_stream = gsf_infile_child_by_name (ole_file, "0Table")) == NULL) { *tablefd0 = NULL; wvTrace (("Opening \"0Table\" stream\n")); } else { wvTrace (("Opened \"0Table\" stream\n")); wvStream_gsf_create (tablefd0, temp_stream); } if ((temp_stream = gsf_infile_child_by_name (ole_file, "Data")) == NULL) { *data = NULL; wvTrace (("Opening \"Data\" stream\n")); } else { wvTrace (("Opened \"Data\" stream\n")); wvStream_gsf_create (data, temp_stream); } if ((temp_stream = gsf_infile_child_by_name (ole_file, "\005SummaryInformation")) == NULL) { *summary = NULL; wvTrace (("Opening \"\\005SummaryInformation\" stream\n")); } else { wvTrace (("Opened \"\\005SummaryInformation\" stream\n")); wvStream_gsf_create (summary, temp_stream); } result = 0; } return (result); } int wvOLEDecode (wvParseStruct * ps, char *path, wvStream ** mainfd, wvStream ** tablefd0, wvStream ** tablefd1, wvStream ** data, wvStream ** summary) { GsfInput * input = gsf_input_stdio_new (path, NULL); int rval = wvOLEDecode_gsf (ps, input, mainfd, tablefd0, tablefd1, data, summary); return rval; } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/decrypt97.c��������������������������������������������������������������������������������0000664�0000764�0000764�00000016372�11247156607�011132� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ /* * Password verification in Microsoft Word 8.0 * see D_CREDITS & D_README */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #ifndef WIN32 #include <sys/types.h> #endif #include <string.h> #include "wv.h" #undef S32 #include "rc4.h" #include "md5.h" #include <gsf/gsf-output-memory.h> void wvMD5StoreDigest (wvMD5_CTX * mdContext); static void makekey (U32 block, rc4_key * key, wvMD5_CTX * valContext) { wvMD5_CTX mdContext; U8 pwarray[64]; memset (pwarray, 0, 64); /* 40 bit of hashed password, set by verifypwd() */ memcpy (pwarray, valContext->digest, 5); /* put block number in byte 6...9 */ pwarray[5] = (U8) (block & 0xFF); pwarray[6] = (U8) ((block >> 8) & 0xFF); pwarray[7] = (U8) ((block >> 16) & 0xFF); pwarray[8] = (U8) ((block >> 24) & 0xFF); pwarray[9] = 0x80; pwarray[56] = 0x48; wvMD5Init (&mdContext); wvMD5Update (&mdContext, pwarray, 64); wvMD5StoreDigest (&mdContext); prepare_key (mdContext.digest, 16, key); } static int verifypwd (U8 pwarray[64], U8 docid[16], U8 salt[64], U8 hashedsalt[16], wvMD5_CTX * valContext) { wvMD5_CTX mdContext1, mdContext2; rc4_key key; int offset, keyoffset; unsigned int tocopy; wvMD5Init (&mdContext1); wvMD5Update (&mdContext1, pwarray, 64); wvMD5StoreDigest (&mdContext1); offset = 0; keyoffset = 0; tocopy = 5; wvMD5Init (valContext); while (offset != 16) { if ((64 - offset) < 5) tocopy = 64 - offset; memcpy (pwarray + offset, mdContext1.digest + keyoffset, tocopy); offset += tocopy; if (offset == 64) { wvMD5Update (valContext, pwarray, 64); keyoffset = tocopy; tocopy = 5 - tocopy; offset = 0; continue; } keyoffset = 0; tocopy = 5; memcpy (pwarray + offset, docid, 16); offset += 16; } /* Fix (zero) all but first 16 bytes */ pwarray[16] = 0x80; memset (pwarray + 17, 0, 47); pwarray[56] = 0x80; pwarray[57] = 0x0A; wvMD5Update (valContext, pwarray, 64); wvMD5StoreDigest (valContext); /* Generate 40-bit RC4 key from 128-bit hashed password */ makekey (0, &key, valContext); rc4 (salt, 16, &key); rc4 (hashedsalt, 16, &key); salt[16] = 0x80; memset (salt + 17, 0, 47); salt[56] = 0x80; wvMD5Init (&mdContext2); wvMD5Update (&mdContext2, salt, 64); wvMD5StoreDigest (&mdContext2); return (memcmp (mdContext2.digest, hashedsalt, 16)); } static void expandpw (U16 password[16], U8 pwarray[64]) { /* expandpw expects null terminated 16bit unicode input */ int i; for (i = 0; i < 64; i++) pwarray[i] = 0; i = 0; while (password[i]) { pwarray[2 * i] = (password[i] & 0xff); pwarray[(2 * i) + 1] = ((password[i] >> 8) & 0xff); i++; } pwarray[2 * i] = 0x80; pwarray[56] = (i << 4); } int wvDecrypt97 (wvParseStruct * ps) { GsfOutput *outtable; GsfOutput *outmain; wvStream *enc; U8 pwarray[64]; U8 docid[16], salt[64], hashedsalt[16], x; int i, j, end; unsigned int blk; rc4_key key; unsigned char test[0x10]; wvMD5_CTX valContext; for (i = 0; i < 4; i++) x = read_8ubit (ps->tablefd); for (i = 0; i < 16; i++) docid[i] = read_8ubit (ps->tablefd); for (i = 0; i < 16; i++) salt[i] = read_8ubit (ps->tablefd); for (i = 0; i < 16; i++) hashedsalt[i] = read_8ubit (ps->tablefd); expandpw (ps->password, pwarray); if (verifypwd (pwarray, docid, salt, hashedsalt, &valContext)) return (1); enc = ps->tablefd; wvStream_offset_from_end (enc, 0); end = wvStream_tell (enc); j = 0; wvStream_goto (enc, j); outtable = gsf_output_memory_new (); blk = 0; makekey (blk, &key, &valContext); while (j < end) { for (i = 0; i < 0x10; i++) test[i] = read_8ubit (enc); rc4 (test, 0x10, &key); for (i = 0; i < 0x10; i++) gsf_output_write (outtable, 1, &(test[i])); j += 0x10; if ((j % 0x200) == 0) { /* at this stage we need to rekey the rc4 algorithm Dieter Spaar <spaar@mirider.augusta.de> figured out this rekeying, big kudos to him */ blk++; makekey (blk, &key, &valContext); } } gsf_output_close (outtable); enc = ps->mainfd; wvStream_offset_from_end (enc, 0); end = wvStream_tell (enc); j = 0; wvStream_goto (enc, j); outmain = gsf_output_memory_new (); blk = 0; makekey (blk, &key, &valContext); while (j < end) { for (i = 0; i < 0x10; i++) test[i] = read_8ubit (enc); rc4 (test, 0x10, &key); for (i = 0; i < 0x10; i++) gsf_output_write (outmain, 1, &(test[i])); j += 0x10; if ((j % 0x200) == 0) { /* at this stage we need to rekey the rc4 algorithm Dieter Spaar <spaar@mirider.augusta.de> figured out this rekeying, big kudos to him */ blk++; makekey (blk, &key, &valContext); } } gsf_output_close (outmain); if (ps->tablefd0) wvStream_close (ps->tablefd0); if (ps->tablefd1) wvStream_close (ps->tablefd1); if (ps->summary) wvStream_close (ps->summary); wvStream_close (ps->mainfd); wvStream_memory_create(&ps->tablefd0, g_memdup (gsf_output_memory_get_bytes (GSF_OUTPUT_MEMORY (outtable)), gsf_output_size (outtable)), gsf_output_size (outtable)); wvStream_memory_create(&ps->mainfd, g_memdup (gsf_output_memory_get_bytes (GSF_OUTPUT_MEMORY (outmain)), gsf_output_size (outmain)), gsf_output_size (outmain)); g_object_unref (G_OBJECT (outtable)); g_object_unref (G_OBJECT (outmain)); ps->tablefd = ps->tablefd0; ps->tablefd1 = ps->tablefd0; wvStream_rewind (ps->tablefd0); wvStream_rewind (ps->mainfd); ps->fib.fEncrypted = 0; wvGetFIB (&ps->fib, ps->mainfd); ps->fib.fEncrypted = 0; return (0); } /* this is just cut out of wvMD5Final to get the byte order correct under MSB systems, the previous code was woefully tied to intel x86 C. */ void wvMD5StoreDigest (wvMD5_CTX * mdContext) { unsigned int i, ii; /* store buffer in digest */ for (i = 0, ii = 0; i < 4; i++, ii += 4) { mdContext->digest[ii] = (unsigned char) (mdContext->buf[i] & 0xFF); mdContext->digest[ii + 1] = (unsigned char) ((mdContext->buf[i] >> 8) & 0xFF); mdContext->digest[ii + 2] = (unsigned char) ((mdContext->buf[i] >> 16) & 0xFF); mdContext->digest[ii + 3] = (unsigned char) ((mdContext->buf[i] >> 24) & 0xFF); } } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/ltmain.sh����������������������������������������������������������������������������������0000755�0000764�0000764�00000733060�11454157057�010755� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������# Generated from ltmain.m4sh. # ltmain.sh (GNU libtool) 2.2.6b # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 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 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 GNU Libtool; see the file COPYING. If not, a copy # can be downloaded from http://www.gnu.org/licenses/gpl.html, # or obtained by writing to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Usage: $progname [OPTION]... [MODE-ARG]... # # Provide generalized library-building support services. # # --config show all configuration variables # --debug enable verbose shell tracing # -n, --dry-run display commands without modifying any files # --features display basic configuration information and exit # --mode=MODE use operation mode MODE # --preserve-dup-deps don't remove duplicate dependency libraries # --quiet, --silent don't print informational messages # --tag=TAG use configuration variables from tag TAG # -v, --verbose print informational messages (default) # --version print version information # -h, --help print short or long help message # # MODE must be one of the following: # # clean remove files from the build directory # compile compile a source file into a libtool object # execute automatically set library path, then run a program # finish complete the installation of libtool libraries # install install libraries or executables # link create a library or an executable # uninstall remove libraries from an installed directory # # MODE-ARGS vary depending on the MODE. # Try `$progname --help --mode=MODE' for a more detailed description of MODE. # # When reporting a bug, please describe a test case to reproduce it and # include the following information: # # host-triplet: $host # shell: $SHELL # compiler: $LTCC # compiler flags: $LTCFLAGS # linker: $LD (gnu? $with_gnu_ld) # $progname: (GNU libtool) 2.2.6b # automake: $automake_version # autoconf: $autoconf_version # # Report bugs to <bug-libtool@gnu.org>. PROGRAM=ltmain.sh PACKAGE=libtool VERSION=2.2.6b TIMESTAMP="" package_revision=1.3017 # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # NLS nuisances: We save the old values to restore during execute mode. # Only set LANG and LC_ALL to C if already set. # These must not be set unconditionally because not all systems understand # e.g. LANG=C (notably SCO). lt_user_locale= lt_safe_locale= for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${$lt_var+set}\" = set; then save_$lt_var=\$$lt_var $lt_var=C export $lt_var lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" fi" done $lt_unset CDPATH : ${CP="cp -f"} : ${ECHO="echo"} : ${EGREP="/bin/grep -E"} : ${FGREP="/bin/grep -F"} : ${GREP="/bin/grep"} : ${LN_S="ln -s"} : ${MAKE="make"} : ${MKDIR="mkdir"} : ${MV="mv -f"} : ${RM="rm -f"} : ${SED="/bin/sed"} : ${SHELL="${CONFIG_SHELL-/bin/sh}"} : ${Xsed="$SED -e 1s/^X//"} # Global variables: EXIT_SUCCESS=0 EXIT_FAILURE=1 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. exit_status=$EXIT_SUCCESS # Make sure IFS has a sensible default lt_nl=' ' IFS=" $lt_nl" dirname="s,/[^/]*$,," basename="s,^.*/,," # func_dirname_and_basename file append nondir_replacement # perform func_basename and func_dirname in a single function # call: # dirname: Compute the dirname of FILE. If nonempty, # add APPEND to the result, otherwise set result # to NONDIR_REPLACEMENT. # value returned in "$func_dirname_result" # basename: Compute filename of FILE. # value retuned in "$func_basename_result" # Implementation must be kept synchronized with func_dirname # and func_basename. For efficiency, we do not delegate to # those functions but instead duplicate the functionality here. func_dirname_and_basename () { # Extract subdirectory from the argument. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` if test "X$func_dirname_result" = "X${1}"; then func_dirname_result="${3}" else func_dirname_result="$func_dirname_result${2}" fi func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` } # Generated shell functions inserted here. # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh # is ksh but when the shell is invoked as "sh" and the current value of # the _XPG environment variable is not equal to 1 (one), the special # positional parameter $0, within a function call, is the name of the # function. progpath="$0" # The name of this program: # In the unlikely event $progname began with a '-', it would play havoc with # func_echo (imagine progname=-n), so we prepend ./ in that case: func_dirname_and_basename "$progpath" progname=$func_basename_result case $progname in -*) progname=./$progname ;; esac # Make sure we have an absolute path for reexecution: case $progpath in [\\/]*|[A-Za-z]:\\*) ;; *[\\/]*) progdir=$func_dirname_result progdir=`cd "$progdir" && pwd` progpath="$progdir/$progname" ;; *) save_IFS="$IFS" IFS=: for progdir in $PATH; do IFS="$save_IFS" test -x "$progdir/$progname" && break done IFS="$save_IFS" test -n "$progdir" || progdir=`pwd` progpath="$progdir/$progname" ;; esac # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed="${SED}"' -e 1s/^X//' sed_quote_subst='s/\([`"$\\]\)/\\\1/g' # Same as above, but do not quote variable references. double_quote_subst='s/\(["`\\]\)/\\\1/g' # Re-`\' parameter expansions in output of double_quote_subst that were # `\'-ed in input to the same. If an odd number of `\' preceded a '$' # in input to double_quote_subst, that '$' was protected from expansion. # Since each input `\' is now two `\'s, look for any number of runs of # four `\'s followed by two `\'s and then a '$'. `\' that '$'. bs='\\' bs2='\\\\' bs4='\\\\\\\\' dollar='\$' sed_double_backslash="\ s/$bs4/&\\ /g s/^$bs2$dollar/$bs&/ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g s/\n//g" # Standard options: opt_dry_run=false opt_help=false opt_quiet=false opt_verbose=false opt_warning=: # func_echo arg... # Echo program name prefixed message, along with the current mode # name if it has been set yet. func_echo () { $ECHO "$progname${mode+: }$mode: $*" } # func_verbose arg... # Echo program name prefixed message in verbose mode only. func_verbose () { $opt_verbose && func_echo ${1+"$@"} # A bug in bash halts the script if the last line of a function # fails when set -e is in force, so we need another command to # work around that: : } # func_error arg... # Echo program name prefixed message to standard error. func_error () { $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 } # func_warning arg... # Echo program name prefixed warning message to standard error. func_warning () { $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 # bash bug again: : } # func_fatal_error arg... # Echo program name prefixed message to standard error, and exit. func_fatal_error () { func_error ${1+"$@"} exit $EXIT_FAILURE } # func_fatal_help arg... # Echo program name prefixed message to standard error, followed by # a help hint, and exit. func_fatal_help () { func_error ${1+"$@"} func_fatal_error "$help" } help="Try \`$progname --help' for more information." ## default # func_grep expression filename # Check whether EXPRESSION matches any line of FILENAME, without output. func_grep () { $GREP "$1" "$2" >/dev/null 2>&1 } # func_mkdir_p directory-path # Make sure the entire path to DIRECTORY-PATH is available. func_mkdir_p () { my_directory_path="$1" my_dir_list= if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then # Protect directory names starting with `-' case $my_directory_path in -*) my_directory_path="./$my_directory_path" ;; esac # While some portion of DIR does not yet exist... while test ! -d "$my_directory_path"; do # ...make a list in topmost first order. Use a colon delimited # list incase some portion of path contains whitespace. my_dir_list="$my_directory_path:$my_dir_list" # If the last portion added has no slash in it, the list is done case $my_directory_path in */*) ;; *) break ;; esac # ...otherwise throw away the child directory and loop my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"` done my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` save_mkdir_p_IFS="$IFS"; IFS=':' for my_dir in $my_dir_list; do IFS="$save_mkdir_p_IFS" # mkdir can fail with a `File exist' error if two processes # try to create one of the directories concurrently. Don't # stop in that case! $MKDIR "$my_dir" 2>/dev/null || : done IFS="$save_mkdir_p_IFS" # Bail out if we (or some other process) failed to create a directory. test -d "$my_directory_path" || \ func_fatal_error "Failed to create \`$1'" fi } # func_mktempdir [string] # Make a temporary directory that won't clash with other running # libtool processes, and avoids race conditions if possible. If # given, STRING is the basename for that directory. func_mktempdir () { my_template="${TMPDIR-/tmp}/${1-$progname}" if test "$opt_dry_run" = ":"; then # Return a directory name, but don't create it in dry-run mode my_tmpdir="${my_template}-$$" else # If mktemp works, use that first and foremost my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` if test ! -d "$my_tmpdir"; then # Failing that, at least try and use $RANDOM to avoid a race my_tmpdir="${my_template}-${RANDOM-0}$$" save_mktempdir_umask=`umask` umask 0077 $MKDIR "$my_tmpdir" umask $save_mktempdir_umask fi # If we're not in dry-run mode, bomb out on failure test -d "$my_tmpdir" || \ func_fatal_error "cannot create temporary directory \`$my_tmpdir'" fi $ECHO "X$my_tmpdir" | $Xsed } # func_quote_for_eval arg # Aesthetically quote ARG to be evaled later. # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT # is double-quoted, suitable for a subsequent eval, whereas # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters # which are still active within double quotes backslashified. func_quote_for_eval () { case $1 in *[\\\`\"\$]*) func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;; *) func_quote_for_eval_unquoted_result="$1" ;; esac case $func_quote_for_eval_unquoted_result in # Double-quote args containing shell metacharacters to delay # word splitting, command substitution and and variable # expansion for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\"" ;; *) func_quote_for_eval_result="$func_quote_for_eval_unquoted_result" esac } # func_quote_for_expand arg # Aesthetically quote ARG to be evaled later; same as above, # but do not quote variable references. func_quote_for_expand () { case $1 in *[\\\`\"]*) my_arg=`$ECHO "X$1" | $Xsed \ -e "$double_quote_subst" -e "$sed_double_backslash"` ;; *) my_arg="$1" ;; esac case $my_arg in # Double-quote args containing shell metacharacters to delay # word splitting and command substitution for a subsequent eval. # Many Bourne shells cannot handle close brackets correctly # in scan sets, so we specify it separately. *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") my_arg="\"$my_arg\"" ;; esac func_quote_for_expand_result="$my_arg" } # func_show_eval cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. func_show_eval () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$my_cmd" my_status=$? if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_show_eval_locale cmd [fail_exp] # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP # is given, then evaluate it. Use the saved locale for evaluation. func_show_eval_locale () { my_cmd="$1" my_fail_exp="${2-:}" ${opt_silent-false} || { func_quote_for_expand "$my_cmd" eval "func_echo $func_quote_for_expand_result" } if ${opt_dry_run-false}; then :; else eval "$lt_user_locale $my_cmd" my_status=$? eval "$lt_safe_locale" if test "$my_status" -eq 0; then :; else eval "(exit $my_status); $my_fail_exp" fi fi } # func_version # Echo version message to standard output and exit. func_version () { $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { s/^# // s/^# *$// s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ p }' < "$progpath" exit $? } # func_usage # Echo short help message to standard output and exit. func_usage () { $SED -n '/^# Usage:/,/# -h/ { s/^# // s/^# *$// s/\$progname/'$progname'/ p }' < "$progpath" $ECHO $ECHO "run \`$progname --help | more' for full usage" exit $? } # func_help # Echo long help message to standard output and exit. func_help () { $SED -n '/^# Usage:/,/# Report bugs to/ { s/^# // s/^# *$// s*\$progname*'$progname'* s*\$host*'"$host"'* s*\$SHELL*'"$SHELL"'* s*\$LTCC*'"$LTCC"'* s*\$LTCFLAGS*'"$LTCFLAGS"'* s*\$LD*'"$LD"'* s/\$with_gnu_ld/'"$with_gnu_ld"'/ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ p }' < "$progpath" exit $? } # func_missing_arg argname # Echo program name prefixed message to standard error and set global # exit_cmd. func_missing_arg () { func_error "missing argument for $1" exit_cmd=exit } exit_cmd=: # Check that we have a working $ECHO. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then # Yippee, $ECHO works! : else # Restart under the correct shell, and then maybe $ECHO will work. exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat <<EOF $* EOF exit $EXIT_SUCCESS fi magic="%%%MAGIC variable%%%" magic_exe="%%%MAGIC EXE variable%%%" # Global variables. # $mode is unset nonopt= execute_dlfiles= preserve_args= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" extracted_archives= extracted_serial=0 opt_dry_run=false opt_duplicate_deps=false opt_silent=false opt_debug=: # If this variable is set in any of the actions, the command in it # will be execed at the end. This prevents here-documents from being # left over by shells. exec_cmd= # func_fatal_configuration arg... # Echo program name prefixed message to standard error, followed by # a configuration failure hint, and exit. func_fatal_configuration () { func_error ${1+"$@"} func_error "See the $PACKAGE documentation for more information." func_fatal_error "Fatal configuration error." } # func_config # Display the configuration for all the tags in this script. func_config () { re_begincf='^# ### BEGIN LIBTOOL' re_endcf='^# ### END LIBTOOL' # Default configuration. $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" # Now print the configurations for the tags. for tagname in $taglist; do $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done exit $? } # func_features # Display the features supported by this script. func_features () { $ECHO "host: $host" if test "$build_libtool_libs" = yes; then $ECHO "enable shared libraries" else $ECHO "disable shared libraries" fi if test "$build_old_libs" = yes; then $ECHO "enable static libraries" else $ECHO "disable static libraries" fi exit $? } # func_enable_tag tagname # Verify that TAGNAME is valid, and either flag an error and exit, or # enable the TAGNAME tag. We also add TAGNAME to the global $taglist # variable here. func_enable_tag () { # Global variable: tagname="$1" re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" sed_extractcf="/$re_begincf/,/$re_endcf/p" # Validate tagname. case $tagname in *[!-_A-Za-z0-9,/]*) func_fatal_error "invalid tag name: $tagname" ;; esac # Don't test for the "default" C tag, as we know it's # there but not specially marked. case $tagname in CC) ;; *) if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then taglist="$taglist $tagname" # Evaluate the configuration. Be careful to quote the path # and the sed script, to avoid splitting on whitespace, but # also don't use non-portable quotes within backquotes within # quotes we have to do it in 2 steps: extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` eval "$extractedcf" else func_error "ignoring unknown tag $tagname" fi ;; esac } # Parse options once, thoroughly. This comes as soon as possible in # the script to make things like `libtool --version' happen quickly. { # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) shift; set dummy --mode clean ${1+"$@"}; shift ;; compile|compil|compi|comp|com|co|c) shift; set dummy --mode compile ${1+"$@"}; shift ;; execute|execut|execu|exec|exe|ex|e) shift; set dummy --mode execute ${1+"$@"}; shift ;; finish|finis|fini|fin|fi|f) shift; set dummy --mode finish ${1+"$@"}; shift ;; install|instal|insta|inst|ins|in|i) shift; set dummy --mode install ${1+"$@"}; shift ;; link|lin|li|l) shift; set dummy --mode link ${1+"$@"}; shift ;; uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; esac # Parse non-mode specific arguments: while test "$#" -gt 0; do opt="$1" shift case $opt in --config) func_config ;; --debug) preserve_args="$preserve_args $opt" func_echo "enabling shell trace mode" opt_debug='set -x' $opt_debug ;; -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break execute_dlfiles="$execute_dlfiles $1" shift ;; --dry-run | -n) opt_dry_run=: ;; --features) func_features ;; --finish) mode="finish" ;; --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break case $1 in # Valid mode arguments: clean) ;; compile) ;; execute) ;; finish) ;; install) ;; link) ;; relink) ;; uninstall) ;; # Catch anything else as an error *) func_error "invalid argument for $opt" exit_cmd=exit break ;; esac mode="$1" shift ;; --preserve-dup-deps) opt_duplicate_deps=: ;; --quiet|--silent) preserve_args="$preserve_args $opt" opt_silent=: ;; --verbose| -v) preserve_args="$preserve_args $opt" opt_silent=false ;; --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break preserve_args="$preserve_args $opt $1" func_enable_tag "$1" # tagname is set here shift ;; # Separate optargs to long options: -dlopen=*|--mode=*|--tag=*) func_opt_split "$opt" set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} shift ;; -\?|-h) func_usage ;; --help) opt_help=: ;; --version) func_version ;; -*) func_fatal_help "unrecognized option \`$opt'" ;; *) nonopt="$opt" break ;; esac done case $host in *cygwin* | *mingw* | *pw32* | *cegcc*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;; *) opt_duplicate_compiler_generated_deps=$opt_duplicate_deps ;; esac # Having warned about all mis-specified options, bail out if # anything was wrong. $exit_cmd $EXIT_FAILURE } # func_check_version_match # Ensure that we are using m4 macros, and libtool script from the same # release of libtool. func_check_version_match () { if test "$package_revision" != "$macro_revision"; then if test "$VERSION" != "$macro_version"; then if test -z "$macro_version"; then cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from an older release. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, but the $progname: definition of this LT_INIT comes from $PACKAGE $macro_version. $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION $progname: and run autoconf again. _LT_EOF fi else cat >&2 <<_LT_EOF $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, $progname: but the definition of this LT_INIT comes from revision $macro_revision. $progname: You should recreate aclocal.m4 with macros from revision $package_revision $progname: of $PACKAGE $VERSION and run autoconf again. _LT_EOF fi exit $EXIT_MISMATCH fi } ## ----------- ## ## Main. ## ## ----------- ## $opt_help || { # Sanity checks first: func_check_version_match if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then func_fatal_configuration "not configured to build any kind of library" fi test -z "$mode" && func_fatal_error "error: you must specify a MODE." # Darwin sucks eval std_shrext=\"$shrext_cmds\" # Only execute mode is allowed to have -dlopen flags. if test -n "$execute_dlfiles" && test "$mode" != execute; then func_error "unrecognized option \`-dlopen'" $ECHO "$help" 1>&2 exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. generic_help="$help" help="Try \`$progname --help --mode=$mode' for more information." } # func_lalib_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_lalib_p () { test -f "$1" && $SED -e 4q "$1" 2>/dev/null \ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 } # func_lalib_unsafe_p file # True iff FILE is a libtool `.la' library or `.lo' object file. # This function implements the same check as func_lalib_p without # resorting to external programs. To this end, it redirects stdin and # closes it afterwards, without saving the original file descriptor. # As a safety measure, use it only where a negative result would be # fatal anyway. Works if `file' does not exist. func_lalib_unsafe_p () { lalib_p=no if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then for lalib_p_l in 1 2 3 4 do read lalib_p_line case "$lalib_p_line" in \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; esac done exec 0<&5 5<&- fi test "$lalib_p" = yes } # func_ltwrapper_script_p file # True iff FILE is a libtool wrapper script # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_script_p () { func_lalib_p "$1" } # func_ltwrapper_executable_p file # True iff FILE is a libtool wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_executable_p () { func_ltwrapper_exec_suffix= case $1 in *.exe) ;; *) func_ltwrapper_exec_suffix=.exe ;; esac $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 } # func_ltwrapper_scriptname file # Assumes file is an ltwrapper_executable # uses $file to determine the appropriate filename for a # temporary ltwrapper_script. func_ltwrapper_scriptname () { func_ltwrapper_scriptname_result="" if func_ltwrapper_executable_p "$1"; then func_dirname_and_basename "$1" "" "." func_stripname '' '.exe' "$func_basename_result" func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" fi } # func_ltwrapper_p file # True iff FILE is a libtool wrapper script or wrapper executable # This function is only a basic sanity check; it will hardly flush out # determined imposters. func_ltwrapper_p () { func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" } # func_execute_cmds commands fail_cmd # Execute tilde-delimited COMMANDS. # If FAIL_CMD is given, eval that upon failure. # FAIL_CMD may read-access the current command in variable CMD! func_execute_cmds () { $opt_debug save_ifs=$IFS; IFS='~' for cmd in $1; do IFS=$save_ifs eval cmd=\"$cmd\" func_show_eval "$cmd" "${2-:}" done IFS=$save_ifs } # func_source file # Source FILE, adding directory component if necessary. # Note that it is not necessary on cygwin/mingw to append a dot to # FILE even if both FILE and FILE.exe exist: automatic-append-.exe # behavior happens only for exec(3), not for open(2)! Also, sourcing # `FILE.' does not work on cygwin managed mounts. func_source () { $opt_debug case $1 in */* | *\\*) . "$1" ;; *) . "./$1" ;; esac } # func_infer_tag arg # Infer tagged configuration to use if any are available and # if one wasn't chosen via the "--tag" command line option. # Only attempt this if the compiler in the base compile # command doesn't match the default compiler. # arg is usually of the form 'gcc ...' func_infer_tag () { $opt_debug if test -n "$available_tags" && test -z "$tagname"; then CC_quoted= for arg in $CC; do func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case $@ in # Blanks in the command may have been stripped by the calling shell, # but not from the CC environment variable when configure was run. " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;; # Blanks at the start of $base_compile will cause this to fail # if we don't check for them as well. *) for z in $available_tags; do if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then # Evaluate the configuration. eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" CC_quoted= for arg in $CC; do # Double-quote args containing other shell metacharacters. func_quote_for_eval "$arg" CC_quoted="$CC_quoted $func_quote_for_eval_result" done case "$@ " in " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) # The compiler in the base compile command matches # the one in the tagged configuration. # Assume this is the tagged configuration we want. tagname=$z break ;; esac fi done # If $tagname still isn't set, then no tagged configuration # was found and let the user know that the "--tag" command # line option must be used. if test -z "$tagname"; then func_echo "unable to infer tagged configuration" func_fatal_error "specify a tag with \`--tag'" # else # func_verbose "using $tagname tagged configuration" fi ;; esac fi } # func_write_libtool_object output_name pic_name nonpic_name # Create a libtool object file (analogous to a ".la" file), # but don't create it if we're doing a dry run. func_write_libtool_object () { write_libobj=${1} if test "$build_libtool_libs" = yes; then write_lobj=\'${2}\' else write_lobj=none fi if test "$build_old_libs" = yes; then write_oldobj=\'${3}\' else write_oldobj=none fi $opt_dry_run || { cat >${write_libobj}T <<EOF # $write_libobj - a libtool object file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # Name of the PIC object. pic_object=$write_lobj # Name of the non-PIC object non_pic_object=$write_oldobj EOF $MV "${write_libobj}T" "${write_libobj}" } } # func_mode_compile arg... func_mode_compile () { $opt_debug # Get the compilation command and the source file. base_compile= srcfile="$nonopt" # always keep a non-empty value in "srcfile" suppress_opt=yes suppress_output= arg_mode=normal libobj= later= pie_flag= for arg do case $arg_mode in arg ) # do not "continue". Instead, add this to base_compile lastarg="$arg" arg_mode=normal ;; target ) libobj="$arg" arg_mode=normal continue ;; normal ) # Accept any command-line options. case $arg in -o) test -n "$libobj" && \ func_fatal_error "you cannot specify \`-o' more than once" arg_mode=target continue ;; -pie | -fpie | -fPIE) pie_flag="$pie_flag $arg" continue ;; -shared | -static | -prefer-pic | -prefer-non-pic) later="$later $arg" continue ;; -no-suppress) suppress_opt=no continue ;; -Xcompiler) arg_mode=arg # the next one goes into the "base_compile" arg list continue # The current "srcfile" will either be retained or ;; # replaced later. I would guess that would be a bug. -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result lastarg= save_ifs="$IFS"; IFS=',' for arg in $args; do IFS="$save_ifs" func_quote_for_eval "$arg" lastarg="$lastarg $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$lastarg" lastarg=$func_stripname_result # Add the arguments to base_compile. base_compile="$base_compile $lastarg" continue ;; *) # Accept the current argument as the source file. # The previous "srcfile" becomes the current argument. # lastarg="$srcfile" srcfile="$arg" ;; esac # case $arg ;; esac # case $arg_mode # Aesthetically quote the previous argument. func_quote_for_eval "$lastarg" base_compile="$base_compile $func_quote_for_eval_result" done # for arg case $arg_mode in arg) func_fatal_error "you must specify an argument for -Xcompile" ;; target) func_fatal_error "you must specify a target with \`-o'" ;; *) # Get the name of the library object. test -z "$libobj" && { func_basename "$srcfile" libobj="$func_basename_result" } ;; esac # Recognize several different file suffixes. # If the user specifies -o file.o, it is replaced with file.lo case $libobj in *.[cCFSifmso] | \ *.ada | *.adb | *.ads | *.asm | \ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ *.[fF][09]? | *.for | *.java | *.obj | *.sx) func_xform "$libobj" libobj=$func_xform_result ;; esac case $libobj in *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; *) func_fatal_error "cannot determine name of library object from \`$libobj'" ;; esac func_infer_tag $base_compile for arg in $later; do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no continue ;; -static) build_libtool_libs=no build_old_libs=yes continue ;; -prefer-pic) pic_mode=yes continue ;; -prefer-non-pic) pic_mode=no continue ;; esac done func_quote_for_eval "$libobj" test "X$libobj" != "X$func_quote_for_eval_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name \`$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" objname="$func_basename_result" xdir="$func_dirname_result" lobj=${xdir}$objdir/$objname test -z "$base_compile" && \ func_fatal_help "you must specify a compilation command" # Delete any leftover library objects. if test "$build_old_libs" = yes; then removelist="$obj $lobj $libobj ${libobj}T" else removelist="$lobj $libobj ${libobj}T" fi # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in cygwin* | mingw* | pw32* | os2* | cegcc*) pic_mode=default ;; esac if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then # non-PIC code in shared libraries is not supported pic_mode=default fi # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" else output_obj= need_locks=no lockfile= fi # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do func_echo "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then $ECHO "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi removelist="$removelist $output_obj" $ECHO "$srcfile" > "$lockfile" fi $opt_dry_run || $RM $removelist removelist="$removelist $lockfile" trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi func_quote_for_eval "$srcfile" qsrcfile=$func_quote_for_eval_result # Only build a PIC object if we are building libtool libraries. if test "$build_libtool_libs" = yes; then # Without this assignment, base_compile gets emptied. fbsd_hideous_sh_bug=$base_compile if test "$pic_mode" != no; then command="$base_compile $qsrcfile $pic_flag" else # Don't build PIC code command="$base_compile $qsrcfile" fi func_mkdir_p "$xdir$objdir" if test -z "$output_obj"; then # Place PIC objects in $objdir command="$command -o $lobj" fi func_show_eval_locale "$command" \ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then func_show_eval '$MV "$output_obj" "$lobj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi # Allow error messages only from the first compilation. if test "$suppress_opt" = yes; then suppress_output=' >/dev/null 2>&1' fi fi # Only build a position-dependent object if we build old libraries. if test "$build_old_libs" = yes; then if test "$pic_mode" != yes; then # Don't build PIC code command="$base_compile $qsrcfile$pie_flag" else command="$base_compile $qsrcfile $pic_flag" fi if test "$compiler_c_o" = yes; then command="$command -o $obj" fi # Suppress compiler output if we already did a PIC compilation. command="$command$suppress_output" func_show_eval_locale "$command" \ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' if test "$need_locks" = warn && test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then $ECHO "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` but it should contain: $srcfile This indicates that another process is trying to use the same temporary object file, and libtool could not work around it because your compiler does not support \`-c' and \`-o' together. If you repeat this compilation, it may succeed, by chance, but you had better avoid parallel builds (make -j) in this platform, or get a better compiler." $opt_dry_run || $RM $removelist exit $EXIT_FAILURE fi # Just move the object if needed if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then func_show_eval '$MV "$output_obj" "$obj"' \ 'error=$?; $opt_dry_run || $RM $removelist; exit $error' fi fi $opt_dry_run || { func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" # Unlock the critical section if it was locked if test "$need_locks" != no; then removelist=$lockfile $RM "$lockfile" fi } exit $EXIT_SUCCESS } $opt_help || { test "$mode" = compile && func_mode_compile ${1+"$@"} } func_mode_help () { # We need to display help for each of the modes. case $mode in "") # Generic help is extracted from the usage comments # at the start of this file. func_help ;; clean) $ECHO \ "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... Remove files from the build directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, object or program, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; compile) $ECHO \ "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE Compile a source file into a libtool library object. This mode accepts the following additional options: -o OUTPUT-FILE set the output file name to OUTPUT-FILE -no-suppress do not suppress compiler output for multiple passes -prefer-pic try to building PIC objects only -prefer-non-pic try to building non-PIC objects only -shared do not build a \`.o' file suitable for static linking -static only build a \`.o' file suitable for static linking COMPILE-COMMAND is a command to be used in creating a \`standard' object file from the given SOURCEFILE. The output file name is determined by removing the directory component from SOURCEFILE, then substituting the C source code suffix \`.c' with the library object suffix, \`.lo'." ;; execute) $ECHO \ "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... Automatically set library path, then run a program. This mode accepts the following additional options: -dlopen FILE add the directory containing FILE to the library path This mode sets the library path environment variable according to \`-dlopen' flags. If any of the ARGS are libtool executable wrappers, then they are translated into their corresponding uninstalled binary, and any of their required library directories are added to the library path. Then, COMMAND is executed, with ARGS as arguments." ;; finish) $ECHO \ "Usage: $progname [OPTION]... --mode=finish [LIBDIR]... Complete the installation of libtool libraries. Each LIBDIR is a directory that contains libtool libraries. The commands that this mode executes may require superuser privileges. Use the \`--dry-run' option if you just want to see what would be executed." ;; install) $ECHO \ "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... Install executables or libraries. INSTALL-COMMAND is the installation command. The first component should be either the \`install' or \`cp' program. The following components of INSTALL-COMMAND are treated specially: -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation The rest of the components are interpreted as arguments to that command (only BSD-compatible install options are recognized)." ;; link) $ECHO \ "Usage: $progname [OPTION]... --mode=link LINK-COMMAND... Link object files or libraries together to form another library, or to create an executable program. LINK-COMMAND is a command using the C compiler that you would use to create a program from several object files. The following components of LINK-COMMAND are treated specially: -all-static do not do any dynamic linking at all -avoid-version do not add a version suffix if possible -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) -export-symbols SYMFILE try to export only the symbols listed in SYMFILE -export-symbols-regex REGEX try to export only the symbols matching REGEX -LLIBDIR search LIBDIR for required installed libraries -lNAME OUTPUT-FILE requires the installed library libNAME -module build a library that can dlopened -no-fast-install disable the fast-install mode -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects -objectlist FILE Use a list of object files found in FILE to specify objects -precious-files-regex REGEX don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries -shared only do dynamic linking of libtool libraries -shrext SUFFIX override the standard shared library file extension -static do not do any dynamic linking of uninstalled libtool libraries -static-libtool-libs do not do any dynamic linking of libtool libraries -version-info CURRENT[:REVISION[:AGE]] specify library version info [each variable defaults to 0] -weak LIBNAME declare that the target provides the LIBNAME interface All other options (arguments beginning with \`-') are ignored. Every other argument is treated as a filename. Files ending in \`.la' are treated as uninstalled libtool libraries, other files are standard or library object files. If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only library objects (\`.lo' files) may be specified, and \`-rpath' is required, except when creating a convenience library. If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created using \`ar' and \`ranlib', or on Windows using \`lib'. If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file is created, otherwise an executable program is created." ;; uninstall) $ECHO \ "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... Remove libraries from an installation directory. RM is the name of the program to use to delete files associated with each FILE (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed to RM. If FILE is a libtool library, all the files associated with it are deleted. Otherwise, only FILE itself is deleted using RM." ;; *) func_fatal_help "invalid operation mode \`$mode'" ;; esac $ECHO $ECHO "Try \`$progname --help' for more information about other modes." exit $? } # Now that we've collected a possible --mode arg, show help if necessary $opt_help && func_mode_help # func_mode_execute arg... func_mode_execute () { $opt_debug # The first argument is the command name. cmd="$nonopt" test -z "$cmd" && \ func_fatal_help "you must specify a COMMAND" # Handle -dlopen flags immediately. for file in $execute_dlfiles; do test -f "$file" \ || func_fatal_help "\`$file' is not a file" dir= case $file in *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$lib' is not a valid libtool archive" # Read the libtool library. dlname= library_names= func_source "$file" # Skip this library if it cannot be dlopened. if test -z "$dlname"; then # Warn if it was a shared library. test -n "$library_names" && \ func_warning "\`$file' was not linked with \`-export-dynamic'" continue fi func_dirname "$file" "" "." dir="$func_dirname_result" if test -f "$dir/$objdir/$dlname"; then dir="$dir/$objdir" else if test ! -f "$dir/$dlname"; then func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" fi fi ;; *.lo) # Just add the directory containing the .lo file. func_dirname "$file" "" "." dir="$func_dirname_result" ;; *) func_warning "\`-dlopen' is ignored for non-libtool libraries and objects" continue ;; esac # Get the absolute pathname. absdir=`cd "$dir" && pwd` test -n "$absdir" && dir="$absdir" # Now add the directory to shlibpath_var. if eval "test -z \"\$$shlibpath_var\""; then eval "$shlibpath_var=\"\$dir\"" else eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" fi done # This variable tells wrapper scripts just to set shlibpath_var # rather than running their programs. libtool_execute_magic="$magic" # Check if any of the arguments is a wrapper script. args= for file do case $file in -*) ;; *) # Do a test to see if this is really a libtool program. if func_ltwrapper_script_p "$file"; then func_source "$file" # Transform arg to wrapped name. file="$progdir/$program" elif func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" func_source "$func_ltwrapper_scriptname_result" # Transform arg to wrapped name. file="$progdir/$program" fi ;; esac # Quote arguments (to preserve shell metacharacters). func_quote_for_eval "$file" args="$args $func_quote_for_eval_result" done if test "X$opt_dry_run" = Xfalse; then if test -n "$shlibpath_var"; then # Export the shlibpath_var. eval "export $shlibpath_var" fi # Restore saved environment variables for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES do eval "if test \"\${save_$lt_var+set}\" = set; then $lt_var=\$save_$lt_var; export $lt_var else $lt_unset $lt_var fi" done # Now prepare to actually exec the command. exec_cmd="\$cmd$args" else # Display what would be done. if test -n "$shlibpath_var"; then eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" $ECHO "export $shlibpath_var" fi $ECHO "$cmd$args" exit $EXIT_SUCCESS fi } test "$mode" = execute && func_mode_execute ${1+"$@"} # func_mode_finish arg... func_mode_finish () { $opt_debug libdirs="$nonopt" admincmds= if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then for dir do libdirs="$libdirs $dir" done for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. func_execute_cmds "$finish_cmds" 'admincmds="$admincmds '"$cmd"'"' fi if test -n "$finish_eval"; then # Do the single finish_eval. eval cmds=\"$finish_eval\" $opt_dry_run || eval "$cmds" || admincmds="$admincmds $cmds" fi done fi # Exit here if they wanted silent mode. $opt_silent && exit $EXIT_SUCCESS $ECHO "X----------------------------------------------------------------------" | $Xsed $ECHO "Libraries have been installed in:" for libdir in $libdirs; do $ECHO " $libdir" done $ECHO $ECHO "If you ever happen to want to link against installed libraries" $ECHO "in a given directory, LIBDIR, you must either use libtool, and" $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'" $ECHO "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable" $ECHO " during execution" fi if test -n "$runpath_var"; then $ECHO " - add LIBDIR to the \`$runpath_var' environment variable" $ECHO " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" $ECHO " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then $ECHO " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi $ECHO $ECHO "See any operating system documentation about shared libraries for" case $host in solaris2.[6789]|solaris2.1[0-9]) $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual" $ECHO "pages." ;; *) $ECHO "more information, such as the ld(1) and ld.so(8) manual pages." ;; esac $ECHO "X----------------------------------------------------------------------" | $Xsed exit $EXIT_SUCCESS } test "$mode" = finish && func_mode_finish ${1+"$@"} # func_mode_install arg... func_mode_install () { $opt_debug # There may be an optional sh(1) argument at the beginning of # install_prog (especially on Windows NT). if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || # Allow the use of GNU shtool's install command. $ECHO "X$nonopt" | $GREP shtool >/dev/null; then # Aesthetically quote it. func_quote_for_eval "$nonopt" install_prog="$func_quote_for_eval_result " arg=$1 shift else install_prog= arg=$nonopt fi # The real first argument should be the name of the installation program. # Aesthetically quote it. func_quote_for_eval "$arg" install_prog="$install_prog$func_quote_for_eval_result" # We need to accept at least all the BSD install flags. dest= files= opts= prev= install_type= isdir=no stripme= for arg do if test -n "$dest"; then files="$files $dest" dest=$arg continue fi case $arg in -d) isdir=yes ;; -f) case " $install_prog " in *[\\\ /]cp\ *) ;; *) prev=$arg ;; esac ;; -g | -m | -o) prev=$arg ;; -s) stripme=" -s" continue ;; -*) ;; *) # If the previous option needed an argument, then skip it. if test -n "$prev"; then prev= else dest=$arg continue fi ;; esac # Aesthetically quote the argument. func_quote_for_eval "$arg" install_prog="$install_prog $func_quote_for_eval_result" done test -z "$install_prog" && \ func_fatal_help "you must specify an install program" test -n "$prev" && \ func_fatal_help "the \`$prev' option requires an argument" if test -z "$files"; then if test -z "$dest"; then func_fatal_help "no file or destination specified" else func_fatal_help "you must specify a destination" fi fi # Strip any trailing slash from the destination. func_stripname '' '/' "$dest" dest=$func_stripname_result # Check to see that the destination is a directory. test -d "$dest" && isdir=yes if test "$isdir" = yes; then destdir="$dest" destname= else func_dirname_and_basename "$dest" "" "." destdir="$func_dirname_result" destname="$func_basename_result" # Not a directory, so check to see that there is only one file specified. set dummy $files; shift test "$#" -gt 1 && \ func_fatal_help "\`$dest' is not a directory" fi case $destdir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) for file in $files; do case $file in *.lo) ;; *) func_fatal_help "\`$destdir' must be an absolute directory name" ;; esac done ;; esac # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" staticlibs= future_libdirs= current_libdirs= for file in $files; do # Do each installation. case $file in *.$libext) # Do the static libraries later. staticlibs="$staticlibs $file" ;; *.la) # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$file" \ || func_fatal_help "\`$file' is not a valid libtool archive" library_names= old_library= relink_command= func_source "$file" # Add the libdir to current_libdirs if it is the destination. if test "X$destdir" = "X$libdir"; then case "$current_libdirs " in *" $libdir "*) ;; *) current_libdirs="$current_libdirs $libdir" ;; esac else # Note the libdir as a future libdir. case "$future_libdirs " in *" $libdir "*) ;; *) future_libdirs="$future_libdirs $libdir" ;; esac fi func_dirname "$file" "/" "" dir="$func_dirname_result" dir="$dir$objdir" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. # At present, this check doesn't affect windows .dll's that # are installed into $libdir/../bin (currently, that works fine) # but it's something to keep an eye on. test "$inst_prefix_dir" = "$destdir" && \ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir" if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"` fi func_warning "relinking \`$file'" func_show_eval "$relink_command" \ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"' fi # See the names of the shared library. set dummy $library_names; shift if test -n "$1"; then realname="$1" shift srcname="$realname" test -n "$relink_command" && srcname="$realname"T # Install the shared library and build the symlinks. func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ 'exit $?' tstripme="$stripme" case $host_os in cygwin* | mingw* | pw32* | cegcc*) case $realname in *.dll.a) tstripme="" ;; esac ;; esac if test -n "$tstripme" && test -n "$striplib"; then func_show_eval "$striplib $destdir/$realname" 'exit $?' fi if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. # Try `ln -sf' first, because the `ln' binary might depend on # the symlink we replace! Solaris /bin/ln does not understand -f, # so we also need to try rm && ln -s. for linkname do test "$linkname" != "$realname" \ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" done fi # Do each command in the postinstall commands. lib="$destdir/$realname" func_execute_cmds "$postinstall_cmds" 'exit $?' fi # Install the pseudo-library for information purposes. func_basename "$file" name="$func_basename_result" instname="$dir/$name"i func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' # Maybe install the static library, too. test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" ;; *.lo) # Install (i.e. copy) a libtool object. # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # Deduce the name of the destination old-style object file. case $destfile in *.lo) func_lo2o "$destfile" staticdest=$func_lo2o_result ;; *.$objext) staticdest="$destfile" destfile= ;; *) func_fatal_help "cannot copy a libtool object to \`$destfile'" ;; esac # Install the libtool object if requested. test -n "$destfile" && \ func_show_eval "$install_prog $file $destfile" 'exit $?' # Install the old object if enabled. if test "$build_old_libs" = yes; then # Deduce the name of the old-style object file. func_lo2o "$file" staticobj=$func_lo2o_result func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' fi exit $EXIT_SUCCESS ;; *) # Figure out destination file name, if it wasn't already specified. if test -n "$destname"; then destfile="$destdir/$destname" else func_basename "$file" destfile="$func_basename_result" destfile="$destdir/$destfile" fi # If the file is missing, and there is a .exe on the end, strip it # because it is most likely a libtool script we actually want to # install stripped_ext="" case $file in *.exe) if test ! -f "$file"; then func_stripname '' '.exe' "$file" file=$func_stripname_result stripped_ext=".exe" fi ;; esac # Do a test to see if this is really a libtool program. case $host in *cygwin* | *mingw*) if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" wrapper=$func_ltwrapper_scriptname_result else func_stripname '' '.exe' "$file" wrapper=$func_stripname_result fi ;; *) wrapper=$file ;; esac if func_ltwrapper_script_p "$wrapper"; then notinst_deplibs= relink_command= func_source "$wrapper" # Check the variables that should have been set. test -z "$generated_by_libtool_version" && \ func_fatal_error "invalid libtool wrapper script \`$wrapper'" finalize=yes for lib in $notinst_deplibs; do # Check to see that each library is installed. libdir= if test -f "$lib"; then func_source "$lib" fi libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test if test -n "$libdir" && test ! -f "$libfile"; then func_warning "\`$lib' has not been installed in \`$libdir'" finalize=no fi done relink_command= func_source "$wrapper" outputname= if test "$fast_install" = no && test -n "$relink_command"; then $opt_dry_run || { if test "$finalize" = yes; then tmpdir=`func_mktempdir` func_basename "$file$stripped_ext" file="$func_basename_result" outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` $opt_silent || { func_quote_for_expand "$relink_command" eval "func_echo $func_quote_for_expand_result" } if eval "$relink_command"; then : else func_error "error: relink \`$file' with the above command before installing it" $opt_dry_run || ${RM}r "$tmpdir" continue fi file="$outputname" else func_warning "cannot relink \`$file'" fi } else # Install the binary that we compiled earlier. file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyway case $install_prog,$host in */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok ;; *.exe:*) destfile=$destfile.exe ;; *:*.exe) func_stripname '' '.exe' "$destfile" destfile=$func_stripname_result ;; esac ;; esac func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' $opt_dry_run || if test -n "$outputname"; then ${RM}r "$tmpdir" fi ;; esac done for file in $staticlibs; do func_basename "$file" name="$func_basename_result" # Set up the ranlib parameters. oldlib="$destdir/$name" func_show_eval "$install_prog \$file \$oldlib" 'exit $?' if test -n "$stripme" && test -n "$old_striplib"; then func_show_eval "$old_striplib $oldlib" 'exit $?' fi # Do each command in the postinstall commands. func_execute_cmds "$old_postinstall_cmds" 'exit $?' done test -n "$future_libdirs" && \ func_warning "remember to run \`$progname --finish$future_libdirs'" if test -n "$current_libdirs"; then # Maybe just do a dry run. $opt_dry_run && current_libdirs=" -n$current_libdirs" exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else exit $EXIT_SUCCESS fi } test "$mode" = install && func_mode_install ${1+"$@"} # func_generate_dlsyms outputname originator pic_p # Extract symbols from dlprefiles and create ${outputname}S.o with # a dlpreopen symbol table. func_generate_dlsyms () { $opt_debug my_outputname="$1" my_originator="$2" my_pic_p="${3-no}" my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` my_dlsyms= if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then if test -n "$NM" && test -n "$global_symbol_pipe"; then my_dlsyms="${my_outputname}S.c" else func_error "not configured to extract global symbols from dlpreopened files" fi fi if test -n "$my_dlsyms"; then case $my_dlsyms in "") ;; *.c) # Discover the nlist of each of the dlfiles. nlist="$output_objdir/${my_outputname}.nm" func_show_eval "$RM $nlist ${nlist}S ${nlist}T" # Parse the name list into a source file. func_verbose "creating $output_objdir/$my_dlsyms" $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */ /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ #ifdef __cplusplus extern \"C\" { #endif /* External symbol declarations for the compiler. */\ " if test "$dlself" = yes; then func_verbose "generating symbol list for \`$output'" $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" # Add our own program objects to the symbol list. progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` for progfile in $progfiles; do func_verbose "extracting global C symbols from \`$progfile'" $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" done if test -n "$exclude_expsyms"; then $opt_dry_run || { eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi if test -n "$export_symbols_regex"; then $opt_dry_run || { eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' } fi # Prepare the list of exported symbols if test -z "$export_symbols"; then export_symbols="$output_objdir/$outputname.exp" $opt_dry_run || { $RM $export_symbols eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' case $host in *cygwin* | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' ;; esac } else $opt_dry_run || { eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' eval '$MV "$nlist"T "$nlist"' case $host in *cygwin | *mingw* | *cegcc* ) eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' ;; esac } fi fi for dlprefile in $dlprefiles; do func_verbose "extracting global C symbols from \`$dlprefile'" func_basename "$dlprefile" name="$func_basename_result" $opt_dry_run || { eval '$ECHO ": $name " >> "$nlist"' eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" } done $opt_dry_run || { # Make sure we have at least an empty file. test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $MV "$nlist"T "$nlist" fi # Try sorting and uniquifying the output. if $GREP -v "^: " < "$nlist" | if sort -k 3 </dev/null >/dev/null 2>&1; then sort -k 3 else sort +2 fi | uniq > "$nlist"S; then : else $GREP -v "^: " < "$nlist" > "$nlist"S fi if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' else $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" fi $ECHO >> "$output_objdir/$my_dlsyms" "\ /* The mapping between symbol names and symbols. */ typedef struct { const char *name; void *address; } lt_dlsymlist; " case $host in *cygwin* | *mingw* | *cegcc* ) $ECHO >> "$output_objdir/$my_dlsyms" "\ /* DATA imports from DLLs on WIN32 con't be const, because runtime relocations are performed -- see ld's documentation on pseudo-relocs. */" lt_dlsym_const= ;; *osf5*) echo >> "$output_objdir/$my_dlsyms" "\ /* This system does not cope well with relocations in const data */" lt_dlsym_const= ;; *) lt_dlsym_const=const ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ extern $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[]; $lt_dlsym_const lt_dlsymlist lt_${my_prefix}_LTX_preloaded_symbols[] = {\ { \"$my_originator\", (void *) 0 }," case $need_lib_prefix in no) eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; *) eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" ;; esac $ECHO >> "$output_objdir/$my_dlsyms" "\ {0, (void *) 0} }; /* This works around a problem in FreeBSD linker */ #ifdef FREEBSD_WORKAROUND static const void *lt_preloaded_setup() { return lt_${my_prefix}_LTX_preloaded_symbols; } #endif #ifdef __cplusplus } #endif\ " } # !$opt_dry_run pic_flag_for_symtable= case "$compile_command " in *" -static "*) ;; *) case $host in # compiling the symbol table file with pic_flag works around # a FreeBSD bug that causes programs to crash when -lm is # linked before any other PIC object. But we must not use # pic_flag when linking with -static. The problem exists in # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; *-*-hpux*) pic_flag_for_symtable=" $pic_flag" ;; *) if test "X$my_pic_p" != Xno; then pic_flag_for_symtable=" $pic_flag" fi ;; esac ;; esac symtab_cflags= for arg in $LTCFLAGS; do case $arg in -pie | -fpie | -fPIE) ;; *) symtab_cflags="$symtab_cflags $arg" ;; esac done # Now compile the dynamic symbol file. func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' # Clean up the generated files. func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"' # Transform the symbol file into the correct name. symfileobj="$output_objdir/${my_outputname}S.$objext" case $host in *cygwin* | *mingw* | *cegcc* ) if test -f "$output_objdir/$my_outputname.def"; then compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` else compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` fi ;; *) compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"` ;; esac ;; *) func_fatal_error "unknown suffix for \`$my_dlsyms'" ;; esac else # We keep going just in case the user didn't refer to # lt_preloaded_symbols. The linker will fail if global_symbol_pipe # really was required. # Nullify the symbol file. compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi } # func_win32_libid arg # return the library type of file 'arg' # # Need a lot of goo to handle *both* DLLs and import libs # Has to be a shell function in order to 'eat' the argument # that is supplied when $file_magic_command is called. func_win32_libid () { $opt_debug win32_libid_type="unknown" win32_fileres=`file -L $1 2>/dev/null` case $win32_fileres in *ar\ archive\ import\ library*) # definitely import win32_libid_type="x86 archive import" ;; *ar\ archive*) # could be an import, or static if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then win32_nmres=`eval $NM -f posix -A $1 | $SED -n -e ' 1,100{ / I /{ s,.*,import, p q } }'` case $win32_nmres in import*) win32_libid_type="x86 archive import";; *) win32_libid_type="x86 archive static";; esac fi ;; *DLL*) win32_libid_type="x86 DLL" ;; *executable*) # but shell scripts are "executable" too... case $win32_fileres in *MS\ Windows\ PE\ Intel*) win32_libid_type="x86 DLL" ;; esac ;; esac $ECHO "$win32_libid_type" } # func_extract_an_archive dir oldlib func_extract_an_archive () { $opt_debug f_ex_an_ar_dir="$1"; shift f_ex_an_ar_oldlib="$1" func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?' if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then : else func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" fi } # func_extract_archives gentop oldlib ... func_extract_archives () { $opt_debug my_gentop="$1"; shift my_oldlibs=${1+"$@"} my_oldobjs="" my_xlib="" my_xabs="" my_xdir="" for my_xlib in $my_oldlibs; do # Extract the objects. case $my_xlib in [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; *) my_xabs=`pwd`"/$my_xlib" ;; esac func_basename "$my_xlib" my_xlib="$func_basename_result" my_xlib_u=$my_xlib while :; do case " $extracted_archives " in *" $my_xlib_u "*) func_arith $extracted_serial + 1 extracted_serial=$func_arith_result my_xlib_u=lt$extracted_serial-$my_xlib ;; *) break ;; esac done extracted_archives="$extracted_archives $my_xlib_u" my_xdir="$my_gentop/$my_xlib_u" func_mkdir_p "$my_xdir" case $host in *-darwin*) func_verbose "Extracting $my_xabs" # Do not bother doing anything if just a dry run $opt_dry_run || { darwin_orig_dir=`pwd` cd $my_xdir || exit $? darwin_archive=$my_xabs darwin_curdir=`pwd` darwin_base_archive=`basename "$darwin_archive"` darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` if test -n "$darwin_arches"; then darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` darwin_arch= func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" for darwin_arch in $darwin_arches ; do func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" func_extract_an_archive "`pwd`" "${darwin_base_archive}" cd "$darwin_curdir" $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" done # $darwin_arches ## Okay now we've a bunch of thin objects, gotta fatten them up :) darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u` darwin_file= darwin_files= for darwin_file in $darwin_filelist; do darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` $LIPO -create -output "$darwin_file" $darwin_files done # $darwin_filelist $RM -rf unfat-$$ cd "$darwin_orig_dir" else cd $darwin_orig_dir func_extract_an_archive "$my_xdir" "$my_xabs" fi # $darwin_arches } # !$opt_dry_run ;; *) func_extract_an_archive "$my_xdir" "$my_xabs" ;; esac my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` done func_extract_archives_result="$my_oldobjs" } # func_emit_wrapper_part1 [arg=no] # # Emit the first part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part1 () { func_emit_wrapper_part1_arg1=no if test -n "$1" ; then func_emit_wrapper_part1_arg1=$1 fi $ECHO "\ #! $SHELL # $output - temporary wrapper script for $objdir/$outputname # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # The $output program cannot be directly executed until all the libtool # libraries that it depends on are installed. # # This wrapper script should never be moved out of the build directory. # If it is, it will not operate correctly. # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # Be Bourne compatible if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs 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 BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # 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 relink_command=\"$relink_command\" # This environment variable determines our operation mode. if test \"\$libtool_install_magic\" = \"$magic\"; then # install mode needs the following variables: generated_by_libtool_version='$macro_version' notinst_deplibs='$notinst_deplibs' else # When we are sourced in execute mode, \$file and \$ECHO are already set. if test \"\$libtool_execute_magic\" != \"$magic\"; then ECHO=\"$qecho\" file=\"\$0\" # Make sure echo works. if test \"X\$1\" = X--no-reexec; then # Discard the --no-reexec flag, and continue. shift elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then # Yippee, \$ECHO works! : else # Restart under the correct shell, and then maybe \$ECHO will work. exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} fi fi\ " $ECHO "\ # Find the directory that this script lives in. thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` test \"x\$thisdir\" = \"x\$file\" && thisdir=. # Follow symbolic links until we get to the real thisdir. file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` while test -n \"\$file\"; do destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` # If there was a directory component, then change thisdir. if test \"x\$destdir\" != \"x\$file\"; then case \"\$destdir\" in [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; *) thisdir=\"\$thisdir/\$destdir\" ;; esac fi file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` done " } # end: func_emit_wrapper_part1 # func_emit_wrapper_part2 [arg=no] # # Emit the second part of a libtool wrapper script on stdout. # For more information, see the description associated with # func_emit_wrapper(), below. func_emit_wrapper_part2 () { func_emit_wrapper_part2_arg1=no if test -n "$1" ; then func_emit_wrapper_part2_arg1=$1 fi $ECHO "\ # Usually 'no', except on cygwin/mingw when embedded into # the cwrapper. WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then # special case for '.' if test \"\$thisdir\" = \".\"; then thisdir=\`pwd\` fi # remove .libs from thisdir case \"\$thisdir\" in *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;; $objdir ) thisdir=. ;; esac fi # Try to get the absolute directory name. absdir=\`cd \"\$thisdir\" && pwd\` test -n \"\$absdir\" && thisdir=\"\$absdir\" " if test "$fast_install" = yes; then $ECHO "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" if test ! -f \"\$progdir/\$program\" || { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\ test \"X\$file\" != \"X\$progdir/\$program\"; }; then file=\"\$\$-\$program\" if test ! -d \"\$progdir\"; then $MKDIR \"\$progdir\" else $RM \"\$progdir/\$file\" fi" $ECHO "\ # relink executable if necessary if test -n \"\$relink_command\"; then if relink_command_output=\`eval \$relink_command 2>&1\`; then : else $ECHO \"\$relink_command_output\" >&2 $RM \"\$progdir/\$file\" exit 1 fi fi $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || { $RM \"\$progdir/\$program\"; $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } $RM \"\$progdir/\$file\" fi" else $ECHO "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi $ECHO "\ if test -f \"\$progdir/\$program\"; then" # Export our shlibpath_var if we have one. if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then $ECHO "\ # Add our own library path to $shlibpath_var $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var " fi # fixup the dll searchpath if we need to. if test -n "$dllsearchpath"; then $ECHO "\ # Add the dll search path components to the executable PATH PATH=$dllsearchpath:\$PATH " fi $ECHO "\ if test \"\$libtool_execute_magic\" != \"$magic\"; then # Run the actual program with our arguments. " case $host in # Backslashes separate directories on plain windows *-*-mingw | *-*-os2* | *-cegcc*) $ECHO "\ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} " ;; *) $ECHO "\ exec \"\$progdir/\$program\" \${1+\"\$@\"} " ;; esac $ECHO "\ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 exit 1 fi else # The program doesn't exist. \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 exit 1 fi fi\ " } # end: func_emit_wrapper_part2 # func_emit_wrapper [arg=no] # # Emit a libtool wrapper script on stdout. # Don't directly open a file because we may want to # incorporate the script contents within a cygwin/mingw # wrapper executable. Must ONLY be called from within # func_mode_link because it depends on a number of variables # set therein. # # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR # variable will take. If 'yes', then the emitted script # will assume that the directory in which it is stored is # the $objdir directory. This is a cygwin/mingw-specific # behavior. func_emit_wrapper () { func_emit_wrapper_arg1=no if test -n "$1" ; then func_emit_wrapper_arg1=$1 fi # split this up so that func_emit_cwrapperexe_src # can call each part independently. func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" } # func_to_host_path arg # # Convert paths to host format when used with build tools. # Intended for use with "native" mingw (where libtool itself # is running under the msys shell), or in the following cross- # build environments: # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # where wine is equipped with the `winepath' executable. # In the native mingw case, the (msys) shell automatically # converts paths for any non-msys applications it launches, # but that facility isn't available from inside the cwrapper. # Similar accommodations are necessary for $host mingw and # $build cygwin. Calling this function does no harm for other # $host/$build combinations not listed above. # # ARG is the path (on $build) that should be converted to # the proper representation for $host. The result is stored # in $func_to_host_path_result. func_to_host_path () { func_to_host_path_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' case $build in *mingw* ) # actually, msys # awkward: cmd appends spaces to result lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_path_tmp1=`( cmd //c echo "$1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_path_tmp1=`cygpath -w "$1"` func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # Unfortunately, winepath does not exit with a non-zero # error code, so we are forced to check the contents of # stdout. On the other hand, if the command is not # found, the shell will set an exit code of 127 and print # *an error message* to stdout. So we must check for both # error code of zero AND non-empty stdout, which explains # the odd construction: func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\ $SED -e "$lt_sed_naive_backslashify"` else # Allow warning below. func_to_host_path_result="" fi ;; esac if test -z "$func_to_host_path_result" ; then func_error "Could not determine host path corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback: func_to_host_path_result="$1" fi ;; esac fi } # end: func_to_host_path # func_to_host_pathlist arg # # Convert pathlists to host format when used with build tools. # See func_to_host_path(), above. This function supports the # following $build/$host combinations (but does no harm for # combinations not listed here): # $build $host # mingw (msys) mingw [e.g. native] # cygwin mingw # *nix + wine mingw # # Path separators are also converted from $build format to # $host format. If ARG begins or ends with a path separator # character, it is preserved (but converted to $host format) # on output. # # ARG is a pathlist (on $build) that should be converted to # the proper representation on $host. The result is stored # in $func_to_host_pathlist_result. func_to_host_pathlist () { func_to_host_pathlist_result="$1" if test -n "$1" ; then case $host in *mingw* ) lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' # Remove leading and trailing path separator characters from # ARG. msys behavior is inconsistent here, cygpath turns them # into '.;' and ';.', and winepath ignores them completely. func_to_host_pathlist_tmp2="$1" # Once set for this call, this variable should not be # reassigned. It is used in tha fallback case. func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e 's|^:*||' -e 's|:*$||'` case $build in *mingw* ) # Actually, msys. # Awkward: cmd appends spaces to result. lt_sed_strip_trailing_spaces="s/[ ]*\$//" func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; *cygwin* ) func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"` func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\ $SED -e "$lt_sed_naive_backslashify"` ;; * ) # unfortunately, winepath doesn't convert pathlists func_to_host_pathlist_result="" func_to_host_pathlist_oldIFS=$IFS IFS=: for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do IFS=$func_to_host_pathlist_oldIFS if test -n "$func_to_host_pathlist_f" ; then func_to_host_path "$func_to_host_pathlist_f" if test -n "$func_to_host_path_result" ; then if test -z "$func_to_host_pathlist_result" ; then func_to_host_pathlist_result="$func_to_host_path_result" else func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result" fi fi fi IFS=: done IFS=$func_to_host_pathlist_oldIFS ;; esac if test -z "$func_to_host_pathlist_result" ; then func_error "Could not determine the host path(s) corresponding to" func_error " '$1'" func_error "Continuing, but uninstalled executables may not work." # Fallback. This may break if $1 contains DOS-style drive # specifications. The fix is not to complicate the expression # below, but for the user to provide a working wine installation # with winepath so that path translation in the cross-to-mingw # case works properly. lt_replace_pathsep_nix_to_dos="s|:|;|g" func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ $SED -e "$lt_replace_pathsep_nix_to_dos"` fi # Now, add the leading and trailing path separators back case "$1" in :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" ;; esac case "$1" in *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;" ;; esac ;; esac fi } # end: func_to_host_pathlist # func_emit_cwrapperexe_src # emit the source code for a wrapper executable on stdout # Must ONLY be called from within func_mode_link because # it depends on a number of variable set therein. func_emit_cwrapperexe_src () { cat <<EOF /* $cwrappersource - temporary wrapper executable for $objdir/$outputname Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION The $output program cannot be directly executed until all the libtool libraries that it depends on are installed. This wrapper executable should never be moved out of the build directory. If it is, it will not operate correctly. Currently, it simply execs the wrapper *script* "$SHELL $output", but could eventually absorb all of the scripts functionality and exec $objdir/$outputname directly. */ EOF cat <<"EOF" #include <stdio.h> #include <stdlib.h> #ifdef _MSC_VER # include <direct.h> # include <process.h> # include <io.h> # define setmode _setmode #else # include <unistd.h> # include <stdint.h> # ifdef __CYGWIN__ # include <io.h> # define HAVE_SETENV # ifdef __STRICT_ANSI__ char *realpath (const char *, char *); int putenv (char *); int setenv (const char *, const char *, int); # endif # endif #endif #include <malloc.h> #include <stdarg.h> #include <assert.h> #include <string.h> #include <ctype.h> #include <errno.h> #include <fcntl.h> #include <sys/stat.h> #if defined(PATH_MAX) # define LT_PATHMAX PATH_MAX #elif defined(MAXPATHLEN) # define LT_PATHMAX MAXPATHLEN #else # define LT_PATHMAX 1024 #endif #ifndef S_IXOTH # define S_IXOTH 0 #endif #ifndef S_IXGRP # define S_IXGRP 0 #endif #ifdef _MSC_VER # define S_IXUSR _S_IEXEC # define stat _stat # ifndef _INTPTR_T_DEFINED # define intptr_t int # endif #endif #ifndef DIR_SEPARATOR # define DIR_SEPARATOR '/' # define PATH_SEPARATOR ':' #endif #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ defined (__OS2__) # define HAVE_DOS_BASED_FILE_SYSTEM # define FOPEN_WB "wb" # ifndef DIR_SEPARATOR_2 # define DIR_SEPARATOR_2 '\\' # endif # ifndef PATH_SEPARATOR_2 # define PATH_SEPARATOR_2 ';' # endif #endif #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) #else /* DIR_SEPARATOR_2 */ # define IS_DIR_SEPARATOR(ch) \ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) #endif /* DIR_SEPARATOR_2 */ #ifndef PATH_SEPARATOR_2 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) #else /* PATH_SEPARATOR_2 */ # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) #endif /* PATH_SEPARATOR_2 */ #ifdef __CYGWIN__ # define FOPEN_WB "wb" #endif #ifndef FOPEN_WB # define FOPEN_WB "w" #endif #ifndef _O_BINARY # define _O_BINARY 0 #endif #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) #define XFREE(stale) do { \ if (stale) { free ((void *) stale); stale = 0; } \ } while (0) #undef LTWRAPPER_DEBUGPRINTF #if defined DEBUGWRAPPER # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args static void ltwrapper_debugprintf (const char *fmt, ...) { va_list args; va_start (args, fmt); (void) vfprintf (stderr, fmt, args); va_end (args); } #else # define LTWRAPPER_DEBUGPRINTF(args) #endif const char *program_name = NULL; void *xmalloc (size_t num); char *xstrdup (const char *string); const char *base_name (const char *name); char *find_executable (const char *wrapper); char *chase_symlinks (const char *pathspec); int make_executable (const char *path); int check_executable (const char *path); char *strendzap (char *str, const char *pat); void lt_fatal (const char *message, ...); void lt_setenv (const char *name, const char *value); char *lt_extend_str (const char *orig_value, const char *add, int to_end); void lt_opt_process_env_set (const char *arg); void lt_opt_process_env_prepend (const char *arg); void lt_opt_process_env_append (const char *arg); int lt_split_name_value (const char *arg, char** name, char** value); void lt_update_exe_path (const char *name, const char *value); void lt_update_lib_path (const char *name, const char *value); static const char *script_text_part1 = EOF func_emit_wrapper_part1 yes | $SED -e 's/\([\\"]\)/\\\1/g' \ -e 's/^/ "/' -e 's/$/\\n"/' echo ";" cat <<EOF static const char *script_text_part2 = EOF func_emit_wrapper_part2 yes | $SED -e 's/\([\\"]\)/\\\1/g' \ -e 's/^/ "/' -e 's/$/\\n"/' echo ";" cat <<EOF const char * MAGIC_EXE = "$magic_exe"; const char * LIB_PATH_VARNAME = "$shlibpath_var"; EOF if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then func_to_host_pathlist "$temp_rpath" cat <<EOF const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result"; EOF else cat <<"EOF" const char * LIB_PATH_VALUE = ""; EOF fi if test -n "$dllsearchpath"; then func_to_host_pathlist "$dllsearchpath:" cat <<EOF const char * EXE_PATH_VARNAME = "PATH"; const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result"; EOF else cat <<"EOF" const char * EXE_PATH_VARNAME = ""; const char * EXE_PATH_VALUE = ""; EOF fi if test "$fast_install" = yes; then cat <<EOF const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */ EOF else cat <<EOF const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */ EOF fi cat <<"EOF" #define LTWRAPPER_OPTION_PREFIX "--lt-" #define LTWRAPPER_OPTION_PREFIX_LENGTH 5 static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH; static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX; static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script"; static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7; static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set"; /* argument is putenv-style "foo=bar", value of foo is set to bar */ static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11; static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend"; /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */ static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10; static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append"; /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */ int main (int argc, char *argv[]) { char **newargz; int newargc; char *tmp_pathspec; char *actual_cwrapper_path; char *actual_cwrapper_name; char *target_name; char *lt_argv_zero; intptr_t rval = 127; int i; program_name = (char *) xstrdup (base_name (argv[0])); LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0])); LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name)); /* very simple arg parsing; don't want to rely on getopt */ for (i = 1; i < argc; i++) { if (strcmp (argv[i], dumpscript_opt) == 0) { EOF case "$host" in *mingw* | *cygwin* ) # make stdout use "unix" line endings echo " setmode(1,_O_BINARY);" ;; esac cat <<"EOF" printf ("%s", script_text_part1); printf ("%s", script_text_part2); return 0; } } newargz = XMALLOC (char *, argc + 1); tmp_pathspec = find_executable (argv[0]); if (tmp_pathspec == NULL) lt_fatal ("Couldn't find %s", argv[0]); LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n", tmp_pathspec)); actual_cwrapper_path = chase_symlinks (tmp_pathspec); LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n", actual_cwrapper_path)); XFREE (tmp_pathspec); actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path)); strendzap (actual_cwrapper_path, actual_cwrapper_name); /* wrapper name transforms */ strendzap (actual_cwrapper_name, ".exe"); tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1); XFREE (actual_cwrapper_name); actual_cwrapper_name = tmp_pathspec; tmp_pathspec = 0; /* target_name transforms -- use actual target program name; might have lt- prefix */ target_name = xstrdup (base_name (TARGET_PROGRAM_NAME)); strendzap (target_name, ".exe"); tmp_pathspec = lt_extend_str (target_name, ".exe", 1); XFREE (target_name); target_name = tmp_pathspec; tmp_pathspec = 0; LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n", target_name)); EOF cat <<EOF newargz[0] = XMALLOC (char, (strlen (actual_cwrapper_path) + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1)); strcpy (newargz[0], actual_cwrapper_path); strcat (newargz[0], "$objdir"); strcat (newargz[0], "/"); EOF cat <<"EOF" /* stop here, and copy so we don't have to do this twice */ tmp_pathspec = xstrdup (newargz[0]); /* do NOT want the lt- prefix here, so use actual_cwrapper_name */ strcat (newargz[0], actual_cwrapper_name); /* DO want the lt- prefix here if it exists, so use target_name */ lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1); XFREE (tmp_pathspec); tmp_pathspec = NULL; EOF case $host_os in mingw*) cat <<"EOF" { char* p; while ((p = strchr (newargz[0], '\\')) != NULL) { *p = '/'; } while ((p = strchr (lt_argv_zero, '\\')) != NULL) { *p = '/'; } } EOF ;; esac cat <<"EOF" XFREE (target_name); XFREE (actual_cwrapper_path); XFREE (actual_cwrapper_name); lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */ lt_setenv ("DUALCASE", "1"); /* for MSK sh */ lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); newargc=0; for (i = 1; i < argc; i++) { if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0) { if (argv[i][env_set_opt_len] == '=') { const char *p = argv[i] + env_set_opt_len + 1; lt_opt_process_env_set (p); } else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc) { lt_opt_process_env_set (argv[++i]); /* don't copy */ } else lt_fatal ("%s missing required argument", env_set_opt); continue; } if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0) { if (argv[i][env_prepend_opt_len] == '=') { const char *p = argv[i] + env_prepend_opt_len + 1; lt_opt_process_env_prepend (p); } else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc) { lt_opt_process_env_prepend (argv[++i]); /* don't copy */ } else lt_fatal ("%s missing required argument", env_prepend_opt); continue; } if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0) { if (argv[i][env_append_opt_len] == '=') { const char *p = argv[i] + env_append_opt_len + 1; lt_opt_process_env_append (p); } else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc) { lt_opt_process_env_append (argv[++i]); /* don't copy */ } else lt_fatal ("%s missing required argument", env_append_opt); continue; } if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0) { /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX namespace, but it is not one of the ones we know about and have already dealt with, above (inluding dump-script), then report an error. Otherwise, targets might begin to believe they are allowed to use options in the LTWRAPPER_OPTION_PREFIX namespace. The first time any user complains about this, we'll need to make LTWRAPPER_OPTION_PREFIX a configure-time option or a configure.ac-settable value. */ lt_fatal ("Unrecognized option in %s namespace: '%s'", ltwrapper_option_prefix, argv[i]); } /* otherwise ... */ newargz[++newargc] = xstrdup (argv[i]); } newargz[++newargc] = NULL; LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>"))); for (i = 0; i < newargc; i++) { LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>"))); } EOF case $host_os in mingw*) cat <<"EOF" /* execv doesn't actually work on mingw as expected on unix */ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz); if (rval == -1) { /* failed to start process */ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno)); return 127; } return rval; EOF ;; *) cat <<"EOF" execv (lt_argv_zero, newargz); return rval; /* =127, but avoids unused variable warning */ EOF ;; esac cat <<"EOF" } void * xmalloc (size_t num) { void *p = (void *) malloc (num); if (!p) lt_fatal ("Memory exhausted"); return p; } char * xstrdup (const char *string) { return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL; } const char * base_name (const char *name) { const char *base; #if defined (HAVE_DOS_BASED_FILE_SYSTEM) /* Skip over the disk name in MSDOS pathnames. */ if (isalpha ((unsigned char) name[0]) && name[1] == ':') name += 2; #endif for (base = name; *name; name++) if (IS_DIR_SEPARATOR (*name)) base = name + 1; return base; } int check_executable (const char *path) { struct stat st; LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if ((stat (path, &st) >= 0) && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) return 1; else return 0; } int make_executable (const char *path) { int rval = 0; struct stat st; LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!")); if ((!path) || (!*path)) return 0; if (stat (path, &st) >= 0) { rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); } return rval; } /* Searches for the full path of the wrapper. Returns newly allocated full path name if found, NULL otherwise Does not chase symlinks, even on platforms that support them. */ char * find_executable (const char *wrapper) { int has_slash = 0; const char *p; const char *p_next; /* static buffer for getcwd */ char tmp[LT_PATHMAX + 1]; int tmp_len; char *concat_name; LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); if ((wrapper == NULL) || (*wrapper == '\0')) return NULL; /* Absolute path? */ #if defined (HAVE_DOS_BASED_FILE_SYSTEM) if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } else { #endif if (IS_DIR_SEPARATOR (wrapper[0])) { concat_name = xstrdup (wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } #if defined (HAVE_DOS_BASED_FILE_SYSTEM) } #endif for (p = wrapper; *p; p++) if (*p == '/') { has_slash = 1; break; } if (!has_slash) { /* no slashes; search PATH */ const char *path = getenv ("PATH"); if (path != NULL) { for (p = path; *p; p = p_next) { const char *q; size_t p_len; for (q = p; *q; q++) if (IS_PATH_SEPARATOR (*q)) break; p_len = q - p; p_next = (*q == '\0' ? q : q + 1); if (p_len == 0) { /* empty path: current directory */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); } else { concat_name = XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, p, p_len); concat_name[p_len] = '/'; strcpy (concat_name + p_len + 1, wrapper); } if (check_executable (concat_name)) return concat_name; XFREE (concat_name); } } /* not found in PATH; assume curdir */ } /* Relative path | not found in path: prepend cwd */ if (getcwd (tmp, LT_PATHMAX) == NULL) lt_fatal ("getcwd failed"); tmp_len = strlen (tmp); concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); memcpy (concat_name, tmp, tmp_len); concat_name[tmp_len] = '/'; strcpy (concat_name + tmp_len + 1, wrapper); if (check_executable (concat_name)) return concat_name; XFREE (concat_name); return NULL; } char * chase_symlinks (const char *pathspec) { #ifndef S_ISLNK return xstrdup (pathspec); #else char buf[LT_PATHMAX]; struct stat s; char *tmp_pathspec = xstrdup (pathspec); char *p; int has_symlinks = 0; while (strlen (tmp_pathspec) && !has_symlinks) { LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n", tmp_pathspec)); if (lstat (tmp_pathspec, &s) == 0) { if (S_ISLNK (s.st_mode) != 0) { has_symlinks = 1; break; } /* search backwards for last DIR_SEPARATOR */ p = tmp_pathspec + strlen (tmp_pathspec) - 1; while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) p--; if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) { /* no more DIR_SEPARATORS left */ break; } *p = '\0'; } else { char *errstr = strerror (errno); lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); } } XFREE (tmp_pathspec); if (!has_symlinks) { return xstrdup (pathspec); } tmp_pathspec = realpath (pathspec, buf); if (tmp_pathspec == 0) { lt_fatal ("Could not follow symlinks for %s", pathspec); } return xstrdup (tmp_pathspec); #endif } char * strendzap (char *str, const char *pat) { size_t len, patlen; assert (str != NULL); assert (pat != NULL); len = strlen (str); patlen = strlen (pat); if (patlen <= len) { str += len - patlen; if (strcmp (str, pat) == 0) *str = '\0'; } return str; } static void lt_error_core (int exit_status, const char *mode, const char *message, va_list ap) { fprintf (stderr, "%s: %s: ", program_name, mode); vfprintf (stderr, message, ap); fprintf (stderr, ".\n"); if (exit_status >= 0) exit (exit_status); } void lt_fatal (const char *message, ...) { va_list ap; va_start (ap, message); lt_error_core (EXIT_FAILURE, "FATAL", message, ap); va_end (ap); } void lt_setenv (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", (name ? name : "<NULL>"), (value ? value : "<NULL>"))); { #ifdef HAVE_SETENV /* always make a copy, for consistency with !HAVE_SETENV */ char *str = xstrdup (value); setenv (name, str, 1); #else int len = strlen (name) + 1 + strlen (value) + 1; char *str = XMALLOC (char, len); sprintf (str, "%s=%s", name, value); if (putenv (str) != EXIT_SUCCESS) { XFREE (str); } #endif } } char * lt_extend_str (const char *orig_value, const char *add, int to_end) { char *new_value; if (orig_value && *orig_value) { int orig_value_len = strlen (orig_value); int add_len = strlen (add); new_value = XMALLOC (char, add_len + orig_value_len + 1); if (to_end) { strcpy (new_value, orig_value); strcpy (new_value + orig_value_len, add); } else { strcpy (new_value, add); strcpy (new_value + add_len, orig_value); } } else { new_value = xstrdup (add); } return new_value; } int lt_split_name_value (const char *arg, char** name, char** value) { const char *p; int len; if (!arg || !*arg) return 1; p = strchr (arg, (int)'='); if (!p) return 1; *value = xstrdup (++p); len = strlen (arg) - strlen (*value); *name = XMALLOC (char, len); strncpy (*name, arg, len-1); (*name)[len - 1] = '\0'; return 0; } void lt_opt_process_env_set (const char *arg) { char *name = NULL; char *value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); } lt_setenv (name, value); XFREE (name); XFREE (value); } void lt_opt_process_env_prepend (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); } new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_opt_process_env_append (const char *arg) { char *name = NULL; char *value = NULL; char *new_value = NULL; if (lt_split_name_value (arg, &name, &value) != 0) { XFREE (name); XFREE (value); lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); } new_value = lt_extend_str (getenv (name), value, 1); lt_setenv (name, new_value); XFREE (new_value); XFREE (name); XFREE (value); } void lt_update_exe_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n", (name ? name : "<NULL>"), (value ? value : "<NULL>"))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); /* some systems can't cope with a ':'-terminated path #' */ int len = strlen (new_value); while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1])) { new_value[len-1] = '\0'; } lt_setenv (name, new_value); XFREE (new_value); } } void lt_update_lib_path (const char *name, const char *value) { LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n", (name ? name : "<NULL>"), (value ? value : "<NULL>"))); if (name && *name && value && *value) { char *new_value = lt_extend_str (getenv (name), value, 0); lt_setenv (name, new_value); XFREE (new_value); } } EOF } # end: func_emit_cwrapperexe_src # func_mode_link arg... func_mode_link () { $opt_debug case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # which system we are compiling for in order to pass an extra # flag for every libtool invocation. # allow_undefined=no # FIXME: Unfortunately, there are problems with the above when trying # to make a dll which has undefined symbols, in which case not # even a static library is built. For now, we need to specify # -no-undefined on the libtool link line when we can be certain # that all symbols are satisfied, otherwise we get a static library. allow_undefined=yes ;; *) allow_undefined=yes ;; esac libtool_args=$nonopt base_compile="$nonopt $@" compile_command=$nonopt finalize_command=$nonopt compile_rpath= finalize_rpath= compile_shlibpath= finalize_shlibpath= convenience= old_convenience= deplibs= old_deplibs= compiler_flags= linker_flags= dllsearchpath= lib_search_path=`pwd` inst_prefix_dir= new_inherited_linker_flags= avoid_version=no dlfiles= dlprefiles= dlself=no export_dynamic=no export_symbols= export_symbols_regex= generated= libobjs= ltlibs= module=no no_install=no objs= non_pic_objects= precious_files_regex= prefer_static_libs=no preload=no prev= prevarg= release= rpath= xrpath= perm_rpath= temp_rpath= thread_safe=no vinfo= vinfo_number=no weak_libs= single_module="${wl}-single_module" func_infer_tag $base_compile # We need to know -static, to get the right output filenames. for arg do case $arg in -shared) test "$build_libtool_libs" != yes && \ func_fatal_configuration "can not build a shared library" build_old_libs=no break ;; -all-static | -static | -static-libtool-libs) case $arg in -all-static) if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then func_warning "complete static linking is impossible in this configuration" fi if test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; -static) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=built ;; -static-libtool-libs) if test -z "$pic_flag" && test -n "$link_static_flag"; then dlopen_self=$dlopen_self_static fi prefer_static_libs=yes ;; esac build_libtool_libs=no build_old_libs=yes break ;; esac done # See if our shared archives depend on static archives. test -n "$old_archive_from_new_cmds" && build_old_libs=yes # Go through the arguments, transforming them on the way. while test "$#" -gt 0; do arg="$1" shift func_quote_for_eval "$arg" qarg=$func_quote_for_eval_unquoted_result func_append libtool_args " $func_quote_for_eval_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then case $prev in output) func_append compile_command " @OUTPUT@" func_append finalize_command " @OUTPUT@" ;; esac case $prev in dlfiles|dlprefiles) if test "$preload" = no; then # Add the symbol object into the linking commands. func_append compile_command " @SYMFILE@" func_append finalize_command " @SYMFILE@" preload=yes fi case $arg in *.la | *.lo) ;; # We handle these cases below. force) if test "$dlself" = no; then dlself=needless export_dynamic=yes fi prev= continue ;; self) if test "$prev" = dlprefiles; then dlself=yes elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then dlself=yes else dlself=needless export_dynamic=yes fi prev= continue ;; *) if test "$prev" = dlfiles; then dlfiles="$dlfiles $arg" else dlprefiles="$dlprefiles $arg" fi prev= continue ;; esac ;; expsyms) export_symbols="$arg" test -f "$arg" \ || func_fatal_error "symbol file \`$arg' does not exist" prev= continue ;; expsyms_regex) export_symbols_regex="$arg" prev= continue ;; framework) case $host in *-*-darwin*) case "$deplibs " in *" $qarg.ltframework "*) ;; *) deplibs="$deplibs $qarg.ltframework" # this is fixed later ;; esac ;; esac prev= continue ;; inst_prefix) inst_prefix_dir="$arg" prev= continue ;; objectlist) if test -f "$arg"; then save_arg=$arg moreargs= for fil in `cat "$save_arg"` do # moreargs="$moreargs $fil" arg=$fil # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi done else func_fatal_error "link input file \`$arg' does not exist" fi arg=$save_arg prev= continue ;; precious_regex) precious_files_regex="$arg" prev= continue ;; release) release="-$arg" prev= continue ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac if test "$prev" = rpath; then case "$rpath " in *" $arg "*) ;; *) rpath="$rpath $arg" ;; esac else case "$xrpath " in *" $arg "*) ;; *) xrpath="$xrpath $arg" ;; esac fi prev= continue ;; shrext) shrext_cmds="$arg" prev= continue ;; weak) weak_libs="$weak_libs $arg" prev= continue ;; xcclinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xcompiler) compiler_flags="$compiler_flags $qarg" prev= func_append compile_command " $qarg" func_append finalize_command " $qarg" continue ;; xlinker) linker_flags="$linker_flags $qarg" compiler_flags="$compiler_flags $wl$qarg" prev= func_append compile_command " $wl$qarg" func_append finalize_command " $wl$qarg" continue ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac fi # test -n "$prev" prevarg="$arg" case $arg in -all-static) if test -n "$link_static_flag"; then # See comment for -static flag below, for more details. func_append compile_command " $link_static_flag" func_append finalize_command " $link_static_flag" fi continue ;; -allow-undefined) # FIXME: remove this flag sometime in the future. func_fatal_error "\`-allow-undefined' must not be used because it is the default" ;; -avoid-version) avoid_version=yes continue ;; -dlopen) prev=dlfiles continue ;; -dlpreopen) prev=dlprefiles continue ;; -export-dynamic) export_dynamic=yes continue ;; -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then func_fatal_error "more than one -exported-symbols argument is not allowed" fi if test "X$arg" = "X-export-symbols"; then prev=expsyms else prev=expsyms_regex fi continue ;; -framework) prev=framework continue ;; -inst-prefix-dir) prev=inst_prefix continue ;; # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in no/*-*-irix* | /*-*-irix*) func_append compile_command " $arg" func_append finalize_command " $arg" ;; esac continue ;; -L*) func_stripname '-L' '' "$arg" dir=$func_stripname_result if test -z "$dir"; then if test "$#" -gt 0; then func_fatal_error "require no space between \`-L' and \`$1'" else func_fatal_error "need path for \`-L' option" fi fi # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) absdir=`cd "$dir" && pwd` test -z "$absdir" && \ func_fatal_error "cannot determine absolute directory name of \`$dir'" dir="$absdir" ;; esac case "$deplibs " in *" -L$dir "*) ;; *) deplibs="$deplibs -L$dir" lib_search_path="$lib_search_path $dir" ;; esac case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$dir:"*) ;; ::) dllsearchpath=$dir;; *) dllsearchpath="$dllsearchpath:$dir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac continue ;; -l*) if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) # These systems don't actually have a C or math library (as such) continue ;; *-*-os2*) # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C and math libraries are in the System framework deplibs="$deplibs System.ltframework" continue ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype test "X$arg" = "X-lc" && continue ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work test "X$arg" = "X-lc" && continue ;; esac elif test "X$arg" = "X-lc_r"; then case $host in *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; esac fi deplibs="$deplibs $arg" continue ;; -module) module=yes continue ;; # Tru64 UNIX uses -model [arg] to determine the layout of C++ # classes, name mangling, and exception handling. # Darwin uses the -arch flag to determine output architecture. -model|-arch|-isysroot) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" prev=xcompiler continue ;; -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) compiler_flags="$compiler_flags $arg" func_append compile_command " $arg" func_append finalize_command " $arg" case "$new_inherited_linker_flags " in *" $arg "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; esac continue ;; -multi_module) single_module="${wl}-multi_module" continue ;; -no-fast-install) fast_install=no continue ;; -no-install) case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) # The PATH hackery in wrapper scripts is required on Windows # and Darwin in order for the loader to find any dlls it needs. func_warning "\`-no-install' is ignored for $host" func_warning "assuming \`-no-fast-install' instead" fast_install=no ;; *) no_install=yes ;; esac continue ;; -no-undefined) allow_undefined=no continue ;; -objectlist) prev=objectlist continue ;; -o) prev=output ;; -precious-files-regex) prev=precious_regex continue ;; -release) prev=release continue ;; -rpath) prev=rpath continue ;; -R) prev=xrpath continue ;; -R*) func_stripname '-R' '' "$arg" dir=$func_stripname_result # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) ;; *) func_fatal_error "only absolute run-paths are allowed" ;; esac case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac continue ;; -shared) # The effects of -shared are defined in a previous loop. continue ;; -shrext) prev=shrext continue ;; -static | -static-libtool-libs) # The effects of -static are defined in a previous loop. # We used to do the same as -all-static on platforms that # didn't have a PIC flag, but the assumption that the effects # would be equivalent was wrong. It would break on at least # Digital Unix and AIX. continue ;; -thread-safe) thread_safe=yes continue ;; -version-info) prev=vinfo continue ;; -version-number) prev=vinfo vinfo_number=yes continue ;; -weak) prev=weak continue ;; -Wc,*) func_stripname '-Wc,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Wl,*) func_stripname '-Wl,' '' "$arg" args=$func_stripname_result arg= save_ifs="$IFS"; IFS=',' for flag in $args; do IFS="$save_ifs" func_quote_for_eval "$flag" arg="$arg $wl$func_quote_for_eval_result" compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" linker_flags="$linker_flags $func_quote_for_eval_result" done IFS="$save_ifs" func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; -Xcompiler) prev=xcompiler continue ;; -Xlinker) prev=xlinker continue ;; -XCClinker) prev=xcclinker continue ;; # -msg_* for osf cc -msg_*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; # -64, -mips[0-9] enable 64-bit mode on the SGI compiler # -r[0-9][0-9]* specifies the processor on the SGI compiler # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler # +DA*, +DD* enable 64-bit mode on the HP compiler # -q* pass through compiler args for the IBM compiler # -m*, -t[45]*, -txscale* pass through architecture-specific # compiler args for GCC # -F/path gives path to uninstalled frameworks, gcc on darwin # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC # @file GCC response files -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" func_append compile_command " $arg" func_append finalize_command " $arg" compiler_flags="$compiler_flags $arg" continue ;; # Some other compiler flag. -* | +*) func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; *.$objext) # A standard object. objs="$objs $arg" ;; *.lo) # A libtool-controlled object. # Check to see that this really is a libtool object. if func_lalib_unsafe_p "$arg"; then pic_object= non_pic_object= # Read the .lo file func_source "$arg" if test -z "$pic_object" || test -z "$non_pic_object" || test "$pic_object" = none && test "$non_pic_object" = none; then func_fatal_error "cannot find name of object for \`$arg'" fi # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" if test "$pic_object" != none; then # Prepend the subdirectory the object is found in. pic_object="$xdir$pic_object" if test "$prev" = dlfiles; then if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then dlfiles="$dlfiles $pic_object" prev= continue else # If libtool objects are unsupported, then we need to preload. prev=dlprefiles fi fi # CHECK ME: I think I busted this. -Ossama if test "$prev" = dlprefiles; then # Preload the old-style object. dlprefiles="$dlprefiles $pic_object" prev= fi # A PIC object. func_append libobjs " $pic_object" arg="$pic_object" fi # Non-PIC object. if test "$non_pic_object" != none; then # Prepend the subdirectory the object is found in. non_pic_object="$xdir$non_pic_object" # A standard non-PIC object func_append non_pic_objects " $non_pic_object" if test -z "$pic_object" || test "$pic_object" = none ; then arg="$non_pic_object" fi else # If the PIC object exists, use it instead. # $xdir was prepended to $pic_object above. non_pic_object="$pic_object" func_append non_pic_objects " $non_pic_object" fi else # Only an error if not doing a dry-run. if $opt_dry_run; then # Extract subdirectory from the argument. func_dirname "$arg" "/" "" xdir="$func_dirname_result" func_lo2o "$arg" pic_object=$xdir$objdir/$func_lo2o_result non_pic_object=$xdir$func_lo2o_result func_append libobjs " $pic_object" func_append non_pic_objects " $non_pic_object" else func_fatal_error "\`$arg' is not a valid libtool object" fi fi ;; *.$libext) # An archive. deplibs="$deplibs $arg" old_deplibs="$old_deplibs $arg" continue ;; *.la) # A libtool-controlled library. if test "$prev" = dlfiles; then # This library was specified with -dlopen. dlfiles="$dlfiles $arg" prev= elif test "$prev" = dlprefiles; then # The library was specified with -dlpreopen. dlprefiles="$dlprefiles $arg" prev= else deplibs="$deplibs $arg" fi continue ;; # Some other compiler argument. *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. func_quote_for_eval "$arg" arg="$func_quote_for_eval_result" ;; esac # arg # Now actually substitute the argument into the commands. if test -n "$arg"; then func_append compile_command " $arg" func_append finalize_command " $arg" fi done # argument parsing loop test -n "$prev" && \ func_fatal_help "the \`$prevarg' option requires an argument" if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then eval arg=\"$export_dynamic_flag_spec\" func_append compile_command " $arg" func_append finalize_command " $arg" fi oldlibs= # calculate the name of the file, without its directory func_basename "$output" outputname="$func_basename_result" libobjs_save="$libobjs" if test -n "$shlibpath_var"; then # get the directories listed in $shlibpath_var eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` else shlib_search_path= fi eval sys_lib_search_path=\"$sys_lib_search_path_spec\" eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" func_dirname "$output" "/" "" output_objdir="$func_dirname_result$objdir" # Create the object directory. func_mkdir_p "$output_objdir" # Determine the type of output case $output in "") func_fatal_help "you must specify an output file" ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; *.la) linkmode=lib ;; *) linkmode=prog ;; # Anything else should be a program. esac specialdeplibs= libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) for deplib in $deplibs; do if $opt_duplicate_deps ; then case "$libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi libs="$libs $deplib" done if test "$linkmode" = lib; then libs="$predeps $libs $compiler_lib_search_path $postdeps" # Compute libraries that are listed more than once in $predeps # $postdeps and mark them as special (i.e., whose duplicates are # not to be eliminated). pre_post_deps= if $opt_duplicate_compiler_generated_deps; then for pre_post_dep in $predeps $postdeps; do case "$pre_post_deps " in *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; esac pre_post_deps="$pre_post_deps $pre_post_dep" done fi pre_post_deps= fi deplibs= newdependency_libs= newlib_search_path= need_relink=no # whether we're linking any uninstalled libtool libraries notinst_deplibs= # not-installed libtool libraries notinst_path= # paths that contain not-installed libtool libraries case $linkmode in lib) passes="conv dlpreopen link" for file in $dlfiles $dlprefiles; do case $file in *.la) ;; *) func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file" ;; esac done ;; prog) compile_deplibs= finalize_deplibs= alldeplibs=no newdlfiles= newdlprefiles= passes="conv scan dlopen dlpreopen link" ;; *) passes="conv" ;; esac for pass in $passes; do # The preopen pass in lib mode reverses $deplibs; put it back here # so that -L comes before libs that need it for instance... if test "$linkmode,$pass" = "lib,link"; then ## FIXME: Find the place where the list is rebuilt in the wrong ## order, and fix it there properly tmp_deplibs= for deplib in $deplibs; do tmp_deplibs="$deplib $tmp_deplibs" done deplibs="$tmp_deplibs" fi if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan"; then libs="$deplibs" deplibs= fi if test "$linkmode" = prog; then case $pass in dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi if test "$linkmode,$pass" = "lib,dlpreopen"; then # Collect and forward deplibs of preopened libtool libs for lib in $dlprefiles; do # Ignore non-libtool-libs dependency_libs= case $lib in *.la) func_source "$lib" ;; esac # Collect preopened libtool deplibs, except any this library # has declared as weak libs for deplib in $dependency_libs; do deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"` case " $weak_libs " in *" $deplib_base "*) ;; *) deplibs="$deplibs $deplib" ;; esac done done libs="$dlprefiles" fi if test "$pass" = dlopen; then # Collect dlpreopened libraries save_deplibs="$deplibs" deplibs= fi for deplib in $libs; do lib= found=no case $deplib in -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else compiler_flags="$compiler_flags $deplib" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -l*) if test "$linkmode" != lib && test "$linkmode" != prog; then func_warning "\`-l' is ignored for archives/objects" continue fi func_stripname '-l' '' "$deplib" name=$func_stripname_result if test "$linkmode" = lib; then searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" else searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" fi for searchdir in $searchdirs; do for search_ext in .la $std_shrext .so .a; do # Search the libtool library lib="$searchdir/lib${name}${search_ext}" if test -f "$lib"; then if test "$search_ext" = ".la"; then found=yes else found=no fi break 2 fi done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue else # deplib is a libtool library # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, # We need to do some special things here, and not later. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $deplib "*) if func_lalib_p "$lib"; then library_names= old_library= func_source "$lib" for l in $old_library $library_names; do ll="$l" done if test "X$ll" = "X$old_library" ; then # only static version available found=no func_dirname "$lib" "" "." ladir="$func_dirname_result" lib=$ladir/$old_library if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue fi fi ;; *) ;; esac fi fi ;; # -l *.ltframework) if test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" if test "$linkmode" = lib ; then case "$new_inherited_linker_flags " in *" $deplib "*) ;; * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; esac fi fi continue ;; -L*) case $linkmode in lib) deplibs="$deplib $deplibs" test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; prog) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi if test "$pass" = scan; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; *) func_warning "\`-L' is ignored for archives/objects" ;; esac # linkmode continue ;; # -L -R*) if test "$pass" = link; then func_stripname '-R' '' "$deplib" dir=$func_stripname_result # Make sure the xrpath contains only unique directories. case "$xrpath " in *" $dir "*) ;; *) xrpath="$xrpath $dir" ;; esac fi deplibs="$deplib $deplibs" continue ;; *.la) lib="$deplib" ;; *.$libext) if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) # Linking convenience modules into shared libraries is allowed, # but linking other static libraries is non-portable. case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) valid_a_lib=no case $deplibs_check_method in match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ | $EGREP "$match_pattern_regex" > /dev/null; then valid_a_lib=yes fi ;; pass_all) valid_a_lib=yes ;; esac if test "$valid_a_lib" != yes; then $ECHO $ECHO "*** Warning: Trying to link with static lib archive $deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because the file extensions .$libext of this argument makes me believe" $ECHO "*** that it is just a static archive that I should not use here." else $ECHO $ECHO "*** Warning: Linking the shared library $output against the" $ECHO "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi ;; esac continue ;; prog) if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi continue ;; esac # linkmode ;; # *.$libext *.lo | *.$objext) if test "$pass" = conv; then deplibs="$deplib $deplibs" elif test "$linkmode" = prog; then if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlopen support or we're linking statically, # we need to preload. newdlprefiles="$newdlprefiles $deplib" compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" else newdlfiles="$newdlfiles $deplib" fi fi continue ;; %DEPLIBS%) alldeplibs=yes continue ;; esac # case $deplib if test "$found" = yes || test -f "$lib"; then : else func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'" fi # Check to see that this really is a libtool archive. func_lalib_unsafe_p "$lib" \ || func_fatal_error "\`$lib' is not a valid libtool archive" func_dirname "$lib" "" "." ladir="$func_dirname_result" dlname= dlopen= dlpreopen= libdir= library_names= old_library= inherited_linker_flags= # If the library was installed with an old release of libtool, # it will not redefine variables installed, or shouldnotlink installed=yes shouldnotlink=no avoidtemprpath= # Read the .la file func_source "$lib" # Convert "-framework foo" to "foo.ltframework" if test -n "$inherited_linker_flags"; then tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'` for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do case " $new_inherited_linker_flags " in *" $tmp_inherited_linker_flag "*) ;; *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; esac done fi dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" old_convenience="$old_convenience $ladir/$objdir/$old_library" elif test "$linkmode" != prog && test "$linkmode" != lib; then func_fatal_error "\`$lib' is not a convenience library" fi tmp_libs= for deplib in $dependency_libs; do deplibs="$deplib $deplibs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done continue fi # $pass = conv # Get the name of the library we link against. linklib= for l in $old_library $library_names; do linklib="$l" done if test -z "$linklib"; then func_fatal_error "cannot find name of link library for \`$lib'" fi # This library was specified with -dlopen. if test "$pass" = dlopen; then if test -z "$libdir"; then func_fatal_error "cannot -dlopen a convenience library: \`$lib'" fi if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking # statically, we need to preload. We also need to preload any # dependent libraries so libltdl's deplib preloader doesn't # bomb out in the load deplibs phase. dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi continue fi # $pass = dlopen # We need an absolute path. case $ladir in [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; *) abs_ladir=`cd "$ladir" && pwd` if test -z "$abs_ladir"; then func_warning "cannot determine absolute directory name of \`$ladir'" func_warning "passing it literally to the linker, although it might fail" abs_ladir="$ladir" fi ;; esac func_basename "$lib" laname="$func_basename_result" # Find the relevant object directory and library name. if test "X$installed" = Xyes; then if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then func_warning "library \`$lib' was moved." dir="$ladir" absdir="$abs_ladir" libdir="$abs_ladir" else dir="$libdir" absdir="$libdir" fi test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then dir="$ladir" absdir="$abs_ladir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" else dir="$ladir/$objdir" absdir="$abs_ladir/$objdir" # Remove this search path later notinst_path="$notinst_path $abs_ladir" fi fi # $installed = yes func_stripname 'lib' '.la' "$laname" name=$func_stripname_result # This library was specified with -dlpreopen. if test "$pass" = dlpreopen; then if test -z "$libdir" && test "$linkmode" = prog; then func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). if test -n "$old_library"; then newdlprefiles="$newdlprefiles $dir/$old_library" # Keep a list of preopened convenience libraries to check # that they are being used correctly in the link pass. test -z "$libdir" && \ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" # Otherwise, use the dlname, so that lt_dlopen finds it. elif test -n "$dlname"; then newdlprefiles="$newdlprefiles $dir/$dlname" else newdlprefiles="$newdlprefiles $dir/$linklib" fi fi # $pass = dlpreopen if test -z "$libdir"; then # Link the convenience library if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" linkalldeplibs=no if test "$link_all_deplibs" != no || test -z "$library_names" || test "$build_libtool_libs" = no; then linkalldeplibs=yes fi tmp_libs= for deplib in $dependency_libs; do case $deplib in -L*) func_stripname '-L' '' "$deplib" newlib_search_path="$newlib_search_path $func_stripname_result" ;; esac # Need to link against all dependency_libs? if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths # or/and link against static libraries newdependency_libs="$deplib $newdependency_libs" fi if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done # for deplib continue fi # $linkmode = prog... if test "$linkmode,$pass" = "prog,link"; then if test -n "$library_names" && { { test "$prefer_static_libs" = no || test "$prefer_static_libs,$installed" = "built,yes"; } || test -z "$old_library"; }; then # We need to hardcode the library path if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then # Make sure the rpath contains only unique directories. case "$temp_rpath:" in *"$absdir:"*) ;; *) temp_rpath="$temp_rpath$absdir:" ;; esac fi # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && { test "$deplibs_check_method" = pass_all || { test "$build_libtool_libs" = yes && test -n "$library_names"; }; }; then # We only need to search for static libraries continue fi fi link_static=no # Whether the deplib will be linked statically use_static_libs=$prefer_static_libs if test "$use_static_libs" = built && test "$installed" = yes; then use_static_libs=no fi if test -n "$library_names" && { test "$use_static_libs" = no || test -z "$old_library"; }; then case $host in *cygwin* | *mingw* | *cegcc*) # No point in relinking DLLs because paths are not encoded notinst_deplibs="$notinst_deplibs $lib" need_relink=no ;; *) if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi ;; esac # This is a shared library # Warn about portability, can't link against -module's on some # systems (darwin). Don't bleat about dlopened modules though! dlopenmodule="" for dlpremoduletest in $dlprefiles; do if test "X$dlpremoduletest" = "X$lib"; then dlopenmodule="$dlpremoduletest" break fi done if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then $ECHO if test "$linkmode" = prog; then $ECHO "*** Warning: Linking the executable $output against the loadable module" else $ECHO "*** Warning: Linking the shared library $output against the loadable module" fi $ECHO "*** $linklib is not portable!" fi if test "$linkmode" = lib && test "$hardcode_into_libs" = yes; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. case " $sys_lib_dlsearch_path " in *" $absdir "*) ;; *) case "$compile_rpath " in *" $absdir "*) ;; *) compile_rpath="$compile_rpath $absdir" esac ;; esac case " $sys_lib_dlsearch_path " in *" $libdir "*) ;; *) case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" esac ;; esac fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname set dummy $library_names shift realname="$1" shift libname=`eval "\\$ECHO \"$libname_spec\""` # use dlname if we got it. it's perfectly good, no? if test -n "$dlname"; then soname="$dlname" elif test -n "$soname_spec"; then # bleh windows case $host in *cygwin* | mingw* | *cegcc*) func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; esac eval soname=\"$soname_spec\" else soname="$realname" fi # Make a new name for the extract_expsyms_cmds to use soroot="$soname" func_basename "$soroot" soname="$func_basename_result" func_stripname 'lib' '.dll' "$soname" newlib=libimp-$func_stripname_result.a # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else func_verbose "extracting exported symbol list from \`$soname'" func_execute_cmds "$extract_expsyms_cmds" 'exit $?' fi # Create $newlib if test -f "$output_objdir/$newlib"; then :; else func_verbose "generating import library for \`$soname'" func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' fi # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib fi # test -n "$old_archive_from_expsyms_cmds" if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= lib_linked=yes case $hardcode_action in immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" case $host in *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;; *-*-sysv4*uw2*) add_dir="-L$dir" ;; *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ *-*-unixware7*) add_dir="-L$dir" ;; *-*-darwin* ) # if the lib is a (non-dlopened) module then we can not # link against it, someone is ignoring the earlier warnings if /usr/bin/file -L $add 2> /dev/null | $GREP ": [^:]* bundle" >/dev/null ; then if test "X$dlopenmodule" != "X$lib"; then $ECHO "*** Warning: lib $linklib is a module, not a shared library" if test -z "$old_library" ; then $ECHO $ECHO "*** And there doesn't seem to be a static archive available" $ECHO "*** The link will probably fail, sorry" else add="$dir/$old_library" fi elif test -n "$old_library"; then add="$dir/$old_library" fi fi esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; esac add_dir="-L$dir" add="-l$name" elif test "$hardcode_shlibpath_var" = no; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; relink) if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" add="-l$name" else lib_linked=no fi ;; *) lib_linked=no ;; esac if test "$lib_linked" != yes; then func_fatal_configuration "unsupported hardcode properties" fi if test -n "$add_shlibpath"; then case :$compile_shlibpath: in *":$add_shlibpath:"*) ;; *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" if test "$hardcode_direct" != yes && test "$hardcode_minus_L" != yes && test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac fi fi fi if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= # Finalize command for both is simple: just hardcode it. if test "$hardcode_direct" = yes && test "$hardcode_direct_absolute" = no; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in *":$libdir:"*) ;; *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" elif test "$hardcode_automatic" = yes; then if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then add="$inst_prefix_dir$libdir/$linklib" else add="$libdir/$linklib" fi else # We cannot seem to hardcode it, guess we'll fake it. add_dir="-L$libdir" # Try looking first in the location we're being installed to. if test -n "$inst_prefix_dir"; then case $libdir in [\\/]*) add_dir="$add_dir -L$inst_prefix_dir$libdir" ;; esac fi add="-l$name" fi if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else test -n "$add_dir" && deplibs="$add_dir $deplibs" test -n "$add" && deplibs="$add $deplibs" fi fi elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. if test "$hardcode_direct" != unsupported; then test -n "$old_library" && linklib="$old_library" compile_deplibs="$dir/$linklib $compile_deplibs" finalize_deplibs="$dir/$linklib $finalize_deplibs" else compile_deplibs="-l$name -L$dir $compile_deplibs" finalize_deplibs="-l$name -L$dir $finalize_deplibs" fi elif test "$build_libtool_libs" = yes; then # Not a shared library if test "$deplibs_check_method" != pass_all; then # We're trying link a shared library against a static one # but the system doesn't support it. # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. $ECHO $ECHO "*** Warning: This system can not link to static lib archive $lib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then $ECHO "*** But as you try to build a module library, libtool will still create " $ECHO "*** a static module, that should work as long as the dlopening application" $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi else deplibs="$dir/$old_library $deplibs" link_static=yes fi fi # link shared/static library? if test "$linkmode" = lib; then if test -n "$dependency_libs" && { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes || test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do case $libdir in -R*) func_stripname '-R' '' "$libdir" temp_xrpath=$func_stripname_result case " $xrpath " in *" $temp_xrpath "*) ;; *) xrpath="$xrpath $temp_xrpath";; esac;; *) temp_deplibs="$temp_deplibs $libdir";; esac done dependency_libs="$temp_deplibs" fi newlib_search_path="$newlib_search_path $absdir" # Link against this library test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" # ... and its dependency_libs tmp_libs= for deplib in $dependency_libs; do newdependency_libs="$deplib $newdependency_libs" if $opt_duplicate_deps ; then case "$tmp_libs " in *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; esac fi tmp_libs="$tmp_libs $deplib" done if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in -L*) path="$deplib" ;; *.la) func_dirname "$deplib" "" "." dir="$func_dirname_result" # We need an absolute path. case $dir in [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; *) absdir=`cd "$dir" && pwd` if test -z "$absdir"; then func_warning "cannot determine absolute directory name of \`$dir'" absdir="$dir" fi ;; esac if $GREP "^installed=no" $deplib > /dev/null; then case $host in *-*-darwin*) depdepl= eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` if test -n "$deplibrary_names" ; then for tmp in $deplibrary_names ; do depdepl=$tmp done if test -f "$absdir/$objdir/$depdepl" ; then depdepl="$absdir/$objdir/$depdepl" darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` if test -z "$darwin_install_name"; then darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` fi compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" path= fi fi ;; *) path="-L$absdir/$objdir" ;; esac else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" test "$absdir" != "$libdir" && \ func_warning "\`$deplib' seems to be moved" path="-L$absdir" fi ;; esac case " $deplibs " in *" $path "*) ;; *) deplibs="$path $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs if test "$pass" = link; then if test "$linkmode" = "prog"; then compile_deplibs="$new_inherited_linker_flags $compile_deplibs" finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" else compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` fi fi dependency_libs="$newdependency_libs" if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi if test "$pass" != dlopen; then if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do case "$lib_search_path " in *" $dir "*) ;; *) lib_search_path="$lib_search_path $dir" ;; esac done newlib_search_path= fi if test "$linkmode,$pass" != "prog,link"; then vars="deplibs" else vars="compile_deplibs finalize_deplibs" fi for var in $vars dependency_libs; do # Add libraries to $var in reverse order eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do # FIXME: Pedantically, this is the right thing to do, so # that some nasty dependency loop isn't accidentally # broken: #new_libs="$deplib $new_libs" # Pragmatically, this seems to cause very few problems in # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; -R*) ;; *) # And here is the reason: when a library appears more # than once as an explicit dependence of a library, or # is implicitly linked in more than once by the # compiler, it is considered special, and multiple # occurrences thereof are not removed. Compare this # with having the same library being listed as a # dependency of multiple other libraries: in this case, # we know (pedantically, we assume) the library does not # need to be listed more than once, so we keep only the # last copy. This is not always right, but it is rare # enough that we require users that really mean to play # such unportable linking tricks to link the library # using -Wl,-lname, so that libtool does not consider it # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$deplib $new_libs" ;; esac ;; esac ;; esac done tmp_libs= for deplib in $new_libs; do case $deplib in -L*) case " $tmp_libs " in *" $deplib "*) ;; *) tmp_libs="$tmp_libs $deplib" ;; esac ;; *) tmp_libs="$tmp_libs $deplib" ;; esac done eval $var=\"$tmp_libs\" done # for var fi # Last step: remove runtime libs from dependency_libs # (they stay in deplibs) tmp_libs= for i in $dependency_libs ; do case " $predeps $postdeps $compiler_lib_search_path " in *" $i "*) i="" ;; esac if test -n "$i" ; then tmp_libs="$tmp_libs $i" fi done dependency_libs=$tmp_libs done # for pass if test "$linkmode" = prog; then dlfiles="$newdlfiles" fi if test "$linkmode" = prog || test "$linkmode" = lib; then dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for archives" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for archives" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for archives" test -n "$xrpath" && \ func_warning "\`-R' is ignored for archives" test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for archives" test -n "$release" && \ func_warning "\`-release' is ignored for archives" test -n "$export_symbols$export_symbols_regex" && \ func_warning "\`-export-symbols' is ignored for archives" # Now set the variables for building old libraries. build_libtool_libs=no oldlibs="$output" objs="$objs$old_deplibs" ;; lib) # Make sure we only generate libraries of the form `libNAME.la'. case $outputname in lib*) func_stripname 'lib' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) test "$module" = no && \ func_fatal_help "libtool library \`$output' must begin with \`lib'" if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required func_stripname '' '.la' "$outputname" name=$func_stripname_result eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else func_stripname '' '.la' "$outputname" libname=$func_stripname_result fi ;; esac if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs" else $ECHO $ECHO "*** Warning: Linking the shared library $output against the non-libtool" $ECHO "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi test "$dlself" != no && \ func_warning "\`-dlopen self' is ignored for libtool libraries" set dummy $rpath shift test "$#" -gt 1 && \ func_warning "ignoring multiple \`-rpath's for a libtool library" install_libdir="$1" oldlibs= if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. # Some compilers have problems with a `.al' extension so # convenience libraries should have the same extension an # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi test -n "$vinfo" && \ func_warning "\`-version-info/-version-number' is ignored for convenience libraries" test -n "$release" && \ func_warning "\`-release' is ignored for convenience libraries" else # Parse the version information argument. save_ifs="$IFS"; IFS=':' set dummy $vinfo 0 0 0 shift IFS="$save_ifs" test -n "$7" && \ func_fatal_help "too many parameters to \`-version-info'" # convert absolute version numbers to libtool ages # this retains compatibility with .la files and attempts # to make the code below a bit more comprehensible case $vinfo_number in yes) number_major="$1" number_minor="$2" number_revision="$3" # # There are really only two kinds -- those that # use the current revision as the major version # and those that subtract age and use age as # a minor version. But, then there is irix # which has an extra 1 added just for fun # case $version_type in darwin|linux|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_revision" ;; freebsd-aout|freebsd-elf|sunos) current="$number_major" revision="$number_minor" age="0" ;; irix|nonstopux) func_arith $number_major + $number_minor current=$func_arith_result age="$number_minor" revision="$number_minor" lt_irix_increment=no ;; esac ;; no) current="$1" revision="$2" age="$3" ;; esac # Check that each of the things are valid numbers. case $current in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "CURRENT \`$current' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $revision in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "REVISION \`$revision' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac case $age in 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) func_error "AGE \`$age' must be a nonnegative integer" func_fatal_error "\`$vinfo' is not valid version information" ;; esac if test "$age" -gt "$current"; then func_error "AGE \`$age' is greater than the current interface number \`$current'" func_fatal_error "\`$vinfo' is not valid version information" fi # Calculate the version variables. major= versuffix= verstring= case $version_type in none) ;; darwin) # Like Linux, but with the current version available in # verstring for coding it into the library header func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... func_arith $current + 1 minor_current=$func_arith_result xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" ;; freebsd-aout) major=".$current" versuffix=".$current.$revision"; ;; freebsd-elf) major=".$current" versuffix=".$current" ;; irix | nonstopux) if test "X$lt_irix_increment" = "Xno"; then func_arith $current - $age else func_arith $current - $age + 1 fi major=$func_arith_result case $version_type in nonstopux) verstring_prefix=nonstopux ;; *) verstring_prefix=sgi ;; esac verstring="$verstring_prefix$major.$revision" # Add in all the interfaces that we are compatible with. loop=$revision while test "$loop" -ne 0; do func_arith $revision - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring_prefix$major.$iface:$verstring" done # Before this point, $major must not contain `.'. major=.$major versuffix="$major.$revision" ;; linux) func_arith $current - $age major=.$func_arith_result versuffix="$major.$age.$revision" ;; osf) func_arith $current - $age major=.$func_arith_result versuffix=".$current.$age.$revision" verstring="$current.$age.$revision" # Add in all the interfaces that we are compatible with. loop=$age while test "$loop" -ne 0; do func_arith $current - $loop iface=$func_arith_result func_arith $loop - 1 loop=$func_arith_result verstring="$verstring:${iface}.0" done # Make executables depend on our current version. verstring="$verstring:${current}.0" ;; qnx) major=".$current" versuffix=".$current" ;; sunos) major=".$current" versuffix=".$current.$revision" ;; windows) # Use '-' rather than '.', since we only want one # extension on DOS 8.3 filesystems. func_arith $current - $age major=$func_arith_result versuffix="-$major" ;; *) func_fatal_configuration "unknown library version type \`$version_type'" ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely verstring= ;; *) verstring="0.0" ;; esac if test "$need_version" = no; then versuffix= else versuffix=".0.0" fi fi # Remove version info from name if versioning should be avoided if test "$avoid_version" = yes && test "$need_version" = no; then major= versuffix= verstring="" fi # Check to see if the archive will have undefined symbols. if test "$allow_undefined" = yes; then if test "$allow_undefined_flag" = unsupported; then func_warning "undefined symbols not allowed in $host shared libraries" build_libtool_libs=no build_old_libs=yes fi else # Don't allow undefined symbols. allow_undefined_flag="$no_undefined_flag" fi fi func_generate_dlsyms "$libname" "$libname" "yes" libobjs="$libobjs $symfileobj" test "X$libobjs" = "X " && libobjs= if test "$mode" != relink; then # Remove our outputs, but don't remove object files since they # may have been created when compiling PIC objects. removelist= tempremovelist=`$ECHO "$output_objdir/*"` for p in $tempremovelist; do case $p in *.$objext | *.gcno) ;; $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) if test "X$precious_files_regex" != "X"; then if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 then continue fi fi removelist="$removelist $p" ;; *) ;; esac done test -n "$removelist" && \ func_show_eval "${RM}r \$removelist" fi # Now set the variables for building old libraries. if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then oldlibs="$oldlibs $output_objdir/$libname.$libext" # Transform .lo files to .o files. oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` fi # Eliminate all temporary directories. #for path in $notinst_path; do # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"` # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"` #done if test -n "$xrpath"; then # If the user specified any rpath flags, then add them. temp_xrpath= for libdir in $xrpath; do temp_xrpath="$temp_xrpath -R$libdir" case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi # Make sure dlfiles contains only unique files that won't be dlpreopened old_dlfiles="$dlfiles" dlfiles= for lib in $old_dlfiles; do case " $dlprefiles $dlfiles " in *" $lib "*) ;; *) dlfiles="$dlfiles $lib" ;; esac done # Make sure dlprefiles contains only unique files old_dlprefiles="$dlprefiles" dlprefiles= for lib in $old_dlprefiles; do case "$dlprefiles " in *" $lib "*) ;; *) dlprefiles="$dlprefiles $lib" ;; esac done if test "$build_libtool_libs" = yes; then if test -n "$rpath"; then case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) # these systems don't actually have a c library (as such)! ;; *-*-rhapsody* | *-*-darwin1.[012]) # Rhapsody C library is in the System framework deplibs="$deplibs System.ltframework" ;; *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) # Causes problems with __ctype ;; *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) # Compiler inserts libc in the correct place for threads to work ;; *) # Add libc to deplibs on all other systems if necessary. if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; esac fi # Transform deplibs into only deplibs that can be linked in shared. name_save=$name libname_save=$libname release_save=$release versuffix_save=$versuffix major_save=$major # I'm not sure if I'm treating the release correctly. I think # release should show up in the -l (ie -lgmp5) so we don't want to # add it in twice. Is that correct? release="" versuffix="" major="" newdeplibs= droppeddeps=no case $deplibs_check_method in pass_all) # Don't check for shared/static. Everything works. # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) # This code stresses the "libraries are programs" paradigm to its # limits. Maybe even breaks it. We compile a program, linking it # against the deplibs as a proxy for the library. Then we can check # whether they linked in statically or dynamically with ldd. $opt_dry_run || $RM conftest.c cat > conftest.c <<EOF int main() { return 0; } EOF $opt_dry_run || $RM conftest if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then ldd_output=`ldd conftest` for i in $deplibs; do case $i in -l*) func_stripname -l '' "$i" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) newdeplibs="$newdeplibs $i" i="" ;; esac fi if test -n "$i" ; then libname=`eval "\\$ECHO \"$libname_spec\""` deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` set dummy $deplib_matches; shift deplib_match=$1 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then newdeplibs="$newdeplibs $i" else droppeddeps=yes $ECHO $ECHO "*** Warning: dynamic linker does not accept needed library $i." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which I believe you do not have" $ECHO "*** because a test_compile did reveal that the linker did not use it for" $ECHO "*** its dynamic dependency list that programs get resolved with at runtime." fi fi ;; *) newdeplibs="$newdeplibs $i" ;; esac done else # Error occurred in the first compile. Let's try to salvage # the situation: Compile a separate program for each library. for i in $deplibs; do case $i in -l*) func_stripname -l '' "$i" name=$func_stripname_result $opt_dry_run || $RM conftest if $LTCC $LTCFLAGS -o conftest conftest.c $i; then ldd_output=`ldd conftest` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $i "*) newdeplibs="$newdeplibs $i" i="" ;; esac fi if test -n "$i" ; then libname=`eval "\\$ECHO \"$libname_spec\""` deplib_matches=`eval "\\$ECHO \"$library_names_spec\""` set dummy $deplib_matches; shift deplib_match=$1 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then newdeplibs="$newdeplibs $i" else droppeddeps=yes $ECHO $ECHO "*** Warning: dynamic linker does not accept needed library $i." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because a test_compile did reveal that the linker did not use this one" $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime." fi fi else droppeddeps=yes $ECHO $ECHO "*** Warning! Library $i is needed by this library but I was not able to" $ECHO "*** make it link in! You will probably need to install it or some" $ECHO "*** library that it depends on before this library will be fully" $ECHO "*** functional. Installing it before continuing would be even better." fi ;; *) newdeplibs="$newdeplibs $i" ;; esac done fi ;; file_magic*) set dummy $deplibs_check_method; shift file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null | $GREP " -> " >/dev/null; then continue fi # The statement above tries to avoid entering an # endless loop below, in case of cyclic links. # We might still enter an endless loop, since a link # loop can be closed while we follow links, # but so what? potlib="$potent_lib" while test -h "$potlib" 2>/dev/null; do potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'` case $potliblink in [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; esac done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | $SED -e 10q | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for file magic test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a file magic. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; match_pattern*) set dummy $deplibs_check_method; shift match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` for a_deplib in $deplibs; do case $a_deplib in -l*) func_stripname -l '' "$a_deplib" name=$func_stripname_result if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then case " $predeps $postdeps " in *" $a_deplib "*) newdeplibs="$newdeplibs $a_deplib" a_deplib="" ;; esac fi if test -n "$a_deplib" ; then libname=`eval "\\$ECHO \"$libname_spec\""` for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do potential_libs=`ls $i/$libname[.-]* 2>/dev/null` for potent_lib in $potential_libs; do potlib="$potent_lib" # see symlink-check above in file_magic test if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ $EGREP "$match_pattern_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi done done fi if test -n "$a_deplib" ; then droppeddeps=yes $ECHO $ECHO "*** Warning: linker path does not have real file for library $a_deplib." $ECHO "*** I have the capability to make that library automatically link in when" $ECHO "*** you link to this library. But I can only do this if you have a" $ECHO "*** shared version of the library, which you do not appear to have" $ECHO "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" else $ECHO "*** with $libname and none of the candidates passed a file format test" $ECHO "*** using a regex pattern. Last file checked: $potlib" fi fi ;; *) # Add a -L argument. newdeplibs="$newdeplibs $a_deplib" ;; esac done # Gone through all deplibs. ;; none | unknown | *) newdeplibs="" tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then for i in $predeps $postdeps ; do # can't use Xsed below, because $i might contain '/' tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` done fi if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | $GREP . >/dev/null; then $ECHO if test "X$deplibs_check_method" = "Xnone"; then $ECHO "*** Warning: inter-library dependencies are not supported in this platform." else $ECHO "*** Warning: inter-library dependencies are not known to be supported." fi $ECHO "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; esac versuffix=$versuffix_save major=$major_save release=$release_save libname=$libname_save name=$name_save case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library with the System framework newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac if test "$droppeddeps" = yes; then if test "$module" = yes; then $ECHO $ECHO "*** Warning: libtool could not satisfy all declared inter-library" $ECHO "*** dependencies of module $libname. Therefore, libtool will create" $ECHO "*** a static module, that should work as long as the dlopening" $ECHO "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then $ECHO $ECHO "*** However, this would only work if libtool was able to extract symbol" $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could" $ECHO "*** not find such a program. So, this module is probably useless." $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi else $ECHO "*** The inter-library dependencies that have been dropped here will be" $ECHO "*** automatically added whenever a program is linked with this library" $ECHO "*** or is declared to -dlopen it." if test "$allow_undefined" = no; then $ECHO $ECHO "*** Since this library must not contain undefined symbols," $ECHO "*** because either the platform does not support them or" $ECHO "*** it was explicitly requested with -no-undefined," $ECHO "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module build_old_libs=yes else build_libtool_libs=no fi fi fi fi # Done checking deplibs! deplibs=$newdeplibs fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" case $host in *-*-darwin*) newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done deplibs="$new_libs" # All the library-specific variables (install_libdir is set above). library_names= old_library= dlname= # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= rpath="$finalize_rpath" test "$mode" != relink && rpath="$compile_rpath$rpath" for libdir in $rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" dep_rpath="$dep_rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" if test -n "$hardcode_libdir_flag_spec_ld"; then eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" else eval dep_rpath=\"$hardcode_libdir_flag_spec\" fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" fi test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" fi shlibpath="$finalize_shlibpath" test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" if test -n "$shlibpath"; then eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" fi # Get the real and link names of the library. eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names shift realname="$1" shift if test -n "$soname_spec"; then eval soname=\"$soname_spec\" else soname="$realname" fi if test -z "$dlname"; then dlname=$soname fi lib="$output_objdir/$realname" linknames= for link do linknames="$linknames $link" done # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` test "X$libobjs" = "X " && libobjs= delfiles= if test -n "$export_symbols" && test -n "$include_expsyms"; then $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" export_symbols="$output_objdir/$libname.uexp" delfiles="$delfiles $export_symbols" fi orig_export_symbols= case $host_os in cygwin* | mingw* | cegcc*) if test -n "$export_symbols" && test -z "$export_symbols_regex"; then # exporting using user supplied symfile if test "x`$SED 1q $export_symbols`" != xEXPORTS; then # and it's NOT already a .def file. Must figure out # which of the given symbols are data symbols and tag # them as such. So, trigger use of export_symbols_cmds. # export_symbols gets reassigned inside the "prepare # the list of exported symbols" if statement, so the # include_expsyms logic still works. orig_export_symbols="$export_symbols" export_symbols= always_export_symbols=yes fi fi ;; esac # Prepare the list of exported symbols if test -z "$export_symbols"; then if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" func_len " $cmd" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then func_show_eval "$cmd" 'exit $?' skipped_export=false else # The command line is too long to execute in one step. func_verbose "using reloadable object file for export list..." skipped_export=: # Break out early, otherwise skipped_export may be # set to false by a later but shorter cmd. break fi done IFS="$save_ifs" if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi fi if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi tmp_deplibs= for test_deplib in $deplibs; do case " $convenience " in *" $test_deplib "*) ;; *) tmp_deplibs="$tmp_deplibs $test_deplib" ;; esac done deplibs="$tmp_deplibs" if test -n "$convenience"; then if test -n "$whole_archive_flag_spec" && test "$compiler_needs_object" = yes && test -z "$libobjs"; then # extract the archives, so we have objects to list. # TODO: could optimize this to just extract one archive. whole_archive_flag_spec= fi if test -n "$whole_archive_flag_spec"; then save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= else gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $convenience libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi fi if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" fi # Make a backup of the uninstalled library when relinking if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? fi # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then eval test_cmds=\"$module_expsym_cmds\" cmds=$module_expsym_cmds else eval test_cmds=\"$module_cmds\" cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then eval test_cmds=\"$archive_expsym_cmds\" cmds=$archive_expsym_cmds else eval test_cmds=\"$archive_cmds\" cmds=$archive_cmds fi fi if test "X$skipped_export" != "X:" && func_len " $test_cmds" && len=$func_len_result && test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then : else # The command line is too long to link in one step, link piecewise # or, if using GNU ld and skipped_export is not :, use a linker # script. # Save the value of $output and $libobjs because we want to # use them later. If we have whole_archive_flag_spec, we # want to use save_libobjs as it was before # whole_archive_flag_spec was expanded, because we can't # assume the linker understands whole_archive_flag_spec. # This may have to be revisited, in case too many # convenience libraries get linked in and end up exceeding # the spec. if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then save_libobjs=$libobjs fi save_output=$output output_la=`$ECHO "X$output" | $Xsed -e "$basename"` # Clear the reloadable object creation command queue and # initialize k to one. test_cmds= concat_cmds= objlist= last_robj= k=1 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then output=${output_objdir}/${output_la}.lnkscript func_verbose "creating GNU ld script: $output" $ECHO 'INPUT (' > $output for obj in $save_libobjs do $ECHO "$obj" >> $output done $ECHO ')' >> $output delfiles="$delfiles $output" elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then output=${output_objdir}/${output_la}.lnk func_verbose "creating linker input file list: $output" : > $output set x $save_libobjs shift firstobj= if test "$compiler_needs_object" = yes; then firstobj="$1 " shift fi for obj do $ECHO "$obj" >> $output done delfiles="$delfiles $output" output=$firstobj\"$file_list_spec$output\" else if test -n "$save_libobjs"; then func_verbose "creating reloadable object files..." output=$output_objdir/$output_la-${k}.$objext eval test_cmds=\"$reload_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 # Loop over the list of objects to be linked. for obj in $save_libobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result if test "X$objlist" = X || test "$len" -lt "$max_cmd_len"; then func_append objlist " $obj" else # The command $test_cmds is almost too long, add a # command to the queue. if test "$k" -eq 1 ; then # The first file doesn't have a previous command to add. eval concat_cmds=\"$reload_cmds $objlist $last_robj\" else # All subsequent reloadable object files will link in # the last one created. eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\" fi last_robj=$output_objdir/$output_la-${k}.$objext func_arith $k + 1 k=$func_arith_result output=$output_objdir/$output_la-${k}.$objext objlist=$obj func_len " $last_robj" func_arith $len0 + $func_len_result len=$func_arith_result fi done # Handle the remaining objects by creating one last # reloadable object file. All subsequent reloadable object # files will link in the last one created. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" if test -n "$last_robj"; then eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" fi delfiles="$delfiles $output" else output= fi if ${skipped_export-false}; then func_verbose "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $opt_dry_run || $RM $export_symbols libobjs=$output # Append the command to create the export file. test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" if test -n "$last_robj"; then eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" fi fi test -n "$save_libobjs" && func_verbose "creating a temporary reloadable object file: $output" # Loop through the commands generated above and execute them. save_ifs="$IFS"; IFS='~' for cmd in $concat_cmds; do IFS="$save_ifs" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" if test -n "$export_symbols_regex" && ${skipped_export-false}; then func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' func_show_eval '$MV "${export_symbols}T" "$export_symbols"' fi fi if ${skipped_export-false}; then if test -n "$export_symbols" && test -n "$include_expsyms"; then tmp_export_symbols="$export_symbols" test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols" $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"' fi if test -n "$orig_export_symbols"; then # The given exports_symbols file has to be filtered, so filter it. func_verbose "filter symbol list for \`$libname.la' to tag DATA exports" # FIXME: $output_objdir/$libname.filter potentially contains lots of # 's' commands which not all seds can handle. GNU sed should be fine # though. Also, the filter scales superlinearly with the number of # global variables. join(1) would be nice here, but unfortunately # isn't a blessed tool. $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" export_symbols=$output_objdir/$libname.def $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols fi fi libobjs=$output # Restore the value of output. output=$save_output if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then eval libobjs=\"\$libobjs $whole_archive_flag_spec\" test "X$libobjs" = "X " && libobjs= fi # Expand the library linking commands again to reset the # value of $libobjs for piecewise linking. # Do each of the archive commands. if test "$module" = yes && test -n "$module_cmds" ; then if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then cmds=$module_expsym_cmds else cmds=$module_cmds fi else if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then cmds=$archive_expsym_cmds else cmds=$archive_cmds fi fi fi if test -n "$delfiles"; then # Append the command to remove temporary files to $cmds. eval cmds=\"\$cmds~\$RM $delfiles\" fi # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles libobjs="$libobjs $func_extract_archives_result" test "X$libobjs" = "X " && libobjs= fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done IFS="$save_ifs" # Restore the uninstalled library and exit if test "$mode" = relink; then $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? if test -n "$convenience"; then if test -z "$whole_archive_flag_spec"; then func_show_eval '${RM}r "$gentop"' fi fi exit $EXIT_SUCCESS fi # Create links to the real library. for linkname in $linknames; do if test "$realname" != "$linkname"; then func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' fi done # If -module or -export-dynamic was specified, set the dlname. if test "$module" = yes || test "$export_dynamic" = yes; then # On all known operating systems, these are identical. dlname="$soname" fi fi ;; obj) if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then func_warning "\`-dlopen' is ignored for objects" fi case " $deplibs" in *\ -l* | *\ -L*) func_warning "\`-l' and \`-L' are ignored for objects" ;; esac test -n "$rpath" && \ func_warning "\`-rpath' is ignored for objects" test -n "$xrpath" && \ func_warning "\`-R' is ignored for objects" test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for objects" test -n "$release" && \ func_warning "\`-release' is ignored for objects" case $output in *.lo) test -n "$objs$old_deplibs" && \ func_fatal_error "cannot build library object \`$output' from non-libtool objects" libobj=$output func_lo2o "$libobj" obj=$func_lo2o_result ;; *) libobj= obj="$output" ;; esac # Delete the old objects. $opt_dry_run || $RM $obj $libobj # Objects from convenience libraries. This assumes # single-version convenience libraries. Whenever we create # different ones for PIC/non-PIC, this we'll have to duplicate # the extraction. reload_conv_objs= gentop= # reload_cmds runs $LD directly, so let us get rid of # -Wl from whole_archive_flag_spec and hope we can get by with # turning comma into space.. wl= if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'` else gentop="$output_objdir/${obj}x" generated="$generated $gentop" func_extract_archives $gentop $convenience reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi # Create the old-style object. reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" func_execute_cmds "$reload_cmds" 'exit $?' # Exit if we aren't doing a library object file. if test -z "$libobj"; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. # $show "echo timestamp > $libobj" # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" func_execute_cmds "$reload_cmds" 'exit $?' fi if test -n "$gentop"; then func_show_eval '${RM}r "$gentop"' fi exit $EXIT_SUCCESS ;; prog) case $host in *cygwin*) func_stripname '' '.exe' "$output" output=$func_stripname_result.exe;; esac test -n "$vinfo" && \ func_warning "\`-version-info' is ignored for programs" test -n "$release" && \ func_warning "\`-release' is ignored for programs" test "$preload" = yes \ && test "$dlopen_support" = unknown \ && test "$dlopen_self" = unknown \ && test "$dlopen_self_static" = unknown && \ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support." case $host in *-*-rhapsody* | *-*-darwin1.[012]) # On Rhapsody replace the C library is the System framework compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'` ;; esac case $host in *-*-darwin*) # Don't allow lazy linking, it breaks C++ global constructors # But is supposedly fixed on 10.4 or later (yay!). if test "$tagname" = CXX ; then case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 10.[0123]) compile_command="$compile_command ${wl}-bind_at_load" finalize_command="$finalize_command ${wl}-bind_at_load" ;; esac fi # Time to change all our "foo.ltframework" stuff back to "-framework foo" compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` ;; esac # move library search paths that coincide with paths to not yet # installed libraries to the beginning of the library search list new_libs= for path in $notinst_path; do case " $new_libs " in *" -L$path/$objdir "*) ;; *) case " $compile_deplibs " in *" -L$path/$objdir "*) new_libs="$new_libs -L$path/$objdir" ;; esac ;; esac done for deplib in $compile_deplibs; do case $deplib in -L*) case " $new_libs " in *" $deplib "*) ;; *) new_libs="$new_libs $deplib" ;; esac ;; *) new_libs="$new_libs $deplib" ;; esac done compile_deplibs="$new_libs" compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" if test -n "$rpath$xrpath"; then # If the user specified any rpath flags, then add them. for libdir in $rpath $xrpath; do # This is the magic to use -rpath. case "$finalize_rpath " in *" $libdir "*) ;; *) finalize_rpath="$finalize_rpath $libdir" ;; esac done fi # Now hardcode the library paths rpath= hardcode_libdirs= for libdir in $compile_rpath $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$perm_rpath " in *" $libdir "*) ;; *) perm_rpath="$perm_rpath $libdir" ;; esac fi case $host in *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` case :$dllsearchpath: in *":$libdir:"*) ;; ::) dllsearchpath=$libdir;; *) dllsearchpath="$dllsearchpath:$libdir";; esac case :$dllsearchpath: in *":$testbindir:"*) ;; ::) dllsearchpath=$testbindir;; *) dllsearchpath="$dllsearchpath:$testbindir";; esac ;; esac done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi compile_rpath="$rpath" rpath= hardcode_libdirs= for libdir in $finalize_rpath; do if test -n "$hardcode_libdir_flag_spec"; then if test -n "$hardcode_libdir_separator"; then if test -z "$hardcode_libdirs"; then hardcode_libdirs="$libdir" else # Just accumulate the unique libdirs. case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) ;; *) hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" ;; esac fi else eval flag=\"$hardcode_libdir_flag_spec\" rpath="$rpath $flag" fi elif test -n "$runpath_var"; then case "$finalize_perm_rpath " in *" $libdir "*) ;; *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; esac fi done # Substitute the hardcoded libdirs into the rpath. if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" eval rpath=\" $hardcode_libdir_flag_spec\" fi finalize_rpath="$rpath" if test -n "$libobjs" && test "$build_old_libs" = yes; then # Transform all the library objects into standard objects. compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` fi func_generate_dlsyms "$outputname" "@PROGRAM@" "no" # template prelinking step if test -n "$prelink_cmds"; then func_execute_cmds "$prelink_cmds" 'exit $?' fi wrappers_required=yes case $host in *cygwin* | *mingw* ) if test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; *cegcc) # Disable wrappers for cegcc, we are cross compiling anyway. wrappers_required=no ;; *) if test "$need_relink" = no || test "$build_libtool_libs" != yes; then wrappers_required=no fi ;; esac if test "$wrappers_required" = no; then # Replace the output file specification. compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" # We have no uninstalled library dependencies, so finalize right now. exit_status=0 func_show_eval "$link_command" 'exit_status=$?' # Delete the generated files. if test -f "$output_objdir/${outputname}S.${objext}"; then func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' fi exit $exit_status fi if test -n "$compile_shlibpath$finalize_shlibpath"; then compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" fi if test -n "$finalize_shlibpath"; then finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" fi compile_var= finalize_var= if test -n "$runpath_var"; then if test -n "$perm_rpath"; then # We should set the runpath_var. rpath= for dir in $perm_rpath; do rpath="$rpath$dir:" done compile_var="$runpath_var=\"$rpath\$$runpath_var\" " fi if test -n "$finalize_perm_rpath"; then # We should set the runpath_var. rpath= for dir in $finalize_perm_rpath; do rpath="$rpath$dir:" done finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " fi fi if test "$no_install" = yes; then # We don't need to create a wrapper script. link_command="$compile_var$compile_command$compile_rpath" # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` # Delete the old output file. $opt_dry_run || $RM $output # Link the executable and exit func_show_eval "$link_command" 'exit $?' exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then # Fast installation is not supported link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" func_warning "this platform does not like uninstalled shared libraries" func_warning "\`$output' will be relinked during installation" else if test "$fast_install" != no; then link_command="$finalize_var$compile_command$finalize_rpath" if test "$fast_install" = yes; then relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` else # fast_install is set to needless relink_command= fi else link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" fi fi # Replace the output file specification. link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` # Delete the old output files. $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname func_show_eval "$link_command" 'exit $?' # Now create the wrapper script. func_verbose "creating $output" # Quote the relink command for shipping. if test -n "$relink_command"; then # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done relink_command="(cd `pwd`; $relink_command)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` fi # Quote $ECHO for shipping. if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then case $progpath in [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` else qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` fi # Only actually do things if not in dry run mode. $opt_dry_run || { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in *.exe) func_stripname '' '.exe' "$output" output=$func_stripname_result ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in *cygwin*) exeext=.exe func_stripname '' '.exe' "$outputname" outputname=$func_stripname_result ;; *) exeext= ;; esac case $host in *cygwin* | *mingw* ) func_dirname_and_basename "$output" "" "." output_name=$func_basename_result output_path=$func_dirname_result cwrappersource="$output_path/$objdir/lt-$output_name.c" cwrapper="$output_path/$output_name.exe" $RM $cwrappersource $cwrapper trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 func_emit_cwrapperexe_src > $cwrappersource # The wrapper executable is built using the $host compiler, # because it contains $host paths and files. If cross- # compiling, it, like the target executable, must be # executed on the $host or under an emulation environment. $opt_dry_run || { $LTCC $LTCFLAGS -o $cwrapper $cwrappersource $STRIP $cwrapper } # Now, create the wrapper script for func_source use: func_ltwrapper_scriptname $cwrapper $RM $func_ltwrapper_scriptname_result trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 $opt_dry_run || { # note: this script will not be executed, so do not chmod. if test "x$build" = "x$host" ; then $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result else func_emit_wrapper no > $func_ltwrapper_scriptname_result fi } ;; * ) $RM $output trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 func_emit_wrapper no > $output chmod +x $output ;; esac } exit $EXIT_SUCCESS ;; esac # See if we need to build an old-fashioned archive. for oldlib in $oldlibs; do if test "$build_libtool_libs" = convenience; then oldobjs="$libobjs_save $symfileobj" addlibs="$convenience" build_libtool_libs=no else if test "$build_libtool_libs" = module; then oldobjs="$libobjs_save" build_libtool_libs=no else oldobjs="$old_deplibs $non_pic_objects" if test "$preload" = yes && test -f "$symfileobj"; then oldobjs="$oldobjs $symfileobj" fi fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $addlibs oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then cmds=$old_archive_from_new_cmds else # Add any objects from preloaded convenience libraries if test -n "$dlprefiles"; then gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_extract_archives $gentop $dlprefiles oldobjs="$oldobjs $func_extract_archives_result" fi # POSIX demands no paths to be encoded in archives. We have # to avoid creating archives with duplicate basenames if we # might have to extract them afterwards, e.g., when creating a # static archive out of a convenience library, or when linking # the entirety of a libtool archive into another (currently # not supported by libtool). if (for obj in $oldobjs do func_basename "$obj" $ECHO "$func_basename_result" done | sort | sort -uc >/dev/null 2>&1); then : else $ECHO "copying selected object files to avoid basename conflicts..." gentop="$output_objdir/${outputname}x" generated="$generated $gentop" func_mkdir_p "$gentop" save_oldobjs=$oldobjs oldobjs= counter=1 for obj in $save_oldobjs do func_basename "$obj" objbase="$func_basename_result" case " $oldobjs " in " ") oldobjs=$obj ;; *[\ /]"$objbase "*) while :; do # Make sure we don't pick an alternate name that also # overlaps. newobj=lt$counter-$objbase func_arith $counter + 1 counter=$func_arith_result case " $oldobjs " in *[\ /]"$newobj "*) ;; *) if test ! -f "$gentop/$newobj"; then break; fi ;; esac done func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" oldobjs="$oldobjs $gentop/$newobj" ;; *) oldobjs="$oldobjs $obj" ;; esac done fi eval cmds=\"$old_archive_cmds\" func_len " $cmds" len=$func_len_result if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then cmds=$old_archive_cmds else # the command line is too long to link in one step, link in parts func_verbose "using piecewise archive linking..." save_RANLIB=$RANLIB RANLIB=: objlist= concat_cmds= save_oldobjs=$oldobjs oldobjs= # Is there a better way of finding the last object in the list? for obj in $save_oldobjs do last_oldobj=$obj done eval test_cmds=\"$old_archive_cmds\" func_len " $test_cmds" len0=$func_len_result len=$len0 for obj in $save_oldobjs do func_len " $obj" func_arith $len + $func_len_result len=$func_arith_result func_append objlist " $obj" if test "$len" -lt "$max_cmd_len"; then : else # the above command should be used before it gets too long oldobjs=$objlist if test "$obj" = "$last_oldobj" ; then RANLIB=$save_RANLIB fi test -z "$concat_cmds" || concat_cmds=$concat_cmds~ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" objlist= len=$len0 fi done RANLIB=$save_RANLIB oldobjs=$objlist if test "X$oldobjs" = "X" ; then eval cmds=\"\$concat_cmds\" else eval cmds=\"\$concat_cmds~\$old_archive_cmds\" fi fi fi func_execute_cmds "$cmds" 'exit $?' done test -n "$generated" && \ func_show_eval "${RM}r$generated" # Now create the libtool archive. case $output in *.la) old_library= test "$build_old_libs" = yes && old_library="$libname.$libext" func_verbose "creating $output" # Preserve any variables that may affect compiler behavior for var in $variables_saved_for_relink; do if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else func_quote_for_eval "$var_value" relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" fi done # Quote the link command for shipping. relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"` if test "$hardcode_automatic" = yes ; then relink_command= fi # Only create the output if not a dry run. $opt_dry_run || { for installed in no yes; do if test "$installed" = yes; then if test -z "$install_libdir"; then break fi output="$output_objdir/$outputname"i # Replace all uninstalled libtool libraries with the installed ones newdependency_libs= for deplib in $dependency_libs; do case $deplib in *.la) func_basename "$deplib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` test -z "$libdir" && \ func_fatal_error "\`$deplib' is not a valid libtool archive" newdependency_libs="$newdependency_libs $libdir/$name" ;; *) newdependency_libs="$newdependency_libs $deplib" ;; esac done dependency_libs="$newdependency_libs" newdlfiles= for lib in $dlfiles; do case $lib in *.la) func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlfiles="$newdlfiles $libdir/$name" ;; *) newdlfiles="$newdlfiles $lib" ;; esac done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in *.la) # Only pass preopened files to the pseudo-archive (for # eventual linking with the app. that links it) if we # didn't already link the preopened objects directly into # the library: func_basename "$lib" name="$func_basename_result" eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` test -z "$libdir" && \ func_fatal_error "\`$lib' is not a valid libtool archive" newdlprefiles="$newdlprefiles $libdir/$name" ;; esac done dlprefiles="$newdlprefiles" else newdlfiles= for lib in $dlfiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlfiles="$newdlfiles $abs" done dlfiles="$newdlfiles" newdlprefiles= for lib in $dlprefiles; do case $lib in [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; *) abs=`pwd`"/$lib" ;; esac newdlprefiles="$newdlprefiles $abs" done dlprefiles="$newdlprefiles" fi $RM $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $ECHO > $output "\ # $outputname - a libtool library file # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='$tdlname' # Names of this library. library_names='$library_names' # The name of the static archive. old_library='$old_library' # Linker flags that can not go in dependency_libs. inherited_linker_flags='$new_inherited_linker_flags' # Libraries that this one depends upon. dependency_libs='$dependency_libs' # Names of additional weak libraries provided by this library weak_library_names='$weak_libs' # Version information for $libname. current=$current age=$age revision=$revision # Is this an already installed library? installed=$installed # Should we warn about portability when linking against -modules? shouldnotlink=$module # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" if test "$installed" = no && test "$need_relink" = yes; then $ECHO >> $output "\ relink_command=\"$relink_command\"" fi done } # Do a symbolic link so that the libtool archive can be found in # LD_LIBRARY_PATH before the program is installed. func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' ;; esac exit $EXIT_SUCCESS } { test "$mode" = link || test "$mode" = relink; } && func_mode_link ${1+"$@"} # func_mode_uninstall arg... func_mode_uninstall () { $opt_debug RM="$nonopt" files= rmforce= exit_status=0 # This variable tells wrapper scripts just to set variables rather # than running their programs. libtool_install_magic="$magic" for arg do case $arg in -f) RM="$RM $arg"; rmforce=yes ;; -*) RM="$RM $arg" ;; *) files="$files $arg" ;; esac done test -z "$RM" && \ func_fatal_help "you must specify an RM program" rmdirs= origobjdir="$objdir" for file in $files; do func_dirname "$file" "" "." dir="$func_dirname_result" if test "X$dir" = X.; then objdir="$origobjdir" else objdir="$dir/$origobjdir" fi func_basename "$file" name="$func_basename_result" test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; esac fi # Don't error if the file doesn't exist and rm -f was used. if { test -L "$file"; } >/dev/null 2>&1 || { test -h "$file"; } >/dev/null 2>&1 || test -f "$file"; then : elif test -d "$file"; then exit_status=1 continue elif test "$rmforce" = yes; then continue fi rmfiles="$file" case $name in *.la) # Possibly a libtool archive, so verify it. if func_lalib_p "$file"; then func_source $dir/$name # Delete the libtool libraries and symlinks. for n in $library_names; do rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" case "$mode" in clean) case " $library_names " in # " " in the beginning catches empty $dlname *" $dlname "*) ;; *) rmfiles="$rmfiles $objdir/$dlname" ;; esac test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" ;; uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; esac fi ;; *.lo) # Possibly a libtool object, so verify it. if func_lalib_p "$file"; then # Read the .lo file func_source $dir/$name # Add PIC object to the list of files to remove. if test -n "$pic_object" && test "$pic_object" != none; then rmfiles="$rmfiles $dir/$pic_object" fi # Add non-PIC object to the list of files to remove. if test -n "$non_pic_object" && test "$non_pic_object" != none; then rmfiles="$rmfiles $dir/$non_pic_object" fi fi ;; *) if test "$mode" = clean ; then noexename=$name case $file in *.exe) func_stripname '' '.exe' "$file" file=$func_stripname_result func_stripname '' '.exe' "$name" noexename=$func_stripname_result # $file with .exe has already been added to rmfiles, # add $file without .exe rmfiles="$rmfiles $file" ;; esac # Do a test to see if this is a libtool program. if func_ltwrapper_p "$file"; then if func_ltwrapper_executable_p "$file"; then func_ltwrapper_scriptname "$file" relink_command= func_source $func_ltwrapper_scriptname_result rmfiles="$rmfiles $func_ltwrapper_scriptname_result" else relink_command= func_source $dir/$noexename fi # note $name still contains .exe if it was in $file originally # as does the version of $file that was added into $rmfiles rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" if test "$fast_install" = yes && test -n "$relink_command"; then rmfiles="$rmfiles $objdir/lt-$name" fi if test "X$noexename" != "X$name" ; then rmfiles="$rmfiles $objdir/lt-${noexename}.c" fi fi fi ;; esac func_show_eval "$RM $rmfiles" 'exit_status=1' done objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do if test -d "$dir"; then func_show_eval "rmdir $dir >/dev/null 2>&1" fi done exit $exit_status } { test "$mode" = uninstall || test "$mode" = clean; } && func_mode_uninstall ${1+"$@"} test -z "$mode" && { help="$generic_help" func_fatal_help "you must specify a MODE" } test -z "$exec_cmd" && \ func_fatal_help "invalid operation mode \`$mode'" if test -n "$exec_cmd"; then eval exec "$exec_cmd" exit $EXIT_FAILURE fi exit $exit_status # The TAGs below are defined such that we never get into a situation # in which we disable both kinds of libraries. Given conflicting # choices, we go for a static library, that is the most portable, # since we can't tell whether shared libraries were disabled because # the user asked for that or because the platform doesn't support # them. This is particularly important on AIX, because we don't # support having both static and shared libraries enabled at the same # time on that platform, so we default to a shared-only configuration. # If a disable-shared tag is given, we'll fallback to a static-only # configuration. But we'll never go from static-only to shared-only. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared build_libtool_libs=no build_old_libs=yes # ### END LIBTOOL TAG CONFIG: disable-shared # ### BEGIN LIBTOOL TAG CONFIG: disable-static build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` # ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script # sh-indentation:2 # End: # vi:sw=2 ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/config.guess�������������������������������������������������������������������������������0000755�0000764�0000764�00000132264�11265376463�011455� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. timestamp='2009-04-27' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner <per@bothner.com>. # Please send patches to <config-patches@gnu.org>. Submit a context # diff and a properly formatted ChangeLog entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # The plan is that this can be called by configure scripts if you # don't specify an explicit build system type. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to <config-patches@gnu.org>." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 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." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep __ELF__ >/dev/null then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include <stdio.h> /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include <sys/systemcfg.h> main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include <stdlib.h> #include <unistd.h> int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep __LP64__ >/dev/null then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include <unistd.h> int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:[3456]*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; EM64T | authenticamd | genuineintel) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips #undef mipsel #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mipsel #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef mips64 #undef mips64el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=mips64el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=mips64 #else CPU= #endif #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^CPU/{ s: ::g p }'`" test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so # first see if it will tell us. cd to the root directory to prevent # problems with other programs or directories called `ld' in the path. # Set LC_ALL=C to ensure ld outputs messages in English. ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ | sed -ne '/supported targets:/!d s/[ ][ ]*/ /g s/.*supported targets: *// s/ .*// p'` case "$ld_supported_targets" in elf32-i386) TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include <features.h> #ifdef __ELF__ # ifdef __GLIBC__ # if __GLIBC__ >= 2 LIBC=gnu # else LIBC=gnulibc1 # endif # else LIBC=gnulibc1 # endif #else #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) LIBC=gnu #else LIBC=gnuaout #endif #endif #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' /^LIBC/{ s: ::g p }'`" test x"${LIBC}" != x && { echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` echo ${UNAME_MACHINE}-pc-isc$UNAME_REL elif /bin/uname -X 2>/dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says <Richard.M.Bartel@ccMail.Census.GOV> echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes <hewes@openmarket.com>. # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c <<EOF #ifdef _SEQUENT_ # include <sys/types.h> # include <sys/utsname.h> #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include <sys/param.h> printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include <sys/param.h> # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 <<EOF $0: unable to guess system type This script, last modified $timestamp, has failed to recognize the operating system you are using. It is advised that you download the most up to date version of the config scripts from http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD and http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD If the version you run ($0) is already up to date, please send the following data and any information you think might be pertinent to <config-patches@gnu.org> in order to provide the needed information to handle your system. config.guess timestamp = $timestamp 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` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/bkf.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000004274�11247156606�010037� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetBKF (BKF * item, wvStream * fd) { U16 temp16; #ifdef PURIFY wvInitBKF (item); #endif item->ibkl = (S16) read_16ubit (fd); temp16 = read_16ubit (fd); item->itcFirst = temp16 & 0x007F; item->fPub = (temp16 & 0x0080) >> 7; item->itcLim = (temp16 & 0x7F00) >> 8; item->fCol = (temp16 & 0x8000) >> 15; } void wvInitBKF (BKF * item) { item->ibkl = 0; item->itcFirst = 0; item->fPub = 0; item->itcLim = 0; item->fCol = 0; } int wvGetBKF_PLCF (BKF ** bkf, U32 ** pos, U32 * nobkf, U32 offset, U32 len, wvStream * fd) { U32 i; if (len == 0) { *bkf = NULL; *pos = NULL; *nobkf = 0; } else { *nobkf = (len - 4) / (cbBKF + 4); *pos = (U32 *) wvMalloc ((*nobkf + 1) * sizeof (U32)); if (*pos == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", (*nobkf + 1) * sizeof (U32))); return (1); } *bkf = (BKF *) wvMalloc (*nobkf * sizeof (BKF)); if (*bkf == NULL) { wvError ( ("NO MEM 1, failed to alloc %d bytes\n", *nobkf * sizeof (BKF))); wvFree (*pos); return (1); } wvStream_goto (fd, offset); for (i = 0; i <= *nobkf; i++) (*pos)[i] = read_32ubit (fd); for (i = 0; i < *nobkf; i++) wvGetBKF (&((*bkf)[i]), fd); } return (0); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/lspd.c�������������������������������������������������������������������������������������0000664�0000764�0000764�00000002404�11247156606�010230� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvCopyLSPD (LSPD * dest, LSPD * src) { dest->dyaLine = src->dyaLine; dest->fMultLinespace = src->fMultLinespace; } void wvInitLSPD (LSPD * item) { item->dyaLine = 0; item->fMultLinespace = 0; } void wvGetLSPDFromBucket (LSPD * item, U8 * pointer) { item->dyaLine = dread_16ubit (NULL, &pointer); item->fMultLinespace = dread_16ubit (NULL, &pointer); } ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/tbd.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000003057�11247156606�010044� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" #include "wvinternal.h" void wvInitTBD (TBD * item) { item->jc = 0; item->tlc = 0; item->reserved = 0; } void wvCopyTBD (TBD * dest, TBD * src) { memcpy (dest, src, sizeof (TBD)); } void wvGetTBD (TBD * item, wvStream * fd) { wvGetTBD_internal (item, fd, NULL); } void wvGetTBDFromBucket (TBD * item, U8 * pointer) { wvGetTBD_internal (item, NULL, pointer); } void wvGetTBD_internal (TBD * item, wvStream * fd, U8 * pointer) { U8 temp8; temp8 = dread_8ubit (fd, &pointer); #ifdef PURIFY wvInitTBD (item); #endif item->jc = temp8 & 0x07; item->tlc = (temp8 & 0x38) >> 3; item->reserved = (temp8 & 0xC0) >> 6; } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvConvert.c��������������������������������������������������������������������������������0000664�0000764�0000764�00000015131�11247156606�011264� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #ifdef HAVE_UNISTD_H #include <unistd.h> #endif #include "wv.h" #include "getopt.h" /* Released under GPL, written by Caolan.McNamara@ul.ie. Copyright (C) 1998,1999 Caolan McNamara Real Life: Caolan McNamara * Doing: MSc in HCI Work: Caolan.McNamara@ul.ie * Phone: +353-86-8790257 URL: http://skynet.csn.ul.ie/~caolan * Sig: an oblique strategy How would you have done it? */ /* returns 1 for not an ole doc 2 ole but not supported word doc -1 for an error of some unknown kind 0 on success */ int myelehandler (wvParseStruct * ps, wvTag tag, void *props, int dirty); int mydochandler (wvParseStruct * ps, wvTag tag); int wvOpenConfig (state_data *myhandle,char *config); void usage (void) { printf ("Usage: wvConvert [--config config.xml] [--password password] filename.doc\n"); exit (-1); } int main (int argc, char **argv) { char *config = NULL; char *password = NULL; int ret; state_data myhandle; expand_data expandhandle; wvParseStruct ps; int c, index = 0; static struct option long_options[] = { {"config", 1, 0, 'x'}, {"password", 1, 0, 'p'}, {0, 0, 0, 0} }; if (argc < 2) usage (); while (1) { c = getopt_long (argc, argv, "x:p:", long_options, &index); if (c == -1) break; switch (c) { case 'x': if (optarg) config = optarg; else wvError (("No config file given to config option")); break; case 'p': if (optarg) password = optarg; else wvError (("No password given to password option")); break; default: usage (); break; } } wvInit (); ret = wvInitParser (&ps, argv[optind]); ps.filename = argv[optind]; if (ret == 4) { ret = 0; if (password == NULL) { wvError ( ("Password required, this is an encrypted document\n")); return (-1); } else { wvSetPassword (password, &ps); if (wvDecrypt97 (&ps)) { wvError (("Incorrect Password\n")); return (-1); } } } else if (ret == 7) { ret = 0; if (password == NULL) { wvError ( ("Password required, this is an encrypted document\n")); return (-1); } else { wvSetPassword (password, &ps); if (wvDecrypt95 (&ps)) { wvError (("Incorrect Password\n")); return (-1); } } } if (ret) { wvError (("startup error with file %s\n", argv[1])); wvOLEFree (&ps); return (2); } wvSetElementHandler (&ps, myelehandler); wvSetDocumentHandler (&ps, mydochandler); wvInitStateData (&myhandle); if (wvOpenConfig (&myhandle,config) == 0) wvError (("config file not found\n")); else ret = wvParseConfig (&myhandle); if (!ret) { expandhandle.sd = &myhandle; ps.userData = &expandhandle; ret = wvText (&ps); } wvReleaseStateData (&myhandle); if (ret == 2) return (2); else if (ret != 0) ret = -1; wvOLEFree (&ps); return (ret); } int myelehandler (wvParseStruct * ps, wvTag tag, void *props, int dirty) { expand_data *data = (expand_data *) ps->userData; data->anSttbfAssoc = &ps->anSttbfAssoc; data->lfo = &ps->lfo; data->lfolvl = ps->lfolvl; data->lvl = ps->lvl; data->nolfo = &ps->nolfo; data->nooflvl = &ps->nooflvl; data->stsh = &ps->stsh; data->lst = &ps->lst; data->noofLST = &ps->noofLST; data->liststartnos = &ps->liststartnos; data->listnfcs = &ps->listnfcs; data->finallvl = &ps->finallvl; data->fib = &ps->fib; data->dop = &ps->dop; data->intable = &ps->intable; data->cellbounds = &ps->cellbounds; data->nocellbounds = &ps->nocellbounds; data->endcell = &ps->endcell; data->vmerges = &ps->vmerges; data->norows = &ps->norows; data->nextpap = &ps->nextpap; data->charset = wvAutoCharset (ps); data->props = props; switch (tag) { case PARABEGIN: wvBeginPara (data); break; case PARAEND: wvEndPara (data); wvCopyPAP (&data->lastpap, (PAP *) (data->props)); break; case SECTIONBEGIN: wvBeginSection (data); break; case SECTIONEND: wvEndSection (data); break; case CHARPROPBEGIN: wvBeginCharProp (data, NULL); break; case CHARPROPEND: wvEndCharProp (data); break; default: break; } return (0); } int mydochandler (wvParseStruct * ps, wvTag tag) { expand_data *data = (expand_data *) ps->userData; data->anSttbfAssoc = &ps->anSttbfAssoc; data->lfo = &ps->lfo; data->lfolvl = ps->lfolvl; data->lvl = ps->lvl; data->nolfo = &ps->nolfo; data->nooflvl = &ps->nooflvl; data->stsh = &ps->stsh; data->lst = &ps->lst; data->noofLST = &ps->noofLST; data->liststartnos = &ps->liststartnos; data->listnfcs = &ps->listnfcs; data->finallvl = &ps->finallvl; data->fib = &ps->fib; data->dop = &ps->dop; data->intable = &ps->intable; data->cellbounds = &ps->cellbounds; data->nocellbounds = &ps->nocellbounds; data->endcell = &ps->endcell; data->vmerges = &ps->vmerges; data->norows = &ps->norows; data->charset = wvAutoCharset (ps); switch (tag) { case DOCBEGIN: wvBeginDocument (data); break; case DOCEND: wvEndDocument (data); break; default: break; } return (0); } int wvOpenConfig (state_data *myhandle,char *config) { FILE *tmp; int i = 0; if (config == NULL) config = "wvConfig.xml"; else i = 1; tmp = fopen (config, "rb"); if (tmp == NULL) { if (i) wvError ( ("Attempt to open %s failed, using %s\n", config, HTMLCONFIG)); config = XMLCONFIG; tmp = fopen (config, "rb"); } myhandle->path = config; myhandle->fp = tmp; return (tmp == NULL ? 0 : 1); } ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/plan9.h������������������������������������������������������������������������������������0000664�0000764�0000764�00000001321�11247156607�010314� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������typedef unsigned short Rune; /* 16 bits */ #define Runeerror 0x80 /* decoding error in UTF */ #define Runeself 0x80 /* rune and UTF sequences are the same (<) */ #define UTFmax 6 /* maximum bytes per rune */ /* plan 9 argument parsing */ #define ARGBEGIN for((argv0? 0: (argv0= *argv)),argv++,argc--;\ argv[0] && argv[0][0]=='-' && argv[0][1];\ argc--, argv++) {\ char *_args, *_argt, _argc;\ _args = &argv[0][1];\ if(_args[0]=='-' && _args[1]==0){\ argc--; argv++; break;\ }\ _argc=0;while(*_args) switch(_argc= *_args++) #define ARGEND } #define ARGF() (_argt=_args, _args="",\ (*_argt? _argt: argv[1]? (argc--, *++argv): 0)) #define ARGC() _argc extern char *argv0; ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wvHtmlEngine.c�����������������������������������������������������������������������������0000664�0000764�0000764�00000002017�11247156607�011676� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" int wvHtml (wvParseStruct * ps) { if (ps->fib.fComplex) wvDecodeComplex (ps); else wvDecodeSimple (ps, Dmain); return (0); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/wkb.c��������������������������������������������������������������������������������������0000664�0000764�0000764�00000002311�11247156607�010047� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" void wvGetWKB (WKB * item, wvStream * fd) { U16 temp16; item->fn = (S16) read_16ubit (fd); item->grfwkb = read_16ubit (fd);; item->lvl = (S16) read_16ubit (fd); temp16 = read_16ubit (fd); item->fnpt = temp16 & 0x000F; item->fnpd = (temp16 & 0xFFF0) >> 4; item->doc = (S32) read_32ubit (fd); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/numrm.c������������������������������������������������������������������������������������0000664�0000764�0000764�00000005502�11247156607�010427� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" #include "wvinternal.h" /* The NUMRM structure is used to track revision marking data for paragraph numbers, and is stored in the PAP for each numbered paragraph. When revision marking tracking is turned on, we fill out the NUMRM for each number with the data required to recreate the number's text. Then at display time, that string is compared with the current paragraph number string, and displayed as changed (old deleted, current inserted) if the strings differ. The string construction algorithm is the same as for an LVL structure. */ void wvGetNUMRM_internal (NUMRM * item, wvStream * fd, U8 * pointer) { int i; item->fNumRM = dread_8ubit (fd, &pointer); item->Spare1 = dread_8ubit (fd, &pointer); item->ibstNumRM = (S16) dread_16ubit (fd, &pointer); if (fd != NULL) wvGetDTTM (&(item->dttmNumRM), fd); else { wvGetDTTMFromBucket (&(item->dttmNumRM), pointer); pointer += cbDTTM; } for (i = 0; i < 9; i++) item->rgbxchNums[i] = dread_8ubit (fd, &pointer); for (i = 0; i < 9; i++) item->rgnfc[i] = dread_8ubit (fd, &pointer); item->Spare2 = (S16) dread_16ubit (fd, &pointer); for (i = 0; i < 9; i++) item->PNBR[i] = (S32) dread_32ubit (fd, &pointer); for (i = 0; i < 32; i++) item->xst[i] = dread_16ubit (fd, &pointer); } void wvGetNUMRM (NUMRM * item, wvStream * fd) { wvGetNUMRM_internal (item, fd, NULL); } void wvGetNUMRMFromBucket (NUMRM * item, U8 * pointer) { wvGetNUMRM_internal (item, NULL, pointer); } void wvCopyNUMRM (NUMRM * dest, NUMRM * src) { memcpy (dest, src, sizeof (NUMRM)); } void wvInitNUMRM (NUMRM * item) { int i; item->fNumRM = 0; item->Spare1 = 0; item->ibstNumRM = 0; wvInitDTTM (&(item->dttmNumRM)); for (i = 0; i < 9; i++) item->rgbxchNums[i] = 0; for (i = 0; i < 9; i++) item->rgnfc[i] = 0; item->Spare2 = 0; for (i = 0; i < 9; i++) item->PNBR[i] = 0; for (i = 0; i < 32; i++) item->xst[i] = 0; } ����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/version.c����������������������������������������������������������������������������������0000664�0000764�0000764�00000000641�11454157067�010756� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* Released under GPL, written by Caolan.McNamara@ul.ie. Copyright (C) 1998,1999 Caolan McNamara Real Life: Caolan McNamara * Doing: MSc in HCI Work: Caolan.McNamara@ul.ie * Phone: +353-86-8790257 URL: http://skynet.csn.ul.ie/~caolan * Sig: an oblique strategy How would you have done it? */ #ifdef HAVE_CONFIG_H #include "config.h" #endif const char* wv_version = "wvWare version 1.2.9"; �����������������������������������������������������������������������������������������������wv-1.2.9/wvMime�������������������������������������������������������������������������������������0000664�0000764�0000764�00000002673�11247156607�010322� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#!/bin/sh if [ ${#} -ne "1" ]; then echo "Usage: ${0} <word document>" exit 1 fi # check our requirements type wvPS >/dev/null 2>&1 if [ ${?} -ne "0" ]; then echo "Error: required program 'wvPS' was not found" exit 1 fi # viewer application GV="" # check for gnome ghost-view first type ggv >/dev/null 2>&1 if [ ${?} -eq "0" ]; then GV="ggv" else # TODO: does kde have something? # try to default back onto gv type gv >/dev/null 2>&1 if [ ${?} -eq "0" ]; then GV="gv" else # old solaris systems type ghostview >/dev/null 2>&1 if [ ${?} -eq "0" ]; then GV="ghostview" else # unrecoverable error echo "Could not find a suitable PostScript viewer." echo "Please install ggv, gv, or ghostview" exit 1 fi fi fi # temporary PS file, mangled to get some sort # of semi-uniqueness FILE=`basename ${1}` TMPDIR="/tmp/${FILE}-${USER}-${$}" TMPPS="$TMPDIR/${FILE}-${USER}-${$}.ps" mkdir $TMPDIR # Make sure all graphics go into /tmp as well cp ${1} $TMPDIR/$FILE # Extract graphics wvLatex "$TMPDIR/$FILE" "$TMPDIR/$FILE.tex" 2>/dev/null >/dev/null # Graphics conversion if make_epses.sh installed: STEM=$TMPDIR/`basename ${1} .doc` type make_epses.sh 2>&1 >/dev/null if [ ${?} -eq "0" ]; then (cd $TMPDIR; make_epses.sh $STEM) fi wvPS $TMPDIR/$FILE ${TMPPS} if [ ${?} -ne "0" ]; then echo "Could not translate into Postscript" exit 1 fi # call our ghost-viewer ${GV} ${TMPPS} rm -f ${TMPPS} cd / rm -rf $TMPDIR ���������������������������������������������������������������������wv-1.2.9/sttbf.c������������������������������������������������������������������������������������0000664�0000764�0000764�00000021440�11247156607�010412� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include "wv.h" /* STTBF (STring TaBle stored in File) Word has many tables of strings that are stored as Pascal type strings. STTBFs consist of an optional short containing 0xFFFF, indicating that the strings are extended character strings, a short indicating how many strings are included in the string table, another short indicating the size in bytes of the extra data stored with each string and each string followed by the extra data. Non-extended charater Pascal strings begin with a single byte length count which describes how many characters follow the length byte in the string. If pst is a pointer to an array of characters storing a Pascal style string then the length of the string is *pst+1. In an STTBF Pascal style strings are concatenated one after another until the length of the STTBF recorded in the FIB is exhausted. Extra data associated with a string may also be stored in an sttbf. When extra data is stored for an STTBF, it is written at the end of each string. For example: The extra data for an STTBF consists of a short. If the string "Cat" were stored, the actual entry in the string table would consist of a length byte containing 3 (3 for "Cat") followed by the bytes 'C' 'a' 't', followed by the 2 bytes containing the short. Extended character strings are stored just the same, except they have a double byte length count and each extended character occupies two bytes. */ void wvGetSTTBF (STTBF * anS, U32 offset, U32 len, wvStream * fd) { int i, j; U16 slen; anS->s8strings = NULL; anS->u16strings = NULL; anS->extradata = NULL; wvTrace (("sttbf offset is %x,len %d\n", offset, len)); if (len == 0) { anS->nostrings = 0; return; } wvStream_goto (fd, offset); anS->extendedflag = read_16ubit (fd); if (anS->extendedflag != 0xFFFF) { /*old U8 strings */ anS->nostrings = anS->extendedflag; } else { /*U16 chars */ anS->nostrings = read_16ubit (fd); } anS->extradatalen = read_16ubit (fd); if (anS->extendedflag == 0xFFFF) anS->u16strings = (U16 **) wvMalloc (sizeof (U16 *) * anS->nostrings); else anS->s8strings = (S8 **) wvMalloc (sizeof (S8 *) * anS->nostrings); if (anS->extradatalen) { anS->extradata = (U8 **) wvMalloc (sizeof (U8 *) * anS->nostrings); for (i = 0; i < anS->nostrings; i++) anS->extradata[i] = (U8 *) wvMalloc (anS->extradatalen); } if (anS->extendedflag == 0xFFFF) { for (i = 0; i < anS->nostrings; i++) { slen = read_16ubit (fd); if (slen == 0) anS->u16strings[i] = NULL; else { anS->u16strings[i] = (U16 *) wvMalloc (sizeof (U16) * (slen + 1)); for (j = 0; j < slen; j++) anS->u16strings[i][j] = read_16ubit (fd); anS->u16strings[i][j] = 0; } if (anS->extradatalen) for (j = 0; j < anS->extradatalen; j++) anS->extradata[i][j] = read_8ubit (fd); } } else { for (i = 0; i < anS->nostrings; i++) { slen = read_8ubit (fd); if (slen == 0) anS->s8strings[i] = NULL; else { anS->s8strings[i] = (S8 *) wvMalloc (slen + 1); for (j = 0; j < slen; j++) anS->s8strings[i][j] = read_8ubit (fd); anS->s8strings[i][j] = 0; } if (anS->extradatalen) for (j = 0; j < anS->extradatalen; j++) anS->extradata[i][j] = read_8ubit (fd); } } } void wvReleaseSTTBF (STTBF * item) { int i; if (item->s8strings != NULL) { for (i = 0; i < item->nostrings; i++) wvFree (item->s8strings[i]); wvFree (item->s8strings); } if (item->u16strings != NULL) { for (i = 0; i < item->nostrings; i++) wvFree (item->u16strings[i]); wvFree (item->u16strings); } if (item->extradata != NULL) { for (i = 0; i < item->nostrings; i++) wvFree (item->extradata[i]); wvFree (item->extradata); } } void wvListSTTBF (STTBF * item) { int i, j; U16 *letter; if (item->s8strings != NULL) { for (i = 0; i < item->nostrings; i++) fprintf (stderr, "string is %s\n", item->s8strings[i]); } else if (item->u16strings != NULL) { for (i = 0; i < item->nostrings; i++) { fprintf (stderr, "string is "); letter = item->u16strings[i]; while ((letter != NULL) && (*letter != 0)) fprintf (stderr, "%c", *letter++); fprintf (stderr, "\n"); } } if (item->extradata != NULL) { for (i = 0; i < item->nostrings; i++) for (j = 0; j < item->extradatalen; j++) fprintf (stderr, " %x ", item->extradata[i][j]); fprintf (stderr, "\n"); } } void wvPrintTitle (wvParseStruct * ps, STTBF * item) { int i = 0; CHP achp; wvInitCHP (&achp); if ((item) && (item->nostrings >= 3)) { if (item->extendedflag == 0xFFFF) { if (item->u16strings[ibstAssocTitle] != NULL) { while (item->u16strings[ibstAssocTitle][i]) { wvTrace ( ("title char is %c\n", (item->u16strings[ibstAssocTitle][i]))); wvOutputTextChar (item->u16strings[ibstAssocTitle] [i++], 0, ps, &achp); } return; } } else { if (item->s8strings[ibstAssocTitle] != NULL) { while (item->s8strings[ibstAssocTitle][i]) wvOutputTextChar (item->s8strings[ibstAssocTitle] [i++], 1, ps, &achp); return; } } } printf ("Untitled"); } void wvGetSTTBF6 (STTBF * anS, U32 offset, U32 len, wvStream * fd) { int i, j; U16 slen; U32 table_len = 0; anS->s8strings = NULL; anS->u16strings = NULL; anS->extradata = NULL; anS->nostrings = 0; wvTrace (("word 6 sttbf offset is %x,len %d\n", offset, len)); if (len == 0) { anS->nostrings = 0; return; } wvStream_goto (fd, offset); /* this is very bad, since there can be many more strings in a table than 17 !!! We have to do two passes over the string table anS->nostrings = ibstAssocMaxWord6; */ #ifdef DEBUG /* the table len is a 16 bit, not 8-bit value */ if (len != (U32) read_16ubit (fd)) wvTrace (("word 6 sttbf len does not match up correctly, strange\n")); #else /* whether debugging or not, have to get over the table length value !!! */ read_16ubit (fd); #endif while(table_len < len) { slen = read_8ubit (fd); table_len++; if(slen > 0) { anS->nostrings++; for(i = 0; i < slen; i++) read_8ubit(fd); table_len += slen; } } anS->extendedflag = ibstAssocMaxWord6; /*just for the sake of it */ anS->extradatalen = 0; anS->s8strings = (S8 **) wvMalloc (sizeof (S8 *) * anS->nostrings); /* now go back to the strings table */ wvStream_goto (fd, offset + 2); for (i = 0; i < anS->nostrings; i++) { slen = read_8ubit (fd); if (slen == 0) anS->s8strings[i] = NULL; else { anS->s8strings[i] = (S8 *) wvMalloc (slen + 1); for (j = 0; j < slen; j++) anS->s8strings[i][j] = read_8ubit (fd); anS->s8strings[i][j] = 0; } } } U16 * UssrStrBegin (STTBF * sttbf, int no) { if (no >= sttbf->nostrings) return (NULL); return (sttbf->u16strings[no] + 11); } void wvGetGrpXst (STTBF * anS, U32 offset, U32 len, wvStream * fd) { U16 slen, i; U32 pos = 0; anS->extendedflag = 1; anS->nostrings = 0; anS->extradatalen = 0; anS->s8strings = NULL; anS->u16strings = NULL; anS->extradata = NULL; if (len == 0) return; wvStream_goto (fd, offset); while (pos < len) { slen = read_16ubit (fd); pos += 2; anS->nostrings++; anS->u16strings = (U16 **) realloc (anS->u16strings, sizeof (U16 *) * anS->nostrings); anS->u16strings[anS->nostrings - 1] = (U16 *) wvMalloc (sizeof (U16) * (slen + 1)); for (i = 0; i < slen; i++) anS->u16strings[anS->nostrings - 1][i] = read_16ubit (fd); anS->u16strings[anS->nostrings - 1][i] = 0; pos += (i * 2); } } ��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/winmmap.h����������������������������������������������������������������������������������0000664�0000764�0000764�00000001011�11247156607�010735� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������#ifndef _MMAP_WIN_H #define _MMAP_WIN_H #include <gsf/gsf.h> #include <sys/types.h> #include <stddef.h> #include <io.h> /*mmap section got from imagick sources*/ #if defined _WIN32 #define PROT_READ 1 #define PROT_WRITE 2 #define PROT_READWRITE 3 #define MAP_SHARED 1 #define MAP_PRIVATE 2 #define F_OK 0 #define R_OK 4 #define W_OK 2 #define RW_OK 6 #if !defined(MAP_FAILED) #define MAP_FAILED ((void *) -1) #endif void *mmap(char *,size_t,int,int,int,gsf_off_t); int munmap(void *,size_t); #endif #endif �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������wv-1.2.9/table.c������������������������������������������������������������������������������������0000664�0000764�0000764�00000044777�11454041730�010367� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������0000000�0000000������������������������������������������������������������������������������������������������������������������������������������������������������������������������/* wvWare * Copyright (C) Caolan McNamara, Dom Lachowicz, and others * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <stdio.h> #include "wv.h" #include "bintree.h" /* allow figures within 3 units of each other to be considered the same */ int cellCompLT (void *a, void *b) { S16 *a2, *b2; if (cellCompEQ (a, b)) return (0); a2 = (S16 *) a; b2 = (S16 *) b; return (*a2 < (*b2) + 3); } int cellCompEQ (void *a, void *b) { int ret; S16 *a2, *b2; a2 = (S16 *) a; b2 = (S16 *) b; ret = abs (*a2 - *b2); if (ret <= 3) ret = 1; else ret = 0; return (ret); } void wvGetRowTap (wvParseStruct * ps, PAP * dpap, U32 para_intervals, BTE * btePapx, U32 * posPapx) { PAPX_FKP para_fkp; U32 para_fcFirst, para_fcLim = 0xffffffffL; PAP apap; U32 i; S32 j = 0; wvVersion ver = wvQuerySupported (&ps->fib, NULL); wvCopyPAP (&apap, dpap); wvInitPAPX_FKP (¶_fkp); i = wvStream_tell (ps->mainfd); wvTrace (("RowTab begin\n")); do { wvReleasePAPX_FKP (¶_fkp); wvGetSimpleParaBounds (ver, ¶_fkp, ¶_fcFirst, ¶_fcLim, i, btePapx, posPapx, para_intervals, ps->mainfd); wvTrace (("2: para from %x to %x\n", para_fcFirst, para_fcLim)); wvAssembleSimplePAP (ver, &apap, para_fcLim, ¶_fkp, ps); i = para_fcLim; } while ((apap.fTtp == 0) && apap.fInTable); /* placing '&& apap.fInTable' here fixes #11433. I can't find any regressions */ wvTrace (("fTtp is %d\n", apap.fTtp)); wvReleasePAPX_FKP (¶_fkp); wvCopyTAP (&(dpap->ptap), &apap.ptap); for (j = 0; j < apap.ptap.itcMac + 1; j++) wvTrace (("This Row-->%d\n", apap.ptap.rgdxaCenter[j])); } void wvGetFullTableInit (wvParseStruct * ps, U32 para_intervals, BTE * btePapx, U32 * posPapx) { PAPX_FKP para_fkp; U32 para_fcFirst, para_fcLim = 0xffffffffL; PAP apap; U32 i, j = 0; TAP *test = NULL; wvVersion ver = wvQuerySupported (&ps->fib, NULL); if (ps->intable) return; wvInitPAPX_FKP (¶_fkp); i = wvStream_tell (ps->mainfd); wvTrace (("TOP\n")); do { wvReleasePAPX_FKP (¶_fkp); wvGetSimpleParaBounds (ver, ¶_fkp, ¶_fcFirst, ¶_fcLim, i, btePapx, posPapx, para_intervals, ps->mainfd); wvAssembleSimplePAP (ver, &apap, para_fcLim, ¶_fkp, ps); wvTrace (("para from %x to %x\n", para_fcFirst, para_fcLim)); i = para_fcLim; /* ignore the row end markers */ /*if (apap.ptap.itcMac)*/ /* we ascertain the number of rows by counting the end of row markers. NB: a row marker can have a 0 itcMac*/ if (apap.fTtp) { test = (TAP *) realloc (test, sizeof (TAP) * (j + 1)); wvCopyTAP (&(test[j]), &apap.ptap); wvTrace (("Row %d\n", j)); j++; } } while (apap.fInTable); wvTrace (("BOTTOM\n")); wvReleasePAPX_FKP (¶_fkp); wvSetTableInfo (ps, test, j); ps->intable = 1; ps->norows = j; wvFree (test); } /* ------------------------- | | | ------------------------- | | | | | | | ------------------------- | | ------------------------- | | | | ------------------------- ==> | | | | | | | | | As in this example we create a list of cell begin positions which is a superset of all begin positions in all rows, once we have this list we restart at the top of the table and figure out how many spans each cell has to achieve to match back up to its original boundaries. We will have to match boundaries that are with in 3 units of eachother to be the same boundary as that occurs frequently in word tables, (gagh!) */ void wvSetTableInfo (wvParseStruct * ps, TAP * ptap, int no) { BintreeInfo tree; Node *testn, *testp; int i, j, k; if (ps->vmerges) { wvTrace (("vmerges is not NULL\n")); for (i = 0; i < ps->norows; i++) wvFree (ps->vmerges[i]); wvFree (ps->vmerges); ps->vmerges = NULL; } if (no == 0) { wvWarning ("Broken tables, continuing and hoping for the best\n"); ps->nocellbounds = 0; return; } InitBintree (&tree, cellCompLT, cellCompEQ); wvTrace (("we still ok, no is %d\n", no)); for (i = 0; i < no; i++) { for (j = 0; j < ptap[i].itcMac + 1; j++) { wvTrace (("%d\n", ptap[i].rgdxaCenter[j])); InsertNode (&tree, (void *) &(ptap[i].rgdxaCenter[j])); } } wvTrace (("end of in\n")); testn = NextNode (&tree, NULL); ps->nocellbounds = tree.no_in_tree; wvFree (ps->cellbounds); if (tree.no_in_tree) ps->cellbounds = (S16 *) wvMalloc (sizeof (S16) * tree.no_in_tree); else ps->cellbounds = NULL; i = 0; wvTrace (("No in tree is %d\n", tree.no_in_tree)); while (testn != NULL) { ps->cellbounds[i++] = *((S16 *) testn->Data); wvTrace (("cellbound are %d\n", ps->cellbounds[i - 1])); testp = NextNode (&tree, testn); wvDeleteNode (&tree, testn); testn = testp; } wvTrace (("No in tree according to i is %d\n", i)); wvTrace (("end of out\n")); ps->vmerges = (S16 **) wvMalloc (sizeof (S16 *) * no); wvTrace (("no of rows is %d\n", no)); for (i = 0; i < no; i++) { ps->vmerges[i] = (S16 *) wvMalloc (sizeof (S16) * ptap[i].itcMac); wvTrace (("no of cells is %d\n", ptap[i].itcMac)); for (j = 0; j < ptap[i].itcMac; j++) ps->vmerges[i][j] = 1; } for (i = no - 1; i > 0; i--) { for (j = 0; j < ptap[i].itcMac; j++) { wvTrace ( ("Vertical merge is %d\n", ptap[i].rgtc[j].fVertMerge)); if (ptap[i].rgtc[j].fVertMerge) { wvTrace ( ("Vertical merge found, row %d, cell %d\n", i, j)); /* find a cell above me with the same boundaries if it is also merged increment it, and set myself to 0 else leave me alone */ for (k = 0; k < ptap[i - 1].itcMac; k++) /* the row above */ { wvTrace ( ("cell begins are %d %d\n", ptap[i - 1].rgdxaCenter[k], ptap[i].rgdxaCenter[j])); wvTrace ( ("cell ends are %d %d\n", ptap[i - 1].rgdxaCenter[k + 1], ptap[i].rgdxaCenter[j + 1])); if ( (cellCompEQ ((void *) &(ptap[i - 1].rgdxaCenter[k]), (void *) &(ptap[i].rgdxaCenter[j]))) && (cellCompEQ ((void *) &(ptap[i - 1].rgdxaCenter[k + 1]), (void *) &(ptap[i].rgdxaCenter[j + 1])))) { wvTrace (("found a cell above me, yippee\n")); if (ptap[i - 1].rgtc[k].fVertMerge) { ps->vmerges[i - 1][k] += ps->vmerges[i][j]; ps->vmerges[i][j] = 0; } } } } } } for (i = 0; i < no; i++) for (j = 0; j < ptap[i].itcMac; j++) wvTrace (("rowspan numbers are %d\n", ps->vmerges[i][j])); } /* table backgrounds */ /* 0 1 2 3 first row 4 5 6 7 even row 8 9 10 11 odd row 12 13 14 15 last row F E O L i v d a r e d s s n t t C C o C C o l o o l u l l u m u u m n m m n n n */ static int cellbgcolors[40][4][4] = { /*0 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*1 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*2 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*3 */ { {1, 1, 1, 1}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*4 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*5 */ { {12, 12, 12, 12}, {16, 8, 8, 8}, {16, 8, 8, 8}, {16, 8, 8, 8} }, /*6 */ { {9, 9, 9, 9}, {16, 16, 16, 16}, {16, 16, 16, 16}, {8, 8, 8, 8} }, /*7 */ { {2, 2, 2, 2}, {8, 8, 8, 8}, {8, 8, 8, 8}, {15, 15, 15, 15} }, /*8 */ { {1, 1, 1, 1}, {9, 11, 11, 11}, {9, 11, 11, 11}, {9, 11, 11, 11} }, /*9 */ { {6, 6, 6, 6}, {7, 7, 7, 16}, {7, 7, 7, 16}, {7, 7, 7, 16} }, /*10 */ { {1, 11, 11, 11}, {11, 3, 3, 3}, {11, 3, 3, 3}, {11, 3, 3, 3} }, /*11 */ { {16, 16, 7, 16}, {16, 16, 7, 16}, {16, 16, 7, 16}, {16, 16, 7, 16} }, /*12 */ { {9, 9, 9, 9}, {16, 16, 4, 16}, {16, 16, 4, 16}, {16, 16, 4, 16} }, /*13 */ { {9, 9, 9, 9}, {15, 15, 16, 15}, {15, 15, 16, 15}, {15, 15, 16, 15} }, /*14 */ { {1, 1, 1, 1}, {3, 3, 16, 3}, {3, 3, 16, 3}, {3, 3, 16, 3} }, /*15 */ { {15, 15, 8, 15}, {15, 15, 8, 15}, {15, 15, 8, 15}, {15, 15, 8, 15} }, /*16 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*17 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*18 */ { {7, 7, 7, 7}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*19 */ { {7, 7, 7, 7}, {8, 8, 8, 8}, {8, 8, 8, 8}, {7, 7, 7, 7} }, /*20 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*21 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*22 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*23 */ { {9, 9, 9, 9}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*24 */ { {16, 16, 16, 16}, {8, 8, 8, 8}, {16, 16, 16, 16}, {8, 8, 8, 8} }, /*25 */ { {11, 11, 11, 11}, {8, 8, 8, 8}, {4, 4, 4, 4}, {8, 8, 8, 8} }, /*26 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*27 */ { {15, 15, 15, 15}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*28 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*29 */ { {15, 15, 15, 15}, {15, 15, 15, 15}, {16, 16, 16, 16}, {15, 15, 15, 15} }, /*30 */ { {16, 16, 16, 16}, {7, 7, 7, 7}, {16, 16, 16, 16}, {8, 8, 8, 8} }, /*31 */ { {7, 7, 7, 7}, {6, 6, 6, 6}, {14, 14, 14, 14}, {6, 6, 6, 6} }, /*32 */ { {15, 15, 15, 15}, {15, 15, 15, 15}, {15, 15, 15, 15}, {15, 15, 15, 15} }, /*33 */ { {15, 15, 15, 15}, {15, 15, 15, 15}, {15, 15, 15, 15}, {15, 15, 15, 15} }, /*34 */ { {15, 15, 16, 15}, {15, 15, 16, 15}, {15, 15, 16, 15}, {15, 15, 16, 15} }, /*35 */ { {15, 15, 15, 15}, {15, 15, 15, 15}, {16, 16, 16, 16}, {15, 15, 15, 15} }, /*36 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*37 */ { {1, 1, 1, 1}, {8, 8, 8, 8}, {8, 8, 8, 8}, {8, 8, 8, 8} }, /*38 */ { {8, 8, 8, 8}, {8, 8, 8, 8}, {10, 10, 10, 10}, {5, 5, 5, 5} }, /*39 */ { {8, 8, 8, 8}, {4, 8, 8, 10}, {4, 8, 8, 10}, {4, 8, 8, 10} } }; /* determine where we should be in the grid, if we do not want the special end cases, and we are one of them, then shift into a new location in the grid, and output the color sitting there */ int wvCellBgColor (int whichrow, int whichcell, int nocells, int norows, TLP * tlp) { if (whichrow == norows - 1) whichrow = 3; else if (whichrow > 0) { if (isodd (whichrow)) whichrow = 2; else whichrow = 1; } if (whichcell == nocells - 1) whichcell = 3; else if (whichcell > 0) { if (isodd (whichcell)) whichcell = 2; else whichcell = 1; } wvTrace ( ("the cell index and bgcolor is %d %d %d,%d (last cell and row are %d %d)\n", tlp->itl, whichrow, whichcell, cellbgcolors[tlp->itl][whichrow][whichcell], nocells, norows)); if (tlp->itl >= 40) { wvWarning ("Table Look %d requested, but theres only %d in the list\n", tlp->itl + 1, 40); return (8); } return (cellbgcolors[tlp->itl][whichrow][whichcell]); } /* get the end cp of the piece i as a cp wvGetComplexParaBounds as fc's go to the end as a cp */ void TheTest (wvParseStruct * ps, U32 piece, BTE * btePapx, U32 * posPapx, U32 para_intervals) { U32 piececount; int ichartype; U8 chartype; U32 begincp, endcp; U32 beginfc, endfc; U32 i, j, k = 0; U32 para_fcFirst, para_fcLim; PAPX_FKP para_fkp; PAP apap; int cpiece = 0; wvVersion ver = wvQuerySupported (&ps->fib, NULL); long pos = wvStream_tell (ps->mainfd); wvInitPAPX_FKP (¶_fkp); para_fcFirst = wvConvertCPToFC (ps->currentcp, &ps->clx); for (piececount = piece; piececount < ps->clx.nopcd; piececount++) { ichartype = wvGetPieceBoundsFC (&beginfc, &endfc, &ps->clx, piececount); if(ichartype==-1) break; chartype = (U8) ichartype; wvStream_goto (ps->mainfd, beginfc); wvGetPieceBoundsCP (&begincp, &endcp, &ps->clx, piececount); if (k == 0) { wvTrace ( ("cp distance is %d, cp is %d\n", ps->currentcp - begincp, ps->currentcp)); wvTrace ( ("no of pieces is %d, this one is %d\n", ps->clx.nopcd, piece)); k++; begincp = ps->currentcp; beginfc = wvConvertCPToFC (ps->currentcp, &ps->clx); } wvTrace ( ("begin and end are %d %d (%x %x)\n", begincp, endcp, beginfc, endfc)); para_fcLim = 0xffffffffL; for (i = begincp, j = beginfc; (i < endcp && i < ps->fib.ccpText); i++, j += wvIncFC (chartype)) { if ((para_fcLim == 0xffffffffL) || (para_fcLim == j)) { wvReleasePAPX_FKP (¶_fkp); wvTrace ( ("cp and fc are %x(%d) %x\n", i, i, wvConvertCPToFC (i, &ps->clx))); cpiece = wvGetComplexParaBounds (ver, ¶_fkp, ¶_fcFirst, ¶_fcLim, wvConvertCPToFC (i, &ps->clx), &ps->clx, btePapx, posPapx, para_intervals, piececount, ps->mainfd); wvTrace ( ("para begin and end is %x %x, pieceend is %x\n", para_fcFirst, para_fcLim, wvConvertCPToFC (endcp, &ps->clx))); } if (j == para_fcFirst) { wvAssembleSimplePAP (ver, &apap, para_fcLim, ¶_fkp, ps); wvAssembleComplexPAP (ver, &apap, cpiece, ps); wvTrace ( ("table ttp are %d %d\n", apap.fInTable, apap.fTtp)); } } } wvStream_goto (ps->mainfd, pos); } void wvGetComplexFullTableInit (wvParseStruct * ps, U32 para_intervals, BTE * btePapx, U32 * posPapx, U32 piece) { PAPX_FKP para_fkp; U32 para_fcFirst, para_fcLim = 0xffffffffL; PAP apap; U32 i, j = 0, k = 0; S32 l; TAP *test = NULL; wvVersion ver = wvQuerySupported (&ps->fib, NULL); if (ps->intable) return; #if 0 /* some testing code */ wvTrace (("before test\n")); TheTest (ps, piece, btePapx, posPapx, para_intervals); wvTrace (("after test\n")); #endif wvInitPAPX_FKP (¶_fkp); i = wvStream_tell (ps->mainfd); wvTrace (("TOP\n")); do { wvTrace (("cycle again\n")); wvReleasePAPX_FKP (¶_fkp); wvTrace ( ("2: cp and fc are %x(%d) %x\n", i, i, wvConvertCPToFC (i, &ps->clx))); piece = wvGetComplexParaBounds (ver, ¶_fkp, ¶_fcFirst, ¶_fcLim, i, &ps->clx, btePapx, posPapx, para_intervals, piece, ps->mainfd); if (piece == 0xffffffffL) break; wvAssembleSimplePAP (ver, &apap, para_fcLim, ¶_fkp, ps); wvTrace (("para from %x to %x\n", para_fcFirst, para_fcLim)); wvAssembleComplexPAP (ver, &apap, piece, ps); wvTrace (("para from %x to %x\n", para_fcFirst, para_fcLim)); i = para_fcLim; /* ignore the row end markers */ /* if ((apap.ptap.itcMac) (apap.fTtp))*/ /* we ascertain the number of rows by counting the end of row markers. NB: a row marker can have a 0 itcMac*/ if (apap.fTtp) { test = (TAP *) realloc (test, sizeof (TAP) * (j + 1)); wvCopyTAP (&(test[j]), &apap.ptap); for (l = 0; l < apap.ptap.itcMac + 1; l++) wvTrace (("In This Row-->%d\n", apap.ptap.rgdxaCenter[l])); j++; } if (apap.fTtp) k++; } while (apap.fInTable); wvTrace (("BOTTOM\n")); #ifdef DEBUG if (piece == 0xffffffffL) wvTrace (("broken on line %d\n", j)); #endif wvTrace (("no of lines is %d %d\n", j, k)); wvReleasePAPX_FKP (¶_fkp); wvSetTableInfo (ps, test, j); ps->intable = 1; ps->norows = j; wvFree (test); } void wvGetComplexRowTap (wvParseStruct * ps, PAP * dpap, U32 para_intervals, BTE * btePapx, U32 * posPapx, U32 piece) { PAPX_FKP para_fkp; U32 para_fcFirst, para_fcLim = 0xffffffffL; PAP apap; U32 i; S32 j = 0; wvVersion ver = wvQuerySupported (&ps->fib, NULL); wvCopyPAP (&apap, dpap); wvInitPAPX_FKP (¶_fkp); i = wvStream_tell (ps->mainfd); do { wvReleasePAPX_FKP (¶_fkp); wvTrace ( ("3: cp and fc are %x(%d) %x\n", i, i, wvConvertCPToFC (i, &ps->clx))); piece = wvGetComplexParaBounds (ver, ¶_fkp, ¶_fcFirst, ¶_fcLim, i, &ps->clx, btePapx, posPapx, para_intervals, piece, ps->mainfd); if (piece == 0xffffffffL) break; wvAssembleSimplePAP (ver, &apap, para_fcLim, ¶_fkp, ps); wvAssembleComplexPAP (ver, &apap, piece, ps); wvTrace ( ("para from %x to %x, table is %d\n", para_fcFirst, para_fcLim, apap.fInTable)); i = para_fcLim; } while (apap.fTtp == 0); wvReleasePAPX_FKP (¶_fkp); wvCopyTAP (&(dpap->ptap), &apap.ptap); for (j = 0; j < apap.ptap.itcMac + 1; j++) wvTrace (("This Row-->%d\n", apap.ptap.rgdxaCenter[j])); } �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������