2025-03-05 13:47:07

This commit is contained in:
Ho Sy Tan 2025-03-05 13:47:07 +07:00
commit cf166372c9
274 changed files with 132916 additions and 0 deletions

10
AUTHORS Normal file
View file

@ -0,0 +1,10 @@
Expat is brought to you by:
Clark Cooper
Fred L. Drake, Jr.
Greg Stein
James Clark
Karl Waclawek
Rhodri James
Sebastian Pipping
Steven Solie

42
CMake.README Normal file
View file

@ -0,0 +1,42 @@
== How to build expat with cmake (experimental) ==
The cmake based buildsystem for expat works on Windows (cygwin, mingw, Visual
Studio) and should work on all other platform cmake supports.
Assuming ~/expat-2.6.4 is the source directory of expat, add a subdirectory
build and change into that directory:
~/expat-2.6.4$ mkdir build && cd build
~/expat-2.6.4/build$
From that directory, call cmake first, then call make, make test and
make install in the usual way:
~/expat-2.6.4/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
....
-- Configuring done
-- Generating done
-- Build files have been written to: /home/patrick/expat-2.6.4/build
If you want to specify the install location for your files, append
-DCMAKE_INSTALL_PREFIX=/your/install/path to the cmake call.
~/expat-2.6.4/build$ make && make test && make install
Scanning dependencies of target expat
[ 5%] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o
[ 11%] Building C object CMakeFiles/expat.dir/lib/xmlrole.c.o
....
-- Installing: /usr/local/lib/pkgconfig/expat.pc
-- Installing: /usr/local/bin/xmlwf
-- Installing: /usr/local/share/man/man1/xmlwf.1
For Windows builds, you must make sure to call cmake from an environment where
your compiler is reachable, that means either you call it from the
Visual Studio Command Prompt or when using mingw, you must open a cmd.exe and
make sure that gcc can be called. On Windows, you also might want to specify a
special Generator for CMake:
for Visual Studio builds do:
cmake .. -G "Visual Studio 16 2019" && msbuild /m expat.sln
for mingw builds do:
cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=D:\expat-install
&& gmake && gmake install

982
CMakeLists.txt Normal file
View file

@ -0,0 +1,982 @@
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2010 Patrick Spendrin <ps_ml@gmx.de>
# Copyright (c) 2012 Karl Waclawek <karl@waclawek.net>
# Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
# Copyright (c) 2016 Sergei Nikulov <sergey.nikulov@gmail.com>
# Copyright (c) 2016 Björn Lindahl <bjorn.lindahl@foi.se>
# Copyright (c) 2016 Tobias Taschner <github@tc84.de>
# Copyright (c) 2016 Ben Boeckel <ben.boeckel@kitware.com>
# Copyright (c) 2017-2022 Rhodri James <rhodri@wildebeest.org.uk>
# Copyright (c) 2017 Rolf Eike Beer <eike@sf-mail.de>
# Copyright (c) 2017 Stephen Groat <stephen@groat.us>
# Copyright (c) 2017 Franek Korta <fkorta@gmail.com>
# Copyright (c) 2018 pedro-vicente <pedro.vicente@space-research.org>
# Copyright (c) 2018 Frank Rast <frank.rast@gefeg.com>
# Copyright (c) 2018 userwithuid <userwithuid@gmail.com>
# Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com>
# Copyright (c) 2019 Kishore Kunche <kishore.kunche@intel.com>
# Copyright (c) 2019 xantares <xantares09@hotmail.com>
# Copyright (c) 2019 Mohammed Khajapasha <mohammed.khajapasha@intel.com>
# Copyright (c) 2019 David Loffredo <loffredo@steptools.com>
# Copyright (c) 2019 Bhargava Shastry <bhargava.shastry@ethereum.org>
# Copyright (c) 2020 Maciej Sroczyński <macieksroczynski@poczta.fm>
# Copyright (c) 2020 Gulliver <gulliver@traumkristalle.net>
# Copyright (c) 2020 Thomas Beutlich <tc@tbeu.de>
# Copyright (c) 2021 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
# Copyright (c) 2022 Johnny Jazeix <jazeix@gmail.com>
# Copyright (c) 2022 David Faure <david.faure@kdab.com>
# Unlike most of Expat,
# this file is copyrighted under the BSD-license for buildsystem files of KDE.
cmake_minimum_required(VERSION 3.5.0)
project(expat
VERSION
2.6.4
LANGUAGES
C
)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF) # i.e. -std=c99 rather than default -std=gnu99
set(PACKAGE_BUGREPORT "https://github.com/libexpat/libexpat/issues")
set(PACKAGE_NAME "expat")
set(PACKAGE_VERSION "${PROJECT_VERSION}")
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
set(PACKAGE_TARNAME "${PACKAGE_NAME}")
include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
#
# Configuration defaults
#
if(WINCE)
set(_EXPAT_BUILD_TOOLS_DEFAULT OFF)
else()
set(_EXPAT_BUILD_TOOLS_DEFAULT ON)
endif()
if(MSVC OR NOT _EXPAT_BUILD_TOOLS_DEFAULT)
set(_EXPAT_BUILD_DOCS_DEFAULT OFF)
else()
find_program(DOCBOOK_TO_MAN NAMES docbook2x-man db2x_docbook2man docbook2man docbook-to-man)
if(DOCBOOK_TO_MAN)
set(_EXPAT_BUILD_DOCS_DEFAULT ON)
else()
set(_EXPAT_BUILD_DOCS_DEFAULT OFF)
endif()
endif()
if(MSVC)
set(_EXPAT_BUILD_PKGCONFIG_DEFAULT OFF)
else()
set(_EXPAT_BUILD_PKGCONFIG_DEFAULT ON)
endif()
if(DEFINED BUILD_SHARED_LIBS)
set(_EXPAT_SHARED_LIBS_DEFAULT ${BUILD_SHARED_LIBS})
else()
set(_EXPAT_SHARED_LIBS_DEFAULT ON)
endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE NoConfig) # so that accessing EXPAT_*_POSTFIX will be waterproof
endif()
string(TOUPPER "${CMAKE_BUILD_TYPE}" _EXPAT_BUILD_TYPE_UPPER)
#
# Configuration
#
macro(expat_shy_set var default cache type desc)
# Macro expat_shy_set came into life because:
# - Expat was previously using an inconsistent mix of CMake's native set()
# and option() to define public build time options.
# - option() is more friendly than set() with regard to configuring an
# external project that is pulled in by means of add_subdirectory() --
# see comments in issue #597 -- so we wanted to get away from set().
# - option() auto-converts non-bool values to bool when writing to the CMake
# cache, so we needed something that supports non-bool better and hence
# wanted to get away from plain option(), too.
#
# As a result, this function serves as a hybrid between CMake's regular set()
# and option(): from set() it takes support for non-bool types and the function
# name and signature whereas from option() (with policy CMP0077 mode NEW) it
# takes being shy when a value has previously been defined for that variable.
#
# So that resolves all need for set(.. FORCE) when pulling in Expat by means of
# add_subdirectory().
#
if(NOT ${cache} STREQUAL "CACHE")
message(SEND_ERROR "Macro usage is: expat_shy_set(var default CACHE type desc)")
endif()
if(DEFINED ${var})
# NOTE: The idea is to (ideally) only add to the cache if
# there is no cache entry, yet. "if(DEFINED CACHE{var})"
# requires CMake >=3.14.
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.14" AND NOT DEFINED "CACHE{${var}}")
set("${var}" "${${var}}" CACHE "${type}" "${desc}")
endif()
else()
set("${var}" "${default}" CACHE "${type}" "${desc}")
endif()
endmacro()
expat_shy_set(EXPAT_BUILD_TOOLS ${_EXPAT_BUILD_TOOLS_DEFAULT} CACHE BOOL "Build the xmlwf tool for expat library")
expat_shy_set(EXPAT_BUILD_EXAMPLES ON CACHE BOOL "Build the examples for expat library")
expat_shy_set(EXPAT_BUILD_TESTS ON CACHE BOOL "Build the tests for expat library")
expat_shy_set(EXPAT_SHARED_LIBS ${_EXPAT_SHARED_LIBS_DEFAULT} CACHE BOOL "Build a shared expat library")
expat_shy_set(EXPAT_BUILD_DOCS ${_EXPAT_BUILD_DOCS_DEFAULT} CACHE BOOL "Build man page for xmlwf")
expat_shy_set(EXPAT_BUILD_FUZZERS OFF CACHE BOOL "Build fuzzers for the expat library")
expat_shy_set(EXPAT_BUILD_PKGCONFIG ${_EXPAT_BUILD_PKGCONFIG_DEFAULT} CACHE BOOL "Build pkg-config file")
expat_shy_set(EXPAT_OSSFUZZ_BUILD OFF CACHE BOOL "Build fuzzers via ossfuzz for the expat library")
if(UNIX OR _EXPAT_HELP)
expat_shy_set(EXPAT_WITH_LIBBSD OFF CACHE BOOL "Utilize libbsd (for arc4random_buf)")
endif()
expat_shy_set(EXPAT_ENABLE_INSTALL ON CACHE BOOL "Install expat files in cmake install target")
expat_shy_set(EXPAT_CONTEXT_BYTES 1024 CACHE STRING "Define to specify how much context to retain around the current parse point, 0 to disable")
mark_as_advanced(EXPAT_CONTEXT_BYTES)
expat_shy_set(EXPAT_DTD ON CACHE BOOL "Define to make parameter entity parsing functionality available")
mark_as_advanced(EXPAT_DTD)
expat_shy_set(EXPAT_GE ON CACHE BOOL "Define to make general entity parsing functionality available")
mark_as_advanced(EXPAT_GE)
expat_shy_set(EXPAT_NS ON CACHE BOOL "Define to make XML Namespaces functionality available")
mark_as_advanced(EXPAT_NS)
expat_shy_set(EXPAT_WARNINGS_AS_ERRORS OFF CACHE BOOL "Treat all compiler warnings as errors")
if(UNIX OR _EXPAT_HELP)
expat_shy_set(EXPAT_DEV_URANDOM ON CACHE BOOL "Define to include code reading entropy from `/dev/urandom'.")
expat_shy_set(EXPAT_WITH_GETRANDOM "AUTO" CACHE STRING "Make use of getrandom function (ON|OFF|AUTO) [default=AUTO]")
expat_shy_set(EXPAT_WITH_SYS_GETRANDOM "AUTO" CACHE STRING "Make use of syscall SYS_getrandom (ON|OFF|AUTO) [default=AUTO]")
mark_as_advanced(EXPAT_DEV_URANDOM)
endif()
expat_shy_set(EXPAT_CHAR_TYPE "char" CACHE STRING "Character type to use (char|ushort|wchar_t) [default=char]")
expat_shy_set(EXPAT_ATTR_INFO OFF CACHE BOOL "Define to allow retrieving the byte offsets for attribute names and values")
mark_as_advanced(EXPAT_ATTR_INFO)
expat_shy_set(EXPAT_LARGE_SIZE OFF CACHE BOOL "Make XML_GetCurrent* functions return <(unsigned) long long> rather than <(unsigned) long>")
mark_as_advanced(EXPAT_LARGE_SIZE)
expat_shy_set(EXPAT_MIN_SIZE OFF CACHE BOOL "Get a smaller (but slower) parser (in particular avoid multiple copies of the tokenizer)")
mark_as_advanced(EXPAT_MIN_SIZE)
if(MSVC OR _EXPAT_HELP)
expat_shy_set(EXPAT_MSVC_STATIC_CRT OFF CACHE BOOL "Use /MT flag (static CRT) when compiling in MSVC")
endif()
if(NOT _EXPAT_HELP)
expat_shy_set(_EXPAT_M32 OFF CACHE BOOL "(Unofficial!) Produce 32bit code with -m32")
mark_as_advanced(_EXPAT_M32)
endif()
if(EXPAT_BUILD_TESTS)
# We have to call enable_language() before modifying any CMAKE_CXX_* variables
enable_language(CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF) # i.e. -std=c++11 rather than default -std=gnu++11
endif()
#
# Environment checks
#
if(EXPAT_DTD AND NOT EXPAT_GE)
message(SEND_ERROR "Option EXPAT_DTD requires that EXPAT_GE is also enabled.")
message(SEND_ERROR "Please either enable option EXPAT_GE (recommended) or disable EXPAT_DTD also.")
endif()
if(EXPAT_WITH_LIBBSD)
find_library(LIB_BSD NAMES bsd)
if(NOT LIB_BSD)
message(SEND_ERROR "EXPAT_WITH_LIBBSD option is enabled, but libbsd was not found")
else()
set(HAVE_LIBBSD TRUE)
endif()
endif()
if(MSVC)
# For the three types of MSVC version values, please see:
# - https://cmake.org/cmake/help/latest/variable/MSVC_VERSION.html
# - https://sourceforge.net/p/predef/wiki/Compilers/
# - https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History
set(_EXPAT_MSVC_REQUIRED_INT 1800) # i.e. 12.0/2013/1800; see PR #426
set(_EXPAT_MSVC_SUPPORTED_INT 1920)
set(_EXPAT_MSVC_SUPPORTED_DISPLAY "Visual Studio 16.0/2019/${_EXPAT_MSVC_SUPPORTED_INT}")
if(MSVC_VERSION VERSION_LESS ${_EXPAT_MSVC_SUPPORTED_INT})
if(MSVC_VERSION VERSION_LESS ${_EXPAT_MSVC_REQUIRED_INT})
message(SEND_ERROR "MSVC_VERSION ${MSVC_VERSION} is TOO OLD to compile Expat without errors.")
message(SEND_ERROR "Please use officially supported ${_EXPAT_MSVC_SUPPORTED_DISPLAY} or later. Thank you!")
else()
message(WARNING "MSVC_VERSION ${MSVC_VERSION} is NOT OFFICIALLY SUPPORTED by Expat.")
message(WARNING "Please use ${_EXPAT_MSVC_SUPPORTED_DISPLAY} or later. Thank you!")
endif()
endif()
endif()
macro(_expat_copy_bool_int source_ref dest_ref)
if(${source_ref})
set(${dest_ref} 1)
else()
set(${dest_ref} 0)
endif()
endmacro()
if(EXPAT_LARGE_SIZE)
add_definitions(-DXML_LARGE_SIZE)
endif()
if(EXPAT_MIN_SIZE)
add_definitions(-DXML_MIN_SIZE)
endif()
if(EXPAT_CHAR_TYPE STREQUAL "char")
set(_EXPAT_UNICODE OFF)
set(_EXPAT_UNICODE_WCHAR_T OFF)
elseif(EXPAT_CHAR_TYPE STREQUAL "ushort")
set(_EXPAT_UNICODE ON)
set(_EXPAT_UNICODE_WCHAR_T OFF)
if(EXPAT_BUILD_EXAMPLES)
message(SEND_ERROR "Examples can not be built with option -DEXPAT_CHAR_TYPE=ushort. Please pass -DEXPAT_CHAR_TYPE=(char|wchar_t) or -DEXPAT_BUILD_EXAMPLES=OFF.")
endif()
if(EXPAT_BUILD_TESTS)
message(SEND_ERROR "The testsuite can not be built with option -DEXPAT_CHAR_TYPE=ushort. Please pass -DEXPAT_CHAR_TYPE=(char|wchar_t) or -DEXPAT_BUILD_TESTS=OFF.")
endif()
if(EXPAT_BUILD_TOOLS)
message(SEND_ERROR "The xmlwf tool can not be built with option -DEXPAT_CHAR_TYPE=ushort. Please pass -DEXPAT_CHAR_TYPE=(char|wchar_t) or -DEXPAT_BUILD_TOOLS=OFF.")
endif()
elseif(EXPAT_CHAR_TYPE STREQUAL "wchar_t")
set(_EXPAT_UNICODE ON)
set(_EXPAT_UNICODE_WCHAR_T ON)
if(NOT WIN32)
string(FIND "${CMAKE_C_FLAGS}" "-fshort-wchar" _expat_short_wchar_found)
if(${_expat_short_wchar_found} EQUAL "-1")
message(SEND_ERROR "Configuration -DEXPAT_CHAR_TYPE=wchar_t requires -DCMAKE_{C,CXX}_FLAGS=-fshort-wchar (which was not found) and libc compiled with -fshort-wchar, too.")
endif()
if (EXPAT_BUILD_TOOLS)
message(SEND_ERROR "The xmlwf tool can not be built with option -DEXPAT_CHAR_TYPE=wchar_t outside of Windows. Please pass -DEXPAT_CHAR_TYPE=char or -DEXPAT_BUILD_TOOLS=OFF.")
endif()
endif()
else()
message(SEND_ERROR "Option -DEXPAT_CHAR_TYPE=(char|ushort|wchar_t) cannot be \"${EXPAT_CHAR_TYPE}\".")
endif()
if(_EXPAT_UNICODE)
add_definitions(-DXML_UNICODE) # for unsigned short
if(_EXPAT_UNICODE_WCHAR_T)
add_definitions(-DXML_UNICODE_WCHAR_T) # for wchar_t
endif()
endif()
include(${CMAKE_CURRENT_LIST_DIR}/ConfigureChecks.cmake)
macro(evaluate_detection_results use_ref have_ref thing_lower thing_title)
if(${use_ref} AND NOT (${use_ref} STREQUAL "AUTO") AND NOT ${have_ref})
message(SEND_ERROR
"Use of ${thing_lower} was enforced by ${use_ref}=ON but it could not be found.")
elseif(NOT ${use_ref} AND ${have_ref})
message("${thing_title} was found but it will not be used due to ${use_ref}=OFF.")
set(${have_ref} 0)
endif()
endmacro()
if(NOT WIN32)
evaluate_detection_results(EXPAT_WITH_GETRANDOM HAVE_GETRANDOM "function getrandom" "Function getrandom")
evaluate_detection_results(EXPAT_WITH_SYS_GETRANDOM HAVE_SYSCALL_GETRANDOM "syscall SYS_getrandom" "Syscall SYS_getrandom")
endif()
_expat_copy_bool_int(EXPAT_ATTR_INFO XML_ATTR_INFO)
_expat_copy_bool_int(EXPAT_DTD XML_DTD)
_expat_copy_bool_int(EXPAT_GE XML_GE)
_expat_copy_bool_int(EXPAT_LARGE_SIZE XML_LARGE_SIZE)
_expat_copy_bool_int(EXPAT_MIN_SIZE XML_MIN_SIZE)
_expat_copy_bool_int(EXPAT_NS XML_NS)
if(NOT WIN32)
_expat_copy_bool_int(EXPAT_DEV_URANDOM XML_DEV_URANDOM)
endif()
if(NOT EXPAT_CONTEXT_BYTES GREATER 0) # in particular with -DEXPAT_CONTEXT_BYTES=OFF
set(EXPAT_CONTEXT_BYTES 0)
endif()
set(XML_CONTEXT_BYTES ${EXPAT_CONTEXT_BYTES})
macro(expat_install)
if(EXPAT_ENABLE_INSTALL)
install(${ARGN})
endif()
endmacro()
configure_file(expat_config.h.cmake "${CMAKE_CURRENT_BINARY_DIR}/expat_config.h")
expat_install(FILES "${CMAKE_CURRENT_BINARY_DIR}/expat_config.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
set(EXTRA_COMPILE_FLAGS)
if(FLAG_NO_STRICT_ALIASING)
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -fno-strict-aliasing")
endif()
if(FLAG_VISIBILITY)
if(EXPAT_SHARED_LIBS)
add_definitions(-DXML_ENABLE_VISIBILITY=1)
endif()
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -fvisibility=hidden")
endif()
if(MINGW)
# Without __USE_MINGW_ANSI_STDIO the compiler produces a false positive
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -Wno-pedantic-ms-format")
endif()
if (EXPAT_WARNINGS_AS_ERRORS)
if(MSVC)
add_definitions(/WX)
else()
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -Werror")
if(MINGW)
# To avoid "error: unknown conversion type character l in format [-Werror=format=]"
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -Wno-format")
endif()
endif()
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_COMPILE_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_COMPILE_FLAGS}")
if (MSVC)
if (EXPAT_MSVC_STATIC_CRT)
message("-- Using static CRT ${EXPAT_MSVC_STATIC_CRT}")
foreach(flag_var
CMAKE_CXX_FLAGS_${_EXPAT_BUILD_TYPE_UPPER}
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_${_EXPAT_BUILD_TYPE_UPPER}
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_RELWITHDEBINFO
)
string(REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
endforeach()
endif()
endif()
if(_EXPAT_M32 AND NOT MSVC)
foreach(flag_var
CMAKE_CXX_FLAGS_${_EXPAT_BUILD_TYPE_UPPER}
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_${_EXPAT_BUILD_TYPE_UPPER}
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_RELWITHDEBINFO
)
set(${flag_var} "${${flag_var}} -m32")
endforeach()
endif()
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/lib)
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4996)
endif()
#
# C library
#
set(_EXPAT_C_SOURCES
lib/xmlparse.c
lib/xmlrole.c
lib/xmltok.c
# NOTE: ISO C forbids an empty translation unit
# lib/xmltok_impl.c
# lib/xmltok_ns.c
)
if(EXPAT_SHARED_LIBS)
set(_SHARED SHARED)
if(WIN32)
macro(_expat_def_file_toggle source_var target_var)
if(${source_var})
set(${target_var} " ") # i.e. not commented out, a single space
else()
set(${target_var} ";") # i.e. commented out
endif()
endmacro()
if(EXPAT_DTD OR EXPAT_GE)
set(_EXPAT_DTD_OR_GE TRUE)
else()
set(_EXPAT_DTD_OR_GE FALSE)
endif()
_expat_def_file_toggle(_EXPAT_DTD_OR_GE _EXPAT_COMMENT_DTD_OR_GE)
_expat_def_file_toggle(EXPAT_ATTR_INFO _EXPAT_COMMENT_ATTR_INFO)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/lib/libexpat.def.cmake" "${CMAKE_CURRENT_BINARY_DIR}/lib/libexpat.def")
set(_EXPAT_EXTRA_SOURCES ${_EXPAT_EXTRA_SOURCES} "${CMAKE_CURRENT_BINARY_DIR}/lib/libexpat.def")
# Add DLL version
string(REPLACE "." "," _EXPAT_DLL_VERSION ${PROJECT_VERSION}.0)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/win32/version.rc.cmake" "${CMAKE_CURRENT_BINARY_DIR}/win32/version.rc")
set(_EXPAT_EXTRA_SOURCES ${_EXPAT_EXTRA_SOURCES} "${CMAKE_CURRENT_BINARY_DIR}/win32/version.rc")
endif()
else()
set(_SHARED STATIC)
endif()
add_library(expat ${_SHARED} ${_EXPAT_C_SOURCES} ${_EXPAT_EXTRA_SOURCES})
add_library(expat::expat ALIAS expat)
if(_EXPAT_LIBM_FOUND)
target_link_libraries(expat m)
endif()
if(EXPAT_WITH_LIBBSD)
target_link_libraries(expat ${LIB_BSD})
endif()
#
# Library filename postfix
#
if(_EXPAT_UNICODE)
set(_POSTFIX_WIDE "w")
endif()
if(MSVC AND NOT EXPAT_SHARED_LIBS)
if(EXPAT_MSVC_STATIC_CRT)
set(_POSTFIX_CRT "MT")
else()
set(_POSTFIX_CRT "MD")
endif()
endif()
foreach(build_type_upper
${_EXPAT_BUILD_TYPE_UPPER}
DEBUG
RELEASE
MINSIZEREL
RELWITHDEBINFO
)
if(WIN32 AND build_type_upper STREQUAL "DEBUG")
set(_POSTFIX_DEBUG "d")
else()
set(_POSTFIX_DEBUG "") # needs a reset because of being looped
endif()
expat_shy_set(EXPAT_${build_type_upper}_POSTFIX "${_POSTFIX_WIDE}${_POSTFIX_DEBUG}${_POSTFIX_CRT}" CACHE STRING "Library filename postfix for build type ${build_type_upper}; yields filenames libexpat<postfix=[w][d][MD|MT]>.(dll|dylib|lib|so)")
mark_as_advanced(EXPAT_${build_type_upper}_POSTFIX)
set_property(TARGET expat PROPERTY ${build_type_upper}_POSTFIX ${EXPAT_${build_type_upper}_POSTFIX})
endforeach()
set(LIBCURRENT 11) # sync
set(LIBREVISION 0) # with
set(LIBAGE 10) # configure.ac!
math(EXPR LIBCURRENT_MINUS_AGE "${LIBCURRENT} - ${LIBAGE}")
if(NOT WIN32)
set_property(TARGET expat PROPERTY VERSION ${LIBCURRENT_MINUS_AGE}.${LIBAGE}.${LIBREVISION})
set_property(TARGET expat PROPERTY SOVERSION ${LIBCURRENT_MINUS_AGE})
set_property(TARGET expat PROPERTY NO_SONAME ${NO_SONAME})
if(APPLE)
if(NOT CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
message(FATAL_ERROR "Expat requires CMake >=3.17 on platform \"APPLE\".")
endif()
# NOTE: This intends to talk CMake into compatibility with GNU Libtool
math(EXPR _EXPAT_MACHO_COMPATIBILITY_VERSION "${LIBCURRENT} + 1")
set(_EXPAT_MACHO_CURRENT_VERSION "${_EXPAT_MACHO_COMPATIBILITY_VERSION}.${LIBREVISION}")
set_property(TARGET expat PROPERTY MACHO_COMPATIBILITY_VERSION ${_EXPAT_MACHO_COMPATIBILITY_VERSION})
set_property(TARGET expat PROPERTY MACHO_CURRENT_VERSION ${_EXPAT_MACHO_CURRENT_VERSION})
endif()
endif()
if(MINGW AND EXPAT_SHARED_LIBS)
set_target_properties(expat PROPERTIES SUFFIX "-${LIBCURRENT_MINUS_AGE}.dll")
endif()
if(WIN32 AND NOT MINGW)
# NOTE: This avoids a name collision with Expat.dll of Perl's XML::Parser::Expat
# on Windows by resorting to filename libexpat.dll since Expat 1.95.3.
# Everything but MSVC is already adding prefix "lib", automatically.
# NOTE: "set_property(TARGET expat PROPERTY PREFIX lib)" would only affect *.dll
# files but not *.lib files, so we have to rely on property OUTPUT_NAME, instead.
# Target property <CONFIG>_POSTFIX still applies.
set(_EXPAT_OUTPUT_NAME libexpat)
set_property(TARGET expat PROPERTY OUTPUT_NAME ${_EXPAT_OUTPUT_NAME})
else()
set(_EXPAT_OUTPUT_NAME expat)
endif()
target_include_directories(expat
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/lib>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
if(WIN32 AND EXPAT_SHARED_LIBS)
target_compile_definitions(expat PRIVATE VER_FILEVERSION=${_EXPAT_DLL_VERSION})
endif()
expat_install(TARGETS expat EXPORT expat
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
expat_install(FILES lib/expat.h lib/expat_external.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
#
# pkg-config file
#
if(EXPAT_BUILD_PKGCONFIG)
if(CMAKE_INSTALL_LIBDIR MATCHES "^/")
set(_expat_pkgconfig_libdir "${CMAKE_INSTALL_LIBDIR}")
else()
set(_expat_pkgconfig_libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
endif()
if(CMAKE_INSTALL_INCLUDEDIR MATCHES "^/")
set(_expat_pkgconfig_includedir "${CMAKE_INSTALL_INCLUDEDIR}")
else()
set(_expat_pkgconfig_includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
endif()
set_target_properties(expat PROPERTIES
pkgconfig_prefix "${CMAKE_INSTALL_PREFIX}"
pkgconfig_exec_prefix "\${prefix}"
pkgconfig_libdir "${_expat_pkgconfig_libdir}"
pkgconfig_includedir "${_expat_pkgconfig_includedir}"
pkgconfig_version "${PACKAGE_VERSION}")
foreach(_build_type ${CMAKE_BUILD_TYPE} Debug Release RelWithDebInfo MinSizeRel)
string(TOLOWER "${_build_type}" _build_type_lower)
string(TOUPPER "${_build_type}" _build_type_upper)
set_property(TARGET expat PROPERTY "pkgconfig_${_build_type_lower}_name" "expat${EXPAT_${_build_type_upper}_POSTFIX}")
set_property(TARGET expat PROPERTY "pkgconfig_${_build_type_lower}_output_name" "${_EXPAT_OUTPUT_NAME}${EXPAT_${_build_type_upper}_POSTFIX}")
if(_EXPAT_LIBM_FOUND)
set_property(TARGET expat PROPERTY "pkgconfig_libm" "-lm")
else()
set_property(TARGET expat PROPERTY "pkgconfig_libm" "")
endif()
endforeach()
file(GENERATE
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/expat.pc
INPUT ${PROJECT_SOURCE_DIR}/expat.pc.cmake)
expat_install(FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/expat.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
endif()
#
# C command line tool xmlwf
#
if(EXPAT_BUILD_TOOLS)
set(xmlwf_SRCS
xmlwf/codepage.c
xmlwf/readfilemap.c
xmlwf/xmlfile.c
xmlwf/xmlwf.c
)
add_executable(xmlwf ${xmlwf_SRCS})
set_property(TARGET xmlwf PROPERTY RUNTIME_OUTPUT_DIRECTORY xmlwf)
target_link_libraries(xmlwf expat)
if(_EXPAT_LIBM_FOUND)
target_link_libraries(xmlwf m)
endif()
expat_install(TARGETS xmlwf DESTINATION ${CMAKE_INSTALL_BINDIR})
if(MINGW AND _EXPAT_UNICODE_WCHAR_T)
# https://gcc.gnu.org/onlinedocs/gcc/x86-Windows-Options.html
set_target_properties(xmlwf PROPERTIES LINK_FLAGS -municode)
endif()
if(EXPAT_BUILD_DOCS)
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/doc)
add_custom_target(
xmlwf-manpage
COMMAND
"${DOCBOOK_TO_MAN}" "${PROJECT_SOURCE_DIR}/doc/xmlwf.xml" && mv "XMLWF.1" "${PROJECT_BINARY_DIR}/doc/xmlwf.1"
BYPRODUCTS
doc/xmlwf.1)
add_dependencies(expat xmlwf-manpage)
expat_install(FILES "${PROJECT_BINARY_DIR}/doc/xmlwf.1" DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
elseif(EXISTS ${PROJECT_SOURCE_DIR}/doc/xmlwf.1)
expat_install(FILES "${PROJECT_SOURCE_DIR}/doc/xmlwf.1" DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
endif()
endif()
#
# C code examples
#
if(EXPAT_BUILD_EXAMPLES)
foreach(_target element_declarations elements outline)
add_executable(${_target} examples/${_target}.c)
set_property(TARGET ${_target} PROPERTY RUNTIME_OUTPUT_DIRECTORY examples)
target_link_libraries(${_target} expat)
endforeach()
endif()
#
# C/C++ test runners
#
if(EXPAT_BUILD_TESTS)
## these are unittests that can be run on any platform
enable_testing()
if(NOT MSVC)
if(MINGW)
set(host whatever-mingw32) # for nothing but run.sh
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/run.sh.in run.sh @ONLY)
endif()
function(expat_add_test _name _file)
if(MSVC)
add_test(NAME ${_name} COMMAND ${_file})
else()
add_test(NAME ${_name} COMMAND bash run.sh ${_file})
endif()
endfunction()
set(_EXPAT_TEST_TARGETS runtests runtests_cxx)
add_executable(runtests
tests/acc_tests.c
tests/alloc_tests.c
tests/basic_tests.c
tests/chardata.c
tests/common.c
tests/dummy.c
tests/handlers.c
tests/memcheck.c
tests/minicheck.c
tests/misc_tests.c
tests/ns_tests.c
tests/nsalloc_tests.c
tests/runtests.c
tests/structdata.c
${_EXPAT_C_SOURCES}
)
add_executable(runtests_cxx
tests/acc_tests_cxx.cpp
tests/alloc_tests_cxx.cpp
tests/basic_tests_cxx.cpp
tests/chardata_cxx.cpp
tests/common_cxx.cpp
tests/dummy_cxx.cpp
tests/handlers_cxx.cpp
tests/memcheck_cxx.cpp
tests/minicheck_cxx.cpp
tests/misc_tests_cxx.cpp
tests/ns_tests_cxx.cpp
tests/nsalloc_tests_cxx.cpp
tests/runtests_cxx.cpp
tests/structdata_cxx.cpp
${_EXPAT_C_SOURCES}
)
foreach(_target ${_EXPAT_TEST_TARGETS})
target_compile_definitions(${_target} PRIVATE -DXML_TESTING)
set_property(TARGET ${_target} PROPERTY RUNTIME_OUTPUT_DIRECTORY tests)
expat_add_test(${_target} $<TARGET_FILE:${_target}>)
if(_EXPAT_LIBM_FOUND)
target_link_libraries(${_target} m)
endif()
if(EXPAT_WITH_LIBBSD)
target_link_libraries(${_target} ${LIB_BSD})
endif()
endforeach()
add_executable(benchmark tests/benchmark/benchmark.c)
set_property(TARGET benchmark PROPERTY RUNTIME_OUTPUT_DIRECTORY tests/benchmark)
target_link_libraries(benchmark expat)
endif()
#
# Fuzzers
#
if(EXPAT_BUILD_FUZZERS)
if(NOT "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
message(SEND_ERROR
"Building fuzz targets without Clang (but ${CMAKE_C_COMPILER_ID}) "
"is not supported. Please set "
"-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++.")
endif()
string(FIND "${CMAKE_C_FLAGS}" "-fsanitize" sanitizer_present)
if(${sanitizer_present} EQUAL "-1")
message(WARNING
"There was no sanitizer present when building the fuzz targets. "
"This is likely in error - consider adding "
"-DCMAKE_C_FLAGS='-fsanitize=<sanitizer>' and "
"-DCMAKE_CXX_FLAGS='-fsanitize=<sanitizer>' and "
"-DCMAKE_EXE_LINKER_FLAGS='-fsanitize=<sanitizer>' and "
"-DCMAKE_MODULE_LINKER_FLAGS='-fsanitize=<sanitizer>' and "
"-DCMAKE_SHARED_LINKER_FLAGS='-fsanitize=<sanitizer>' to your cmake "
"execution.")
endif()
if(EXPAT_OSSFUZZ_BUILD AND NOT DEFINED ENV{LIB_FUZZING_ENGINE})
message(SEND_ERROR
"OSS-Fuzz builds require the environment variable "
"LIB_FUZZING_ENGINE to be set. If you are seeing this "
"warning, it points to a deeper problem in the ossfuzz "
"build setup.")
endif()
set(encoding_types UTF-16 UTF-8 ISO-8859-1 US-ASCII UTF-16BE UTF-16LE)
set(fuzz_targets xml_parse_fuzzer xml_parsebuffer_fuzzer)
add_library(fuzzpat STATIC ${_EXPAT_C_SOURCES})
if(NOT EXPAT_OSSFUZZ_BUILD)
target_compile_options(fuzzpat PRIVATE -fsanitize=fuzzer-no-link)
endif()
foreach(fuzz_target ${fuzz_targets})
foreach(encoding_type ${encoding_types})
set(target_name ${fuzz_target}_${encoding_type})
add_executable(${target_name} fuzz/${fuzz_target}.c)
target_link_libraries(${target_name} fuzzpat)
target_compile_definitions(${target_name}
PRIVATE ENCODING_FOR_FUZZING=${encoding_type})
if(NOT EXPAT_OSSFUZZ_BUILD)
target_compile_options(${target_name} PRIVATE -fsanitize=fuzzer-no-link)
endif()
# NOTE: Avoiding target_link_options here only because it needs CMake >=3.13
if(EXPAT_OSSFUZZ_BUILD)
set_target_properties(${target_name} PROPERTIES LINK_FLAGS $ENV{LIB_FUZZING_ENGINE})
set_target_properties(${target_name} PROPERTIES LINKER_LANGUAGE "CXX")
else()
set_target_properties(${target_name} PROPERTIES LINK_FLAGS -fsanitize=fuzzer)
endif()
set_property(
TARGET ${target_name} PROPERTY RUNTIME_OUTPUT_DIRECTORY fuzz)
endforeach()
endforeach()
else()
if(EXPAT_OSSFUZZ_BUILD)
message(SEND_ERROR
"Attempting to perform an ossfuzz build without turning on the fuzzer build. "
"This is likely in error - consider adding "
"-DEXPAT_BUILD_FUZZERS=ON to your cmake execution.")
endif()
endif()
#
# C/C++ config affecting multiple targets
#
if(WIN32)
set(_EXPAT_STATIC_TARGETS ${_EXPAT_TEST_TARGETS})
if(NOT EXPAT_SHARED_LIBS)
list(APPEND _EXPAT_STATIC_TARGETS expat)
endif()
if(EXPAT_BUILD_FUZZERS)
list(APPEND _EXPAT_STATIC_TARGETS fuzzpat)
endif()
foreach(_target ${_EXPAT_STATIC_TARGETS})
target_compile_definitions(${_target} PUBLIC -DXML_STATIC)
endforeach()
endif()
#
# Custom target "run-xmltest"
#
if(EXPAT_BUILD_TOOLS AND NOT MSVC)
add_custom_target(
xmlts-zip-downloaded
COMMAND
sh -c 'test -f xmlts.zip || wget --output-document=xmlts.zip https://www.w3.org/XML/Test/xmlts20080827.zip'
BYPRODUCTS
tests/xmlts.zip
WORKING_DIRECTORY
tests/)
add_custom_target(
xmlts-zip-extracted
COMMAND
sh -c 'test -d xmlconf || unzip -q xmlts.zip'
BYPRODUCTS
tests/xmlconf
WORKING_DIRECTORY
tests/)
add_dependencies(xmlts-zip-extracted xmlts-zip-downloaded)
add_custom_target(
xmltest-sh-been-run
COMMAND
sh -c '${CMAKE_CURRENT_SOURCE_DIR}/tests/xmltest.sh "bash ${CMAKE_CURRENT_BINARY_DIR}/run.sh $<TARGET_FILE:xmlwf>" 2>&1 | tee tests/xmltest.log'
BYPRODUCTS
tests/xmltest.log)
add_dependencies(xmltest-sh-been-run xmlts-zip-extracted xmlwf)
add_custom_target(
xmltest-log-fixed
COMMAND
${CMAKE_CURRENT_SOURCE_DIR}/fix-xmltest-log.sh tests/xmltest.log
DEPENDS
tests/xmltest.log)
add_dependencies(xmltest-log-fixed xmltest-sh-been-run)
add_custom_target(
xmltest-log-verified
COMMAND
diff -u ${CMAKE_CURRENT_SOURCE_DIR}/tests/xmltest.log.expected tests/xmltest.log)
add_dependencies(xmltest-log-verified xmltest-log-fixed)
add_custom_target(run-xmltest)
add_dependencies(run-xmltest xmltest-log-verified)
endif()
#
# Documentation
#
configure_file(Changes changelog COPYONLY)
expat_install(
FILES
AUTHORS
${CMAKE_CURRENT_BINARY_DIR}/changelog
DESTINATION
${CMAKE_INSTALL_DOCDIR})
#
# CMake files for find_package(expat [..] CONFIG [..])
#
configure_package_config_file(
cmake/expat-config.cmake.in
cmake/expat-config.cmake
INSTALL_DESTINATION
${CMAKE_INSTALL_LIBDIR}/cmake/expat-${PROJECT_VERSION}/
)
write_basic_package_version_file(
cmake/expat-config-version.cmake
COMPATIBILITY SameMajorVersion # i.e. semver
)
export(
TARGETS
expat
FILE
cmake/expat-targets.cmake # not going to be installed
)
expat_install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/cmake/expat-config.cmake
${CMAKE_CURRENT_BINARY_DIR}/cmake/expat-config-version.cmake
DESTINATION
${CMAKE_INSTALL_LIBDIR}/cmake/expat-${PROJECT_VERSION}/
)
expat_install(
EXPORT
expat
DESTINATION
${CMAKE_INSTALL_LIBDIR}/cmake/expat-${PROJECT_VERSION}/
NAMESPACE
expat::
)
#
# CPack
#
# This effectively disables target "package_source".
# That is done due to CPack's unfortunate choice of an exclusion list
# rather than inclusion list. An exclusion list does not protect against
# unwanted files ending up in the resulting archive in a way that's
# safe to run from an Expat developer's machine.
set(CPACK_SOURCE_GENERATOR '')
if(WIN32)
set(CPACK_GENERATOR ZIP)
else()
set(CPACK_GENERATOR TGZ)
endif()
include(CPack)
#
# Summary
#
if(EXPAT_CHAR_TYPE STREQUAL "char")
set(_EXPAT_CHAR_TYPE_SUMMARY "char (UTF-8)")
elseif(EXPAT_CHAR_TYPE STREQUAL "ushort")
set(_EXPAT_CHAR_TYPE_SUMMARY "ushort (unsigned short, UTF-16)")
elseif(EXPAT_CHAR_TYPE STREQUAL "wchar_t")
if(WIN32)
set(_EXPAT_CHAR_TYPE_SUMMARY "wchar_t (UTF-16)")
else()
set(_EXPAT_CHAR_TYPE_SUMMARY "wchar_t (UTF-32) // not implemented")
endif()
else()
set(_EXPAT_CHAR_TYPE_SUMMARY "ERROR")
endif()
# NOTE: We're not accessing global property GENERATOR_IS_MULTI_CONFIG
# because that would require CMake >=3.9
if(CMAKE_CONFIGURATION_TYPES)
set(_EXPAT_GENERATOR_IS_MULTI_CONFIG TRUE)
else()
set(_EXPAT_GENERATOR_IS_MULTI_CONFIG FALSE)
endif()
message(STATUS "===========================================================================")
message(STATUS "")
message(STATUS "Configuration")
message(STATUS " Generator .................. ${CMAKE_GENERATOR}")
if(_EXPAT_GENERATOR_IS_MULTI_CONFIG)
message(STATUS " Build types ................ ${CMAKE_CONFIGURATION_TYPES}")
else()
message(STATUS " Build type ................. ${CMAKE_BUILD_TYPE}")
endif()
message(STATUS " Prefix ..................... ${CMAKE_INSTALL_PREFIX}")
message(STATUS " Shared libraries ........... ${EXPAT_SHARED_LIBS}")
if(MSVC)
message(STATUS " Static CRT ................. ${EXPAT_MSVC_STATIC_CRT}")
endif()
message(STATUS " Character type ............. ${_EXPAT_CHAR_TYPE_SUMMARY}")
if(NOT _EXPAT_GENERATOR_IS_MULTI_CONFIG)
message(STATUS " Library name postfix ....... ${EXPAT_${_EXPAT_BUILD_TYPE_UPPER}_POSTFIX}")
endif()
message(STATUS "")
message(STATUS " Build documentation ........ ${EXPAT_BUILD_DOCS}")
message(STATUS " Build examples ............. ${EXPAT_BUILD_EXAMPLES}")
message(STATUS " Build fuzzers .............. ${EXPAT_BUILD_FUZZERS}")
message(STATUS " Build tests ................ ${EXPAT_BUILD_TESTS}")
message(STATUS " Build tools (xmlwf) ........ ${EXPAT_BUILD_TOOLS}")
message(STATUS " Build pkg-config file ...... ${EXPAT_BUILD_PKGCONFIG}")
message(STATUS " Install files .............. ${EXPAT_ENABLE_INSTALL}")
message(STATUS "")
message(STATUS " Features")
message(STATUS " // Advanced options, changes not advised")
message(STATUS " Attributes info .......... ${EXPAT_ATTR_INFO}")
message(STATUS " Context bytes ............ ${EXPAT_CONTEXT_BYTES}")
message(STATUS " DTD support .............. ${EXPAT_DTD}")
message(STATUS " General entities ......... ${EXPAT_GE}")
message(STATUS " Large size ............... ${EXPAT_LARGE_SIZE}")
message(STATUS " Minimum size ............. ${EXPAT_MIN_SIZE}")
message(STATUS " Namespace support ........ ${EXPAT_NS}")
message(STATUS "")
message(STATUS " Entropy sources")
if(WIN32)
message(STATUS " rand_s ................... ON")
else()
message(STATUS " getrandom ................ ${HAVE_GETRANDOM}")
message(STATUS " syscall SYS_getrandom .... ${HAVE_SYSCALL_GETRANDOM}")
message(STATUS " libbsd ................... ${EXPAT_WITH_LIBBSD}")
message(STATUS " /dev/random .............. ${EXPAT_DEV_URANDOM}")
endif()
message(STATUS "")
if(CMAKE_GENERATOR STREQUAL "Unix Makefiles")
message(STATUS "Continue with")
message(STATUS " make")
if(EXPAT_BUILD_TESTS)
message(STATUS " make test")
endif()
if(EXPAT_ENABLE_INSTALL)
message(STATUS " sudo make install")
endif()
message(STATUS "")
endif()
message(STATUS "===========================================================================")

21
COPYING Normal file
View file

@ -0,0 +1,21 @@
Copyright (c) 1998-2000 Thai Open Source Software Center Ltd and Clark Cooper
Copyright (c) 2001-2022 Expat maintainers
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1553
Changes Normal file

File diff suppressed because it is too large Load diff

76
ConfigureChecks.cmake Normal file
View file

@ -0,0 +1,76 @@
include(CheckCCompilerFlag)
include(CheckCSourceCompiles)
include(CheckIncludeFile)
include(CheckIncludeFiles)
include(CheckLibraryExists)
include(CheckSymbolExists)
include(TestBigEndian)
check_include_file("dlfcn.h" HAVE_DLFCN_H)
check_include_file("fcntl.h" HAVE_FCNTL_H)
check_include_file("inttypes.h" HAVE_INTTYPES_H)
check_include_file("memory.h" HAVE_MEMORY_H)
check_include_file("stdint.h" HAVE_STDINT_H)
check_include_file("stdlib.h" HAVE_STDLIB_H)
check_include_file("strings.h" HAVE_STRINGS_H)
check_include_file("string.h" HAVE_STRING_H)
check_include_file("sys/stat.h" HAVE_SYS_STAT_H)
check_include_file("sys/types.h" HAVE_SYS_TYPES_H)
check_include_file("unistd.h" HAVE_UNISTD_H)
check_symbol_exists("getpagesize" "unistd.h" HAVE_GETPAGESIZE)
check_symbol_exists("mmap" "sys/mman.h" HAVE_MMAP)
check_symbol_exists("getrandom" "sys/random.h" HAVE_GETRANDOM)
if(EXPAT_WITH_LIBBSD)
set(CMAKE_REQUIRED_LIBRARIES "${LIB_BSD}")
set(_bsd "bsd/")
else()
set(_bsd "")
endif()
check_symbol_exists("arc4random_buf" "${_bsd}stdlib.h" HAVE_ARC4RANDOM_BUF)
if(NOT HAVE_ARC4RANDOM_BUF)
check_symbol_exists("arc4random" "${_bsd}stdlib.h" HAVE_ARC4RANDOM)
endif()
set(CMAKE_REQUIRED_LIBRARIES)
#/* Define to 1 if you have the ANSI C header files. */
check_include_files("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS)
test_big_endian(WORDS_BIGENDIAN)
#/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
if(WORDS_BIGENDIAN)
set(BYTEORDER 4321)
else(WORDS_BIGENDIAN)
set(BYTEORDER 1234)
endif(WORDS_BIGENDIAN)
if(HAVE_SYS_TYPES_H)
check_c_source_compiles("
#include <sys/types.h>
int main(void) {
const off_t offset = -123;
return 0;
}"
HAVE_OFF_T)
endif()
if(NOT HAVE_OFF_T)
set(off_t "long")
endif()
check_c_source_compiles("
#define _GNU_SOURCE
#include <stdlib.h> /* for NULL */
#include <unistd.h> /* for syscall */
#include <sys/syscall.h> /* for SYS_getrandom */
int main(void) {
syscall(SYS_getrandom, NULL, 0, 0);
return 0;
}"
HAVE_SYSCALL_GETRANDOM)
check_c_compiler_flag("-fno-strict-aliasing" FLAG_NO_STRICT_ALIASING)
check_c_compiler_flag("-fvisibility=hidden" FLAG_VISIBILITY)
check_library_exists(m cos "" _EXPAT_LIBM_FOUND)

1149
Makefile Normal file

File diff suppressed because it is too large Load diff

183
Makefile.am Normal file
View file

@ -0,0 +1,183 @@
#
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2017-2023 Sebastian Pipping <sebastian@pipping.org>
# Copyright (c) 2018 KangLin <kl222@126.com>
# Copyright (c) 2022 Johnny Jazeix <jazeix@gmail.com>
# Copyright (c) 2023 Sony Corporation / Snild Dolkow <snild@sony.com>
# Copyright (c) 2024 Alexander Bluhm <alexander.bluhm@gmx.net>
# Copyright (c) 2024 Dag-Erling Smørgrav <des@des.dev>
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
AUTOMAKE_OPTIONS = \
dist-bzip2 \
dist-lzip \
dist-xz \
foreign \
subdir-objects
ACLOCAL_AMFLAGS = -I m4
LIBTOOLFLAGS = --verbose
SUBDIRS = lib # lib goes first to build first
if WITH_EXAMPLES
SUBDIRS += examples
endif
if WITH_TESTS
SUBDIRS += tests
endif
if WITH_XMLWF
SUBDIRS += xmlwf doc
endif
pkgconfig_DATA = expat.pc
pkgconfigdir = $(libdir)/pkgconfig
dist_cmake_DATA = \
cmake/autotools/expat.cmake
nodist_cmake_DATA = \
cmake/autotools/expat-config-version.cmake \
cmake/autotools/expat-noconfig.cmake \
cmake/expat-config.cmake
cmakedir = $(libdir)/cmake/expat-@PACKAGE_VERSION@
_EXTRA_DIST_CMAKE = \
cmake/autotools/expat-noconfig__linux.cmake.in \
cmake/autotools/expat-noconfig__macos.cmake.in \
cmake/autotools/expat-noconfig__windows.cmake.in \
cmake/autotools/expat-package-init.cmake \
cmake/mingw-toolchain.cmake \
\
CMakeLists.txt \
CMake.README \
ConfigureChecks.cmake \
expat.pc.cmake \
expat_config.h.cmake
_EXTRA_DIST_WINDOWS = \
win32/build_expat_iss.bat \
win32/expat.iss \
win32/MANIFEST.txt \
win32/README.txt \
win32/version.rc.cmake
EXTRA_DIST = \
$(_EXTRA_DIST_CMAKE) \
$(_EXTRA_DIST_WINDOWS) \
\
conftools/expat.m4 \
conftools/get-version.sh \
\
fuzz/xml_parsebuffer_fuzzer.c \
fuzz/xml_parse_fuzzer.c \
\
xmlwf/xmlwf_helpgen.py \
xmlwf/xmlwf_helpgen.sh \
\
buildconf.sh \
Changes \
README.md \
\
fix-xmltest-log.sh \
test-driver-wrapper.sh
.PHONY: buildlib
buildlib:
@echo 'ERROR: Running "make buildlib LIBRARY=libexpatw.la"' >&2
@echo 'ERROR: is no longer supported. INSTEAD please:' >&2
@echo 'ERROR:' >&2
@echo 'ERROR: * Mass-patch Makefile.am, e.g.' >&2
@echo 'ERROR: # find . -name Makefile.am -exec sed \' >&2
@echo 'ERROR: -e "s,libexpat\.la,libexpatw.la," \' >&2
@echo 'ERROR: -e "s,libexpat_la,libexpatw_la," \' >&2
@echo 'ERROR: -i.bak {} +' >&2
@echo 'ERROR:' >&2
@echo 'ERROR: * Run automake to re-generate Makefile.in files' >&2
@echo 'ERROR:' >&2
@echo 'ERROR: * Use "./configure --without-xmlwf" and/or' >&2
@echo 'ERROR: "make -C lib all install" to bypass compilation' >&2
@echo 'ERROR: of xmlwf (e.g. with -DXML_UNICODE)' >&2
@echo 'ERROR:' >&2
@false
.PHONY: run-benchmark
run-benchmark:
$(MAKE) -C tests/benchmark
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/recset.xml 65535 3
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/aaaaaa_attr.xml 4096 3
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/aaaaaa_cdata.xml 4096 3
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/aaaaaa_comment.xml 4096 3
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/aaaaaa_tag.xml 4096 3
./run.sh tests/benchmark/benchmark@EXEEXT@ -n $(top_srcdir)/../testdata/largefiles/aaaaaa_text.xml 4096 3
.PHONY: download-xmlts-zip
download-xmlts-zip:
if test "$(XMLTS_ZIP)" = ""; then \
wget --output-document=tests/xmlts.zip \
https://www.w3.org/XML/Test/xmlts20080827.zip; \
else \
cp $(XMLTS_ZIP) tests/xmlts.zip; \
fi
tests/xmlts.zip:
$(MAKE) download-xmlts-zip
.PHONY: extract-xmlts-zip
extract-xmlts-zip: tests/xmlts.zip
[ -f $(builddir)/tests/xmlts.zip ] || $(MAKE) download-xmlts-zip # vpath workaround
cd tests && unzip -q xmlts.zip
tests/xmlconf: tests/xmlts.zip
$(MAKE) extract-xmlts-zip
.PHONY: run-xmltest
run-xmltest: tests/xmlconf
if WITH_XMLWF
[ -d $(builddir)/tests/xmlconf ] || $(MAKE) extract-xmlts-zip # vpath workaround
$(MAKE) -C lib
$(MAKE) -C xmlwf
$(srcdir)/tests/xmltest.sh "$(abs_builddir)/run.sh $(abs_builddir)/xmlwf/xmlwf@EXEEXT@" 2>&1 | tee $(builddir)/tests/xmltest.log
$(srcdir)/fix-xmltest-log.sh $(builddir)/tests/xmltest.log
diff -u $(srcdir)/tests/xmltest.log.expected $(builddir)/tests/xmltest.log
else
@echo 'ERROR: xmlwf is needed for "make run-xmltest".' >&2
@echo 'ERROR: Please re-configure without --without-xmlwf.' >&2
@false
endif
.PHONY: qa
qa:
QA_COMPILER=clang QA_SANITIZER=address ./qa.sh
QA_COMPILER=clang QA_SANITIZER=memory ./qa.sh
QA_COMPILER=clang QA_SANITIZER=undefined ./qa.sh
QA_COMPILER=gcc QA_PROCESSOR=gcov ./qa.sh

1149
Makefile.in Normal file

File diff suppressed because it is too large Load diff

315
README.md Normal file
View file

@ -0,0 +1,315 @@
[![Run Linux CI tasks](https://github.com/libexpat/libexpat/actions/workflows/linux.yml/badge.svg)](https://github.com/libexpat/libexpat/actions/workflows/linux.yml)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/libexpat/libexpat?svg=true)](https://ci.appveyor.com/project/libexpat/libexpat)
[![Packaging status](https://repology.org/badge/tiny-repos/expat.svg)](https://repology.org/metapackage/expat/versions)
[![Downloads SourceForge](https://img.shields.io/sourceforge/dt/expat?label=Downloads%20SourceForge)](https://sourceforge.net/projects/expat/files/)
[![Downloads GitHub](https://img.shields.io/github/downloads/libexpat/libexpat/total?label=Downloads%20GitHub)](https://github.com/libexpat/libexpat/releases)
> [!CAUTION]
>
> Expat is **understaffed** and without funding.
> There is a [call for help with details](https://github.com/libexpat/libexpat/blob/master/expat/Changes)
> at the top of the `Changes` file.
# Expat, Release 2.6.4
This is Expat, a C99 library for parsing
[XML 1.0 Fourth Edition](https://www.w3.org/TR/2006/REC-xml-20060816/), started by
[James Clark](https://en.wikipedia.org/wiki/James_Clark_%28programmer%29) in 1997.
Expat is a stream-oriented XML parser. This means that you register
handlers with the parser before starting the parse. These handlers
are called when the parser discovers the associated structures in the
document being parsed. A start tag is an example of the kind of
structures for which you may register handlers.
Expat supports the following compilers:
- GNU GCC >=4.5
- LLVM Clang >=3.5
- Microsoft Visual Studio >=16.0/2019 (rolling `${today} minus 5 years`)
Windows users can use the
[`expat-win32bin-*.*.*.{exe,zip}` download](https://github.com/libexpat/libexpat/releases),
which includes both pre-compiled libraries and executables, and source code for
developers.
Expat is [free software](https://www.gnu.org/philosophy/free-sw.en.html).
You may copy, distribute, and modify it under the terms of the License
contained in the file
[`COPYING`](https://github.com/libexpat/libexpat/blob/master/expat/COPYING)
distributed with this package.
This license is the same as the MIT/X Consortium license.
## Using libexpat in your CMake-Based Project
There are three documented ways of using libexpat with CMake:
### a) `find_package` with Module Mode
This approach leverages CMake's own [module `FindEXPAT`](https://cmake.org/cmake/help/latest/module/FindEXPAT.html).
Notice the *uppercase* `EXPAT` in the following example:
```cmake
cmake_minimum_required(VERSION 3.0) # or 3.10, see below
project(hello VERSION 1.0.0)
find_package(EXPAT 2.2.8 MODULE REQUIRED)
add_executable(hello
hello.c
)
# a) for CMake >=3.10 (see CMake's FindEXPAT docs)
target_link_libraries(hello PUBLIC EXPAT::EXPAT)
# b) for CMake >=3.0
target_include_directories(hello PRIVATE ${EXPAT_INCLUDE_DIRS})
target_link_libraries(hello PUBLIC ${EXPAT_LIBRARIES})
```
### b) `find_package` with Config Mode
This approach requires files from…
- libexpat >=2.2.8 where packaging uses the CMake build system
or
- libexpat >=2.3.0 where packaging uses the GNU Autotools build system
on Linux
or
- libexpat >=2.4.0 where packaging uses the GNU Autotools build system
on macOS or MinGW.
Notice the *lowercase* `expat` in the following example:
```cmake
cmake_minimum_required(VERSION 3.0)
project(hello VERSION 1.0.0)
find_package(expat 2.2.8 CONFIG REQUIRED char dtd ns)
add_executable(hello
hello.c
)
target_link_libraries(hello PUBLIC expat::expat)
```
### c) The `FetchContent` module
This approach — as demonstrated below — requires CMake >=3.18 for both the
[`FetchContent` module](https://cmake.org/cmake/help/latest/module/FetchContent.html)
and its support for the `SOURCE_SUBDIR` option to be available.
Please note that:
- Use of the `FetchContent` module with *non-release* SHA1s or `master`
of libexpat is neither advised nor considered officially supported.
- Pinning to a specific commit is great for robust CI.
- Pinning to a specific commit needs updating every time there is a new
release of libexpat — either manually or through automation —,
to not miss out on libexpat security updates.
For an example that pulls in libexpat via Git:
```cmake
cmake_minimum_required(VERSION 3.18)
include(FetchContent)
project(hello VERSION 1.0.0)
FetchContent_Declare(
expat
GIT_REPOSITORY https://github.com/libexpat/libexpat/
GIT_TAG 000000000_GIT_COMMIT_SHA1_HERE_000000000 # i.e. Git tag R_0_Y_Z
SOURCE_SUBDIR expat/
)
FetchContent_MakeAvailable(expat)
add_executable(hello
hello.c
)
target_link_libraries(hello PUBLIC expat)
```
## Building from a Git Clone
If you are building Expat from a check-out from the
[Git repository](https://github.com/libexpat/libexpat/),
you need to run a script that generates the configure script using the
GNU autoconf and libtool tools. To do this, you need to have
autoconf 2.58 or newer. Run the script like this:
```console
./buildconf.sh
```
Once this has been done, follow the same instructions as for building
from a source distribution.
## Building from a Source Distribution
### a) Building with the configure script (i.e. GNU Autotools)
To build Expat from a source distribution, you first run the
configuration shell script in the top level distribution directory:
```console
./configure
```
There are many options which you may provide to configure (which you
can discover by running configure with the `--help` option). But the
one of most interest is the one that sets the installation directory.
By default, the configure script will set things up to install
libexpat into `/usr/local/lib`, `expat.h` into `/usr/local/include`, and
`xmlwf` into `/usr/local/bin`. If, for example, you'd prefer to install
into `/home/me/mystuff/lib`, `/home/me/mystuff/include`, and
`/home/me/mystuff/bin`, you can tell `configure` about that with:
```console
./configure --prefix=/home/me/mystuff
```
Another interesting option is to enable 64-bit integer support for
line and column numbers and the over-all byte index:
```console
./configure CPPFLAGS=-DXML_LARGE_SIZE
```
However, such a modification would be a breaking change to the ABI
and is therefore not recommended for general use &mdash; e.g. as part of
a Linux distribution &mdash; but rather for builds with special requirements.
After running the configure script, the `make` command will build
things and `make install` will install things into their proper
location. Have a look at the `Makefile` to learn about additional
`make` options. Note that you need to have write permission into
the directories into which things will be installed.
If you are interested in building Expat to provide document
information in UTF-16 encoding rather than the default UTF-8, follow
these instructions (after having run `make distclean`).
Please note that we configure with `--without-xmlwf` as xmlwf does not
support this mode of compilation (yet):
1. Mass-patch `Makefile.am` files to use `libexpatw.la` for a library name:
<br/>
`find . -name Makefile.am -exec sed
-e 's,libexpat\.la,libexpatw.la,'
-e 's,libexpat_la,libexpatw_la,'
-i.bak {} +`
1. Run `automake` to re-write `Makefile.in` files:<br/>
`automake`
1. For UTF-16 output as unsigned short (and version/error strings as char),
run:<br/>
`./configure CPPFLAGS=-DXML_UNICODE --without-xmlwf`<br/>
For UTF-16 output as `wchar_t` (incl. version/error strings), run:<br/>
`./configure CFLAGS="-g -O2 -fshort-wchar" CPPFLAGS=-DXML_UNICODE_WCHAR_T
--without-xmlwf`
<br/>Note: The latter requires libc compiled with `-fshort-wchar`, as well.
1. Run `make` (which excludes xmlwf).
1. Run `make install` (again, excludes xmlwf).
Using `DESTDIR` is supported. It works as follows:
```console
make install DESTDIR=/path/to/image
```
overrides the in-makefile set `DESTDIR`, because variable-setting priority is
1. commandline
1. in-makefile
1. environment
Note: This only applies to the Expat library itself, building UTF-16 versions
of xmlwf and the tests is currently not supported.
When using Expat with a project using autoconf for configuration, you
can use the probing macro in `conftools/expat.m4` to determine how to
include Expat. See the comments at the top of that file for more
information.
A reference manual is available in the file `doc/reference.html` in this
distribution.
### b) Building with CMake
The CMake build system is still *experimental* and may replace the primary
build system based on GNU Autotools at some point when it is ready.
#### Available Options
For an idea of the available (non-advanced) options for building with CMake:
```console
# rm -f CMakeCache.txt ; cmake -D_EXPAT_HELP=ON -LH . | grep -B1 ':.*=' | sed 's,^--$,,'
// Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ...
CMAKE_BUILD_TYPE:STRING=
// Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local
// Path to a program.
DOCBOOK_TO_MAN:FILEPATH=/usr/bin/docbook2x-man
// Build man page for xmlwf
EXPAT_BUILD_DOCS:BOOL=ON
// Build the examples for expat library
EXPAT_BUILD_EXAMPLES:BOOL=ON
// Build fuzzers for the expat library
EXPAT_BUILD_FUZZERS:BOOL=OFF
// Build pkg-config file
EXPAT_BUILD_PKGCONFIG:BOOL=ON
// Build the tests for expat library
EXPAT_BUILD_TESTS:BOOL=ON
// Build the xmlwf tool for expat library
EXPAT_BUILD_TOOLS:BOOL=ON
// Character type to use (char|ushort|wchar_t) [default=char]
EXPAT_CHAR_TYPE:STRING=char
// Install expat files in cmake install target
EXPAT_ENABLE_INSTALL:BOOL=ON
// Use /MT flag (static CRT) when compiling in MSVC
EXPAT_MSVC_STATIC_CRT:BOOL=OFF
// Build fuzzers via ossfuzz for the expat library
EXPAT_OSSFUZZ_BUILD:BOOL=OFF
// Build a shared expat library
EXPAT_SHARED_LIBS:BOOL=ON
// Treat all compiler warnings as errors
EXPAT_WARNINGS_AS_ERRORS:BOOL=OFF
// Make use of getrandom function (ON|OFF|AUTO) [default=AUTO]
EXPAT_WITH_GETRANDOM:STRING=AUTO
// Utilize libbsd (for arc4random_buf)
EXPAT_WITH_LIBBSD:BOOL=OFF
// Make use of syscall SYS_getrandom (ON|OFF|AUTO) [default=AUTO]
EXPAT_WITH_SYS_GETRANDOM:STRING=AUTO
```

14
acinclude.m4 Normal file
View file

@ -0,0 +1,14 @@
# acinclude.m4 --
#
m4_include(conftools/ax-require-defined.m4)
m4_include(conftools/ax-check-compile-flag.m4)
m4_include(conftools/ax-check-link-flag.m4)
m4_include(conftools/ax-append-flag.m4)
m4_include(conftools/ax-append-compile-flags.m4)
m4_include(conftools/ax-append-link-flags.m4)
m4_include(conftools/expatcfg-compiler-supports-visibility.m4)
m4_include(conftools/ax-cxx-compile-stdcxx.m4)
m4_include(conftools/ax-cxx-compile-stdcxx-11.m4)
### end of file

1252
aclocal.m4 vendored Normal file

File diff suppressed because it is too large Load diff

35
buildconf.sh Executable file
View file

@ -0,0 +1,35 @@
#! /usr/bin/env bash
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2017-2022 Sebastian Pipping <sebastian@pipping.org>
# Copyright (c) 2018 Marco Maggi <marco.maggi-ipsu@poste.it>
# Copyright (c) 2024 Dag-Erling Smørgrav <des@des.dev>
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
set -e
exec autoreconf --warnings=all --install --verbose "$@"

View file

@ -0,0 +1,65 @@
# This is a basic version file for the Config-mode of find_package().
# It is used by write_basic_package_version_file() as input file for configure_file()
# to create a version-file which can be installed along a config.cmake file.
#
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
# the requested version string are exactly the same and it sets
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
# but only if the requested major version is the same as the current one.
# The variable CVF_VERSION must be set before calling configure_file().
set(PACKAGE_VERSION "2.6.4")
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()
if("2.6.4" MATCHES "^([0-9]+)\\.")
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
endif()
else()
set(CVF_VERSION_MAJOR "2.6.4")
endif()
if(PACKAGE_FIND_VERSION_RANGE)
# both endpoints of the range must have the expected major version
math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
set(PACKAGE_VERSION_COMPATIBLE FALSE)
elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
set(PACKAGE_VERSION_COMPATIBLE TRUE)
else()
set(PACKAGE_VERSION_COMPATIBLE FALSE)
endif()
else()
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
set(PACKAGE_VERSION_COMPATIBLE TRUE)
else()
set(PACKAGE_VERSION_COMPATIBLE FALSE)
endif()
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
set(PACKAGE_VERSION_EXACT TRUE)
endif()
endif()
endif()
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
return()
endif()
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
math(EXPR installedBits "8 * 8")
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()

View file

@ -0,0 +1,65 @@
# This is a basic version file for the Config-mode of find_package().
# It is used by write_basic_package_version_file() as input file for configure_file()
# to create a version-file which can be installed along a config.cmake file.
#
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
# the requested version string are exactly the same and it sets
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version,
# but only if the requested major version is the same as the current one.
# The variable CVF_VERSION must be set before calling configure_file().
set(PACKAGE_VERSION "@PACKAGE_VERSION@")
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()
if("@PACKAGE_VERSION@" MATCHES "^([0-9]+)\\.")
set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
endif()
else()
set(CVF_VERSION_MAJOR "@PACKAGE_VERSION@")
endif()
if(PACKAGE_FIND_VERSION_RANGE)
# both endpoints of the range must have the expected major version
math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1")
if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR)
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT)))
set(PACKAGE_VERSION_COMPATIBLE FALSE)
elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR
AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX)
OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX)))
set(PACKAGE_VERSION_COMPATIBLE TRUE)
else()
set(PACKAGE_VERSION_COMPATIBLE FALSE)
endif()
else()
if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR)
set(PACKAGE_VERSION_COMPATIBLE TRUE)
else()
set(PACKAGE_VERSION_COMPATIBLE FALSE)
endif()
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
set(PACKAGE_VERSION_EXACT TRUE)
endif()
endif()
endif()
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "@SIZEOF_VOID_P@" STREQUAL "")
return()
endif()
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "@SIZEOF_VOID_P@")
math(EXPR installedBits "@SIZEOF_VOID_P@ * 8")
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()

View file

@ -0,0 +1,19 @@
#----------------------------------------------------------------
# Generated CMake target import file for configuration "NoConfig".
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "expat::expat" for configuration "NoConfig"
set_property(TARGET expat::expat APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
set_target_properties(expat::expat PROPERTIES
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/lib/libexpat.so.1.10.0"
IMPORTED_SONAME_NOCONFIG "libexpat.so.1"
)
list(APPEND _cmake_import_check_targets expat::expat )
list(APPEND _cmake_import_check_files_for_expat::expat "${_IMPORT_PREFIX}/lib/libexpat.so.1.10.0" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

View file

@ -0,0 +1,19 @@
#----------------------------------------------------------------
# Generated CMake target import file for configuration "NoConfig".
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "expat::expat" for configuration "NoConfig"
set_property(TARGET expat::expat APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
set_target_properties(expat::expat PROPERTIES
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.so.@SO_MAJOR@.@SO_MINOR@.@SO_PATCH@"
IMPORTED_SONAME_NOCONFIG "libexpat.so.@SO_MAJOR@"
)
list(APPEND _cmake_import_check_targets expat::expat )
list(APPEND _cmake_import_check_files_for_expat::expat "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.so.@SO_MAJOR@.@SO_MINOR@.@SO_PATCH@" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

View file

@ -0,0 +1,19 @@
#----------------------------------------------------------------
# Generated CMake target import file for configuration "NoConfig".
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "expat::expat" for configuration "NoConfig"
set_property(TARGET expat::expat APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
set_target_properties(expat::expat PROPERTIES
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.@SO_MAJOR@.@SO_MINOR@.@SO_PATCH@.dylib"
IMPORTED_SONAME_NOCONFIG "@rpath/libexpat.@SO_MAJOR@.dylib"
)
list(APPEND _cmake_import_check_targets expat::expat )
list(APPEND _cmake_import_check_files_for_expat::expat "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.@SO_MAJOR@.@SO_MINOR@.@SO_PATCH@.dylib" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

View file

@ -0,0 +1,19 @@
#----------------------------------------------------------------
# Generated CMake target import file for configuration "NoConfig".
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Import target "expat::expat" for configuration "NoConfig"
set_property(TARGET expat::expat APPEND PROPERTY IMPORTED_CONFIGURATIONS NOCONFIG)
set_target_properties(expat::expat PROPERTIES
IMPORTED_IMPLIB_NOCONFIG "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.dll.a"
IMPORTED_LOCATION_NOCONFIG "${_IMPORT_PREFIX}/bin/@CMAKE_SHARED_LIBRARY_PREFIX@expat-@SO_MAJOR@.dll"
)
list(APPEND _cmake_import_check_targets expat::expat )
list(APPEND _cmake_import_check_files_for_expat::expat "${_IMPORT_PREFIX}/@LIBDIR_BASENAME@/libexpat.dll.a" "${_IMPORT_PREFIX}/bin/@CMAKE_SHARED_LIBRARY_PREFIX@expat-@SO_MAJOR@.dll" )
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)

View file

@ -0,0 +1,25 @@
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
####### Any changes to this file will be overwritten by the next CMake run ####
####### The input file was expat-config.cmake.in ########
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
macro(set_and_check _var _file)
set(${_var} "${_file}")
if(NOT EXISTS "${_file}")
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
endif()
endmacro()
macro(check_required_components _NAME)
foreach(comp ${${_NAME}_FIND_COMPONENTS})
if(NOT ${_NAME}_${comp}_FOUND)
if(${_NAME}_FIND_REQUIRED_${comp})
set(${_NAME}_FOUND FALSE)
endif()
endif()
endforeach()
endmacro()
####################################################################################

107
cmake/autotools/expat.cmake Normal file
View file

@ -0,0 +1,107 @@
# Generated by CMake
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
message(FATAL_ERROR "CMake >= 2.8.0 required")
endif()
if(CMAKE_VERSION VERSION_LESS "2.8.12")
message(FATAL_ERROR "CMake >= 2.8.12 required")
endif()
cmake_policy(PUSH)
cmake_policy(VERSION 2.8.12...3.28)
#----------------------------------------------------------------
# Generated CMake target import file.
#----------------------------------------------------------------
# Commands may need to know the format version.
set(CMAKE_IMPORT_FILE_VERSION 1)
# Protect against multiple inclusion, which would fail when already imported targets are added once more.
set(_cmake_targets_defined "")
set(_cmake_targets_not_defined "")
set(_cmake_expected_targets "")
foreach(_cmake_expected_target IN ITEMS expat::expat)
list(APPEND _cmake_expected_targets "${_cmake_expected_target}")
if(TARGET "${_cmake_expected_target}")
list(APPEND _cmake_targets_defined "${_cmake_expected_target}")
else()
list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}")
endif()
endforeach()
unset(_cmake_expected_target)
if(_cmake_targets_defined STREQUAL _cmake_expected_targets)
unset(_cmake_targets_defined)
unset(_cmake_targets_not_defined)
unset(_cmake_expected_targets)
unset(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)
return()
endif()
if(NOT _cmake_targets_defined STREQUAL "")
string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}")
string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}")
message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n")
endif()
unset(_cmake_targets_defined)
unset(_cmake_targets_not_defined)
unset(_cmake_expected_targets)
# Compute the installation prefix relative to this file.
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
if(_IMPORT_PREFIX STREQUAL "/")
set(_IMPORT_PREFIX "")
endif()
# Create imported target expat::expat
add_library(expat::expat SHARED IMPORTED)
set_target_properties(expat::expat PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
INTERFACE_LINK_LIBRARIES "m"
)
# Load information for each installed configuration.
file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/expat-*.cmake")
foreach(_cmake_config_file IN LISTS _cmake_config_files)
include("${_cmake_config_file}")
endforeach()
unset(_cmake_config_file)
unset(_cmake_config_files)
# Cleanup temporary variables.
set(_IMPORT_PREFIX)
# Loop over all imported files and verify that they actually exist
foreach(_cmake_target IN LISTS _cmake_import_check_targets)
if(CMAKE_VERSION VERSION_LESS "3.28"
OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
if(NOT EXISTS "${_cmake_file}")
message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
\"${_cmake_file}\"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
\"${CMAKE_CURRENT_LIST_FILE}\"
but not all the files it references.
")
endif()
endforeach()
endif()
unset(_cmake_file)
unset("_cmake_import_check_files_for_${_cmake_target}")
endforeach()
unset(_cmake_target)
unset(_cmake_import_check_targets)
# This file does not depend on other imported targets which have
# been exported from the same project but in a separate export set.
# Commands beyond this point should not need to know the version.
set(CMAKE_IMPORT_FILE_VERSION)
cmake_policy(POP)

99
cmake/expat-config.cmake Normal file
View file

@ -0,0 +1,99 @@
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2019 Expat development team
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
if(NOT _expat_config_included)
# Protect against multiple inclusion
set(_expat_config_included TRUE)
include("${CMAKE_CURRENT_LIST_DIR}/expat.cmake")
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
####### Any changes to this file will be overwritten by the next CMake run ####
####### The input file was expat-config.cmake.in ########
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE)
macro(set_and_check _var _file)
set(${_var} "${_file}")
if(NOT EXISTS "${_file}")
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
endif()
endmacro()
macro(check_required_components _NAME)
foreach(comp ${${_NAME}_FIND_COMPONENTS})
if(NOT ${_NAME}_${comp}_FOUND)
if(${_NAME}_FIND_REQUIRED_${comp})
set(${_NAME}_FOUND FALSE)
endif()
endif()
endforeach()
endmacro()
####################################################################################
#
# Supported components
#
macro(expat_register_component _NAME _AVAILABE)
set(expat_${_NAME}_FOUND ${_AVAILABE})
endmacro()
expat_register_component(attr_info OFF)
expat_register_component(dtd ON)
expat_register_component(large_size OFF)
expat_register_component(min_size OFF)
expat_register_component(ns ON)
if(1024)
expat_register_component(context_bytes ON)
else()
expat_register_component(context_bytes OFF)
endif()
if("char" STREQUAL "char")
expat_register_component(char ON)
expat_register_component(ushort OFF)
expat_register_component(wchar_t OFF)
elseif("char" STREQUAL "ushort")
expat_register_component(char OFF)
expat_register_component(ushort ON)
expat_register_component(wchar_t OFF)
elseif("char" STREQUAL "wchar_t")
expat_register_component(char OFF)
expat_register_component(ushort OFF)
expat_register_component(wchar_t ON)
endif()
check_required_components(expat)
endif(NOT _expat_config_included)

View file

@ -0,0 +1,75 @@
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2019 Expat development team
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
#
if(NOT _expat_config_included)
# Protect against multiple inclusion
set(_expat_config_included TRUE)
include("${CMAKE_CURRENT_LIST_DIR}/expat.cmake")
@PACKAGE_INIT@
#
# Supported components
#
macro(expat_register_component _NAME _AVAILABE)
set(expat_${_NAME}_FOUND ${_AVAILABE})
endmacro()
expat_register_component(attr_info @EXPAT_ATTR_INFO@)
expat_register_component(dtd @EXPAT_DTD@)
expat_register_component(large_size @EXPAT_LARGE_SIZE@)
expat_register_component(min_size @EXPAT_MIN_SIZE@)
expat_register_component(ns @EXPAT_NS@)
if(@EXPAT_CONTEXT_BYTES@)
expat_register_component(context_bytes ON)
else()
expat_register_component(context_bytes OFF)
endif()
if("@EXPAT_CHAR_TYPE@" STREQUAL "char")
expat_register_component(char ON)
expat_register_component(ushort OFF)
expat_register_component(wchar_t OFF)
elseif("@EXPAT_CHAR_TYPE@" STREQUAL "ushort")
expat_register_component(char OFF)
expat_register_component(ushort ON)
expat_register_component(wchar_t OFF)
elseif("@EXPAT_CHAR_TYPE@" STREQUAL "wchar_t")
expat_register_component(char OFF)
expat_register_component(ushort OFF)
expat_register_component(wchar_t ON)
endif()
check_required_components(expat)
endif(NOT _expat_config_included)

View file

@ -0,0 +1,37 @@
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2019 Expat development team
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
set(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
set(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
set(WIN32 ON)
set(MINGW ON)

1939
config.log Normal file

File diff suppressed because it is too large Load diff

2312
config.status Executable file

File diff suppressed because it is too large Load diff

23134
configure vendored Executable file

File diff suppressed because it is too large Load diff

473
configure.ac Normal file
View file

@ -0,0 +1,473 @@
dnl configuration script for expat
dnl Process this file with autoconf to produce a configure script.
dnl __ __ _
dnl ___\ \/ /_ __ __ _| |_
dnl / _ \\ /| '_ \ / _` | __|
dnl | __// \| |_) | (_| | |_
dnl \___/_/\_\ .__/ \__,_|\__|
dnl |_| XML parser
dnl
dnl Copyright (c) 2000 Clark Cooper <coopercc@users.sourceforge.net>
dnl Copyright (c) 2000-2005 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
dnl Copyright (c) 2001-2003 Greg Stein <gstein@users.sourceforge.net>
dnl Copyright (c) 2006-2012 Karl Waclawek <karl@waclawek.net>
dnl Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
dnl Copyright (c) 2017 S. P. Zeidler <spz@netbsd.org>
dnl Copyright (c) 2017 Stephen Groat <stephen@groat.us>
dnl Copyright (c) 2017-2020 Joe Orton <jorton@redhat.com>
dnl Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com>
dnl Copyright (c) 2018 Benjamin Peterson <benjamin@python.org>
dnl Copyright (c) 2018 Marco Maggi <marco.maggi-ipsu@poste.it>
dnl Copyright (c) 2018 KangLin <kl222@126.com>
dnl Copyright (c) 2019 Mohammed Khajapasha <mohammed.khajapasha@intel.com>
dnl Copyright (c) 2019 Kishore Kunche <kishore.kunche@intel.com>
dnl Copyright (c) 2020 Jeffrey Walton <noloader@gmail.com>
dnl Copyright (c) 2024 Ferenc Géczi <ferenc.gm@gmail.com>
dnl Copyright (c) 2024 Dag-Erling Smørgrav <des@des.dev>
dnl Licensed under the MIT license:
dnl
dnl Permission is hereby granted, free of charge, to any person obtaining
dnl a copy of this software and associated documentation files (the
dnl "Software"), to deal in the Software without restriction, including
dnl without limitation the rights to use, copy, modify, merge, publish,
dnl distribute, sublicense, and/or sell copies of the Software, and to permit
dnl persons to whom the Software is furnished to do so, subject to the
dnl following conditions:
dnl
dnl The above copyright notice and this permission notice shall be included
dnl in all copies or substantial portions of the Software.
dnl
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
dnl EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
dnl NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
dnl DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
dnl OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
dnl USE OR OTHER DEALINGS IN THE SOFTWARE.
dnl Ensure that Expat is configured with autoconf 2.69 or newer.
AC_PREREQ([2.69])
dnl Get the version number of Expat, using m4's esyscmd() command to run
dnl the command at m4-generation time. This allows us to create an m4
dnl symbol holding the correct version number. AC_INIT requires the
dnl version number at m4-time, rather than when ./configure is run, so
dnl all this must happen as part of m4, not as part of the shell code
dnl contained in ./configure.
dnl
dnl NOTE: esyscmd() is a GNU M4 extension. Thus, we wrap it in an appropriate
dnl test. I believe this test will work, but I don't have a place with non-
dnl GNU M4 to test it right now.
m4_define([expat_version],
m4_ifdef([__gnu__],
[esyscmd(conftools/get-version.sh lib/expat.h)],
[2.2.x]))
AC_INIT([expat], expat_version, [https://github.com/libexpat/libexpat/issues])
m4_undefine([expat_version])
AC_CONFIG_SRCDIR([Makefile.in])
AC_CONFIG_AUX_DIR([conftools])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE([enable]) # to allow argument --disable-maintainer-mode
dnl
dnl Increment LIBREVISION if source code has changed at all
dnl
dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0
dnl
dnl If the API changes compatibly (i.e. simply adding a new function
dnl without changing or removing earlier interfaces), then increment LIBAGE.
dnl
dnl If the API changes incompatibly set LIBAGE back to 0
dnl
LIBCURRENT=11 # sync
LIBREVISION=0 # with
LIBAGE=10 # CMakeLists.txt!
AC_CONFIG_HEADERS([expat_config.h])
AH_TOP([#ifndef EXPAT_CONFIG_H
#define EXPAT_CONFIG_H 1])
AH_BOTTOM([#endif // ndef EXPAT_CONFIG_H])
AM_PROG_AR
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
LT_PREREQ([2.4])
LT_INIT([win32-dll])
AC_SUBST(LIBCURRENT)
AC_SUBST(LIBREVISION)
AC_SUBST(LIBAGE)
AC_LANG([C])
AC_PROG_CC_C99
AS_IF([test "${ac_cv_prog_cc_c99}" = no],
[AC_MSG_ERROR([Expat requires a C99 compiler.])])
AS_IF([test "$GCC" = yes],
[AX_APPEND_COMPILE_FLAGS([-Wall -Wextra], [AM_CFLAGS])
dnl Be careful about adding the -fexceptions option; some versions of
dnl GCC don't support it and it causes extra warnings that are only
dnl distracting; avoid.
AX_APPEND_COMPILE_FLAGS([-fexceptions], [AM_CFLAGS])
AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes], [AM_CFLAGS])
AX_APPEND_COMPILE_FLAGS([-pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op], [AM_CFLAGS])
AX_APPEND_COMPILE_FLAGS([-Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion], [AM_CFLAGS])
AX_APPEND_COMPILE_FLAGS([-Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation], [AM_CFLAGS])])
AC_LANG_PUSH([C++])
AC_PROG_CXX
AS_IF([test "$GCC" = yes],
[AX_APPEND_COMPILE_FLAGS([-Wall -Wextra], [AM_CXXFLAGS])
dnl Be careful about adding the -fexceptions option; some versions of
dnl GCC don't support it and it causes extra warnings that are only
dnl distracting; avoid.
AX_APPEND_COMPILE_FLAGS([-fexceptions], [AM_CXXFLAGS])
AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing], [AM_CXXFLAGS])])
AC_LANG_POP([C++])
AS_IF([test "$GCC" = yes],
[AX_APPEND_LINK_FLAGS([-fno-strict-aliasing],[AM_LDFLAGS])])
dnl patching ${archive_cmds} to affect generation of file "libtool" to fix linking with clang (issue #312)
AS_CASE(["$LD"],[*clang*],
[AS_CASE(["${host_os}"],
[*linux*],[archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'])])
EXPATCFG_COMPILER_SUPPORTS_VISIBILITY([
AX_APPEND_FLAG([-fvisibility=hidden], [AM_CFLAGS])
AS_IF([test "${enable_shared}" = yes],
[AX_APPEND_FLAG([-DXML_ENABLE_VISIBILITY=1], [AM_CPPFLAGS])])])
dnl Checks for typedefs, structures, and compiler characteristics.
dnl We define BYTEORDER to 1234 when the platform is little endian; it
dnl defines it to 4321 when the platform is big endian. We also define
dnl WORDS_BIGENDIAN to 1 when the platform is big endian.
dnl
dnl A long time ago (early 2000 years) AC_C_BIGENDIAN was considered
dnl wrong when cross compiling, now (2018, GNU Autoconf 2.69) we assume
dnl it is fine.
AC_C_BIGENDIAN([AC_DEFINE([WORDS_BIGENDIAN], 1)
AS_VAR_SET([BYTEORDER], 4321)],
[AS_VAR_SET([BYTEORDER], 1234)])
AC_DEFINE_UNQUOTED([BYTEORDER], $BYTEORDER, [1234 = LILENDIAN, 4321 = BIGENDIAN])
AC_C_CONST
AC_ARG_WITH([xmlwf],
[AS_HELP_STRING([--without-xmlwf], [do not build xmlwf])],
[],
[with_xmlwf=yes])
AM_CONDITIONAL([WITH_XMLWF], [test x${with_xmlwf} = xyes])
AC_ARG_WITH([examples],
[AS_HELP_STRING([--without-examples], [do not build examples @<:@default=included@:>@])],
[],
[with_examples=yes])
AM_CONDITIONAL([WITH_EXAMPLES], [test x${with_examples} = xyes])
AC_ARG_WITH([tests],
[AS_HELP_STRING([--without-tests], [do not build tests @<:@default=included@:>@])],
[],
[with_tests=yes])
AM_CONDITIONAL([WITH_TESTS], [test x${with_tests} = xyes])
AS_IF([test x${with_tests} = xyes],
[AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])])
AS_VAR_SET([EXPATCFG_ON_MINGW],[no])
AS_CASE("${host_os}",
[mingw*],
[AS_VAR_SET([EXPATCFG_ON_MINGW],[yes])
AC_MSG_NOTICE([detected OS: MinGW])])
AM_CONDITIONAL([MINGW], [test x${EXPATCFG_ON_MINGW} = xyes])
dnl Note: Prefix "_INTERNAL_" here means exclusive use inside of file configure.ac
AM_CONDITIONAL([UNICODE], [echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null])
AM_CONDITIONAL([_INTERNAL_UNICODE_WCHAR_T], [echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE_WCHAR_T >/dev/null])
AM_CONDITIONAL([_INTERNAL_MIN_SIZE], [echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_MIN_SIZE >/dev/null])
AM_CONDITIONAL([_INTERNAL_LARGE_SIZE], [echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_LARGE_SIZE >/dev/null])
LT_LIB_M
AC_ARG_WITH([libbsd],
[AS_HELP_STRING([--with-libbsd], [utilize libbsd (for arc4random_buf)])],
[],
[with_libbsd=no])
AS_IF([test "x${with_libbsd}" != xno],
[AC_CHECK_LIB([bsd],
[arc4random_buf],
[],
[AS_IF([test "x${with_libbsd}" = xyes],
[AC_MSG_ERROR([Enforced use of libbsd cannot be satisfied.])])])])
AC_MSG_CHECKING([for arc4random_buf (BSD, libbsd or glibc 2.36+)])
AC_LINK_IFELSE([AC_LANG_SOURCE([
#if defined(HAVE_LIBBSD)
# include <bsd/stdlib.h>
#else
# include <stdlib.h> /* for arc4random_buf on BSD */
#endif
int main(void) {
char dummy[[123]]; // double brackets for m4
arc4random_buf(dummy, 0U);
return 0;
}
])],
[AC_DEFINE([HAVE_ARC4RANDOM_BUF], [1], [Define to 1 if you have the `arc4random_buf' function.])
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
AC_MSG_CHECKING([for arc4random (BSD, macOS, libbsd or glibc 2.36+)])
AC_LINK_IFELSE([AC_LANG_SOURCE([
#if defined(HAVE_LIBBSD)
# include <bsd/stdlib.h>
#else
# include <stdlib.h>
#endif
int main(void) {
arc4random();
return 0;
}
])],
[AC_DEFINE([HAVE_ARC4RANDOM], [1], [Define to 1 if you have the `arc4random' function.])
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])])])
AC_ARG_WITH([getrandom],
[AS_HELP_STRING([--with-getrandom],
[enforce the use of getrandom function in the system @<:@default=check@:>@])
AS_HELP_STRING([--without-getrandom],
[skip auto detect of getrandom @<:@default=check@:>@])],
[],
[with_getrandom=check])
AS_IF([test "x$with_getrandom" != xno],
[AC_MSG_CHECKING([for getrandom (Linux 3.17+, glibc 2.25+)])
AC_LINK_IFELSE([AC_LANG_SOURCE([
#include <stdlib.h> /* for NULL */
#include <sys/random.h>
int main(void) {
return getrandom(NULL, 0U, 0U);
}
])],
[AC_DEFINE([HAVE_GETRANDOM], [1], [Define to 1 if you have the `getrandom' function.])
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
AS_IF([test "x$with_getrandom" = xyes],
[AC_MSG_ERROR([enforced the use of getrandom --with-getrandom, but not detected])])])])
AC_ARG_WITH([sys_getrandom],
[AS_HELP_STRING([--with-sys-getrandom],
[enforce the use of syscall SYS_getrandom function in the system @<:@default=check@:>@])
AS_HELP_STRING([--without-sys-getrandom],
[skip auto detect of syscall SYS_getrandom @<:@default=check@:>@])],
[],
[with_sys_getrandom=check])
AS_IF([test "x$with_sys_getrandom" != xno],
[AC_MSG_CHECKING([for syscall SYS_getrandom (Linux 3.17+)])
AC_LINK_IFELSE([AC_LANG_SOURCE([
#define _GNU_SOURCE
#include <stdlib.h> /* for NULL */
#include <unistd.h> /* for syscall */
#include <sys/syscall.h> /* for SYS_getrandom */
int main(void) {
syscall(SYS_getrandom, NULL, 0, 0);
return 0;
}
])],
[AC_DEFINE([HAVE_SYSCALL_GETRANDOM], [1], [Define to 1 if you have `syscall' and `SYS_getrandom'.])
AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
AS_IF([test "x$with_sys_getrandom" = xyes],
[AC_MSG_ERROR([enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected])])])])
dnl Only needed for xmlwf:
AC_CHECK_HEADERS(fcntl.h unistd.h)
AC_TYPE_OFF_T
AC_FUNC_MMAP
AS_IF([test "$ac_cv_func_mmap_fixed_mapped" = "yes"],
[AS_VAR_SET(FILEMAP,unixfilemap)],
[AS_VAR_SET(FILEMAP,readfilemap)])
AC_SUBST(FILEMAP)
dnl Some basic configuration:
AC_DEFINE([XML_NS], 1,
[Define to make XML Namespaces functionality available.])
AC_DEFINE([XML_GE], 1,
[Define as 1/0 to enable/disable support for general entities.])
AC_DEFINE([XML_DTD], 1,
[Define to make parameter entity parsing functionality available.])
AC_DEFINE([XML_DEV_URANDOM], 1,
[Define to include code reading entropy from `/dev/urandom'.])
AC_ARG_ENABLE([xml-attr-info],
[AS_HELP_STRING([--enable-xml-attr-info],
[Enable retrieving the byte offsets for attribute names and values @<:@default=no@:>@])],
[],
[enable_xml_attr_info=no])
AS_IF([test "x${enable_xml_attr_info}" = "xyes"],
[AC_DEFINE([XML_ATTR_INFO], 1,
[Define to allow retrieving the byte offsets for attribute names and values.])])
AC_ARG_ENABLE([xml-context],
AS_HELP_STRING([--enable-xml-context @<:@COUNT@:>@],
[Retain context around the current parse point;
default is enabled and a size of 1024 bytes])
AS_HELP_STRING([--disable-xml-context],
[Do not retain context around the current parse point]),
[enable_xml_context=${enableval}])
AS_IF([test "x${enable_xml_context}" != "xno"],
[AS_IF([test "x${enable_xml_context}" = "xyes" \
-o "x${enable_xml_context}" = "x"],
[AS_VAR_SET(enable_xml_context,1024)])],
[AS_VAR_SET(enable_xml_context,0)])
AC_DEFINE_UNQUOTED([XML_CONTEXT_BYTES], [${enable_xml_context}],
[Define to specify how much context to retain around the current parse point, 0 to disable.])
AC_ARG_WITH([docbook],
[AS_HELP_STRING([--with-docbook],
[enforce XML to man page compilation @<:@default=check@:>@])
AS_HELP_STRING([--without-docbook],
[skip XML to man page compilation @<:@default=check@:>@])],
[],
[with_docbook=check])
AC_ARG_VAR([DOCBOOK_TO_MAN], [docbook2x-man command])
AS_IF([test "x$with_docbook" != xno],
[AC_CHECK_PROGS([DOCBOOK_TO_MAN], [docbook2x-man db2x_docbook2man docbook2man docbook-to-man])])
AS_IF([test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes],
[AC_MSG_ERROR([Required program 'docbook2x-man' not found.])])
AS_IF([test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno],
[AS_IF([${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase],
[AC_MSG_ERROR([Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
configure to command docbook2x-man of docbook2X.
Or use DOCBOOK_TO_MAN="xmlto man --skip-validation" if you have xmlto around.
You can also configure using --without-docbook if you can do without a man
page for xmlwf.])])])
dnl This will make sure that a release tarball shipping a pre-rendered xmlwf man page will
dnl get it installed, when no working flavor of docbook2man is available (or wanted).
dnl This relies on file xmlwf.1 being at least as recent as its source file xmlwf.xml.
AS_IF([test -f "${srcdir}"/doc/xmlwf.1],
[AM_CONDITIONAL(WITH_MANPAGE, [true])
AS_IF([test "x$with_docbook" = xno -o "x${DOCBOOK_TO_MAN}" = x],
[AM_CONDITIONAL(WITH_PREBUILT_MANPAGE, [true])
AM_CONDITIONAL(WITH_DISTRIBUTABLE_MANPAGE, [false])],
[AM_CONDITIONAL(WITH_PREBUILT_MANPAGE, [false])
AM_CONDITIONAL(WITH_DISTRIBUTABLE_MANPAGE, [true])])
],
[AS_IF([test "x$with_docbook" != xno -a "x${DOCBOOK_TO_MAN}" != x],
[AM_CONDITIONAL(WITH_MANPAGE, [true])
AM_CONDITIONAL(WITH_DISTRIBUTABLE_MANPAGE, [true])],
[AM_CONDITIONAL(WITH_MANPAGE, [false])
AM_CONDITIONAL(WITH_DISTRIBUTABLE_MANPAGE, [false])])
AM_CONDITIONAL(WITH_PREBUILT_MANPAGE, [false])])
dnl Configure CMake file templates
dnl NOTE: The *_TRUE variables read here are Automake conditionals
dnl that are either set to "" when enabled or to "#" when disabled
dnl (because they are used to dynamically comment out certain things)
AS_IF([test "x${enable_xml_attr_info}" = xyes],
[EXPAT_ATTR_INFO=ON],
[EXPAT_ATTR_INFO=OFF])
EXPAT_DTD=ON
AS_IF([test "x${_INTERNAL_LARGE_SIZE_TRUE}" = x],
[EXPAT_LARGE_SIZE=ON],
[EXPAT_LARGE_SIZE=OFF])
AS_IF([test "x${_INTERNAL_MIN_SIZE_TRUE}" = x],
[EXPAT_MIN_SIZE=ON],
[EXPAT_MIN_SIZE=OFF])
EXPAT_NS=ON
AS_IF([test "x${enable_xml_context}" != xno],
[EXPAT_CONTEXT_BYTES=${enable_xml_context}],
[EXPAT_CONTEXT_BYTES=OFF])
AS_IF([test "x${UNICODE_TRUE}" = x],
[AS_IF(
[test "x${_INTERNAL_UNICODE_WCHAR_T_TRUE}" = x],
[EXPAT_CHAR_TYPE=wchar_t],
[EXPAT_CHAR_TYPE=ushort])],
[EXPAT_CHAR_TYPE=char])
PACKAGE_INIT="${srcdir}"/cmake/autotools/expat-package-init.cmake
LIBDIR_BASENAME="$(basename "${libdir}")"
SO_MAJOR="$(expr "${LIBCURRENT}" - "${LIBAGE}")"
SO_MINOR="${LIBAGE}"
SO_PATCH="${LIBREVISION}"
AC_SUBST([EXPAT_ATTR_INFO])
AC_SUBST([EXPAT_DTD])
AC_SUBST([EXPAT_LARGE_SIZE])
AC_SUBST([EXPAT_MIN_SIZE])
AC_SUBST([EXPAT_NS])
AC_SUBST([EXPAT_CONTEXT_BYTES])
AC_SUBST([EXPAT_CHAR_TYPE])
AC_SUBST_FILE([PACKAGE_INIT])
AC_SUBST([LIBDIR_BASENAME])
AC_SUBST([SO_MAJOR])
AC_SUBST([SO_MINOR])
AC_SUBST([SO_PATCH])
dnl The canonical way of doing this is AC_CHECK_SIZEOF(void *), but
dnl that adds SIZEOF_VOID_P to expat_config.h.in, making it difficult
dnl to have 32-bit and 64-bit versions of libexpat installed on the
dnl same system with a single, shared copy of the header.
AC_COMPUTE_INT(SIZEOF_VOID_P, [sizeof(void *)])
AC_SUBST([SIZEOF_VOID_P])
dnl write the Automake flags we set
AC_SUBST([AM_CPPFLAGS])
AC_SUBST([AM_CFLAGS])
AC_SUBST([AM_CXXFLAGS])
AC_SUBST([AM_LDFLAGS])
dnl Emulate the use of CMAKE_SHARED_LIBRARY_PREFIX under CMake
AC_MSG_CHECKING([for shared library name prefix])
AS_CASE("${host_os}",
[cygwin*], [CMAKE_SHARED_LIBRARY_PREFIX=cyg],
[CMAKE_SHARED_LIBRARY_PREFIX=lib])
AC_MSG_RESULT([${CMAKE_SHARED_LIBRARY_PREFIX}])
AC_SUBST([CMAKE_SHARED_LIBRARY_PREFIX])
AS_CASE("${host_os}",
[darwin*], [CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__macos.cmake.in],
[mingw*|cygwin*], [CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__windows.cmake.in],
[CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__linux.cmake.in])
AC_CONFIG_FILES([Makefile]
[expat.pc]
[cmake/expat-config.cmake]
[cmake/autotools/expat-config-version.cmake]
[cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE}]
[doc/Makefile]
[examples/Makefile]
[lib/Makefile]
[tests/Makefile]
[tests/benchmark/Makefile]
[xmlwf/Makefile])
AC_CONFIG_FILES([run.sh], [chmod +x run.sh])
AC_OUTPUT
AC_MSG_NOTICE([
Automake flags (can be overridden by user flags):
[AM_CPPFLAGS]: ${AM_CPPFLAGS}
[AM_CFLAGS]: ${AM_CFLAGS}
[AM_CXXFLAGS]: ${AM_CXXFLAGS}
[AM_LDFLAGS]: ${AM_LDFLAGS}
User flags (override Automake flags on conflict):
CPPFLAGS: ${CPPFLAGS}
CFLAGS: ${CFLAGS}
CXXFLAGS: ${CXXFLAGS}
LDFLAGS: ${LDFLAGS}])

271
conftools/ar-lib Executable file
View file

@ -0,0 +1,271 @@
#! /bin/sh
# Wrapper for Microsoft lib.exe
me=ar-lib
scriptversion=2019-07-04.01; # UTC
# Copyright (C) 2010-2021 Free Software Foundation, Inc.
# Written by Peter Rosin <peda@lysator.liu.se>.
#
# 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 <https://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.
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
# func_error message
func_error ()
{
echo "$me: $1" 1>&2
exit 1
}
file_conv=
# func_file_conv build_file
# Convert a $build file to $host form and store it in $file
# Currently only supports Windows hosts.
func_file_conv ()
{
file=$1
case $file in
/ | /[!/]*) # absolute file, and not a UNC file
if test -z "$file_conv"; then
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
file_conv=mingw
;;
CYGWIN* | MSYS*)
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi
case $file_conv in
mingw)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
cygwin | msys)
file=`cygpath -m "$file" || echo "$file"`
;;
wine)
file=`winepath -w "$file" || echo "$file"`
;;
esac
;;
esac
}
# func_at_file at_file operation archive
# Iterate over all members in AT_FILE performing OPERATION on ARCHIVE
# for each of them.
# When interpreting the content of the @FILE, do NOT use func_file_conv,
# since the user would need to supply preconverted file names to
# binutils ar, at least for MinGW.
func_at_file ()
{
operation=$2
archive=$3
at_file_contents=`cat "$1"`
eval set x "$at_file_contents"
shift
for member
do
$AR -NOLOGO $operation:"$member" "$archive" || exit $?
done
}
case $1 in
'')
func_error "no command. Try '$0 --help' for more information."
;;
-h | --h*)
cat <<EOF
Usage: $me [--help] [--version] PROGRAM ACTION ARCHIVE [MEMBER...]
Members may be specified in a file named with @FILE.
EOF
exit $?
;;
-v | --v*)
echo "$me, version $scriptversion"
exit $?
;;
esac
if test $# -lt 3; then
func_error "you must specify a program, an action and an archive"
fi
AR=$1
shift
while :
do
if test $# -lt 2; then
func_error "you must specify a program, an action and an archive"
fi
case $1 in
-lib | -LIB \
| -ltcg | -LTCG \
| -machine* | -MACHINE* \
| -subsystem* | -SUBSYSTEM* \
| -verbose | -VERBOSE \
| -wx* | -WX* )
AR="$AR $1"
shift
;;
*)
action=$1
shift
break
;;
esac
done
orig_archive=$1
shift
func_file_conv "$orig_archive"
archive=$file
# strip leading dash in $action
action=${action#-}
delete=
extract=
list=
quick=
replace=
index=
create=
while test -n "$action"
do
case $action in
d*) delete=yes ;;
x*) extract=yes ;;
t*) list=yes ;;
q*) quick=yes ;;
r*) replace=yes ;;
s*) index=yes ;;
S*) ;; # the index is always updated implicitly
c*) create=yes ;;
u*) ;; # TODO: don't ignore the update modifier
v*) ;; # TODO: don't ignore the verbose modifier
*)
func_error "unknown action specified"
;;
esac
action=${action#?}
done
case $delete$extract$list$quick$replace,$index in
yes,* | ,yes)
;;
yesyes*)
func_error "more than one action specified"
;;
*)
func_error "no action specified"
;;
esac
if test -n "$delete"; then
if test ! -f "$orig_archive"; then
func_error "archive not found"
fi
for member
do
case $1 in
@*)
func_at_file "${1#@}" -REMOVE "$archive"
;;
*)
func_file_conv "$1"
$AR -NOLOGO -REMOVE:"$file" "$archive" || exit $?
;;
esac
done
elif test -n "$extract"; then
if test ! -f "$orig_archive"; then
func_error "archive not found"
fi
if test $# -gt 0; then
for member
do
case $1 in
@*)
func_at_file "${1#@}" -EXTRACT "$archive"
;;
*)
func_file_conv "$1"
$AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $?
;;
esac
done
else
$AR -NOLOGO -LIST "$archive" | tr -d '\r' | sed -e 's/\\/\\\\/g' \
| while read member
do
$AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
done
fi
elif test -n "$quick$replace"; then
if test ! -f "$orig_archive"; then
if test -z "$create"; then
echo "$me: creating $orig_archive"
fi
orig_archive=
else
orig_archive=$archive
fi
for member
do
case $1 in
@*)
func_file_conv "${1#@}"
set x "$@" "@$file"
;;
*)
func_file_conv "$1"
set x "$@" "$file"
;;
esac
shift
shift
done
if test -n "$orig_archive"; then
$AR -NOLOGO -OUT:"$archive" "$orig_archive" "$@" || exit $?
else
$AR -NOLOGO -OUT:"$archive" "$@" || exit $?
fi
elif test -n "$list"; then
if test ! -f "$orig_archive"; then
func_error "archive not found"
fi
$AR -NOLOGO -LIST "$archive" || exit $?
fi

View file

@ -0,0 +1,46 @@
# ============================================================================
# https://www.gnu.org/software/autoconf-archive/ax_append_compile_flags.html
# ============================================================================
#
# SYNOPSIS
#
# AX_APPEND_COMPILE_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT])
#
# DESCRIPTION
#
# For every FLAG1, FLAG2 it is checked whether the compiler works with the
# flag. If it does, the flag is added FLAGS-VARIABLE
#
# If FLAGS-VARIABLE is not specified, the current language's flags (e.g.
# CFLAGS) is used. During the check the flag is always added to the
# current language's flags.
#
# If EXTRA-FLAGS is defined, it is added to the current language's default
# flags (e.g. CFLAGS) when the check is done. The check is thus made with
# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to
# force the compiler to issue an error when a bad flag is given.
#
# INPUT gives an alternative input source to AC_COMPILE_IFELSE.
#
# NOTE: This macro depends on the AX_APPEND_FLAG and
# AX_CHECK_COMPILE_FLAG. Please keep this macro in sync with
# AX_APPEND_LINK_FLAGS.
#
# LICENSE
#
# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 7
AC_DEFUN([AX_APPEND_COMPILE_FLAGS],
[AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG])
AX_REQUIRE_DEFINED([AX_APPEND_FLAG])
for flag in $1; do
AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3], [$4])
done
])dnl AX_APPEND_COMPILE_FLAGS

View file

@ -0,0 +1,50 @@
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_append_flag.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE])
#
# DESCRIPTION
#
# FLAG is appended to the FLAGS-VARIABLE shell variable, with a space
# added in between.
#
# If FLAGS-VARIABLE is not specified, the current language's flags (e.g.
# CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains
# FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly
# FLAG.
#
# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION.
#
# LICENSE
#
# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 8
AC_DEFUN([AX_APPEND_FLAG],
[dnl
AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_SET_IF
AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])])
AS_VAR_SET_IF(FLAGS,[
AS_CASE([" AS_VAR_GET(FLAGS) "],
[*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])],
[
AS_VAR_APPEND(FLAGS,[" $1"])
AC_RUN_LOG([: FLAGS="$FLAGS"])
])
],
[
AS_VAR_SET(FLAGS,[$1])
AC_RUN_LOG([: FLAGS="$FLAGS"])
])
AS_VAR_POPDEF([FLAGS])dnl
])dnl AX_APPEND_FLAG

View file

@ -0,0 +1,44 @@
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_append_link_flags.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_APPEND_LINK_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT])
#
# DESCRIPTION
#
# For every FLAG1, FLAG2 it is checked whether the linker works with the
# flag. If it does, the flag is added FLAGS-VARIABLE
#
# If FLAGS-VARIABLE is not specified, the linker's flags (LDFLAGS) is
# used. During the check the flag is always added to the linker's flags.
#
# If EXTRA-FLAGS is defined, it is added to the linker's default flags
# when the check is done. The check is thus made with the flags: "LDFLAGS
# EXTRA-FLAGS FLAG". This can for example be used to force the linker to
# issue an error when a bad flag is given.
#
# INPUT gives an alternative input source to AC_COMPILE_IFELSE.
#
# NOTE: This macro depends on the AX_APPEND_FLAG and AX_CHECK_LINK_FLAG.
# Please keep this macro in sync with AX_APPEND_COMPILE_FLAGS.
#
# LICENSE
#
# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 7
AC_DEFUN([AX_APPEND_LINK_FLAGS],
[AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
AX_REQUIRE_DEFINED([AX_APPEND_FLAG])
for flag in $1; do
AX_CHECK_LINK_FLAG([$flag], [AX_APPEND_FLAG([$flag], [m4_default([$2], [LDFLAGS])])], [], [$3], [$4])
done
])dnl AX_APPEND_LINK_FLAGS

View file

@ -0,0 +1,77 @@
# ===========================================================================
# http://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT])
#
# DESCRIPTION
#
# Check whether the given FLAG plus -Werror works with the current
# language's compiler — C or C++ — or gives an error.
#
# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
# success/failure.
#
# If EXTRA-FLAGS is defined, it is added to the current language's default
# flags (e.g. CFLAGS) when the check is done. The check is thus made with
# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to
# force the compiler to issue an error when a bad flag is given.
#
# INPUT gives an alternative input source to AC_COMPILE_IFELSE.
#
# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
# macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG.
#
# LICENSE
#
# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
# Copyright (c) 2020 Sebastian Pipping <sebastian@pipping.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 3 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, see <http://www.gnu.org/licenses/>.
#
# As a special exception, the respective Autoconf Macro's copyright owner
# gives unlimited permission to copy, distribute and modify the configure
# scripts that are the output of Autoconf when processing the Macro. You
# need not follow the terms of the GNU General Public License when using
# or distributing such scripts, even though portions of the text of the
# Macro appear in them. The GNU General Public License (GPL) does govern
# all other use of the material that constitutes the Autoconf Macro.
#
# This special exception to the GPL applies to versions of the Autoconf
# Macro released by the Autoconf Archive. When you make and distribute a
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
#serial 6
AC_DEFUN([AX_CHECK_COMPILE_FLAG],
[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF
AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl
AC_CACHE_CHECK([whether _AC_LANG compiler accepts $1], CACHEVAR, [
ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS
_AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 -Werror $1"
AC_COMPILE_IFELSE([m4_default([$5],
[AC_LANG_SOURCE(
[[int main(void) { return 0; }]])])],
[AS_VAR_SET(CACHEVAR,[yes])],
[AS_VAR_SET(CACHEVAR,[no])])
_AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags])
AS_VAR_IF(CACHEVAR,yes,
[m4_default([$2], :)],
[m4_default([$3], :)])
AS_VAR_POPDEF([CACHEVAR])dnl
])dnl AX_CHECK_COMPILE_FLAGS

View file

@ -0,0 +1,53 @@
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_check_link_flag.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_CHECK_LINK_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT])
#
# DESCRIPTION
#
# Check whether the given FLAG works with the linker or gives an error.
# (Warnings, however, are ignored)
#
# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
# success/failure.
#
# If EXTRA-FLAGS is defined, it is added to the linker's default flags
# when the check is done. The check is thus made with the flags: "LDFLAGS
# EXTRA-FLAGS FLAG". This can for example be used to force the linker to
# issue an error when a bad flag is given.
#
# INPUT gives an alternative input source to AC_LINK_IFELSE.
#
# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this
# macro in sync with AX_CHECK_{PREPROC,COMPILE}_FLAG.
#
# LICENSE
#
# Copyright (c) 2008 Guido U. Draheim <guidod@gmx.de>
# Copyright (c) 2011 Maarten Bosmans <mkbosmans@gmail.com>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 6
AC_DEFUN([AX_CHECK_LINK_FLAG],
[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF
AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_ldflags_$4_$1])dnl
AC_CACHE_CHECK([whether the linker accepts $1], CACHEVAR, [
ax_check_save_flags=$LDFLAGS
LDFLAGS="$LDFLAGS $4 $1"
AC_LINK_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])],
[AS_VAR_SET(CACHEVAR,[yes])],
[AS_VAR_SET(CACHEVAR,[no])])
LDFLAGS=$ax_check_save_flags])
AS_VAR_IF(CACHEVAR,yes,
[m4_default([$2], :)],
[m4_default([$3], :)])
AS_VAR_POPDEF([CACHEVAR])dnl
])dnl AX_CHECK_LINK_FLAGS

View file

@ -0,0 +1,39 @@
# =============================================================================
# https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
# =============================================================================
#
# SYNOPSIS
#
# AX_CXX_COMPILE_STDCXX_11([ext|noext], [mandatory|optional])
#
# DESCRIPTION
#
# Check for baseline language coverage in the compiler for the C++11
# standard; if necessary, add switches to CXX and CXXCPP to enable
# support.
#
# This macro is a convenience alias for calling the AX_CXX_COMPILE_STDCXX
# macro with the version set to C++11. The two optional arguments are
# forwarded literally as the second and third argument respectively.
# Please see the documentation for the AX_CXX_COMPILE_STDCXX macro for
# more information. If you want to use this macro, you also need to
# download the ax_cxx_compile_stdcxx.m4 file.
#
# LICENSE
#
# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
# Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
# Copyright (c) 2015 Paul Norman <penorman@mac.com>
# Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 18
AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX])
AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [AX_CXX_COMPILE_STDCXX([11], [$1], [$2])])

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,37 @@
# ===========================================================================
# https://www.gnu.org/software/autoconf-archive/ax_require_defined.html
# ===========================================================================
#
# SYNOPSIS
#
# AX_REQUIRE_DEFINED(MACRO)
#
# DESCRIPTION
#
# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have
# been defined and thus are available for use. This avoids random issues
# where a macro isn't expanded. Instead the configure script emits a
# non-fatal:
#
# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found
#
# It's like AC_REQUIRE except it doesn't expand the required macro.
#
# Here's an example:
#
# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG])
#
# LICENSE
#
# Copyright (c) 2014 Mike Frysinger <vapier@gentoo.org>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 2
AC_DEFUN([AX_REQUIRE_DEFINED], [dnl
m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])])
])dnl AX_REQUIRE_DEFINED

348
conftools/compile Executable file
View file

@ -0,0 +1,348 @@
#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 1999-2021 Free Software Foundation, Inc.
# Written by Tom Tromey <tromey@cygnus.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, 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 <https://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.
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
nl='
'
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent tools from complaining about whitespace usage.
IFS=" "" $nl"
file_conv=
# func_file_conv build_file lazy
# Convert a $build file to $host form and store it in $file
# Currently only supports Windows hosts. If the determined conversion
# type is listed in (the comma separated) LAZY, no conversion will
# take place.
func_file_conv ()
{
file=$1
case $file in
/ | /[!/]*) # absolute file, and not a UNC file
if test -z "$file_conv"; then
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
file_conv=mingw
;;
CYGWIN* | MSYS*)
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi
case $file_conv/,$2, in
*,$file_conv,*)
;;
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
cygwin/* | msys/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)
file=`winepath -w "$file" || echo "$file"`
;;
esac
;;
esac
}
# func_cl_dashL linkdir
# Make cl look for libraries in LINKDIR
func_cl_dashL ()
{
func_file_conv "$1"
if test -z "$lib_path"; then
lib_path=$file
else
lib_path="$lib_path;$file"
fi
linker_opts="$linker_opts -LIBPATH:$file"
}
# func_cl_dashl library
# Do a library search-path lookup for cl
func_cl_dashl ()
{
lib=$1
found=no
save_IFS=$IFS
IFS=';'
for dir in $lib_path $LIB
do
IFS=$save_IFS
if $shared && test -f "$dir/$lib.dll.lib"; then
found=yes
lib=$dir/$lib.dll.lib
break
fi
if test -f "$dir/$lib.lib"; then
found=yes
lib=$dir/$lib.lib
break
fi
if test -f "$dir/lib$lib.a"; then
found=yes
lib=$dir/lib$lib.a
break
fi
done
IFS=$save_IFS
if test "$found" != yes; then
lib=$lib.lib
fi
}
# func_cl_wrapper cl arg...
# Adjust compile command to suit cl
func_cl_wrapper ()
{
# Assume a capable shell
lib_path=
shared=:
linker_opts=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
eat=1
case $2 in
*.o | *.[oO][bB][jJ])
func_file_conv "$2"
set x "$@" -Fo"$file"
shift
;;
*)
func_file_conv "$2"
set x "$@" -Fe"$file"
shift
;;
esac
;;
-I)
eat=1
func_file_conv "$2" mingw
set x "$@" -I"$file"
shift
;;
-I*)
func_file_conv "${1#-I}" mingw
set x "$@" -I"$file"
shift
;;
-l)
eat=1
func_cl_dashl "$2"
set x "$@" "$lib"
shift
;;
-l*)
func_cl_dashl "${1#-l}"
set x "$@" "$lib"
shift
;;
-L)
eat=1
func_cl_dashL "$2"
;;
-L*)
func_cl_dashL "${1#-L}"
;;
-static)
shared=false
;;
-Wl,*)
arg=${1#-Wl,}
save_ifs="$IFS"; IFS=','
for flag in $arg; do
IFS="$save_ifs"
linker_opts="$linker_opts $flag"
done
IFS="$save_ifs"
;;
-Xlinker)
eat=1
linker_opts="$linker_opts $2"
;;
-*)
set x "$@" "$1"
shift
;;
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
func_file_conv "$1"
set x "$@" -Tp"$file"
shift
;;
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
func_file_conv "$1" mingw
set x "$@" "$file"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -n "$linker_opts"; then
linker_opts="-link$linker_opts"
fi
exec "$@" $linker_opts
exit 1
}
eat=
case $1 in
'')
echo "$0: No command. Try '$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: compile [--help] [--version] PROGRAM [ARGS]
Wrapper for compilers which do not understand '-c -o'.
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
arguments, and rename the output as expected.
If you are trying to build a whole package this is not the
right script to run: please start by reading the file 'INSTALL'.
Report bugs to <bug-automake@gnu.org>.
EOF
exit $?
;;
-v | --v*)
echo "compile $scriptversion"
exit $?
;;
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
func_cl_wrapper "$@" # Doesn't return...
;;
esac
ofile=
cfile=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
# So we strip '-o arg' only if arg is an object.
eat=1
case $2 in
*.o | *.obj)
ofile=$2
;;
*)
set x "$@" -o "$2"
shift
;;
esac
;;
*.c)
cfile=$1
set x "$@" "$1"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -z "$ofile" || test -z "$cfile"; then
# If no '-o' option was seen then we might have been invoked from a
# pattern rule where we don't need one. That is ok -- this is a
# normal compilation that the losing compiler can handle. If no
# '.c' file was seen then we are probably linking. That is also
# ok.
exec "$@"
fi
# Name of file we expect compiler to create.
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
# Create the lock directory.
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
# that we are using for the .o file. Also, base the name on the expected
# object file name, since that is what matters with a parallel build.
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
while true; do
if mkdir "$lockdir" >/dev/null 2>&1; then
break
fi
sleep 1
done
# FIXME: race condition here if user kills between mkdir and trap.
trap "rmdir '$lockdir'; exit 1" 1 2 15
# Run the compile.
"$@"
ret=$?
if test -f "$cofile"; then
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
elif test -f "${cofile}bj"; then
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
fi
rmdir "$lockdir"
exit $ret
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:

1765
conftools/config.guess vendored Executable file

File diff suppressed because it is too large Load diff

1911
conftools/config.sub vendored Executable file

File diff suppressed because it is too large Load diff

791
conftools/depcomp Executable file
View file

@ -0,0 +1,791 @@
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 1999-2021 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 <https://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 outputting dependencies.
libtool Whether libtool is used (yes/no).
Report bugs to <bug-automake@gnu.org>.
EOF
exit $?
;;
-v | --v*)
echo "depcomp $scriptversion"
exit $?
;;
esac
# Get the directory component of the given path, and save it in the
# global variables '$dir'. Note that this directory component will
# be either empty or ending with a '/' character. This is deliberate.
set_dir_from ()
{
case $1 in
*/*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
*) dir=;;
esac
}
# Get the suffix-stripped basename of the given path, and save it the
# global variable '$base'.
set_base_from ()
{
base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
}
# If no dependency file was actually created by the compiler invocation,
# we still have to create a dummy depfile, to avoid errors with the
# Makefile "include basename.Plo" scheme.
make_dummy_depfile ()
{
echo "#dummy" > "$depfile"
}
# Factor out some common post-processing of the generated depfile.
# Requires the auxiliary global variable '$tmpdepfile' to be set.
aix_post_process_depfile ()
{
# If the compiler actually managed to produce a dependency file,
# post-process it.
if test -f "$tmpdepfile"; then
# Each line is of the form 'foo.o: dependency.h'.
# Do two passes, one to just change these to
# $object: dependency.h
# and one to simply output
# dependency.h:
# which is needed to avoid the deleted-header problem.
{ sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
} > "$depfile"
rm -f "$tmpdepfile"
else
make_dummy_depfile
fi
}
# A tabulation character.
tab=' '
# A newline character.
nl='
'
# Character ranges might be problematic outside the C locale.
# These definitions help.
upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
lower=abcdefghijklmnopqrstuvwxyz
digits=0123456789
alpha=${upper}${lower}
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"
# Avoid interferences from the environment.
gccflag= dashmflag=
# 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
if test "$depmode" = msvc7msys; then
# This is just like msvc7 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=msvc7
fi
if test "$depmode" = xlc; then
# IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
gccflag=-qmakedep=gcc,-MF
depmode=gcc
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 -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
mv "$tmpdepfile" "$depfile"
;;
gcc)
## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
## (see the conditional assignment to $gccflag above).
## 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). Also, it might not be
## supported by the other compilers which use the 'gcc' depmode.
## - 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 -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
# 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.
## 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. hp depmode also adds that space, but also prefixes the VPATH
## to the object. Take care to not repeat it in the output.
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
tr ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -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 -ne 0; then
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 ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
| tr "$nl" ' ' >> "$depfile"
echo >> "$depfile"
# The second pass generates a dummy entry for each header file.
tr ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
>> "$depfile"
else
make_dummy_depfile
fi
rm -f "$tmpdepfile"
;;
xlc)
# 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
;;
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.
set_dir_from "$object"
set_base_from "$object"
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 -ne 0; then
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
do
test -f "$tmpdepfile" && break
done
aix_post_process_depfile
;;
tcc)
# tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
# FIXME: That version still under development at the moment of writing.
# Make that this statement remains true also for stable, released
# versions.
# It will wrap lines (doesn't matter whether long or short) with a
# trailing '\', as in:
#
# foo.o : \
# foo.c \
# foo.h \
#
# It will put a trailing '\' even on the last line, and will use leading
# spaces rather than leading tabs (at least since its commit 0394caf7
# "Emit spaces for -MD").
"$@" -MD -MF "$tmpdepfile"
stat=$?
if test $stat -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
# Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
# We have to change lines of the first kind to '$object: \'.
sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
# And for each line of the second kind, we have to emit a 'dep.h:'
# dummy dependency, to avoid the deleted-header problem.
sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
rm -f "$tmpdepfile"
;;
## The order of this option in the case statement is important, since the
## shell code in configure will try each of these formats in the order
## listed in this file. A plain '-MD' option would be understood by many
## compilers, so we must ensure this comes after the gcc and icc options.
pgcc)
# Portland's C compiler understands '-MD'.
# Will always output deps to 'file.d' where file is the root name of the
# source file under compilation, even if file resides in a subdirectory.
# The object file name does not affect the name of the '.d' file.
# pgcc 10.2 will output
# foo.o: sub/foo.c sub/foo.h
# and will wrap long lines using '\' :
# foo.o: sub/foo.c ... \
# sub/foo.h ... \
# ...
set_dir_from "$object"
# Use the source, not the object, to determine the base name, since
# that's sadly what pgcc will do too.
set_base_from "$source"
tmpdepfile=$base.d
# For projects that build the same source file twice into different object
# files, the pgcc approach of using the *source* file root name can cause
# problems in parallel builds. Use a locking strategy to avoid stomping on
# the same $tmpdepfile.
lockdir=$base.d-lock
trap "
echo '$0: caught signal, cleaning up...' >&2
rmdir '$lockdir'
exit 1
" 1 2 13 15
numtries=100
i=$numtries
while test $i -gt 0; do
# mkdir is a portable test-and-set.
if mkdir "$lockdir" 2>/dev/null; then
# This process acquired the lock.
"$@" -MD
stat=$?
# Release the lock.
rmdir "$lockdir"
break
else
# If the lock is being held by a different process, wait
# until the winning process is done or we timeout.
while test -d "$lockdir" && test $i -gt 0; do
sleep 1
i=`expr $i - 1`
done
fi
i=`expr $i - 1`
done
trap - 1 2 13 15
if test $i -le 0; then
echo "$0: failed to acquire lock after $numtries attempts" >&2
echo "$0: check lockdir '$lockdir'" >&2
exit 1
fi
if test $stat -ne 0; then
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.
set_dir_from "$object"
set_base_from "$object"
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 -ne 0; then
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,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
# Add 'dependent.h:' lines.
sed -ne '2,${
s/^ *//
s/ \\*$//
s/$/:/
p
}' "$tmpdepfile" >> "$depfile"
else
make_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.
set_dir_from "$object"
set_base_from "$object"
if test "$libtool" = yes; then
# Libtool 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$base.o.d # libtool 1.5
tmpdepfile2=$dir.libs/$base.o.d # Likewise.
tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
"$@" -Wc,-MD
else
tmpdepfile1=$dir$base.d
tmpdepfile2=$dir$base.d
tmpdepfile3=$dir$base.d
"$@" -MD
fi
stat=$?
if test $stat -ne 0; then
rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
exit $stat
fi
for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
do
test -f "$tmpdepfile" && break
done
# Same post-processing that is required for AIX mode.
aix_post_process_depfile
;;
msvc7)
if test "$libtool" = yes; then
showIncludes=-Wc,-showIncludes
else
showIncludes=-showIncludes
fi
"$@" $showIncludes > "$tmpdepfile"
stat=$?
grep -v '^Note: including file: ' "$tmpdepfile"
if test $stat -ne 0; then
rm -f "$tmpdepfile"
exit $stat
fi
rm -f "$depfile"
echo "$object : \\" > "$depfile"
# The first sed program below extracts the file names and escapes
# backslashes for cygpath. The second sed program outputs the file
# name when reading, but also accumulates all include files in the
# hold buffer in order to output them again at the end. This only
# works with sed implementations that can handle large buffers.
sed < "$tmpdepfile" -n '
/^Note: including file: *\(.*\)/ {
s//\1/
s/\\/\\\\/g
p
}' | $cygpath_u | sort -u | sed -n '
s/ /\\ /g
s/\(.*\)/'"$tab"'\1 \\/p
s/.\(.*\) \\/\1:/
H
$ {
s/.*/'"$tab"'/
G
p
}' >> "$depfile"
echo >> "$depfile" # make sure the fragment doesn't end with a backslash
rm -f "$tmpdepfile"
;;
msvc7msys)
# 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
;;
#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|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
rm -f "$depfile"
cat < "$tmpdepfile" > "$depfile"
# Some versions of the HPUX 10.20 sed can't process this sed invocation
# correctly. Breaking it into two sed invocations is a workaround.
tr ' ' "$nl" < "$tmpdepfile" \
| 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"
# makedepend may prepend the VPATH from the source file name to the object.
# No need to regex-escape $object, excess matching of '.' is harmless.
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
# Some versions of the HPUX 10.20 sed can't process the last invocation
# correctly. Breaking it into two sed invocations is a workaround.
sed '1,2d' "$tmpdepfile" \
| tr ' ' "$nl" \
| 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::'"$tab"'\1 \\:p' >> "$depfile"
echo "$tab" >> "$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 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:

43
conftools/expat.m4 Normal file
View file

@ -0,0 +1,43 @@
dnl Check if --with-expat[=PREFIX] is specified and
dnl Expat >= 1.95.0 is installed in the system.
dnl If yes, substitute EXPAT_CFLAGS, EXPAT_LIBS with regard to
dnl the specified PREFIX and set with_expat to PREFIX, or 'yes' if PREFIX
dnl has not been specified. Also HAVE_LIBEXPAT, HAVE_EXPAT_H are defined.
dnl If --with-expat has not been specified, set with_expat to 'no'.
dnl In addition, an Automake conditional EXPAT_INSTALLED is set accordingly.
dnl This is necessary to adapt a whole lot of packages that have expat
dnl bundled as a static library.
AC_DEFUN([AM_WITH_EXPAT],
[ AC_ARG_WITH(expat,
[ --with-expat=PREFIX Use system Expat library],
, with_expat=no)
AM_CONDITIONAL(EXPAT_INSTALLED, test $with_expat != no)
EXPAT_CFLAGS=
EXPAT_LIBS=
if test $with_expat != no; then
if test $with_expat != yes; then
EXPAT_CFLAGS="-I$with_expat/include"
EXPAT_LIBS="-L$with_expat/lib"
fi
AC_CHECK_LIB(expat, XML_ParserCreate,
[ EXPAT_LIBS="$EXPAT_LIBS -lexpat"
expat_found=yes ],
[ expat_found=no ],
"$EXPAT_LIBS")
if test $expat_found = no; then
AC_MSG_ERROR([Could not find the Expat library])
fi
expat_save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $EXPAT_CFLAGS"
AC_CHECK_HEADERS(expat.h, , expat_found=no)
if test $expat_found = no; then
AC_MSG_ERROR([Could not find expat.h])
fi
CFLAGS="$expat_save_CFLAGS"
fi
AC_SUBST(EXPAT_CFLAGS)
AC_SUBST(EXPAT_LIBS)
])

View file

@ -0,0 +1,39 @@
# expatcfg-compiler-supports-visibility.m4 --
#
# SYNOPSIS
#
# EXPATCFG_COMPILER_SUPPORTS_VISIBILITY([ACTION-IF-YES],
# [ACTION-IF-NO])
#
# DESCRIPTION
#
# Check if the selected compiler supports the "visibility" attribute
# and set the variable "expatcfg_cv_compiler_supports_visibility"
# accordingly to "yes" or "no".
#
# In addition, execute ACTION-IF-YES or ACTION-IF-NO.
#
# LICENSE
#
# Copyright (c) 2018 The Expat Authors.
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
AC_DEFUN([EXPATCFG_COMPILER_SUPPORTS_VISIBILITY],
[AC_CACHE_CHECK([whether compiler supports visibility],
[expatcfg_cv_compiler_supports_visibility],
[AS_VAR_SET([expatcfg_cv_compiler_supports_visibility],[no])
AS_VAR_COPY([OLDFLAGS],[CFLAGS])
AS_VAR_APPEND([CFLAGS],[" -fvisibility=hidden -Wall -Werror -Wno-unknown-warning-option"])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
void __attribute__((visibility("default"))) foo(void);
void foo(void) {}
]])],
[AS_VAR_SET([expatcfg_cv_compiler_supports_visibility],[yes])])
AS_VAR_COPY([CFLAGS],[OLDFLAGS])])
AS_IF([test "$expatcfg_cv_compiler_supports_visibility" = yes],[$1],[$2])])
# end of file

61
conftools/get-version.sh Executable file
View file

@ -0,0 +1,61 @@
#!/bin/sh
# USAGE: get-version.sh path/to/expat.h
#
# This script will print Expat's version number on stdout. For example:
#
# $ ./conftools/get-version.sh ./lib/expat.h
# 1.95.3
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2002 Greg Stein <gstein@users.sourceforge.net>
# Copyright (c) 2017 Kerin Millar <kfm@plushkava.net>
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
if test $# = 0; then
echo "ERROR: pathname for expat.h was not provided."
echo ""
echo "USAGE: $0 path/to/expat.h"
exit 1
fi
if test $# != 1; then
echo "ERROR: too many arguments were provided."
echo ""
echo "USAGE: $0 path/to/expat.h"
exit 1
fi
hdr="$1"
if test ! -r "$hdr"; then
echo "ERROR: '$hdr' does not exist, or is not readable."
exit 1
fi
MAJOR_VERSION=$(sed -n -e '/MAJOR_VERSION/s/[^0-9]*//gp' "$hdr")
MINOR_VERSION=$(sed -n -e '/MINOR_VERSION/s/[^0-9]*//gp' "$hdr")
MICRO_VERSION=$(sed -n -e '/MICRO_VERSION/s/[^0-9]*//gp' "$hdr")
printf '%s.%s.%s' "$MAJOR_VERSION" "$MINOR_VERSION" "$MICRO_VERSION"

541
conftools/install-sh Executable file
View file

@ -0,0 +1,541 @@
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2020-11-14.01; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# 'make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
tab=' '
nl='
'
IFS=" $tab$nl"
# Set DOITPROG to "echo" to test this script.
doit=${DOITPROG-}
doit_exec=${doit:-exec}
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
chgrpprog=${CHGRPPROG-chgrp}
chmodprog=${CHMODPROG-chmod}
chownprog=${CHOWNPROG-chown}
cmpprog=${CMPPROG-cmp}
cpprog=${CPPROG-cp}
mkdirprog=${MKDIRPROG-mkdir}
mvprog=${MVPROG-mv}
rmprog=${RMPROG-rm}
stripprog=${STRIPPROG-strip}
posix_mkdir=
# Desired mode of installed file.
mode=0755
# Create dirs (including intermediate dirs) using mode 755.
# This is like GNU 'install' as of coreutils 8.32 (2020).
mkdir_umask=22
backupsuffix=
chgrpcmd=
chmodcmd=$chmodprog
chowncmd=
mvcmd=$mvprog
rmcmd="$rmprog -f"
stripcmd=
src=
dst=
dir_arg=
dst_arg=
copy_on_change=false
is_target_a_directory=possibly
usage="\
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
or: $0 [OPTION]... SRCFILES... DIRECTORY
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
or: $0 [OPTION]... -d DIRECTORIES...
In the 1st form, copy SRCFILE to DSTFILE.
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
In the 4th, create DIRECTORIES.
Options:
--help display this help and exit.
--version display version info and exit.
-c (ignored)
-C install only if different (preserve data modification time)
-d create directories instead of installing files.
-g GROUP $chgrpprog installed files to GROUP.
-m MODE $chmodprog installed files to MODE.
-o USER $chownprog installed files to USER.
-p pass -p to $cpprog.
-s $stripprog installed files.
-S SUFFIX attempt to back up existing files, with suffix SUFFIX.
-t DIRECTORY install into DIRECTORY.
-T report an error if DSTFILE is a directory.
Environment variables override the default commands:
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
RMPROG STRIPPROG
By default, rm is invoked with -f; when overridden with RMPROG,
it's up to you to specify -f if you want it.
If -S is not specified, no backups are attempted.
Email bug reports to bug-automake@gnu.org.
Automake home page: https://www.gnu.org/software/automake/
"
while test $# -ne 0; do
case $1 in
-c) ;;
-C) copy_on_change=true;;
-d) dir_arg=true;;
-g) chgrpcmd="$chgrpprog $2"
shift;;
--help) echo "$usage"; exit $?;;
-m) mode=$2
case $mode in
*' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
echo "$0: invalid mode: $mode" >&2
exit 1;;
esac
shift;;
-o) chowncmd="$chownprog $2"
shift;;
-p) cpprog="$cpprog -p";;
-s) stripcmd=$stripprog;;
-S) backupsuffix="$2"
shift;;
-t)
is_target_a_directory=always
dst_arg=$2
# Protect names problematic for 'test' and other utilities.
case $dst_arg in
-* | [=\(\)!]) dst_arg=./$dst_arg;;
esac
shift;;
-T) is_target_a_directory=never;;
--version) echo "$0 $scriptversion"; exit $?;;
--) shift
break;;
-*) echo "$0: invalid option: $1" >&2
exit 1;;
*) break;;
esac
shift
done
# We allow the use of options -d and -T together, by making -d
# take the precedence; this is for compatibility with GNU install.
if test -n "$dir_arg"; then
if test -n "$dst_arg"; then
echo "$0: target directory not allowed when installing a directory." >&2
exit 1
fi
fi
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
# When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
# Otherwise, the last argument is the destination. Remove it from $@.
for arg
do
if test -n "$dst_arg"; then
# $@ is not empty: it contains at least $arg.
set fnord "$@" "$dst_arg"
shift # fnord
fi
shift # arg
dst_arg=$arg
# Protect names problematic for 'test' and other utilities.
case $dst_arg in
-* | [=\(\)!]) dst_arg=./$dst_arg;;
esac
done
fi
if test $# -eq 0; then
if test -z "$dir_arg"; then
echo "$0: no input file specified." >&2
exit 1
fi
# It's OK to call 'install-sh -d' without argument.
# This can happen when creating conditional directories.
exit 0
fi
if test -z "$dir_arg"; then
if test $# -gt 1 || test "$is_target_a_directory" = always; then
if test ! -d "$dst_arg"; then
echo "$0: $dst_arg: Is not a directory." >&2
exit 1
fi
fi
fi
if test -z "$dir_arg"; then
do_exit='(exit $ret); exit $ret'
trap "ret=129; $do_exit" 1
trap "ret=130; $do_exit" 2
trap "ret=141; $do_exit" 13
trap "ret=143; $do_exit" 15
# Set umask so as not to create temps with too-generous modes.
# However, 'strip' requires both read and write access to temps.
case $mode in
# Optimize common cases.
*644) cp_umask=133;;
*755) cp_umask=22;;
*[0-7])
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw='% 200'
fi
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
*)
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw=,u+rw
fi
cp_umask=$mode$u_plus_rw;;
esac
fi
for src
do
# Protect names problematic for 'test' and other utilities.
case $src in
-* | [=\(\)!]) src=./$src;;
esac
if test -n "$dir_arg"; then
dst=$src
dstdir=$dst
test -d "$dstdir"
dstdir_status=$?
# Don't chown directories that already exist.
if test $dstdir_status = 0; then
chowncmd=""
fi
else
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if test ! -f "$src" && test ! -d "$src"; then
echo "$0: $src does not exist." >&2
exit 1
fi
if test -z "$dst_arg"; then
echo "$0: no destination specified." >&2
exit 1
fi
dst=$dst_arg
# If destination is a directory, append the input filename.
if test -d "$dst"; then
if test "$is_target_a_directory" = never; then
echo "$0: $dst_arg: Is a directory" >&2
exit 1
fi
dstdir=$dst
dstbase=`basename "$src"`
case $dst in
*/) dst=$dst$dstbase;;
*) dst=$dst/$dstbase;;
esac
dstdir_status=0
else
dstdir=`dirname "$dst"`
test -d "$dstdir"
dstdir_status=$?
fi
fi
case $dstdir in
*/) dstdirslash=$dstdir;;
*) dstdirslash=$dstdir/;;
esac
obsolete_mkdir_used=false
if test $dstdir_status != 0; then
case $posix_mkdir in
'')
# With -d, create the new directory with the user-specified mode.
# Otherwise, rely on $mkdir_umask.
if test -n "$dir_arg"; then
mkdir_mode=-m$mode
else
mkdir_mode=
fi
posix_mkdir=false
# The $RANDOM variable is not portable (e.g., dash). Use it
# here however when possible just to lower collision chance.
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
trap '
ret=$?
rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
exit $ret
' 0
# Because "mkdir -p" follows existing symlinks and we likely work
# directly in world-writeable /tmp, make sure that the '$tmpdir'
# directory is successfully created first before we actually test
# 'mkdir -p'.
if (umask $mkdir_umask &&
$mkdirprog $mkdir_mode "$tmpdir" &&
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
then
if test -z "$dir_arg" || {
# Check for POSIX incompatibilities with -m.
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
# other-writable bit of parent directory when it shouldn't.
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
test_tmpdir="$tmpdir/a"
ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
case $ls_ld_tmpdir in
d????-?r-*) different_mode=700;;
d????-?--*) different_mode=755;;
*) false;;
esac &&
$mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
}
}
then posix_mkdir=:
fi
rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
fi
trap '' 0;;
esac
if
$posix_mkdir && (
umask $mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
)
then :
else
# mkdir does not conform to POSIX,
# or it failed possibly due to a race condition. Create the
# directory the slow way, step by step, checking for races as we go.
case $dstdir in
/*) prefix='/';;
[-=\(\)!]*) prefix='./';;
*) prefix='';;
esac
oIFS=$IFS
IFS=/
set -f
set fnord $dstdir
shift
set +f
IFS=$oIFS
prefixes=
for d
do
test X"$d" = X && continue
prefix=$prefix$d
if test -d "$prefix"; then
prefixes=
else
if $posix_mkdir; then
(umask $mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
# Don't fail if two instances are running concurrently.
test -d "$prefix" || exit 1
else
case $prefix in
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
*) qprefix=$prefix;;
esac
prefixes="$prefixes '$qprefix'"
fi
fi
prefix=$prefix/
done
if test -n "$prefixes"; then
# Don't fail if two instances are running concurrently.
(umask $mkdir_umask &&
eval "\$doit_exec \$mkdirprog $prefixes") ||
test -d "$dstdir" || exit 1
obsolete_mkdir_used=true
fi
fi
fi
if test -n "$dir_arg"; then
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
else
# Make a couple of temp file names in the proper directory.
dsttmp=${dstdirslash}_inst.$$_
rmtmp=${dstdirslash}_rm.$$_
# Trap to clean up those temp files at exit.
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
# Copy the file name to the temp name.
(umask $cp_umask &&
{ test -z "$stripcmd" || {
# Create $dsttmp read-write so that cp doesn't create it read-only,
# which would cause strip to fail.
if test -z "$doit"; then
: >"$dsttmp" # No need to fork-exec 'touch'.
else
$doit touch "$dsttmp"
fi
}
} &&
$doit_exec $cpprog "$src" "$dsttmp") &&
# and set any options; do chmod last to preserve setuid bits.
#
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $cpprog $src $dsttmp" command.
#
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
# If -C, don't bother to copy if it wouldn't change the file.
if $copy_on_change &&
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
set -f &&
set X $old && old=:$2:$4:$5:$6 &&
set X $new && new=:$2:$4:$5:$6 &&
set +f &&
test "$old" = "$new" &&
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
then
rm -f "$dsttmp"
else
# If $backupsuffix is set, and the file being installed
# already exists, attempt a backup. Don't worry if it fails,
# e.g., if mv doesn't support -f.
if test -n "$backupsuffix" && test -f "$dst"; then
$doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
fi
# Rename the file to the real destination.
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
# The rename failed, perhaps because mv can't rename something else
# to itself, or perhaps because mv is so ancient that it does not
# support -f.
{
# Now remove or move aside any old file at destination location.
# We try this two ways since rm can't unlink itself on some
# systems and the destination file might be busy for other
# reasons. In this case, the final cleanup might fail but the new
# file should still install successfully.
{
test ! -f "$dst" ||
$doit $rmcmd "$dst" 2>/dev/null ||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
{ $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
} ||
{ echo "$0: cannot unlink or rename $dst" >&2
(exit 1); exit 1
}
} &&
# Now rename the file to the real destination.
$doit $mvcmd "$dsttmp" "$dst"
}
fi || exit 1
trap '' 0
fi
done
# Local variables:
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:

11385
conftools/ltmain.sh Normal file

File diff suppressed because it is too large Load diff

215
conftools/missing Executable file
View file

@ -0,0 +1,215 @@
#! /bin/sh
# Common wrapper for a few potentially missing GNU programs.
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 1996-2021 Free Software Foundation, Inc.
# Originally written 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 <https://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
case $1 in
--is-lightweight)
# Used by our autoconf macros to check whether the available missing
# script is modern enough.
exit 0
;;
--run)
# Back-compat with the calling convention used by older automake.
shift
;;
-h|--h|--he|--hel|--help)
echo "\
$0 [OPTION]... PROGRAM [ARGUMENT]...
Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
to PROGRAM being missing or too old.
Options:
-h, --help display this help and exit
-v, --version output version information and exit
Supported PROGRAM values:
aclocal autoconf autoheader autom4te automake makeinfo
bison yacc flex lex help2man
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
# Run the given program, remember its exit status.
"$@"; st=$?
# If it succeeded, we are done.
test $st -eq 0 && exit 0
# Also exit now if we it failed (or wasn't found), and '--version' was
# passed; such an option is passed most likely to detect whether the
# program is present and works.
case $2 in --version|--help) exit $st;; esac
# Exit code 63 means version mismatch. This often happens when the user
# tries to use an ancient version of a tool on a file that requires a
# minimum version.
if test $st -eq 63; then
msg="probably too old"
elif test $st -eq 127; then
# Program was missing.
msg="missing on your system"
else
# Program was found and executed, but failed. Give up.
exit $st
fi
perl_URL=https://www.perl.org/
flex_URL=https://github.com/westes/flex
gnu_software_URL=https://www.gnu.org/software
program_details ()
{
case $1 in
aclocal|automake)
echo "The '$1' program is part of the GNU Automake package:"
echo "<$gnu_software_URL/automake>"
echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
echo "<$gnu_software_URL/autoconf>"
echo "<$gnu_software_URL/m4/>"
echo "<$perl_URL>"
;;
autoconf|autom4te|autoheader)
echo "The '$1' program is part of the GNU Autoconf package:"
echo "<$gnu_software_URL/autoconf/>"
echo "It also requires GNU m4 and Perl in order to run:"
echo "<$gnu_software_URL/m4/>"
echo "<$perl_URL>"
;;
esac
}
give_advice ()
{
# Normalize program name to check for.
normalized_program=`echo "$1" | sed '
s/^gnu-//; t
s/^gnu//; t
s/^g//; t'`
printf '%s\n' "'$1' is $msg."
configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
case $normalized_program in
autoconf*)
echo "You should only need it if you modified 'configure.ac',"
echo "or m4 files included by it."
program_details 'autoconf'
;;
autoheader*)
echo "You should only need it if you modified 'acconfig.h' or"
echo "$configure_deps."
program_details 'autoheader'
;;
automake*)
echo "You should only need it if you modified 'Makefile.am' or"
echo "$configure_deps."
program_details 'automake'
;;
aclocal*)
echo "You should only need it if you modified 'acinclude.m4' or"
echo "$configure_deps."
program_details 'aclocal'
;;
autom4te*)
echo "You might have modified some maintainer files that require"
echo "the 'autom4te' program to be rebuilt."
program_details 'autom4te'
;;
bison*|yacc*)
echo "You should only need it if you modified a '.y' file."
echo "You may want to install the GNU Bison package:"
echo "<$gnu_software_URL/bison/>"
;;
lex*|flex*)
echo "You should only need it if you modified a '.l' file."
echo "You may want to install the Fast Lexical Analyzer package:"
echo "<$flex_URL>"
;;
help2man*)
echo "You should only need it if you modified a dependency" \
"of a man page."
echo "You may want to install the GNU Help2man package:"
echo "<$gnu_software_URL/help2man/>"
;;
makeinfo*)
echo "You should only need it if you modified a '.texi' file, or"
echo "any other file indirectly affecting the aspect of the manual."
echo "You might want to install the Texinfo package:"
echo "<$gnu_software_URL/texinfo/>"
echo "The spurious makeinfo call might also be the consequence of"
echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
echo "want to install GNU make:"
echo "<$gnu_software_URL/make/>"
;;
*)
echo "You might have modified some files without having the proper"
echo "tools for further handling them. Check the 'README' file, it"
echo "often tells you about the needed prerequisites for installing"
echo "this package. You may also peek at any GNU archive site, in"
echo "case some other package contains this missing '$1' program."
;;
esac
}
give_advice "$1" | sed -e '1s/^/WARNING: /' \
-e '2,$s/^/ /' >&2
# Propagate the correct exit status (expected to be 127 for a program
# not found, 63 for a program that failed due to version mismatch).
exit $st
# Local variables:
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:

153
conftools/test-driver Executable file
View file

@ -0,0 +1,153 @@
#! /bin/sh
# test-driver - basic testsuite driver script.
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 2011-2021 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 <https://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.
# This file is maintained in Automake, please report
# bugs to <bug-automake@gnu.org> or send patches to
# <automake-patches@gnu.org>.
# Make unconditional expansion of undefined variables an error. This
# helps a lot in preventing typo-related bugs.
set -u
usage_error ()
{
echo "$0: $*" >&2
print_usage >&2
exit 2
}
print_usage ()
{
cat <<END
Usage:
test-driver --test-name NAME --log-file PATH --trs-file PATH
[--expect-failure {yes|no}] [--color-tests {yes|no}]
[--enable-hard-errors {yes|no}] [--]
TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
The '--test-name', '--log-file' and '--trs-file' options are mandatory.
See the GNU Automake documentation for information.
END
}
test_name= # Used for reporting.
log_file= # Where to save the output of the test script.
trs_file= # Where to save the metadata of the test run.
expect_failure=no
color_tests=no
enable_hard_errors=yes
while test $# -gt 0; do
case $1 in
--help) print_usage; exit $?;;
--version) echo "test-driver $scriptversion"; exit $?;;
--test-name) test_name=$2; shift;;
--log-file) log_file=$2; shift;;
--trs-file) trs_file=$2; shift;;
--color-tests) color_tests=$2; shift;;
--expect-failure) expect_failure=$2; shift;;
--enable-hard-errors) enable_hard_errors=$2; shift;;
--) shift; break;;
-*) usage_error "invalid option: '$1'";;
*) break;;
esac
shift
done
missing_opts=
test x"$test_name" = x && missing_opts="$missing_opts --test-name"
test x"$log_file" = x && missing_opts="$missing_opts --log-file"
test x"$trs_file" = x && missing_opts="$missing_opts --trs-file"
if test x"$missing_opts" != x; then
usage_error "the following mandatory options are missing:$missing_opts"
fi
if test $# -eq 0; then
usage_error "missing argument"
fi
if test $color_tests = yes; then
# Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
red='' # Red.
grn='' # Green.
lgn='' # Light green.
blu='' # Blue.
mgn='' # Magenta.
std='' # No color.
else
red= grn= lgn= blu= mgn= std=
fi
do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
trap "st=129; $do_exit" 1
trap "st=130; $do_exit" 2
trap "st=141; $do_exit" 13
trap "st=143; $do_exit" 15
# Test script is run here. We create the file first, then append to it,
# to ameliorate tests themselves also writing to the log file. Our tests
# don't, but others can (automake bug#35762).
: >"$log_file"
"$@" >>"$log_file" 2>&1
estatus=$?
if test $enable_hard_errors = no && test $estatus -eq 99; then
tweaked_estatus=1
else
tweaked_estatus=$estatus
fi
case $tweaked_estatus:$expect_failure in
0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
0:*) col=$grn res=PASS recheck=no gcopy=no;;
77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
*:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
*:*) col=$red res=FAIL recheck=yes gcopy=yes;;
esac
# Report the test outcome and exit status in the logs, so that one can
# know whether the test passed or failed simply by looking at the '.log'
# file, without the need of also peaking into the corresponding '.trs'
# file (automake bug#11814).
echo "$res $test_name (exit status: $estatus)" >>"$log_file"
# Report outcome to console.
echo "${col}${res}${std}: $test_name"
# Register the test result, and other relevant metadata.
echo ":test-result: $res" > $trs_file
echo ":global-test-result: $res" >> $trs_file
echo ":recheck: $recheck" >> $trs_file
echo ":copy-in-global-log: $gcopy" >> $trs_file
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:

618
doc/Makefile Normal file
View file

@ -0,0 +1,618 @@
# Makefile.in generated by automake 1.16.5 from Makefile.am.
# doc/Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994-2021 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.
#
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2017-2024 Sebastian Pipping <sebastian@pipping.org>
# Copyright (c) 2017 Stephen Groat <stephen@groat.us>
# Copyright (c) 2017 Joe Orton <jorton@redhat.com>
# Copyright (c) 2024 Tomas Korbar <tkorbar@redhat.com>
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/expat
pkgincludedir = $(includedir)/expat
pkglibdir = $(libdir)/expat
pkglibexecdir = $(libexecdir)/expat
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 = x86_64-pc-linux-gnu
host_triplet = powerpc64-fsl-linux-gnu
subdir = doc
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/acinclude.m4 \
$(top_srcdir)/conftools/ax-require-defined.m4 \
$(top_srcdir)/conftools/ax-check-compile-flag.m4 \
$(top_srcdir)/conftools/ax-check-link-flag.m4 \
$(top_srcdir)/conftools/ax-append-flag.m4 \
$(top_srcdir)/conftools/ax-append-compile-flags.m4 \
$(top_srcdir)/conftools/ax-append-link-flags.m4 \
$(top_srcdir)/conftools/expatcfg-compiler-supports-visibility.m4 \
$(top_srcdir)/conftools/ax-cxx-compile-stdcxx.m4 \
$(top_srcdir)/conftools/ax-cxx-compile-stdcxx-11.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/expat_config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
AM_V_P = $(am__v_P_$(V))
am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_$(V))
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_$(V))
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
am__v_at_0 = @
am__v_at_1 =
SOURCES =
DIST_SOURCES =
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
man1dir = $(mandir)/man1
am__installdirs = "$(DESTDIR)$(man1dir)"
NROFF = nroff
MANS = $(dist_man_MANS)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} '/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/missing' aclocal-1.16
AMTAR = $${TAR-tar}
AM_CFLAGS = -Wall -Wextra -fexceptions -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation -fvisibility=hidden
AM_CPPFLAGS = -DXML_ENABLE_VISIBILITY=1
AM_CXXFLAGS = -Wall -Wextra -fexceptions -fno-strict-aliasing
AM_DEFAULT_VERBOSITY = 1
AM_LDFLAGS = -fno-strict-aliasing
AR = powerpc64-fsl-linux-ar
AS = powerpc64-fsl-linux-as
AUTOCONF = ${SHELL} '/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/missing' autoconf
AUTOHEADER = ${SHELL} '/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/missing' autoheader
AUTOMAKE = ${SHELL} '/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/missing' automake-1.16
AWK = gawk
CC = powerpc64-fsl-linux-gcc -mbig-endian -mhard-float -m64 -mcpu=e6500 --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux
CCDEPMODE = depmode=gcc3
CFLAGS = -O2 -pipe -g -feliminate-unused-debug-types
CMAKE_SHARED_LIBRARY_PREFIX = lib
CPPFLAGS =
CSCOPE = cscope
CTAGS = ctags
CXX = powerpc64-fsl-linux-g++ -mbig-endian -mhard-float -m64 -mcpu=e6500 --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux -std=c++11
CXXCPP = powerpc64-fsl-linux-g++ -mbig-endian -mhard-float -m64 -mcpu=e6500 --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux -E -std=c++11
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -O2 -pipe -g -feliminate-unused-debug-types
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DLLTOOL = false
DOCBOOK_TO_MAN =
DSYMUTIL =
DUMPBIN =
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /usr/bin/grep -E
ETAGS = etags
EXEEXT =
EXPAT_ATTR_INFO = OFF
EXPAT_CHAR_TYPE = char
EXPAT_CONTEXT_BYTES = 1024
EXPAT_DTD = ON
EXPAT_LARGE_SIZE = OFF
EXPAT_MIN_SIZE = OFF
EXPAT_NS = ON
FGREP = /usr/bin/grep -F
FILECMD = file
FILEMAP = unixfilemap
GREP = /usr/bin/grep
HAVE_CXX11 = 1
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LD = powerpc64-fsl-linux-ld --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux -m elf64ppc
LDFLAGS = -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
LIBAGE = 10
LIBCURRENT = 11
LIBDIR_BASENAME = lib
LIBM = -lm
LIBOBJS =
LIBREVISION = 0
LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIPO =
LN_S = ln -s
LTLIBOBJS =
LT_SYS_LIBRARY_PATH =
MAINT =
MAKEINFO = ${SHELL} '/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/missing' makeinfo
MANIFEST_TOOL = :
MKDIR_P = /usr/bin/mkdir -p
NM = powerpc64-fsl-linux-nm
NMEDIT =
OBJDUMP = powerpc64-fsl-linux-objdump
OBJEXT = o
OTOOL =
OTOOL64 =
PACKAGE = expat
PACKAGE_BUGREPORT = https://github.com/libexpat/libexpat/issues
PACKAGE_NAME = expat
PACKAGE_STRING = expat 2.6.4
PACKAGE_TARNAME = expat
PACKAGE_URL =
PACKAGE_VERSION = 2.6.4
PATH_SEPARATOR = :
RANLIB = powerpc64-fsl-linux-ranlib
SED = sed
SET_MAKE =
SHELL = /bin/bash
SIZEOF_VOID_P = 8
SO_MAJOR = 1
SO_MINOR = 10
SO_PATCH = 0
STRIP = powerpc64-fsl-linux-strip
VERSION = 2.6.4
abs_builddir = /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/doc
abs_srcdir = /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/doc
abs_top_builddir = /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4
abs_top_srcdir = /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4
ac_ct_AR =
ac_ct_CC =
ac_ct_CXX =
ac_ct_DUMPBIN =
am__include = include
am__leading_dot = .
am__quote =
am__tar = $${TAR-tar} chof - "$$tardir"
am__untar = $${TAR-tar} xf -
bindir = ${exec_prefix}/bin
build = x86_64-pc-linux-gnu
build_alias =
build_cpu = x86_64
build_os = linux-gnu
build_vendor = pc
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host = powerpc64-fsl-linux-gnu
host_alias = powerpc64-fsl-linux
host_cpu = powerpc64
host_os = linux-gnu
host_vendor = fsl
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = ${SHELL} /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = $(MKDIR_P)
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /opt/vgisc/6t/workspace/BUILD/build/powerpc64-fsl-linux
program_transform_name = s,x,x,
psdir = ${docdir}
runstatedir = ${localstatedir}/run
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias =
top_build_prefix = ../
top_builddir = ..
top_srcdir = ..
dist_man_MANS = xmlwf.1
#CLEANFILES = xmlwf.1
EXTRA_DIST = \
ok.min.css \
reference.html \
style.css \
xmlwf.xml
all: all-am
.SUFFIXES:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
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: $(dist_man_MANS)
@$(NORMAL_INSTALL)
@list1=''; \
list2='$(dist_man_MANS)'; \
test -n "$(man1dir)" \
&& test -n "`echo $$list1$$list2`" \
|| exit 0; \
echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
$(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
{ for i in $$list1; do echo "$$i"; done; \
if test -n "$$list2"; then \
for i in $$list2; do echo "$$i"; done \
| sed -n '/\.1[a-z]*$$/p'; \
fi; \
} | while read p; do \
if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; echo "$$p"; \
done | \
sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
sed 'N;N;s,\n, ,g' | { \
list=; while read file base inst; do \
if test "$$base" = "$$inst"; then list="$$list $$file"; else \
echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
$(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
fi; \
done; \
for i in $$list; do echo "$$i"; done | $(am__base_list) | \
while read files; do \
test -z "$$files" || { \
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
$(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
done; }
uninstall-man1:
@$(NORMAL_UNINSTALL)
@list=''; test -n "$(man1dir)" || exit 0; \
files=`{ for i in $$list; do echo "$$i"; done; \
l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
sed -n '/\.1[a-z]*$$/p'; \
} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
tags TAGS:
ctags CTAGS:
cscope cscopelist:
#dist-hook:
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(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
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$(top_distdir)" distdir="$(distdir)" \
dist-hook
check-am: all-am
check: check-am
all-am: Makefile $(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:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
-rm -f Makefile
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 Makefile
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 \
cscopelist-am ctags-am dist-hook 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 tags-am uninstall uninstall-am uninstall-man \
uninstall-man1
.PRECIOUS: Makefile
.PHONY: dist-hook # not inside conditional to avoid automake warning
xmlwf.1: xmlwf.xml
-rm -f $@
test "x$(DOCBOOK_TO_MAN)" != x && $(DOCBOOK_TO_MAN) $<
test -f $@ || mv XMLWF.1 $@
dist-hook:
@echo 'ERROR: Configure with --with-docbook for "make dist".' 1>&2
@false
# 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:

59
doc/Makefile.am Normal file
View file

@ -0,0 +1,59 @@
#
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2017-2024 Sebastian Pipping <sebastian@pipping.org>
# Copyright (c) 2017 Stephen Groat <stephen@groat.us>
# Copyright (c) 2017 Joe Orton <jorton@redhat.com>
# Copyright (c) 2024 Tomas Korbar <tkorbar@redhat.com>
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
.PHONY: dist-hook # not inside conditional to avoid automake warning
if WITH_MANPAGE
dist_man_MANS = xmlwf.1
xmlwf.1: xmlwf.xml
-rm -f $@
test "x$(DOCBOOK_TO_MAN)" != x && $(DOCBOOK_TO_MAN) $<
test -f $@ || mv XMLWF.1 $@
endif
if !WITH_DISTRIBUTABLE_MANPAGE
dist-hook:
@echo 'ERROR: Configure with --with-docbook for "make dist".' 1>&2
@false
endif
if !WITH_PREBUILT_MANPAGE
CLEANFILES = xmlwf.1
endif
EXTRA_DIST = \
ok.min.css \
reference.html \
style.css \
xmlwf.xml

618
doc/Makefile.in Normal file
View file

@ -0,0 +1,618 @@
# Makefile.in generated by automake 1.16.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2021 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@
#
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2017-2024 Sebastian Pipping <sebastian@pipping.org>
# Copyright (c) 2017 Stephen Groat <stephen@groat.us>
# Copyright (c) 2017 Joe Orton <jorton@redhat.com>
# Copyright (c) 2024 Tomas Korbar <tkorbar@redhat.com>
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = doc
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/acinclude.m4 \
$(top_srcdir)/conftools/ax-require-defined.m4 \
$(top_srcdir)/conftools/ax-check-compile-flag.m4 \
$(top_srcdir)/conftools/ax-check-link-flag.m4 \
$(top_srcdir)/conftools/ax-append-flag.m4 \
$(top_srcdir)/conftools/ax-append-compile-flags.m4 \
$(top_srcdir)/conftools/ax-append-link-flags.m4 \
$(top_srcdir)/conftools/expatcfg-compiler-supports-visibility.m4 \
$(top_srcdir)/conftools/ax-cxx-compile-stdcxx.m4 \
$(top_srcdir)/conftools/ax-cxx-compile-stdcxx-11.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/expat_config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
SOURCES =
DIST_SOURCES =
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
man1dir = $(mandir)/man1
am__installdirs = "$(DESTDIR)$(man1dir)"
NROFF = nroff
MANS = $(dist_man_MANS)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Makefile.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AM_CFLAGS = @AM_CFLAGS@
AM_CPPFLAGS = @AM_CPPFLAGS@
AM_CXXFLAGS = @AM_CXXFLAGS@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AM_LDFLAGS = @AM_LDFLAGS@
AR = @AR@
AS = @AS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CMAKE_SHARED_LIBRARY_PREFIX = @CMAKE_SHARED_LIBRARY_PREFIX@
CPPFLAGS = @CPPFLAGS@
CSCOPE = @CSCOPE@
CTAGS = @CTAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOCBOOK_TO_MAN = @DOCBOOK_TO_MAN@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
ETAGS = @ETAGS@
EXEEXT = @EXEEXT@
EXPAT_ATTR_INFO = @EXPAT_ATTR_INFO@
EXPAT_CHAR_TYPE = @EXPAT_CHAR_TYPE@
EXPAT_CONTEXT_BYTES = @EXPAT_CONTEXT_BYTES@
EXPAT_DTD = @EXPAT_DTD@
EXPAT_LARGE_SIZE = @EXPAT_LARGE_SIZE@
EXPAT_MIN_SIZE = @EXPAT_MIN_SIZE@
EXPAT_NS = @EXPAT_NS@
FGREP = @FGREP@
FILECMD = @FILECMD@
FILEMAP = @FILEMAP@
GREP = @GREP@
HAVE_CXX11 = @HAVE_CXX11@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBAGE = @LIBAGE@
LIBCURRENT = @LIBCURRENT@
LIBDIR_BASENAME = @LIBDIR_BASENAME@
LIBM = @LIBM@
LIBOBJS = @LIBOBJS@
LIBREVISION = @LIBREVISION@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SO_MAJOR = @SO_MAJOR@
SO_MINOR = @SO_MINOR@
SO_PATCH = @SO_PATCH@
STRIP = @STRIP@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
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@
@WITH_MANPAGE_TRUE@dist_man_MANS = xmlwf.1
@WITH_PREBUILT_MANPAGE_FALSE@CLEANFILES = xmlwf.1
EXTRA_DIST = \
ok.min.css \
reference.html \
style.css \
xmlwf.xml
all: all-am
.SUFFIXES:
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu doc/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(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: $(dist_man_MANS)
@$(NORMAL_INSTALL)
@list1=''; \
list2='$(dist_man_MANS)'; \
test -n "$(man1dir)" \
&& test -n "`echo $$list1$$list2`" \
|| exit 0; \
echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
$(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
{ for i in $$list1; do echo "$$i"; done; \
if test -n "$$list2"; then \
for i in $$list2; do echo "$$i"; done \
| sed -n '/\.1[a-z]*$$/p'; \
fi; \
} | while read p; do \
if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; echo "$$p"; \
done | \
sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
sed 'N;N;s,\n, ,g' | { \
list=; while read file base inst; do \
if test "$$base" = "$$inst"; then list="$$list $$file"; else \
echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
$(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
fi; \
done; \
for i in $$list; do echo "$$i"; done | $(am__base_list) | \
while read files; do \
test -z "$$files" || { \
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
$(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
done; }
uninstall-man1:
@$(NORMAL_UNINSTALL)
@list=''; test -n "$(man1dir)" || exit 0; \
files=`{ for i in $$list; do echo "$$i"; done; \
l2='$(dist_man_MANS)'; for i in $$l2; do echo "$$i"; done | \
sed -n '/\.1[a-z]*$$/p'; \
} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
-e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
tags TAGS:
ctags CTAGS:
cscope cscopelist:
@WITH_DISTRIBUTABLE_MANPAGE_TRUE@dist-hook:
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(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
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$(top_distdir)" distdir="$(distdir)" \
dist-hook
check-am: all-am
check: check-am
all-am: Makefile $(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:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
-rm -f Makefile
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 Makefile
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 \
cscopelist-am ctags-am dist-hook 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 tags-am uninstall uninstall-am uninstall-man \
uninstall-man1
.PRECIOUS: Makefile
.PHONY: dist-hook # not inside conditional to avoid automake warning
@WITH_MANPAGE_TRUE@xmlwf.1: xmlwf.xml
@WITH_MANPAGE_TRUE@ -rm -f $@
@WITH_MANPAGE_TRUE@ test "x$(DOCBOOK_TO_MAN)" != x && $(DOCBOOK_TO_MAN) $<
@WITH_MANPAGE_TRUE@ test -f $@ || mv XMLWF.1 $@
@WITH_DISTRIBUTABLE_MANPAGE_FALSE@dist-hook:
@WITH_DISTRIBUTABLE_MANPAGE_FALSE@ @echo 'ERROR: Configure with --with-docbook for "make dist".' 1>&2
@WITH_DISTRIBUTABLE_MANPAGE_FALSE@ @false
# 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:

2
doc/ok.min.css vendored Normal file

File diff suppressed because one or more lines are too long

2705
doc/reference.html Normal file

File diff suppressed because it is too large Load diff

47
doc/style.css Normal file
View file

@ -0,0 +1,47 @@
/*
__ __ _
___\ \/ /_ __ __ _| |_
/ _ \\ /| '_ \ / _` | __|
| __// \| |_) | (_| | |_
\___/_/\_\ .__/ \__,_|\__|
|_| XML parser
Copyright (c) 2000 Clark Cooper <coopercc@users.sourceforge.net>
Copyright (c) 2000-2004 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
Copyright (c) 2021 Sebastian Pipping <sebastian@pipping.org>
Licensed under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* Stop not using half the screen */
body {
max-width: none; /* was: 80ch */
}
.cpp-symbols dt {
font-family: monospace;
}
/* Resemble style of <footer> which is not part of xhtml1-strict */
.footer {
font-size: var(--ok-fs-5);
color: var(--ok-tc-1);
}

338
doc/xmlwf.1 Normal file
View file

@ -0,0 +1,338 @@
'\" -*- coding: us-ascii -*-
.if \n(.g .ds T< \\FC
.if \n(.g .ds T> \\F[\n[.fam]]
.de URL
\\$2 \(la\\$1\(ra\\$3
..
.if \n(.g .mso www.tmac
.TH XMLWF 1 "November 6, 2024" "" ""
.SH NAME
xmlwf \- Determines if an XML document is well-formed
.SH SYNOPSIS
'nh
.fi
.ad l
\fBxmlwf\fR \kx
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
'in \n(.iu+\nxu
[\fIOPTIONS\fR] [\fIFILE\fR ...]
'in \n(.iu-\nxu
.ad b
'hy
'nh
.fi
.ad l
\fBxmlwf\fR \kx
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
'in \n(.iu+\nxu
\fB-h\fR | \fB--help\fR
'in \n(.iu-\nxu
.ad b
'hy
'nh
.fi
.ad l
\fBxmlwf\fR \kx
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
'in \n(.iu+\nxu
\fB-v\fR | \fB--version\fR
'in \n(.iu-\nxu
.ad b
'hy
.SH DESCRIPTION
\fBxmlwf\fR uses the Expat library to
determine if an XML document is well-formed. It is
non-validating.
.PP
If you do not specify any files on the command-line, and you
have a recent version of \fBxmlwf\fR, the
input file will be read from standard input.
.SH "WELL-FORMED DOCUMENTS"
A well-formed document must adhere to the
following rules:
.TP 0.2i
\(bu
The file begins with an XML declaration. For instance,
\*(T<<?xml version="1.0" standalone="yes"?>\*(T>.
\fINOTE\fR:
\fBxmlwf\fR does not currently
check for a valid XML declaration.
.TP 0.2i
\(bu
Every start tag is either empty (<tag/>)
or has a corresponding end tag.
.TP 0.2i
\(bu
There is exactly one root element. This element must contain
all other elements in the document. Only comments, white
space, and processing instructions may come after the close
of the root element.
.TP 0.2i
\(bu
All elements nest properly.
.TP 0.2i
\(bu
All attribute values are enclosed in quotes (either single
or double).
.PP
If the document has a DTD, and it strictly complies with that
DTD, then the document is also considered \fIvalid\fR.
\fBxmlwf\fR is a non-validating parser --
it does not check the DTD. However, it does support
external entities (see the \*(T<\fB\-x\fR\*(T> option).
.SH OPTIONS
When an option includes an argument, you may specify the argument either
separately ("\*(T<\fB\-d\fR\*(T> \fIoutput\fR") or concatenated with the
option ("\*(T<\fB\-d\fR\*(T>\fIoutput\fR"). \fBxmlwf\fR
supports both.
.TP
\*(T<\fB\-a\fR\*(T> \fIfactor\fR
Sets the maximum tolerated amplification factor
for protection against billion laughs attacks (default: 100.0).
The amplification factor is calculated as ..
.nf
amplification := (direct + indirect) / direct
.fi
\&.. while parsing, whereas
<direct> is the number of bytes read
from the primary document in parsing and
<indirect> is the number of bytes
added by expanding entities and reading of external DTD files,
combined.
\fINOTE\fR:
If you ever need to increase this value for non-attack payload,
please file a bug report.
.TP
\*(T<\fB\-b\fR\*(T> \fIbytes\fR
Sets the number of output bytes (including amplification)
needed to activate protection against billion laughs attacks
(default: 8 MiB).
This can be thought of as an "activation threshold".
\fINOTE\fR:
If you ever need to increase this value for non-attack payload,
please file a bug report.
.TP
\*(T<\fB\-c\fR\*(T>
If the input file is well-formed and \fBxmlwf\fR
doesn't encounter any errors, the input file is simply copied to
the output directory unchanged.
This implies no namespaces (turns off \*(T<\fB\-n\fR\*(T>) and
requires \*(T<\fB\-d\fR\*(T> to specify an output directory.
.TP
\*(T<\fB\-d\fR\*(T> \fIoutput-dir\fR
Specifies a directory to contain transformed
representations of the input files.
By default, \*(T<\fB\-d\fR\*(T> outputs a canonical representation
(described below).
You can select different output formats using \*(T<\fB\-c\fR\*(T>,
\*(T<\fB\-m\fR\*(T> and \*(T<\fB\-N\fR\*(T>.
The output filenames will
be exactly the same as the input filenames or "STDIN" if the input is
coming from standard input. Therefore, you must be careful that the
output file does not go into the same directory as the input
file. Otherwise, \fBxmlwf\fR will delete the
input file before it generates the output file (just like running
\*(T<cat < file > file\*(T> in most shells).
Two structurally equivalent XML documents have a byte-for-byte
identical canonical XML representation.
Note that ignorable white space is considered significant and
is treated equivalently to data.
More on canonical XML can be found at
http://www.jclark.com/xml/canonxml.html .
.TP
\*(T<\fB\-e\fR\*(T> \fIencoding\fR
Specifies the character encoding for the document, overriding
any document encoding declaration. \fBxmlwf\fR
supports four built-in encodings:
\*(T<US\-ASCII\*(T>,
\*(T<UTF\-8\*(T>,
\*(T<UTF\-16\*(T>, and
\*(T<ISO\-8859\-1\*(T>.
Also see the \*(T<\fB\-w\fR\*(T> option.
.TP
\*(T<\fB\-g\fR\*(T> \fIbytes\fR
Sets the buffer size to request per call pair to
\*(T<\fBXML_GetBuffer\fR\*(T> and \*(T<\fBread\fR\*(T>
(default: 8 KiB).
.TP
\*(T<\fB\-h\fR\*(T>, \*(T<\fB\-\-help\fR\*(T>
Prints short usage information on command \fBxmlwf\fR,
and then exits.
Similar to this man page but more concise.
.TP
\*(T<\fB\-k\fR\*(T>
When processing multiple files, \fBxmlwf\fR
by default halts after the the first file with an error.
This tells \fBxmlwf\fR to report the error
but to keep processing.
This can be useful, for example, when testing a filter that converts
many files to XML and you want to quickly find out which conversions
failed.
.TP
\*(T<\fB\-m\fR\*(T>
Outputs some strange sort of XML file that completely
describes the input file, including character positions.
Requires \*(T<\fB\-d\fR\*(T> to specify an output file.
.TP
\*(T<\fB\-n\fR\*(T>
Turns on namespace processing. (describe namespaces)
\*(T<\fB\-c\fR\*(T> disables namespaces.
.TP
\*(T<\fB\-N\fR\*(T>
Adds a doctype and notation declarations to canonical XML output.
This matches the example output used by the formal XML test cases.
Requires \*(T<\fB\-d\fR\*(T> to specify an output file.
.TP
\*(T<\fB\-p\fR\*(T>
Tells \fBxmlwf\fR to process external DTDs and parameter
entities.
Normally \fBxmlwf\fR never parses parameter
entities. \*(T<\fB\-p\fR\*(T> tells it to always parse them.
\*(T<\fB\-p\fR\*(T> implies \*(T<\fB\-x\fR\*(T>.
.TP
\*(T<\fB\-q\fR\*(T>
Disable reparse deferral, and allow quadratic parse runtime
on large tokens (default: reparse deferral enabled).
.TP
\*(T<\fB\-r\fR\*(T>
Normally \fBxmlwf\fR memory-maps the XML file
before parsing; this can result in faster parsing on many
platforms.
\*(T<\fB\-r\fR\*(T> turns off memory-mapping and uses normal file
IO calls instead.
Of course, memory-mapping is automatically turned off
when reading from standard input.
Use of memory-mapping can cause some platforms to report
substantially higher memory usage for
\fBxmlwf\fR, but this appears to be a matter of
the operating system reporting memory in a strange way; there is
not a leak in \fBxmlwf\fR.
.TP
\*(T<\fB\-s\fR\*(T>
Prints an error if the document is not standalone.
A document is standalone if it has no external subset and no
references to parameter entities.
.TP
\*(T<\fB\-t\fR\*(T>
Turns on timings. This tells Expat to parse the entire file,
but not perform any processing.
This gives a fairly accurate idea of the raw speed of Expat itself
without client overhead.
\*(T<\fB\-t\fR\*(T> turns off most of the output options
(\*(T<\fB\-d\fR\*(T>, \*(T<\fB\-m\fR\*(T>, \*(T<\fB\-c\fR\*(T>, ...).
.TP
\*(T<\fB\-v\fR\*(T>, \*(T<\fB\-\-version\fR\*(T>
Prints the version of the Expat library being used, including some
information on the compile-time configuration of the library, and
then exits.
.TP
\*(T<\fB\-w\fR\*(T>
Enables support for Windows code pages.
Normally, \fBxmlwf\fR will throw an error if it
runs across an encoding that it is not equipped to handle itself. With
\*(T<\fB\-w\fR\*(T>, \fBxmlwf\fR will try to use a Windows code
page. See also \*(T<\fB\-e\fR\*(T>.
.TP
\*(T<\fB\-x\fR\*(T>
Turns on parsing external entities.
Non-validating parsers are not required to resolve external
entities, or even expand entities at all.
Expat always expands internal entities (?),
but external entity parsing must be enabled explicitly.
External entities are simply entities that obtain their
data from outside the XML file currently being parsed.
This is an example of an internal entity:
.nf
<!ENTITY vers '1.0.2'>
.fi
And here are some examples of external entities:
.nf
<!ENTITY header SYSTEM "header\-&vers;.xml"> (parsed)
<!ENTITY logo SYSTEM "logo.png" PNG> (unparsed)
.fi
.TP
\*(T<\fB\-\-\fR\*(T>
(Two hyphens.)
Terminates the list of options. This is only needed if a filename
starts with a hyphen. For example:
.nf
xmlwf \-\- \-myfile.xml
.fi
will run \fBxmlwf\fR on the file
\*(T<\fI\-myfile.xml\fR\*(T>.
.PP
Older versions of \fBxmlwf\fR do not support
reading from standard input.
.SH OUTPUT
\fBxmlwf\fR outputs nothing for files which are problem-free.
If any input file is not well-formed, or if the output for any
input file cannot be opened, \fBxmlwf\fR prints a single
line describing the problem to standard output.
.PP
If the \*(T<\fB\-k\fR\*(T> option is not provided, \fBxmlwf\fR
halts upon encountering a well-formedness or output-file error.
If \*(T<\fB\-k\fR\*(T> is provided, \fBxmlwf\fR continues
processing the remaining input files, describing problems found with any of them.
.SH "EXIT STATUS"
For options \*(T<\fB\-v\fR\*(T>|\*(T<\fB\-\-version\fR\*(T> or \*(T<\fB\-h\fR\*(T>|\*(T<\fB\-\-help\fR\*(T>, \fBxmlwf\fR always exits with status code 0. For other cases, the following exit status codes are returned:
.TP
\*(T<\fB0\fR\*(T>
The input files are well-formed and the output (if requested) was written successfully.
.TP
\*(T<\fB1\fR\*(T>
An internal error occurred.
.TP
\*(T<\fB2\fR\*(T>
One or more input files were not well-formed or could not be parsed.
.TP
\*(T<\fB3\fR\*(T>
If using the \*(T<\fB\-d\fR\*(T> option, an error occurred opening an output file.
.TP
\*(T<\fB4\fR\*(T>
There was a command-line argument error in how \fBxmlwf\fR was invoked.
.SH BUGS
The errors should go to standard error, not standard output.
.PP
There should be a way to get \*(T<\fB\-d\fR\*(T> to send its
output to standard output rather than forcing the user to send
it to a file.
.PP
I have no idea why anyone would want to use the
\*(T<\fB\-d\fR\*(T>, \*(T<\fB\-c\fR\*(T>, and
\*(T<\fB\-m\fR\*(T> options. If someone could explain it to
me, I'd like to add this information to this manpage.
.SH "SEE ALSO"
.nf
The Expat home page: https://libexpat.github.io/
The W3 XML 1.0 specification (fourth edition): https://www.w3.org/TR/2006/REC\-xml\-20060816/
Billion laughs attack: https://en.wikipedia.org/wiki/Billion_laughs_attack
.fi
.SH AUTHOR
This manual page was originally written by Scott Bronson <\*(T<bronson@rinspin.com\*(T>>
in December 2001 for
the Debian GNU/Linux system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the GNU Free Documentation
License, Version 1.1.

578
doc/xmlwf.xml Normal file
View file

@ -0,0 +1,578 @@
<!--
__ __ _
___\ \/ /_ __ __ _| |_
/ _ \\ /| '_ \ / _` | __|
| __// \| |_) | (_| | |_
\___/_/\_\ .__/ \__,_|\__|
|_| XML parser
Copyright (c) 2001 Scott Bronson <bronson@rinspin.com>
Copyright (c) 2002-2003 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
Copyright (c) 2009 Karl Waclawek <karl@waclawek.net>
Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
Copyright (c) 2016 Ardo van Rangelrooij <ardo@debian.org>
Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
Copyright (c) 2020 Joe Orton <jorton@redhat.com>
Copyright (c) 2021 Tim Bray <tbray@textuality.com>
Unlike most of Expat,
this file is copyrighted under the GNU Free Documentation License 1.1.
-->
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY dhfirstname "<firstname>Scott</firstname>">
<!ENTITY dhsurname "<surname>Bronson</surname>">
<!ENTITY dhdate "<date>November 6, 2024</date>">
<!-- Please adjust this^^ date whenever cutting a new release. -->
<!ENTITY dhsection "<manvolnum>1</manvolnum>">
<!ENTITY dhemail "<email>bronson@rinspin.com</email>">
<!ENTITY dhusername "Scott Bronson">
<!ENTITY dhucpackage "<refentrytitle>XMLWF</refentrytitle>">
<!ENTITY dhpackage "xmlwf">
<!ENTITY debian "<productname>Debian GNU/Linux</productname>">
<!ENTITY gnu "<acronym>GNU</acronym>">
]>
<refentry>
<refentryinfo>
<address>
&dhemail;
</address>
<author>
&dhfirstname;
&dhsurname;
</author>
<copyright>
<year>2001</year>
<holder>&dhusername;</holder>
</copyright>
&dhdate;
</refentryinfo>
<refmeta>
&dhucpackage;
&dhsection;
</refmeta>
<refnamediv>
<refname>&dhpackage;</refname>
<refpurpose>Determines if an XML document is well-formed</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>&dhpackage;</command>
<arg><replaceable>OPTIONS</replaceable></arg>
<arg><replaceable>FILE</replaceable> ...</arg>
</cmdsynopsis>
<cmdsynopsis>
<command>&dhpackage;</command>
<group choice="plain">
<arg><option>-h</option></arg>
<arg><option>--help</option></arg>
</group>
</cmdsynopsis>
<cmdsynopsis>
<command>&dhpackage;</command>
<group choice="plain">
<arg><option>-v</option></arg>
<arg><option>--version</option></arg>
</group>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>DESCRIPTION</title>
<para>
<command>&dhpackage;</command> uses the Expat library to
determine if an XML document is well-formed. It is
non-validating.
</para>
<para>
If you do not specify any files on the command-line, and you
have a recent version of <command>&dhpackage;</command>, the
input file will be read from standard input.
</para>
</refsect1>
<refsect1>
<title>WELL-FORMED DOCUMENTS</title>
<para>
A well-formed document must adhere to the
following rules:
</para>
<itemizedlist>
<listitem><para>
The file begins with an XML declaration. For instance,
<literal>&lt;?xml version="1.0" standalone="yes"?&gt;</literal>.
<emphasis>NOTE</emphasis>:
<command>&dhpackage;</command> does not currently
check for a valid XML declaration.
</para></listitem>
<listitem><para>
Every start tag is either empty (&lt;tag/&gt;)
or has a corresponding end tag.
</para></listitem>
<listitem><para>
There is exactly one root element. This element must contain
all other elements in the document. Only comments, white
space, and processing instructions may come after the close
of the root element.
</para></listitem>
<listitem><para>
All elements nest properly.
</para></listitem>
<listitem><para>
All attribute values are enclosed in quotes (either single
or double).
</para></listitem>
</itemizedlist>
<para>
If the document has a DTD, and it strictly complies with that
DTD, then the document is also considered <emphasis>valid</emphasis>.
<command>&dhpackage;</command> is a non-validating parser --
it does not check the DTD. However, it does support
external entities (see the <option>-x</option> option).
</para>
</refsect1>
<refsect1>
<title>OPTIONS</title>
<para>
When an option includes an argument, you may specify the argument either
separately ("<option>-d</option> <replaceable>output</replaceable>") or concatenated with the
option ("<option>-d</option><replaceable>output</replaceable>"). <command>&dhpackage;</command>
supports both.
</para>
<variablelist>
<varlistentry>
<term><option>-a</option> <replaceable>factor</replaceable></term>
<listitem>
<para>
Sets the maximum tolerated amplification factor
for protection against billion laughs attacks (default: 100.0).
The amplification factor is calculated as ..
</para>
<literallayout>
amplification := (direct + indirect) / direct
</literallayout>
<para>
.. while parsing, whereas
&lt;direct&gt; is the number of bytes read
from the primary document in parsing and
&lt;indirect&gt; is the number of bytes
added by expanding entities and reading of external DTD files,
combined.
</para>
<para>
<emphasis>NOTE</emphasis>:
If you ever need to increase this value for non-attack payload,
please file a bug report.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-b</option> <replaceable>bytes</replaceable></term>
<listitem>
<para>
Sets the number of output bytes (including amplification)
needed to activate protection against billion laughs attacks
(default: 8 MiB).
This can be thought of as an &quot;activation threshold&quot;.
</para>
<para>
<emphasis>NOTE</emphasis>:
If you ever need to increase this value for non-attack payload,
please file a bug report.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-c</option></term>
<listitem>
<para>
If the input file is well-formed and <command>&dhpackage;</command>
doesn't encounter any errors, the input file is simply copied to
the output directory unchanged.
This implies no namespaces (turns off <option>-n</option>) and
requires <option>-d</option> to specify an output directory.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-d</option> <replaceable>output-dir</replaceable></term>
<listitem>
<para>
Specifies a directory to contain transformed
representations of the input files.
By default, <option>-d</option> outputs a canonical representation
(described below).
You can select different output formats using <option>-c</option>,
<option>-m</option> and <option>-N</option>.
</para>
<para>
The output filenames will
be exactly the same as the input filenames or "STDIN" if the input is
coming from standard input. Therefore, you must be careful that the
output file does not go into the same directory as the input
file. Otherwise, <command>&dhpackage;</command> will delete the
input file before it generates the output file (just like running
<literal>cat &lt; file &gt; file</literal> in most shells).
</para>
<para>
Two structurally equivalent XML documents have a byte-for-byte
identical canonical XML representation.
Note that ignorable white space is considered significant and
is treated equivalently to data.
More on canonical XML can be found at
http://www.jclark.com/xml/canonxml.html .
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-e</option> <replaceable>encoding</replaceable></term>
<listitem>
<para>
Specifies the character encoding for the document, overriding
any document encoding declaration. <command>&dhpackage;</command>
supports four built-in encodings:
<literal>US-ASCII</literal>,
<literal>UTF-8</literal>,
<literal>UTF-16</literal>, and
<literal>ISO-8859-1</literal>.
Also see the <option>-w</option> option.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-g</option> <replaceable>bytes</replaceable></term>
<listitem>
<para>
Sets the buffer size to request per call pair to
<function>XML_GetBuffer</function> and <function>read</function>
(default: 8 KiB).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-h</option></term>
<term><option>--help</option></term>
<listitem>
<para>
Prints short usage information on command <command>&dhpackage;</command>,
and then exits.
Similar to this man page but more concise.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-k</option></term>
<listitem>
<para>
When processing multiple files, <command>&dhpackage;</command>
by default halts after the the first file with an error.
This tells <command>&dhpackage;</command> to report the error
but to keep processing.
This can be useful, for example, when testing a filter that converts
many files to XML and you want to quickly find out which conversions
failed.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-m</option></term>
<listitem>
<para>
Outputs some strange sort of XML file that completely
describes the input file, including character positions.
Requires <option>-d</option> to specify an output file.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-n</option></term>
<listitem>
<para>
Turns on namespace processing. (describe namespaces)
<option>-c</option> disables namespaces.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-N</option></term>
<listitem>
<para>
Adds a doctype and notation declarations to canonical XML output.
This matches the example output used by the formal XML test cases.
Requires <option>-d</option> to specify an output file.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-p</option></term>
<listitem>
<para>
Tells <command>&dhpackage;</command> to process external DTDs and parameter
entities.
</para>
<para>
Normally <command>&dhpackage;</command> never parses parameter
entities. <option>-p</option> tells it to always parse them.
<option>-p</option> implies <option>-x</option>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-q</option></term>
<listitem>
<para>
Disable reparse deferral, and allow quadratic parse runtime
on large tokens (default: reparse deferral enabled).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-r</option></term>
<listitem>
<para>
Normally <command>&dhpackage;</command> memory-maps the XML file
before parsing; this can result in faster parsing on many
platforms.
<option>-r</option> turns off memory-mapping and uses normal file
IO calls instead.
Of course, memory-mapping is automatically turned off
when reading from standard input.
</para>
<para>
Use of memory-mapping can cause some platforms to report
substantially higher memory usage for
<command>&dhpackage;</command>, but this appears to be a matter of
the operating system reporting memory in a strange way; there is
not a leak in <command>&dhpackage;</command>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-s</option></term>
<listitem>
<para>
Prints an error if the document is not standalone.
A document is standalone if it has no external subset and no
references to parameter entities.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-t</option></term>
<listitem>
<para>
Turns on timings. This tells Expat to parse the entire file,
but not perform any processing.
This gives a fairly accurate idea of the raw speed of Expat itself
without client overhead.
<option>-t</option> turns off most of the output options
(<option>-d</option>, <option>-m</option>, <option>-c</option>, ...).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-v</option></term>
<term><option>--version</option></term>
<listitem>
<para>
Prints the version of the Expat library being used, including some
information on the compile-time configuration of the library, and
then exits.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-w</option></term>
<listitem>
<para>
Enables support for Windows code pages.
Normally, <command>&dhpackage;</command> will throw an error if it
runs across an encoding that it is not equipped to handle itself. With
<option>-w</option>, <command>&dhpackage;</command> will try to use a Windows code
page. See also <option>-e</option>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>-x</option></term>
<listitem>
<para>
Turns on parsing external entities.
</para>
<para>
Non-validating parsers are not required to resolve external
entities, or even expand entities at all.
Expat always expands internal entities (?),
but external entity parsing must be enabled explicitly.
</para>
<para>
External entities are simply entities that obtain their
data from outside the XML file currently being parsed.
</para>
<para>
This is an example of an internal entity:
<literallayout>
&lt;!ENTITY vers '1.0.2'&gt;
</literallayout>
</para>
<para>
And here are some examples of external entities:
<literallayout>
&lt;!ENTITY header SYSTEM "header-&amp;vers;.xml"&gt; (parsed)
&lt;!ENTITY logo SYSTEM "logo.png" PNG&gt; (unparsed)
</literallayout>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>--</option></term>
<listitem>
<para>
(Two hyphens.)
Terminates the list of options. This is only needed if a filename
starts with a hyphen. For example:
</para>
<literallayout>
&dhpackage; -- -myfile.xml
</literallayout>
<para>
will run <command>&dhpackage;</command> on the file
<filename>-myfile.xml</filename>.
</para>
</listitem>
</varlistentry>
</variablelist>
<para>
Older versions of <command>&dhpackage;</command> do not support
reading from standard input.
</para>
</refsect1>
<refsect1>
<title>OUTPUT</title>
<para>
<command>&dhpackage;</command> outputs nothing for files which are problem-free.
If any input file is not well-formed, or if the output for any
input file cannot be opened, <command>&dhpackage;</command> prints a single
line describing the problem to standard output.
</para>
<para>
If the <option>-k</option> option is not provided, <command>&dhpackage;</command>
halts upon encountering a well-formedness or output-file error.
If <option>-k</option> is provided, <command>&dhpackage;</command> continues
processing the remaining input files, describing problems found with any of them.
</para>
</refsect1>
<refsect1>
<title>EXIT STATUS</title>
<para>For options <option>-v</option>|<option>--version</option> or <option>-h</option>|<option>--help</option>, <command>&dhpackage;</command> always exits with status code 0. For other cases, the following exit status codes are returned:
<variablelist>
<varlistentry>
<term><option>0</option></term>
<listitem><para>The input files are well-formed and the output (if requested) was written successfully.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>1</option></term>
<listitem><para>An internal error occurred.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>2</option></term>
<listitem><para>One or more input files were not well-formed or could not be parsed.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>3</option></term>
<listitem><para>If using the <option>-d</option> option, an error occurred opening an output file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>4</option></term>
<listitem><para>There was a command-line argument error in how <command>&dhpackage;</command> was invoked.</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1>
<title>BUGS</title>
<para>
The errors should go to standard error, not standard output.
</para>
<para>
There should be a way to get <option>-d</option> to send its
output to standard output rather than forcing the user to send
it to a file.
</para>
<para>
I have no idea why anyone would want to use the
<option>-d</option>, <option>-c</option>, and
<option>-m</option> options. If someone could explain it to
me, I'd like to add this information to this manpage.
</para>
</refsect1>
<refsect1>
<title>SEE ALSO</title>
<para>
<literallayout>
The Expat home page: https://libexpat.github.io/
The W3 XML 1.0 specification (fourth edition): https://www.w3.org/TR/2006/REC-xml-20060816/
Billion laughs attack: https://en.wikipedia.org/wiki/Billion_laughs_attack
</literallayout>
</para>
</refsect1>
<refsect1>
<title>AUTHOR</title>
<para>
This manual page was originally written by &dhusername; &dhemail;
in December 2001 for
the &debian; system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under
the terms of the <acronym>GNU</acronym> Free Documentation
License, Version 1.1.
</para>
</refsect1>
</refentry>

View file

@ -0,0 +1,168 @@
element_declarations.o: element_declarations.c \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdbool.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdio.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdarg.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__mbstate_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos64_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/sys_errlist.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h \
../lib/expat.h ../lib/expat_external.h
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdbool.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdio.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdarg.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__mbstate_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos64_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/sys_errlist.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h:
../lib/expat.h:
../lib/expat_external.h:

166
examples/.deps/elements.Po Normal file
View file

@ -0,0 +1,166 @@
elements.o: elements.c \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdio.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdarg.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__mbstate_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos64_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/sys_errlist.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio.h \
../lib/expat.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h \
../lib/expat_external.h
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdio.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdarg.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__mbstate_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos64_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/sys_errlist.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio.h:
../lib/expat.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h:
../lib/expat_external.h:

166
examples/.deps/outline.Po Normal file
View file

@ -0,0 +1,166 @@
outline.o: outline.c \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdio.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdarg.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__mbstate_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos64_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/sys_errlist.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio.h \
../lib/expat.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h \
../lib/expat_external.h
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdio.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdarg.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__mbstate_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos64_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/sys_errlist.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio.h:
../lib/expat.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h:
../lib/expat_external.h:

Binary file not shown.

BIN
examples/.libs/elements Executable file

Binary file not shown.

BIN
examples/.libs/outline Executable file

Binary file not shown.

694
examples/Makefile Normal file
View file

@ -0,0 +1,694 @@
# Makefile.in generated by automake 1.16.5 from Makefile.am.
# examples/Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994-2021 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.
#
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2017-2022 Sebastian Pipping <sebastian@pipping.org>
# Copyright (c) 2020 Jeffrey Walton <noloader@gmail.com>
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/expat
pkgincludedir = $(includedir)/expat
pkglibdir = $(libdir)/expat
pkglibexecdir = $(libexecdir)/expat
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 = x86_64-pc-linux-gnu
host_triplet = powerpc64-fsl-linux-gnu
noinst_PROGRAMS = element_declarations$(EXEEXT) elements$(EXEEXT) \
outline$(EXEEXT)
subdir = examples
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/acinclude.m4 \
$(top_srcdir)/conftools/ax-require-defined.m4 \
$(top_srcdir)/conftools/ax-check-compile-flag.m4 \
$(top_srcdir)/conftools/ax-check-link-flag.m4 \
$(top_srcdir)/conftools/ax-append-flag.m4 \
$(top_srcdir)/conftools/ax-append-compile-flags.m4 \
$(top_srcdir)/conftools/ax-append-link-flags.m4 \
$(top_srcdir)/conftools/expatcfg-compiler-supports-visibility.m4 \
$(top_srcdir)/conftools/ax-cxx-compile-stdcxx.m4 \
$(top_srcdir)/conftools/ax-cxx-compile-stdcxx-11.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/expat_config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
PROGRAMS = $(noinst_PROGRAMS)
am_element_declarations_OBJECTS = element_declarations.$(OBJEXT)
element_declarations_OBJECTS = $(am_element_declarations_OBJECTS)
element_declarations_DEPENDENCIES = ../lib/libexpat.la
AM_V_lt = $(am__v_lt_$(V))
am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
am__v_lt_0 = --silent
am__v_lt_1 =
am_elements_OBJECTS = elements.$(OBJEXT)
elements_OBJECTS = $(am_elements_OBJECTS)
elements_DEPENDENCIES = ../lib/libexpat.la
am_outline_OBJECTS = outline.$(OBJEXT)
outline_OBJECTS = $(am_outline_OBJECTS)
outline_DEPENDENCIES = ../lib/libexpat.la
AM_V_P = $(am__v_P_$(V))
am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_$(V))
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_$(V))
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I. -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/conftools/depcomp
am__maybe_remake_depfiles = depfiles
am__depfiles_remade = ./$(DEPDIR)/element_declarations.Po \
./$(DEPDIR)/elements.Po ./$(DEPDIR)/outline.Po
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_$(V))
am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_$(V))
am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(element_declarations_SOURCES) $(elements_SOURCES) \
$(outline_SOURCES)
DIST_SOURCES = $(element_declarations_SOURCES) $(elements_SOURCES) \
$(outline_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
am__DIST_COMMON = $(srcdir)/Makefile.in \
$(top_srcdir)/conftools/depcomp
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} '/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/missing' aclocal-1.16
AMTAR = $${TAR-tar}
AM_CFLAGS = -Wall -Wextra -fexceptions -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation -fvisibility=hidden
AM_CPPFLAGS = -DXML_ENABLE_VISIBILITY=1 -I$(srcdir)/../lib
AM_CXXFLAGS = -Wall -Wextra -fexceptions -fno-strict-aliasing
AM_DEFAULT_VERBOSITY = 1
AM_LDFLAGS = -fno-strict-aliasing
AR = powerpc64-fsl-linux-ar
AS = powerpc64-fsl-linux-as
AUTOCONF = ${SHELL} '/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/missing' autoconf
AUTOHEADER = ${SHELL} '/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/missing' autoheader
AUTOMAKE = ${SHELL} '/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/missing' automake-1.16
AWK = gawk
CC = powerpc64-fsl-linux-gcc -mbig-endian -mhard-float -m64 -mcpu=e6500 --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux
CCDEPMODE = depmode=gcc3
CFLAGS = -O2 -pipe -g -feliminate-unused-debug-types
CMAKE_SHARED_LIBRARY_PREFIX = lib
CPPFLAGS =
CSCOPE = cscope
CTAGS = ctags
CXX = powerpc64-fsl-linux-g++ -mbig-endian -mhard-float -m64 -mcpu=e6500 --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux -std=c++11
CXXCPP = powerpc64-fsl-linux-g++ -mbig-endian -mhard-float -m64 -mcpu=e6500 --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux -E -std=c++11
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -O2 -pipe -g -feliminate-unused-debug-types
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DLLTOOL = false
DOCBOOK_TO_MAN =
DSYMUTIL =
DUMPBIN =
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /usr/bin/grep -E
ETAGS = etags
EXEEXT =
EXPAT_ATTR_INFO = OFF
EXPAT_CHAR_TYPE = char
EXPAT_CONTEXT_BYTES = 1024
EXPAT_DTD = ON
EXPAT_LARGE_SIZE = OFF
EXPAT_MIN_SIZE = OFF
EXPAT_NS = ON
FGREP = /usr/bin/grep -F
FILECMD = file
FILEMAP = unixfilemap
GREP = /usr/bin/grep
HAVE_CXX11 = 1
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
LD = powerpc64-fsl-linux-ld --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux -m elf64ppc
LDFLAGS = -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed
LIBAGE = 10
LIBCURRENT = 11
LIBDIR_BASENAME = lib
LIBM = -lm
LIBOBJS =
LIBREVISION = 0
LIBS =
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIPO =
LN_S = ln -s
LTLIBOBJS =
LT_SYS_LIBRARY_PATH =
MAINT =
MAKEINFO = ${SHELL} '/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/missing' makeinfo
MANIFEST_TOOL = :
MKDIR_P = /usr/bin/mkdir -p
NM = powerpc64-fsl-linux-nm
NMEDIT =
OBJDUMP = powerpc64-fsl-linux-objdump
OBJEXT = o
OTOOL =
OTOOL64 =
PACKAGE = expat
PACKAGE_BUGREPORT = https://github.com/libexpat/libexpat/issues
PACKAGE_NAME = expat
PACKAGE_STRING = expat 2.6.4
PACKAGE_TARNAME = expat
PACKAGE_URL =
PACKAGE_VERSION = 2.6.4
PATH_SEPARATOR = :
RANLIB = powerpc64-fsl-linux-ranlib
SED = sed
SET_MAKE =
SHELL = /bin/bash
SIZEOF_VOID_P = 8
SO_MAJOR = 1
SO_MINOR = 10
SO_PATCH = 0
STRIP = powerpc64-fsl-linux-strip
VERSION = 2.6.4
abs_builddir = /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/examples
abs_srcdir = /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/examples
abs_top_builddir = /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4
abs_top_srcdir = /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4
ac_ct_AR =
ac_ct_CC =
ac_ct_CXX =
ac_ct_DUMPBIN =
am__include = include
am__leading_dot = .
am__quote =
am__tar = $${TAR-tar} chof - "$$tardir"
am__untar = $${TAR-tar} xf -
bindir = ${exec_prefix}/bin
build = x86_64-pc-linux-gnu
build_alias =
build_cpu = x86_64
build_os = linux-gnu
build_vendor = pc
builddir = .
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host = powerpc64-fsl-linux-gnu
host_alias = powerpc64-fsl-linux
host_cpu = powerpc64
host_os = linux-gnu
host_vendor = fsl
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${datarootdir}/info
install_sh = ${SHELL} /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/conftools/install-sh
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localedir = ${datarootdir}/locale
localstatedir = ${prefix}/var
mandir = ${datarootdir}/man
mkdir_p = $(MKDIR_P)
oldincludedir = /usr/include
pdfdir = ${docdir}
prefix = /opt/vgisc/6t/workspace/BUILD/build/powerpc64-fsl-linux
program_transform_name = s,x,x,
psdir = ${docdir}
runstatedir = ${localstatedir}/run
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
sysconfdir = ${prefix}/etc
target_alias =
top_build_prefix = ../
top_builddir = ..
top_srcdir = ..
element_declarations_SOURCES = element_declarations.c
element_declarations_LDADD = ../lib/libexpat.la
elements_SOURCES = elements.c
elements_LDADD = ../lib/libexpat.la
outline_SOURCES = outline.c
outline_LDADD = ../lib/libexpat.la
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu examples/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
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):
clean-noinstPROGRAMS:
@list='$(noinst_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
element_declarations$(EXEEXT): $(element_declarations_OBJECTS) $(element_declarations_DEPENDENCIES) $(EXTRA_element_declarations_DEPENDENCIES)
@rm -f element_declarations$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(element_declarations_OBJECTS) $(element_declarations_LDADD) $(LIBS)
elements$(EXEEXT): $(elements_OBJECTS) $(elements_DEPENDENCIES) $(EXTRA_elements_DEPENDENCIES)
@rm -f elements$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(elements_OBJECTS) $(elements_LDADD) $(LIBS)
outline$(EXEEXT): $(outline_OBJECTS) $(outline_DEPENDENCIES) $(EXTRA_outline_DEPENDENCIES)
@rm -f outline$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(outline_OBJECTS) $(outline_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
include ./$(DEPDIR)/element_declarations.Po # am--include-marker
include ./$(DEPDIR)/elements.Po # am--include-marker
include ./$(DEPDIR)/outline.Po # am--include-marker
$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
am--depfiles: $(am__depfiles_remade)
.c.o:
$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
# $(AM_V_CC)source='$<' object='$@' libtool=no \
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
# $(AM_V_CC_no)$(COMPILE) -c -o $@ $<
.c.obj:
$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
# $(AM_V_CC)source='$<' object='$@' libtool=no \
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
# $(AM_V_CC_no)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
$(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
# $(AM_V_CC)source='$<' object='$@' libtool=yes \
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
# $(AM_V_CC_no)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS)
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
mostlyclean-am
distclean: distclean-am
-rm -f ./$(DEPDIR)/element_declarations.Po
-rm -f ./$(DEPDIR)/elements.Po
-rm -f ./$(DEPDIR)/outline.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am:
install-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 ./$(DEPDIR)/element_declarations.Po
-rm -f ./$(DEPDIR)/elements.Po
-rm -f ./$(DEPDIR)/outline.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am:
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
clean-generic clean-libtool clean-noinstPROGRAMS cscopelist-am \
ctags ctags-am distclean distclean-compile 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 maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am
.PRECIOUS: Makefile
# 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:

43
examples/Makefile.am Normal file
View file

@ -0,0 +1,43 @@
#
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2017-2022 Sebastian Pipping <sebastian@pipping.org>
# Copyright (c) 2020 Jeffrey Walton <noloader@gmail.com>
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(srcdir)/../lib
noinst_PROGRAMS = element_declarations elements outline
element_declarations_SOURCES = element_declarations.c
element_declarations_LDADD = ../lib/libexpat.la
elements_SOURCES = elements.c
elements_LDADD = ../lib/libexpat.la
outline_SOURCES = outline.c
outline_LDADD = ../lib/libexpat.la

694
examples/Makefile.in Normal file
View file

@ -0,0 +1,694 @@
# Makefile.in generated by automake 1.16.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2021 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@
#
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2017-2022 Sebastian Pipping <sebastian@pipping.org>
# Copyright (c) 2020 Jeffrey Walton <noloader@gmail.com>
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
noinst_PROGRAMS = element_declarations$(EXEEXT) elements$(EXEEXT) \
outline$(EXEEXT)
subdir = examples
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/acinclude.m4 \
$(top_srcdir)/conftools/ax-require-defined.m4 \
$(top_srcdir)/conftools/ax-check-compile-flag.m4 \
$(top_srcdir)/conftools/ax-check-link-flag.m4 \
$(top_srcdir)/conftools/ax-append-flag.m4 \
$(top_srcdir)/conftools/ax-append-compile-flags.m4 \
$(top_srcdir)/conftools/ax-append-link-flags.m4 \
$(top_srcdir)/conftools/expatcfg-compiler-supports-visibility.m4 \
$(top_srcdir)/conftools/ax-cxx-compile-stdcxx.m4 \
$(top_srcdir)/conftools/ax-cxx-compile-stdcxx-11.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/expat_config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
PROGRAMS = $(noinst_PROGRAMS)
am_element_declarations_OBJECTS = element_declarations.$(OBJEXT)
element_declarations_OBJECTS = $(am_element_declarations_OBJECTS)
element_declarations_DEPENDENCIES = ../lib/libexpat.la
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
am_elements_OBJECTS = elements.$(OBJEXT)
elements_OBJECTS = $(am_elements_OBJECTS)
elements_DEPENDENCIES = ../lib/libexpat.la
am_outline_OBJECTS = outline.$(OBJEXT)
outline_OBJECTS = $(am_outline_OBJECTS)
outline_DEPENDENCIES = ../lib/libexpat.la
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/conftools/depcomp
am__maybe_remake_depfiles = depfiles
am__depfiles_remade = ./$(DEPDIR)/element_declarations.Po \
./$(DEPDIR)/elements.Po ./$(DEPDIR)/outline.Po
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(element_declarations_SOURCES) $(elements_SOURCES) \
$(outline_SOURCES)
DIST_SOURCES = $(element_declarations_SOURCES) $(elements_SOURCES) \
$(outline_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
am__DIST_COMMON = $(srcdir)/Makefile.in \
$(top_srcdir)/conftools/depcomp
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AM_CFLAGS = @AM_CFLAGS@
AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(srcdir)/../lib
AM_CXXFLAGS = @AM_CXXFLAGS@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AM_LDFLAGS = @AM_LDFLAGS@
AR = @AR@
AS = @AS@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CMAKE_SHARED_LIBRARY_PREFIX = @CMAKE_SHARED_LIBRARY_PREFIX@
CPPFLAGS = @CPPFLAGS@
CSCOPE = @CSCOPE@
CTAGS = @CTAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOCBOOK_TO_MAN = @DOCBOOK_TO_MAN@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
ETAGS = @ETAGS@
EXEEXT = @EXEEXT@
EXPAT_ATTR_INFO = @EXPAT_ATTR_INFO@
EXPAT_CHAR_TYPE = @EXPAT_CHAR_TYPE@
EXPAT_CONTEXT_BYTES = @EXPAT_CONTEXT_BYTES@
EXPAT_DTD = @EXPAT_DTD@
EXPAT_LARGE_SIZE = @EXPAT_LARGE_SIZE@
EXPAT_MIN_SIZE = @EXPAT_MIN_SIZE@
EXPAT_NS = @EXPAT_NS@
FGREP = @FGREP@
FILECMD = @FILECMD@
FILEMAP = @FILEMAP@
GREP = @GREP@
HAVE_CXX11 = @HAVE_CXX11@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBAGE = @LIBAGE@
LIBCURRENT = @LIBCURRENT@
LIBDIR_BASENAME = @LIBDIR_BASENAME@
LIBM = @LIBM@
LIBOBJS = @LIBOBJS@
LIBREVISION = @LIBREVISION@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SIZEOF_VOID_P = @SIZEOF_VOID_P@
SO_MAJOR = @SO_MAJOR@
SO_MINOR = @SO_MINOR@
SO_PATCH = @SO_PATCH@
STRIP = @STRIP@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
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@
element_declarations_SOURCES = element_declarations.c
element_declarations_LDADD = ../lib/libexpat.la
elements_SOURCES = elements.c
elements_LDADD = ../lib/libexpat.la
outline_SOURCES = outline.c
outline_LDADD = ../lib/libexpat.la
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu examples/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
clean-noinstPROGRAMS:
@list='$(noinst_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
element_declarations$(EXEEXT): $(element_declarations_OBJECTS) $(element_declarations_DEPENDENCIES) $(EXTRA_element_declarations_DEPENDENCIES)
@rm -f element_declarations$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(element_declarations_OBJECTS) $(element_declarations_LDADD) $(LIBS)
elements$(EXEEXT): $(elements_OBJECTS) $(elements_DEPENDENCIES) $(EXTRA_elements_DEPENDENCIES)
@rm -f elements$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(elements_OBJECTS) $(elements_LDADD) $(LIBS)
outline$(EXEEXT): $(outline_OBJECTS) $(outline_DEPENDENCIES) $(EXTRA_outline_DEPENDENCIES)
@rm -f outline$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(outline_OBJECTS) $(outline_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/element_declarations.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elements.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/outline.Po@am__quote@ # am--include-marker
$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
am--depfiles: $(am__depfiles_remade)
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
.c.obj:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS)
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
mostlyclean-am
distclean: distclean-am
-rm -f ./$(DEPDIR)/element_declarations.Po
-rm -f ./$(DEPDIR)/elements.Po
-rm -f ./$(DEPDIR)/outline.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am:
install-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 ./$(DEPDIR)/element_declarations.Po
-rm -f ./$(DEPDIR)/elements.Po
-rm -f ./$(DEPDIR)/outline.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am:
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
clean-generic clean-libtool clean-noinstPROGRAMS cscopelist-am \
ctags ctags-am distclean distclean-compile 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 maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am
.PRECIOUS: Makefile
# 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:

228
examples/element_declarations Executable file
View file

@ -0,0 +1,228 @@
#! /bin/bash
# element_declarations - temporary wrapper script for .libs/element_declarations
# Generated by libtool (GNU libtool) 2.5.3
#
# The element_declarations 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.
sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
# 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="(cd /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/examples; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z \"\${LD_LIBRARY_PATH+set}\" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/sbin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/sbin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin/../x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc64-fsl-linux:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc64-fsl-linux-musl:/opt/vgisc/app/gradle/gradle-8.12/bin:/usr/lib/jvm/java-17-openjdk-amd64/bin:/opt/vgisc/app/maven/apache-maven-3.9.9/bin:/opt/vgisc/app/maven/apache-maven-3.9.9/bin:/home/ct129/.cargo/bin:/home/ct129/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin; export PATH; powerpc64-fsl-linux-gcc -mbig-endian -mhard-float -m64 -mcpu=e6500 --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux -Wall -Wextra -fexceptions -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation -fvisibility=hidden -O2 -pipe -g -feliminate-unused-debug-types -fno-strict-aliasing -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o \$progdir/\$file element_declarations.o ../lib/.libs/libexpat.so -lm -Wl,-rpath -Wl,/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/lib/.libs -Wl,-rpath -Wl,/opt/vgisc/6t/workspace/BUILD/build/powerpc64-fsl-linux/lib)"
# This environment variable determines our operation mode.
if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
# install mode needs the following variables:
generated_by_libtool_version='2.5.3'
notinst_deplibs=' ../lib/libexpat.la'
else
# When we are sourced in execute mode, $file and $ECHO are already set.
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
file="$0"
# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
}
ECHO="printf %s\\n"
fi
# Very basic option parsing. These options are (a) specific to
# the libtool wrapper, (b) are identical between the wrapper
# /script/ and the wrapper /executable/ that is used only on
# windows platforms, and (c) all begin with the string --lt-
# (application programs are unlikely to have options that match
# this pattern).
#
# There are only two supported options: --lt-debug and
# --lt-dump-script. There is, deliberately, no --lt-help.
#
# The first argument to this parsing function should be the
# script's ../libtool value, followed by no.
lt_option_debug=
func_parse_lt_options ()
{
lt_script_arg0=$0
shift
for lt_opt
do
case "$lt_opt" in
--lt-debug) lt_option_debug=1 ;;
--lt-dump-script)
lt_dump_D=`$ECHO "X$lt_script_arg0" | sed -e 's/^X//' -e 's%/[^/]*$%%'`
test "X$lt_dump_D" = "X$lt_script_arg0" && lt_dump_D=.
lt_dump_F=`$ECHO "X$lt_script_arg0" | sed -e 's/^X//' -e 's%^.*/%%'`
cat "$lt_dump_D/$lt_dump_F"
exit 0
;;
--lt-*)
$ECHO "Unrecognized --lt- option: '$lt_opt'" 1>&2
exit 1
;;
esac
done
# Print the debug banner immediately:
if test -n "$lt_option_debug"; then
echo "element_declarations:element_declarations:$LINENO: libtool wrapper (GNU libtool) 2.5.3" 1>&2
fi
}
# Used when --lt-debug. Prints its arguments to stdout
# (redirection is the responsibility of the caller)
func_lt_dump_args ()
{
lt_dump_args_N=1;
for lt_arg
do
$ECHO "element_declarations:element_declarations:$LINENO: newargv[$lt_dump_args_N]: $lt_arg"
lt_dump_args_N=`expr $lt_dump_args_N + 1`
done
}
# Core function for launching the target application
func_exec_program_core ()
{
if test -n "$lt_option_debug"; then
$ECHO "element_declarations:element_declarations:$LINENO: newargv[0]: $progdir/$program" 1>&2
func_lt_dump_args ${1+"$@"} 1>&2
fi
exec "$progdir/$program" ${1+"$@"}
$ECHO "$0: cannot exec $program $*" 1>&2
exit 1
}
# A function to encapsulate launching the target application
# Strips options in the --lt-* namespace from $@ and
# launches target application with the remaining arguments.
func_exec_program ()
{
case " $* " in
*\ --lt-*)
for lt_wr_arg
do
case $lt_wr_arg in
--lt-*) ;;
*) set x "$@" "$lt_wr_arg"; shift;;
esac
shift
done ;;
esac
func_exec_program_core ${1+"$@"}
}
# Parse options
func_parse_lt_options "$0" ${1+"$@"}
# Find the directory that this script lives in.
thisdir=`$ECHO "$file" | sed '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 "$file" | sed '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 "$file" | sed 's%^.*/%%'`
file=`ls -ld "$thisdir/$file" | sed -n 's/.*-> //p'`
done
# Usually 'no', except on cygwin/mingw/windows when embedded into
# the cwrapper.
WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no
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
*[\\/].libs ) thisdir=`$ECHO "$thisdir" | sed 's%[\\/][^\\/]*$%%'` ;;
.libs ) thisdir=. ;;
esac
fi
# Try to get the absolute directory name.
absdir=`cd "$thisdir" && pwd`
test -n "$absdir" && thisdir="$absdir"
program=lt-'element_declarations'
progdir="$thisdir/.libs"
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 -f "$progdir/$file"
fi
# 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 -f "$progdir/$file"
exit 1
fi
fi
mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
{ rm -f "$progdir/$program";
mv -f "$progdir/$file" "$progdir/$program"; }
rm -f "$progdir/$file"
fi
if test -f "$progdir/$program"; then
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
# Run the actual program with our arguments.
func_exec_program ${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 libtool documentation for more information." 1>&2
exit 1
fi
fi

View file

@ -0,0 +1,235 @@
/* Read an XML document from standard input and print
element declarations (if any) to standard output.
It must be used with Expat compiled for UTF-8 output.
__ __ _
___\ \/ /_ __ __ _| |_
/ _ \\ /| '_ \ / _` | __|
| __// \| |_) | (_| | |_
\___/_/\_\ .__/ \__,_|\__|
|_| XML parser
Copyright (c) 1997-2000 Thai Open Source Software Center Ltd
Copyright (c) 2001-2003 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
Copyright (c) 2004-2006 Karl Waclawek <karl@waclawek.net>
Copyright (c) 2005-2007 Steven Solie <steven@solie.ca>
Copyright (c) 2016-2024 Sebastian Pipping <sebastian@pipping.org>
Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
Copyright (c) 2019 Zhongyuan Zhou <zhouzhongyuan@huawei.com>
Copyright (c) 2024 Hanno Böck <hanno@gentoo.org>
Licensed under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <expat.h>
#ifdef XML_LARGE_SIZE
# define XML_FMT_INT_MOD "ll"
#else
# define XML_FMT_INT_MOD "l"
#endif
#ifdef XML_UNICODE_WCHAR_T
# define XML_FMT_STR "ls"
#else
# define XML_FMT_STR "s"
#endif
// While traversing the XML_Content tree, we avoid recursion
// to not be vulnerable to a denial of service attack.
typedef struct StackStruct {
const XML_Content *model;
unsigned level;
struct StackStruct *prev;
} Stack;
static Stack *
stackPushMalloc(Stack *stackTop, const XML_Content *model, unsigned level) {
Stack *const newStackTop = malloc(sizeof(Stack));
if (! newStackTop) {
return NULL;
}
newStackTop->model = model;
newStackTop->level = level;
newStackTop->prev = stackTop;
return newStackTop;
}
static Stack *
stackPopFree(Stack *stackTop) {
Stack *const newStackTop = stackTop->prev;
free(stackTop);
return newStackTop;
}
static char *
contentTypeName(enum XML_Content_Type contentType) {
switch (contentType) {
case XML_CTYPE_EMPTY:
return "EMPTY";
case XML_CTYPE_ANY:
return "ANY";
case XML_CTYPE_MIXED:
return "MIXED";
case XML_CTYPE_NAME:
return "NAME";
case XML_CTYPE_CHOICE:
return "CHOICE";
case XML_CTYPE_SEQ:
return "SEQ";
default:
return "???";
}
}
static char *
contentQuantName(enum XML_Content_Quant contentQuant) {
switch (contentQuant) {
case XML_CQUANT_NONE:
return "NONE";
case XML_CQUANT_OPT:
return "OPT";
case XML_CQUANT_REP:
return "REP";
case XML_CQUANT_PLUS:
return "PLUS";
default:
return "???";
}
}
static void
dumpContentModelElement(const XML_Content *model, unsigned level,
const XML_Content *root) {
// Indent
unsigned u = 0;
for (; u < level; u++) {
printf(" ");
}
// Node
printf("[%u] type=%s(%u), quant=%s(%u)", (unsigned)(model - root),
contentTypeName(model->type), (unsigned int)model->type,
contentQuantName(model->quant), (unsigned int)model->quant);
if (model->name) {
printf(", name=\"%" XML_FMT_STR "\"", model->name);
} else {
printf(", name=NULL");
}
printf(", numchildren=%u", model->numchildren);
printf("\n");
}
static bool
dumpContentModel(const XML_Char *name, const XML_Content *root) {
printf("Element \"%" XML_FMT_STR "\":\n", name);
Stack *stackTop = stackPushMalloc(NULL, root, 1);
if (! stackTop) {
return false;
}
while (stackTop) {
const XML_Content *const model = stackTop->model;
const unsigned level = stackTop->level;
dumpContentModelElement(model, level, root);
stackTop = stackPopFree(stackTop);
for (size_t u = model->numchildren; u >= 1; u--) {
Stack *const newStackTop
= stackPushMalloc(stackTop, model->children + (u - 1), level + 1);
if (! newStackTop) {
// We ran out of memory, so let's free all memory allocated
// earlier in this function, to be leak-clean:
while (stackTop != NULL) {
stackTop = stackPopFree(stackTop);
}
return false;
}
stackTop = newStackTop;
}
}
printf("\n");
return true;
}
static void XMLCALL
handleElementDeclaration(void *userData, const XML_Char *name,
XML_Content *model) {
XML_Parser parser = (XML_Parser)userData;
const bool success = dumpContentModel(name, model);
XML_FreeContentModel(parser, model);
if (! success) {
XML_StopParser(parser, /* resumable= */ XML_FALSE);
}
}
int
main(void) {
XML_Parser parser = XML_ParserCreate(NULL);
int done;
if (! parser) {
fprintf(stderr, "Couldn't allocate memory for parser\n");
return 1;
}
XML_SetUserData(parser, parser);
XML_SetElementDeclHandler(parser, handleElementDeclaration);
do {
void *const buf = XML_GetBuffer(parser, BUFSIZ);
if (! buf) {
fprintf(stderr, "Couldn't allocate memory for buffer\n");
XML_ParserFree(parser);
return 1;
}
const size_t len = fread(buf, 1, BUFSIZ, stdin);
if (ferror(stdin)) {
fprintf(stderr, "Read error\n");
XML_ParserFree(parser);
return 1;
}
done = feof(stdin);
if (XML_ParseBuffer(parser, (int)len, done) == XML_STATUS_ERROR) {
enum XML_Error errorCode = XML_GetErrorCode(parser);
if (errorCode == XML_ERROR_ABORTED) {
errorCode = XML_ERROR_NO_MEMORY;
}
fprintf(stderr,
"Parse error at line %" XML_FMT_INT_MOD "u:\n%" XML_FMT_STR "\n",
XML_GetCurrentLineNumber(parser), XML_ErrorString(errorCode));
XML_ParserFree(parser);
return 1;
}
} while (! done);
XML_ParserFree(parser);
return 0;
}

Binary file not shown.

228
examples/elements Executable file
View file

@ -0,0 +1,228 @@
#! /bin/bash
# elements - temporary wrapper script for .libs/elements
# Generated by libtool (GNU libtool) 2.5.3
#
# The elements 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.
sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
# 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="(cd /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/examples; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z \"\${LD_LIBRARY_PATH+set}\" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/sbin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/sbin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin/../x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc64-fsl-linux:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc64-fsl-linux-musl:/opt/vgisc/app/gradle/gradle-8.12/bin:/usr/lib/jvm/java-17-openjdk-amd64/bin:/opt/vgisc/app/maven/apache-maven-3.9.9/bin:/opt/vgisc/app/maven/apache-maven-3.9.9/bin:/home/ct129/.cargo/bin:/home/ct129/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin; export PATH; powerpc64-fsl-linux-gcc -mbig-endian -mhard-float -m64 -mcpu=e6500 --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux -Wall -Wextra -fexceptions -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation -fvisibility=hidden -O2 -pipe -g -feliminate-unused-debug-types -fno-strict-aliasing -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o \$progdir/\$file elements.o ../lib/.libs/libexpat.so -lm -Wl,-rpath -Wl,/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/lib/.libs -Wl,-rpath -Wl,/opt/vgisc/6t/workspace/BUILD/build/powerpc64-fsl-linux/lib)"
# This environment variable determines our operation mode.
if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
# install mode needs the following variables:
generated_by_libtool_version='2.5.3'
notinst_deplibs=' ../lib/libexpat.la'
else
# When we are sourced in execute mode, $file and $ECHO are already set.
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
file="$0"
# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
}
ECHO="printf %s\\n"
fi
# Very basic option parsing. These options are (a) specific to
# the libtool wrapper, (b) are identical between the wrapper
# /script/ and the wrapper /executable/ that is used only on
# windows platforms, and (c) all begin with the string --lt-
# (application programs are unlikely to have options that match
# this pattern).
#
# There are only two supported options: --lt-debug and
# --lt-dump-script. There is, deliberately, no --lt-help.
#
# The first argument to this parsing function should be the
# script's ../libtool value, followed by no.
lt_option_debug=
func_parse_lt_options ()
{
lt_script_arg0=$0
shift
for lt_opt
do
case "$lt_opt" in
--lt-debug) lt_option_debug=1 ;;
--lt-dump-script)
lt_dump_D=`$ECHO "X$lt_script_arg0" | sed -e 's/^X//' -e 's%/[^/]*$%%'`
test "X$lt_dump_D" = "X$lt_script_arg0" && lt_dump_D=.
lt_dump_F=`$ECHO "X$lt_script_arg0" | sed -e 's/^X//' -e 's%^.*/%%'`
cat "$lt_dump_D/$lt_dump_F"
exit 0
;;
--lt-*)
$ECHO "Unrecognized --lt- option: '$lt_opt'" 1>&2
exit 1
;;
esac
done
# Print the debug banner immediately:
if test -n "$lt_option_debug"; then
echo "elements:elements:$LINENO: libtool wrapper (GNU libtool) 2.5.3" 1>&2
fi
}
# Used when --lt-debug. Prints its arguments to stdout
# (redirection is the responsibility of the caller)
func_lt_dump_args ()
{
lt_dump_args_N=1;
for lt_arg
do
$ECHO "elements:elements:$LINENO: newargv[$lt_dump_args_N]: $lt_arg"
lt_dump_args_N=`expr $lt_dump_args_N + 1`
done
}
# Core function for launching the target application
func_exec_program_core ()
{
if test -n "$lt_option_debug"; then
$ECHO "elements:elements:$LINENO: newargv[0]: $progdir/$program" 1>&2
func_lt_dump_args ${1+"$@"} 1>&2
fi
exec "$progdir/$program" ${1+"$@"}
$ECHO "$0: cannot exec $program $*" 1>&2
exit 1
}
# A function to encapsulate launching the target application
# Strips options in the --lt-* namespace from $@ and
# launches target application with the remaining arguments.
func_exec_program ()
{
case " $* " in
*\ --lt-*)
for lt_wr_arg
do
case $lt_wr_arg in
--lt-*) ;;
*) set x "$@" "$lt_wr_arg"; shift;;
esac
shift
done ;;
esac
func_exec_program_core ${1+"$@"}
}
# Parse options
func_parse_lt_options "$0" ${1+"$@"}
# Find the directory that this script lives in.
thisdir=`$ECHO "$file" | sed '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 "$file" | sed '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 "$file" | sed 's%^.*/%%'`
file=`ls -ld "$thisdir/$file" | sed -n 's/.*-> //p'`
done
# Usually 'no', except on cygwin/mingw/windows when embedded into
# the cwrapper.
WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no
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
*[\\/].libs ) thisdir=`$ECHO "$thisdir" | sed 's%[\\/][^\\/]*$%%'` ;;
.libs ) thisdir=. ;;
esac
fi
# Try to get the absolute directory name.
absdir=`cd "$thisdir" && pwd`
test -n "$absdir" && thisdir="$absdir"
program=lt-'elements'
progdir="$thisdir/.libs"
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 -f "$progdir/$file"
fi
# 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 -f "$progdir/$file"
exit 1
fi
fi
mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
{ rm -f "$progdir/$program";
mv -f "$progdir/$file" "$progdir/$program"; }
rm -f "$progdir/$file"
fi
if test -f "$progdir/$program"; then
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
# Run the actual program with our arguments.
func_exec_program ${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 libtool documentation for more information." 1>&2
exit 1
fi
fi

121
examples/elements.c Normal file
View file

@ -0,0 +1,121 @@
/* This is simple demonstration of how to use expat. This program
reads an XML document from standard input and writes a line with
the name of each element to standard output indenting child
elements by one tab stop more than their parent element.
It must be used with Expat compiled for UTF-8 output.
__ __ _
___\ \/ /_ __ __ _| |_
/ _ \\ /| '_ \ / _` | __|
| __// \| |_) | (_| | |_
\___/_/\_\ .__/ \__,_|\__|
|_| XML parser
Copyright (c) 1997-2000 Thai Open Source Software Center Ltd
Copyright (c) 2001-2003 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
Copyright (c) 2004-2006 Karl Waclawek <karl@waclawek.net>
Copyright (c) 2005-2007 Steven Solie <steven@solie.ca>
Copyright (c) 2016-2022 Sebastian Pipping <sebastian@pipping.org>
Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
Copyright (c) 2019 Zhongyuan Zhou <zhouzhongyuan@huawei.com>
Licensed under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <stdio.h>
#include <expat.h>
#ifdef XML_LARGE_SIZE
# define XML_FMT_INT_MOD "ll"
#else
# define XML_FMT_INT_MOD "l"
#endif
#ifdef XML_UNICODE_WCHAR_T
# define XML_FMT_STR "ls"
#else
# define XML_FMT_STR "s"
#endif
static void XMLCALL
startElement(void *userData, const XML_Char *name, const XML_Char **atts) {
int i;
int *const depthPtr = (int *)userData;
(void)atts;
for (i = 0; i < *depthPtr; i++)
putchar('\t');
printf("%" XML_FMT_STR "\n", name);
*depthPtr += 1;
}
static void XMLCALL
endElement(void *userData, const XML_Char *name) {
int *const depthPtr = (int *)userData;
(void)name;
*depthPtr -= 1;
}
int
main(void) {
XML_Parser parser = XML_ParserCreate(NULL);
int done;
int depth = 0;
if (! parser) {
fprintf(stderr, "Couldn't allocate memory for parser\n");
return 1;
}
XML_SetUserData(parser, &depth);
XML_SetElementHandler(parser, startElement, endElement);
do {
void *const buf = XML_GetBuffer(parser, BUFSIZ);
if (! buf) {
fprintf(stderr, "Couldn't allocate memory for buffer\n");
XML_ParserFree(parser);
return 1;
}
const size_t len = fread(buf, 1, BUFSIZ, stdin);
if (ferror(stdin)) {
fprintf(stderr, "Read error\n");
XML_ParserFree(parser);
return 1;
}
done = feof(stdin);
if (XML_ParseBuffer(parser, (int)len, done) == XML_STATUS_ERROR) {
fprintf(stderr,
"Parse error at line %" XML_FMT_INT_MOD "u:\n%" XML_FMT_STR "\n",
XML_GetCurrentLineNumber(parser),
XML_ErrorString(XML_GetErrorCode(parser)));
XML_ParserFree(parser);
return 1;
}
} while (! done);
XML_ParserFree(parser);
return 0;
}

BIN
examples/elements.o Normal file

Binary file not shown.

228
examples/outline Executable file
View file

@ -0,0 +1,228 @@
#! /bin/bash
# outline - temporary wrapper script for .libs/outline
# Generated by libtool (GNU libtool) 2.5.3
#
# The outline 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.
sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
# 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="(cd /opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/examples; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; { test -z \"\${LD_LIBRARY_PATH+set}\" || unset LD_LIBRARY_PATH || { LD_LIBRARY_PATH=; export LD_LIBRARY_PATH; }; }; PATH=/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/sbin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/sbin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin/../x86_64-fslsdk-linux/bin:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc64-fsl-linux:/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/bin/powerpc64-fsl-linux-musl:/opt/vgisc/app/gradle/gradle-8.12/bin:/usr/lib/jvm/java-17-openjdk-amd64/bin:/opt/vgisc/app/maven/apache-maven-3.9.9/bin:/opt/vgisc/app/maven/apache-maven-3.9.9/bin:/home/ct129/.cargo/bin:/home/ct129/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin; export PATH; powerpc64-fsl-linux-gcc -mbig-endian -mhard-float -m64 -mcpu=e6500 --sysroot=/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux -Wall -Wextra -fexceptions -fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion -Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation -fvisibility=hidden -O2 -pipe -g -feliminate-unused-debug-types -fno-strict-aliasing -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o \$progdir/\$file outline.o ../lib/.libs/libexpat.so -lm -Wl,-rpath -Wl,/opt/vgisc/6t/workspace/UTIL/src/expat-2.6.4/lib/.libs -Wl,-rpath -Wl,/opt/vgisc/6t/workspace/BUILD/build/powerpc64-fsl-linux/lib)"
# This environment variable determines our operation mode.
if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
# install mode needs the following variables:
generated_by_libtool_version='2.5.3'
notinst_deplibs=' ../lib/libexpat.la'
else
# When we are sourced in execute mode, $file and $ECHO are already set.
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
file="$0"
# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
}
ECHO="printf %s\\n"
fi
# Very basic option parsing. These options are (a) specific to
# the libtool wrapper, (b) are identical between the wrapper
# /script/ and the wrapper /executable/ that is used only on
# windows platforms, and (c) all begin with the string --lt-
# (application programs are unlikely to have options that match
# this pattern).
#
# There are only two supported options: --lt-debug and
# --lt-dump-script. There is, deliberately, no --lt-help.
#
# The first argument to this parsing function should be the
# script's ../libtool value, followed by no.
lt_option_debug=
func_parse_lt_options ()
{
lt_script_arg0=$0
shift
for lt_opt
do
case "$lt_opt" in
--lt-debug) lt_option_debug=1 ;;
--lt-dump-script)
lt_dump_D=`$ECHO "X$lt_script_arg0" | sed -e 's/^X//' -e 's%/[^/]*$%%'`
test "X$lt_dump_D" = "X$lt_script_arg0" && lt_dump_D=.
lt_dump_F=`$ECHO "X$lt_script_arg0" | sed -e 's/^X//' -e 's%^.*/%%'`
cat "$lt_dump_D/$lt_dump_F"
exit 0
;;
--lt-*)
$ECHO "Unrecognized --lt- option: '$lt_opt'" 1>&2
exit 1
;;
esac
done
# Print the debug banner immediately:
if test -n "$lt_option_debug"; then
echo "outline:outline:$LINENO: libtool wrapper (GNU libtool) 2.5.3" 1>&2
fi
}
# Used when --lt-debug. Prints its arguments to stdout
# (redirection is the responsibility of the caller)
func_lt_dump_args ()
{
lt_dump_args_N=1;
for lt_arg
do
$ECHO "outline:outline:$LINENO: newargv[$lt_dump_args_N]: $lt_arg"
lt_dump_args_N=`expr $lt_dump_args_N + 1`
done
}
# Core function for launching the target application
func_exec_program_core ()
{
if test -n "$lt_option_debug"; then
$ECHO "outline:outline:$LINENO: newargv[0]: $progdir/$program" 1>&2
func_lt_dump_args ${1+"$@"} 1>&2
fi
exec "$progdir/$program" ${1+"$@"}
$ECHO "$0: cannot exec $program $*" 1>&2
exit 1
}
# A function to encapsulate launching the target application
# Strips options in the --lt-* namespace from $@ and
# launches target application with the remaining arguments.
func_exec_program ()
{
case " $* " in
*\ --lt-*)
for lt_wr_arg
do
case $lt_wr_arg in
--lt-*) ;;
*) set x "$@" "$lt_wr_arg"; shift;;
esac
shift
done ;;
esac
func_exec_program_core ${1+"$@"}
}
# Parse options
func_parse_lt_options "$0" ${1+"$@"}
# Find the directory that this script lives in.
thisdir=`$ECHO "$file" | sed '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 "$file" | sed '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 "$file" | sed 's%^.*/%%'`
file=`ls -ld "$thisdir/$file" | sed -n 's/.*-> //p'`
done
# Usually 'no', except on cygwin/mingw/windows when embedded into
# the cwrapper.
WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no
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
*[\\/].libs ) thisdir=`$ECHO "$thisdir" | sed 's%[\\/][^\\/]*$%%'` ;;
.libs ) thisdir=. ;;
esac
fi
# Try to get the absolute directory name.
absdir=`cd "$thisdir" && pwd`
test -n "$absdir" && thisdir="$absdir"
program=lt-'outline'
progdir="$thisdir/.libs"
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 -f "$progdir/$file"
fi
# 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 -f "$progdir/$file"
exit 1
fi
fi
mv -f "$progdir/$file" "$progdir/$program" 2>/dev/null ||
{ rm -f "$progdir/$program";
mv -f "$progdir/$file" "$progdir/$program"; }
rm -f "$progdir/$file"
fi
if test -f "$progdir/$program"; then
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
# Run the actual program with our arguments.
func_exec_program ${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 libtool documentation for more information." 1>&2
exit 1
fi
fi

124
examples/outline.c Normal file
View file

@ -0,0 +1,124 @@
/* Read an XML document from standard input and print an element
outline on standard output.
Must be used with Expat compiled for UTF-8 output.
__ __ _
___\ \/ /_ __ __ _| |_
/ _ \\ /| '_ \ / _` | __|
| __// \| |_) | (_| | |_
\___/_/\_\ .__/ \__,_|\__|
|_| XML parser
Copyright (c) 2000 Clark Cooper <coopercc@users.sourceforge.net>
Copyright (c) 2001-2003 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
Copyright (c) 2005-2007 Steven Solie <steven@solie.ca>
Copyright (c) 2005-2006 Karl Waclawek <karl@waclawek.net>
Copyright (c) 2016-2022 Sebastian Pipping <sebastian@pipping.org>
Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
Licensed under the MIT license:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <stdio.h>
#include <expat.h>
#ifdef XML_LARGE_SIZE
# define XML_FMT_INT_MOD "ll"
#else
# define XML_FMT_INT_MOD "l"
#endif
#ifdef XML_UNICODE_WCHAR_T
# define XML_FMT_STR "ls"
#else
# define XML_FMT_STR "s"
#endif
static void XMLCALL
startElement(void *userData, const XML_Char *name, const XML_Char **atts) {
int i;
int *const depthPtr = (int *)userData;
for (i = 0; i < *depthPtr; i++)
printf(" ");
printf("%" XML_FMT_STR, name);
for (i = 0; atts[i]; i += 2) {
printf(" %" XML_FMT_STR "='%" XML_FMT_STR "'", atts[i], atts[i + 1]);
}
printf("\n");
*depthPtr += 1;
}
static void XMLCALL
endElement(void *userData, const XML_Char *name) {
int *const depthPtr = (int *)userData;
(void)name;
*depthPtr -= 1;
}
int
main(void) {
XML_Parser parser = XML_ParserCreate(NULL);
int done;
int depth = 0;
if (! parser) {
fprintf(stderr, "Couldn't allocate memory for parser\n");
return 1;
}
XML_SetUserData(parser, &depth);
XML_SetElementHandler(parser, startElement, endElement);
do {
void *const buf = XML_GetBuffer(parser, BUFSIZ);
if (! buf) {
fprintf(stderr, "Couldn't allocate memory for buffer\n");
XML_ParserFree(parser);
return 1;
}
const size_t len = fread(buf, 1, BUFSIZ, stdin);
if (ferror(stdin)) {
fprintf(stderr, "Read error\n");
XML_ParserFree(parser);
return 1;
}
done = feof(stdin);
if (XML_ParseBuffer(parser, (int)len, done) == XML_STATUS_ERROR) {
fprintf(stderr,
"Parse error at line %" XML_FMT_INT_MOD "u:\n%" XML_FMT_STR "\n",
XML_GetCurrentLineNumber(parser),
XML_ErrorString(XML_GetErrorCode(parser)));
XML_ParserFree(parser);
return 1;
}
} while (! done);
XML_ParserFree(parser);
return 0;
}

BIN
examples/outline.o Normal file

Binary file not shown.

13
expat.pc Normal file
View file

@ -0,0 +1,13 @@
prefix=/opt/vgisc/6t/workspace/BUILD/build/powerpc64-fsl-linux
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: expat
Version: 2.6.4
Description: expat XML parser
URL: https://libexpat.github.io/
Libs: -L${libdir} -lexpat
Libs.private: -lm
Cflags: -I${includedir}
Cflags.private: -DXML_STATIC

13
expat.pc.cmake Normal file
View file

@ -0,0 +1,13 @@
prefix=$<TARGET_PROPERTY:expat,pkgconfig_prefix>
exec_prefix=$<TARGET_PROPERTY:expat,pkgconfig_exec_prefix>
libdir=$<TARGET_PROPERTY:expat,pkgconfig_libdir>
includedir=$<TARGET_PROPERTY:expat,pkgconfig_includedir>
Name: $<TARGET_PROPERTY:expat,pkgconfig_$<LOWER_CASE:$<CONFIG>>_name>
Version: $<TARGET_PROPERTY:expat,pkgconfig_version>
Description: expat XML parser
URL: https://libexpat.github.io/
Libs: -L${libdir} -l$<TARGET_PROPERTY:expat,pkgconfig_$<LOWER_CASE:$<CONFIG>>_output_name>
Libs.private: $<TARGET_PROPERTY:expat,pkgconfig_libm>
Cflags: -I${includedir}
Cflags.private: -DXML_STATIC

13
expat.pc.in Normal file
View file

@ -0,0 +1,13 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Description: expat XML parser
URL: https://libexpat.github.io/
Libs: -L${libdir} -l@PACKAGE_NAME@
Libs.private: @LIBM@
Cflags: -I${includedir}
Cflags.private: -DXML_STATIC

143
expat_config.h Normal file
View file

@ -0,0 +1,143 @@
/* expat_config.h. Generated from expat_config.h.in by configure. */
/* expat_config.h.in. Generated from configure.ac by autoheader. */
#ifndef EXPAT_CONFIG_H
#define EXPAT_CONFIG_H 1
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* 1234 = LILENDIAN, 4321 = BIGENDIAN */
#define BYTEORDER 4321
/* Define to 1 if you have the `arc4random' function. */
/* #undef HAVE_ARC4RANDOM */
/* Define to 1 if you have the `arc4random_buf' function. */
/* #undef HAVE_ARC4RANDOM_BUF */
/* define if the compiler supports basic C++11 syntax */
#define HAVE_CXX11 1
/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the `getpagesize' function. */
#define HAVE_GETPAGESIZE 1
/* Define to 1 if you have the `getrandom' function. */
#define HAVE_GETRANDOM 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the `bsd' library (-lbsd). */
/* #undef HAVE_LIBBSD */
/* Define to 1 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1
/* Define to 1 if you have the <stdio.h> header file. */
#define HAVE_STDIO_H 1
/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1
/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1
/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1
/* Define to 1 if you have `syscall' and `SYS_getrandom'. */
#define HAVE_SYSCALL_GETRANDOM 1
/* Define to 1 if you have the <sys/param.h> header file. */
#define HAVE_SYS_PARAM_H 1
/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1
/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1
/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#define LT_OBJDIR ".libs/"
/* Name of package */
#define PACKAGE "expat"
/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT "https://github.com/libexpat/libexpat/issues"
/* Define to the full name of this package. */
#define PACKAGE_NAME "expat"
/* Define to the full name and version of this package. */
#define PACKAGE_STRING "expat 2.6.4"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "expat"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#define PACKAGE_VERSION "2.6.4"
/* Define to 1 if all of the C90 standard headers exist (not just the ones
required in a freestanding environment). This macro is provided for
backward compatibility; new code need not use it. */
#define STDC_HEADERS 1
/* Version number of package */
#define VERSION "2.6.4"
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
# define WORDS_BIGENDIAN 1
# endif
#endif
/* Define to allow retrieving the byte offsets for attribute names and values.
*/
/* #undef XML_ATTR_INFO */
/* Define to specify how much context to retain around the current parse
point, 0 to disable. */
#define XML_CONTEXT_BYTES 1024
/* Define to include code reading entropy from `/dev/urandom'. */
#define XML_DEV_URANDOM 1
/* Define to make parameter entity parsing functionality available. */
#define XML_DTD 1
/* Define as 1/0 to enable/disable support for general entities. */
#define XML_GE 1
/* Define to make XML Namespaces functionality available. */
#define XML_NS 1
/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */
/* Define to `long int' if <sys/types.h> does not define. */
/* #undef off_t */
#endif // ndef EXPAT_CONFIG_H

122
expat_config.h.cmake Normal file
View file

@ -0,0 +1,122 @@
/* expat_config.h.cmake. Based upon generated expat_config.h.in. */
#ifndef EXPAT_CONFIG_H
#define EXPAT_CONFIG_H 1
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
#cmakedefine BYTEORDER @BYTEORDER@
/* Define to 1 if you have the `arc4random' function. */
#cmakedefine HAVE_ARC4RANDOM
/* Define to 1 if you have the `arc4random_buf' function. */
#cmakedefine HAVE_ARC4RANDOM_BUF
/* Define to 1 if you have the <dlfcn.h> header file. */
#cmakedefine HAVE_DLFCN_H
/* Define to 1 if you have the <fcntl.h> header file. */
#cmakedefine HAVE_FCNTL_H
/* Define to 1 if you have the `getpagesize' function. */
#cmakedefine HAVE_GETPAGESIZE
/* Define to 1 if you have the `getrandom' function. */
#cmakedefine HAVE_GETRANDOM
/* Define to 1 if you have the <inttypes.h> header file. */
#cmakedefine HAVE_INTTYPES_H
/* Define to 1 if you have the `bsd' library (-lbsd). */
#cmakedefine HAVE_LIBBSD
/* Define to 1 if you have the <memory.h> header file. */
#cmakedefine HAVE_MEMORY_H
/* Define to 1 if you have a working `mmap' system call. */
#cmakedefine HAVE_MMAP
/* Define to 1 if you have the <stdint.h> header file. */
#cmakedefine HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#cmakedefine HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#cmakedefine HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#cmakedefine HAVE_STRING_H
/* Define to 1 if you have `syscall' and `SYS_getrandom'. */
#cmakedefine HAVE_SYSCALL_GETRANDOM
/* Define to 1 if you have the <sys/stat.h> header file. */
#cmakedefine HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#cmakedefine HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#cmakedefine HAVE_UNISTD_H
/* Name of package */
#define PACKAGE "@PACKAGE_NAME@"
/* Define to the address where bug reports for this package should be sent. */
#cmakedefine PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
/* Define to the full name of this package. */
#cmakedefine PACKAGE_NAME "@PACKAGE_NAME@"
/* Define to the full name and version of this package. */
#cmakedefine PACKAGE_STRING "@PACKAGE_STRING@"
/* Define to the one symbol short name of this package. */
#cmakedefine PACKAGE_TARNAME "@PACKAGE_TARNAME@"
/* Define to the home page for this package. */
#define PACKAGE_URL ""
/* Define to the version of this package. */
#cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION@"
/* Define to 1 if you have the ANSI C header files. */
#ifndef STDC_HEADERS
#cmakedefine STDC_HEADERS
#endif
/* whether byteorder is bigendian */
#cmakedefine WORDS_BIGENDIAN
/* Define to allow retrieving the byte offsets for attribute names and values.
*/
#cmakedefine XML_ATTR_INFO
/* Define to specify how much context to retain around the current parse
point, 0 to disable. */
#define XML_CONTEXT_BYTES @XML_CONTEXT_BYTES@
#if ! defined(_WIN32)
/* Define to include code reading entropy from `/dev/urandom'. */
#cmakedefine XML_DEV_URANDOM
#endif
/* Define to make parameter entity parsing functionality available. */
#cmakedefine XML_DTD
/* Define as 1/0 to enable/disable support for general entities. */
#define XML_GE @XML_GE@
/* Define to make XML Namespaces functionality available. */
#cmakedefine XML_NS
/* Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C. */
#ifdef _MSC_VER
# define __func__ __FUNCTION__
#endif
/* Define to `long' if <sys/types.h> does not define. */
#cmakedefine off_t @off_t@
#endif // ndef EXPAT_CONFIG_H

142
expat_config.h.in Normal file
View file

@ -0,0 +1,142 @@
/* expat_config.h.in. Generated from configure.ac by autoheader. */
#ifndef EXPAT_CONFIG_H
#define EXPAT_CONFIG_H 1
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
/* 1234 = LILENDIAN, 4321 = BIGENDIAN */
#undef BYTEORDER
/* Define to 1 if you have the `arc4random' function. */
#undef HAVE_ARC4RANDOM
/* Define to 1 if you have the `arc4random_buf' function. */
#undef HAVE_ARC4RANDOM_BUF
/* define if the compiler supports basic C++11 syntax */
#undef HAVE_CXX11
/* 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 `getrandom' function. */
#undef HAVE_GETRANDOM
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define to 1 if you have the `bsd' library (-lbsd). */
#undef HAVE_LIBBSD
/* 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 <stdio.h> header file. */
#undef HAVE_STDIO_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 `syscall' and `SYS_getrandom'. */
#undef HAVE_SYSCALL_GETRANDOM
/* Define to 1 if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to the sub-directory where libtool stores uninstalled libraries. */
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if all of the C90 standard headers exist (not just the ones
required in a freestanding environment). This macro is provided for
backward compatibility; new code need not use it. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
# define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
# undef WORDS_BIGENDIAN
# endif
#endif
/* Define to allow retrieving the byte offsets for attribute names and values.
*/
#undef XML_ATTR_INFO
/* Define to specify how much context to retain around the current parse
point, 0 to disable. */
#undef XML_CONTEXT_BYTES
/* Define to include code reading entropy from `/dev/urandom'. */
#undef XML_DEV_URANDOM
/* Define to make parameter entity parsing functionality available. */
#undef XML_DTD
/* Define as 1/0 to enable/disable support for general entities. */
#undef XML_GE
/* Define to make XML Namespaces functionality available. */
#undef XML_NS
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
/* Define to `long int' if <sys/types.h> does not define. */
#undef off_t
#endif // ndef EXPAT_CONFIG_H

50
fix-xmltest-log.sh Executable file
View file

@ -0,0 +1,50 @@
#! /usr/bin/env bash
# __ __ _
# ___\ \/ /_ __ __ _| |_
# / _ \\ /| '_ \ / _` | __|
# | __// \| |_) | (_| | |_
# \___/_/\_\ .__/ \__,_|\__|
# |_| XML parser
#
# Copyright (c) 2019-2022 Sebastian Pipping <sebastian@pipping.org>
# Copyright (c) 2024 Dag-Erling Smørgrav <des@des.dev>
# Licensed under the MIT license:
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the
# following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
# USE OR OTHER DEALINGS IN THE SOFTWARE.
set -e
filename="${1:-tests/xmltest.log}"
sed -i.bak \
-e '# convert DOS line endings to Unix without resorting to dos2unix' \
-e $'s/\r//' \
\
-e 's/^wine: Call .* msvcrt\.dll\._wperror, aborting$/ibm49i02.dtd: No such file or directory/' \
\
-e '/^wine: /d' \
-e '/^Application tried to create a window, but no driver could be loaded.$/d' \
-e '/^Make sure that your X server is running and that $DISPLAY is set correctly.$/d' \
-e '/^err:systray:initialize_systray Could not create tray window$/d' \
-e '/^[0-9a-f]\+:err:/d' \
-e '/^wine client error:/d' \
-e '/^In ibm\/invalid\/P49\/: Unhandled exception: unimplemented .\+/d' \
\
"${filename}"

105
fuzz/xml_parse_fuzzer.c Normal file
View file

@ -0,0 +1,105 @@
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <assert.h>
#include <stdint.h>
#include "expat.h"
#include "siphash.h"
// Macros to convert preprocessor macros to string literals. See
// https://gcc.gnu.org/onlinedocs/gcc-3.4.3/cpp/Stringification.html
#define xstr(s) str(s)
#define str(s) #s
// The encoder type that we wish to fuzz should come from the compile-time
// definition `ENCODING_FOR_FUZZING`. This allows us to have a separate fuzzer
// binary for
#ifndef ENCODING_FOR_FUZZING
# error "ENCODING_FOR_FUZZING was not provided to this fuzz target."
#endif
// 16-byte deterministic hash key.
static unsigned char hash_key[16] = "FUZZING IS FUN!";
static void XMLCALL
start(void *userData, const XML_Char *name, const XML_Char **atts) {
(void)userData;
(void)name;
(void)atts;
}
static void XMLCALL
end(void *userData, const XML_Char *name) {
(void)userData;
(void)name;
}
static void XMLCALL
may_stop_character_handler(void *userData, const XML_Char *s, int len) {
XML_Parser parser = (XML_Parser)userData;
if (len > 1 && s[0] == 's') {
XML_StopParser(parser, s[1] == 'r' ? XML_FALSE : XML_TRUE);
}
}
static void
ParseOneInput(XML_Parser p, const uint8_t *data, size_t size) {
// Set the hash salt using siphash to generate a deterministic hash.
struct sipkey *key = sip_keyof(hash_key);
XML_SetHashSalt(p, (unsigned long)siphash24(data, size, key));
(void)sip24_valid;
XML_SetUserData(p, p);
XML_SetElementHandler(p, start, end);
XML_SetCharacterDataHandler(p, may_stop_character_handler);
XML_Parse(p, (const XML_Char *)data, size, 0);
if (XML_Parse(p, (const XML_Char *)data, size, 1) == XML_STATUS_ERROR) {
XML_ErrorString(XML_GetErrorCode(p));
}
XML_GetCurrentLineNumber(p);
if (size % 2) {
XML_ParserReset(p, NULL);
}
}
int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
XML_Parser parentParser = XML_ParserCreate(xstr(ENCODING_FOR_FUZZING));
assert(parentParser);
ParseOneInput(parentParser, data, size);
// not freed yet, but used later and freed then
XML_Parser namespaceParser = XML_ParserCreateNS(NULL, '!');
assert(namespaceParser);
ParseOneInput(namespaceParser, data, size);
XML_ParserFree(namespaceParser);
XML_Parser externalEntityParser
= XML_ExternalEntityParserCreate(parentParser, "e1", NULL);
assert(externalEntityParser);
ParseOneInput(externalEntityParser, data, size);
XML_ParserFree(externalEntityParser);
XML_Parser externalDtdParser
= XML_ExternalEntityParserCreate(parentParser, NULL, NULL);
assert(externalDtdParser);
ParseOneInput(externalDtdParser, data, size);
XML_ParserFree(externalDtdParser);
// finally frees this parser which served as parent
XML_ParserFree(parentParser);
return 0;
}

View file

@ -0,0 +1,117 @@
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <assert.h>
#include <stdint.h>
#include <string.h>
#include "expat.h"
#include "siphash.h"
// Macros to convert preprocessor macros to string literals. See
// https://gcc.gnu.org/onlinedocs/gcc-3.4.3/cpp/Stringification.html
#define xstr(s) str(s)
#define str(s) #s
// The encoder type that we wish to fuzz should come from the compile-time
// definition `ENCODING_FOR_FUZZING`. This allows us to have a separate fuzzer
// binary for
#ifndef ENCODING_FOR_FUZZING
# error "ENCODING_FOR_FUZZING was not provided to this fuzz target."
#endif
// 16-byte deterministic hash key.
static unsigned char hash_key[16] = "FUZZING IS FUN!";
static void XMLCALL
start(void *userData, const XML_Char *name, const XML_Char **atts) {
(void)userData;
(void)name;
(void)atts;
}
static void XMLCALL
end(void *userData, const XML_Char *name) {
(void)userData;
(void)name;
}
static void XMLCALL
may_stop_character_handler(void *userData, const XML_Char *s, int len) {
XML_Parser parser = (XML_Parser)userData;
if (len > 1 && s[0] == 's') {
XML_StopParser(parser, s[1] == 'r' ? XML_FALSE : XML_TRUE);
}
}
static void
ParseOneInput(XML_Parser p, const uint8_t *data, size_t size) {
// Set the hash salt using siphash to generate a deterministic hash.
struct sipkey *key = sip_keyof(hash_key);
XML_SetHashSalt(p, (unsigned long)siphash24(data, size, key));
(void)sip24_valid;
XML_SetUserData(p, p);
XML_SetElementHandler(p, start, end);
XML_SetCharacterDataHandler(p, may_stop_character_handler);
void *buf = XML_GetBuffer(p, size);
assert(buf);
memcpy(buf, data, size);
XML_ParseBuffer(p, size, 0);
buf = XML_GetBuffer(p, size);
if (buf == NULL) {
return;
}
memcpy(buf, data, size);
if (XML_ParseBuffer(p, size, 1) == XML_STATUS_ERROR) {
XML_ErrorString(XML_GetErrorCode(p));
}
XML_GetCurrentLineNumber(p);
if (size % 2) {
XML_ParserReset(p, NULL);
}
}
int
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
if (size == 0)
return 0;
XML_Parser parentParser = XML_ParserCreate(xstr(ENCODING_FOR_FUZZING));
assert(parentParser);
ParseOneInput(parentParser, data, size);
// not freed yet, but used later and freed then
XML_Parser namespaceParser = XML_ParserCreateNS(NULL, '!');
assert(namespaceParser);
ParseOneInput(namespaceParser, data, size);
XML_ParserFree(namespaceParser);
XML_Parser externalEntityParser
= XML_ExternalEntityParserCreate(parentParser, "e1", NULL);
assert(externalEntityParser);
ParseOneInput(externalEntityParser, data, size);
XML_ParserFree(externalEntityParser);
XML_Parser externalDtdParser
= XML_ExternalEntityParserCreate(parentParser, NULL, NULL);
assert(externalDtdParser);
ParseOneInput(externalDtdParser, data, size);
XML_ParserFree(externalDtdParser);
// finally frees this parser which served as parent
XML_ParserFree(parentParser);
return 0;
}

View file

@ -0,0 +1,338 @@
libtestpat_la-xmlparse.lo: xmlparse.c \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h \
../expat_config.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdbool.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/string.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/locale_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__locale_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/strings.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/assert.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/xopen_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uio_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdio.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdarg.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__mbstate_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos64_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/cookie_io_functions_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/sys_errlist.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdint.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdint.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wchar.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-uintn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/math.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/math-vector.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libm-simd-decl-stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/flt-eval-method.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fp-logb.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fp-fast.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls-helper-functions.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls-narrow.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/iscanonical.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathinline.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/time.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/unistd.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix_opt.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/environments.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/confname.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/getopt_posix.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/getopt_core.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/unistd_ext.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/fcntl.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fcntl.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fcntl-linux.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_iovec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/falloc.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stat.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/errno.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/errno.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/errno.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm/errno.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm-generic/errno.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm-generic/errno-base.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/error_t.h \
ascii.h expat.h expat_external.h siphash.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/random.h \
internal.h xmltok.h xmlrole.h
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h:
../expat_config.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdbool.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/string.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/locale_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__locale_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/strings.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/assert.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/xopen_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uio_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdio.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdarg.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__mbstate_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos64_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/cookie_io_functions_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/sys_errlist.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdint.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdint.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wchar.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-uintn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/math.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/math-vector.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libm-simd-decl-stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/flt-eval-method.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fp-logb.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fp-fast.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls-helper-functions.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls-narrow.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/iscanonical.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathinline.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/time.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/unistd.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix_opt.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/environments.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/confname.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/getopt_posix.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/getopt_core.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/unistd_ext.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/fcntl.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fcntl.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fcntl-linux.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_iovec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/falloc.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stat.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/errno.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/errno.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/errno.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm/errno.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm-generic/errno.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm-generic/errno-base.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/error_t.h:
ascii.h:
expat.h:
expat_external.h:
siphash.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/random.h:
internal.h:
xmltok.h:
xmlrole.h:

View file

@ -0,0 +1,166 @@
libtestpat_la-xmlrole.lo: xmlrole.c \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h \
../expat_config.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h \
expat_external.h internal.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h \
expat.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h \
xmlrole.h xmltok.h ascii.h
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h:
../expat_config.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h:
expat_external.h:
internal.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h:
expat.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h:
xmlrole.h:
xmltok.h:
ascii.h:

View file

@ -0,0 +1,196 @@
libtestpat_la-xmltok.lo: xmltok.c \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h \
../expat_config.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/string.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/locale_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__locale_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/strings.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdbool.h \
expat_external.h internal.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h \
expat.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h \
xmltok.h nametab.h xmltok_impl.h ascii.h xmltok_impl.c asciitab.h \
utf8tab.h iasciitab.h latin1tab.h xmltok_ns.c
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h:
../expat_config.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/string.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/locale_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__locale_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/strings.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdbool.h:
expat_external.h:
internal.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h:
expat.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h:
xmltok.h:
nametab.h:
xmltok_impl.h:
ascii.h:
xmltok_impl.c:
asciitab.h:
utf8tab.h:
iasciitab.h:
latin1tab.h:
xmltok_ns.c:

338
lib/.deps/xmlparse.Plo Normal file
View file

@ -0,0 +1,338 @@
xmlparse.lo: xmlparse.c \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h \
../expat_config.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdbool.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/string.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/locale_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__locale_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/strings.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/assert.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/xopen_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uio_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdio.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdarg.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__mbstate_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos64_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_FILE.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/cookie_io_functions_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/sys_errlist.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdint.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdint.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wchar.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-uintn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/math.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/math-vector.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libm-simd-decl-stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/flt-eval-method.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fp-logb.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fp-fast.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls-helper-functions.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls-narrow.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/iscanonical.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathinline.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/time.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/unistd.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix_opt.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/environments.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/confname.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/getopt_posix.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/getopt_core.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/unistd_ext.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/fcntl.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fcntl.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fcntl-linux.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_iovec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/falloc.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stat.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/errno.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/errno.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/errno.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm/errno.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm-generic/errno.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm-generic/errno-base.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/error_t.h \
ascii.h expat.h expat_external.h siphash.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/random.h \
internal.h xmltok.h xmlrole.h
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h:
../expat_config.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdbool.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/string.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/locale_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__locale_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/strings.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/assert.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/xopen_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uio_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdio.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdarg.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__mbstate_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__fpos64_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_FILE.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/cookie_io_functions_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/sys_errlist.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdio.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdint.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdint.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wchar.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-uintn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/math.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/math-vector.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libm-simd-decl-stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/flt-eval-method.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fp-logb.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fp-fast.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls-helper-functions.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathcalls-narrow.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/iscanonical.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/mathinline.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/time.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/unistd.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix_opt.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/environments.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/confname.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/getopt_posix.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/getopt_core.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/unistd_ext.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/fcntl.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fcntl.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/fcntl-linux.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_iovec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/falloc.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stat.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/errno.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/errno.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/errno.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm/errno.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm-generic/errno.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/asm-generic/errno-base.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/error_t.h:
ascii.h:
expat.h:
expat_external.h:
siphash.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/random.h:
internal.h:
xmltok.h:
xmlrole.h:

166
lib/.deps/xmlrole.Plo Normal file
View file

@ -0,0 +1,166 @@
xmlrole.lo: xmlrole.c \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h \
../expat_config.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h \
expat_external.h internal.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h \
expat.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h \
xmlrole.h xmltok.h ascii.h
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h:
../expat_config.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h:
expat_external.h:
internal.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h:
expat.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h:
xmlrole.h:
xmltok.h:
ascii.h:

196
lib/.deps/xmltok.Plo Normal file
View file

@ -0,0 +1,196 @@
xmltok.lo: xmltok.c \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h \
../expat_config.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/string.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/locale_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__locale_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/strings.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdbool.h \
expat_external.h internal.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h \
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h \
expat.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h \
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h \
xmltok.h nametab.h xmltok_impl.h ascii.h xmltok_impl.c asciitab.h \
utf8tab.h iasciitab.h latin1tab.h xmltok_ns.c
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdc-predef.h:
../expat_config.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stddef.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/string.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/libc-header-start.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/features.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/cdefs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/wordsize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/long-double-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/gnu/stubs-64-v1.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/locale_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__locale_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/strings.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include/stdbool.h:
expat_external.h:
internal.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/limits.h:
/opt/fsl-qoriq/3.0/sysroots/x86_64-fslsdk-linux/usr/lib/powerpc64-fsl-linux/gcc/powerpc64-fsl-linux/9.2.0/include-fixed/syslimits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix1_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/local_lim.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/linux/limits.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/posix2_lim.h:
expat.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/stdlib.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitflags.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/waitstatus.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/floatn-common.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/timesize.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/typesizes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/time64.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clock_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/clockid_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/time_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/timer_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdint-intn.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/endian.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/byteswap.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/uintn-identity.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/sys/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/select.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/__sigset_t.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timeval.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/types/struct_timespec.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/thread-shared-types.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/pthreadtypes-arch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/alloca.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-bsearch.h:
/opt/fsl-qoriq/3.0/sysroots/ppc64e6500-fsl-linux/usr/include/bits/stdlib-float.h:
xmltok.h:
nametab.h:
xmltok_impl.h:
ascii.h:
xmltok_impl.c:
asciitab.h:
utf8tab.h:
iasciitab.h:
latin1tab.h:
xmltok_ns.c:

BIN
lib/.libs/libexpat.a Normal file

Binary file not shown.

1
lib/.libs/libexpat.la Symbolic link
View file

@ -0,0 +1 @@
../libexpat.la

41
lib/.libs/libexpat.lai Normal file
View file

@ -0,0 +1,41 @@
# libexpat.la - a libtool library file
# Generated by libtool (GNU libtool) 2.5.3
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
# The name that we can dlopen(3).
dlname='libexpat.so.1'
# Names of this library.
library_names='libexpat.so.1.10.0 libexpat.so.1 libexpat.so'
# The name of the static archive.
old_library='libexpat.a'
# Linker flags that cannot go in dependency_libs.
inherited_linker_flags=''
# Libraries that this one depends upon.
dependency_libs=' -lm'
# Names of additional weak libraries provided by this library
weak_library_names=''
# Version information for libexpat.
current=11
age=10
revision=0
# Is this an already installed library?
installed=yes
# Should we warn about portability when linking against -modules?
shouldnotlink=no
# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''
# Directory that this library needs to be installed in:
libdir='/opt/vgisc/6t/workspace/BUILD/build/powerpc64-fsl-linux/lib'

1
lib/.libs/libexpat.so Symbolic link
View file

@ -0,0 +1 @@
libexpat.so.1.10.0

1
lib/.libs/libexpat.so.1 Symbolic link
View file

@ -0,0 +1 @@
libexpat.so.1.10.0

BIN
lib/.libs/libexpat.so.1.10.0 Executable file

Binary file not shown.

BIN
lib/.libs/libtestpat.a Normal file

Binary file not shown.

1
lib/.libs/libtestpat.la Symbolic link
View file

@ -0,0 +1 @@
../libtestpat.la

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more